On Mon, 2012-06-18 at 13:41 +0200, Stephan Bergmann wrote: > In either case, the strdup(aUser.getStr()) should be OK?
I bet this is one if the false-positive occasions where valgrind isn't aware of one of the strlen performance hacks IIRC where glibc knows that it can get away with traversing that strdup's memory block in 4byte chunks in its strlen e.g. someone with a 4/8 character length username wouldn't see it :-) So... if you just changed the strlen to be aUser.getLength() + 1 would that silence valgrind too ? C. _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice