[Mono-list] Mono.Unix.Native.Syscall.readlink memory corruption

Gonzalo Paniagua Javier gonzalo at ximian.com
Tue Mar 14 17:37:28 EST 2006


On Tue, 2006-03-14 at 17:00 -0500, Jonathan Pryor wrote:
> I may be missing something, but I'm missing how this actually fixes the
> corruption problem.

The corruption comes from the sb->str MonoString not being
null-terminated when the capacity is less than the number of items
resulting from g_utf8_to_utf16.

-Gonzalo




More information about the Mono-list mailing list