[Mono-dev] [PATCH] NULL terminate new strings beyond the end (rather than last char)
kornelpal at gmail.com
Wed Jul 12 08:59:36 EDT 2006
This modification seems to be wrong.
But in this case what is the extra character for?
----- Original Message -----
From: "Kornél Pál" <kornelpal at gmail.com>
To: <mono-devel-list at lists.ximian.com>
Sent: Wednesday, July 12, 2006 12:24 PM
Subject: [PATCH] NULL terminate new strings beyond the end (rather than last
> Strings are allocated with an extra character. I think this is added to
> a NULL at the end anyway. But when the allocated memory is not zero-filled
> by the GC, only the last character of the string is zeroed that can be and
> most likely will be overwritten.
> Please review and approve the patch.
More information about the Mono-devel-list