[vlc-devel] [PATCH] vasprintf: stop HEAP exceptions
Rémi Denis-Courmont
rem at videolan.org
Wed Jan 7 20:34:06 CET 2009
Le mardi 6 janvier 2009 03:00:47 ken, vous avez écrit :
> vsnprintf produces "0paaaa" and returns a length of 6
> vsprintf produces "0000AAAA" and returns a length of 8
> So if vsprintf writes to the memory allocated on the basis of vsnprintf
> it overflows by 2 characters
Well vsnprintf() is consistent with itself at least. Could it be that VLC is
pulling vsprintf() and vsnprintf() from mismatching run-times, such as MSVCRT
and a static mingw import library or something?
--
Rémi Denis-Courmont
http://git.remlab.net/cgi-bin/gitweb.cgi?p=vlc-courmisch.git;a=summary
More information about the vlc-devel
mailing list