Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi Caolan
On 15/02/11 16:17, Noel Power wrote:
On 15/02/11 15:28, Michael Meeks wrote:
    Which it doesn't, so good catch; Noel we should fix that :-)
well as it turns out it does, rtl_string_ImplAlloc always creates a buffer 1 bigger than the requested len and stuffs a '\0' in it. Strange but true. Still this was fun ( in a torturous way ) and luckily I haven't had a heart attack yet. In short I think it will work
needless to say I did in fact assume that OUString/OString(s) were ordinarily inherently null terminated and I thought your orig question was asking whether it was possible we send in any 'funny' strings ( ala bags of bytes in a string container etc. ) into the dllmgr. My answer was was based on the fact that all strings we pass in are in fact 'proper' strings parsed out of the source code. Of course it looks like I answered the wrong question and was wrong again because these things are in fact not (really) null terminated ( despite the years of printing these out telling me otherwise ). I wasn't intentionally trying to mislead you, sorry 'bout that. Of course in the end it seems that 'rtl_string_ImplAlloc' explains why printing always works and why the patch shouldn't be a problem

thanks,

Noel

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.