[PATCH] Fixed out of bounds memory access
Caolán McNamara
caolanm at redhat.com
Mon Jun 18 08:50:20 PDT 2012
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.
More information about the LibreOffice
mailing list