[flac-dev] [PATCH] for win_utf8_io.c

lvqcl lvqcl.mail at gmail.com
Fri Aug 8 08:18:01 PDT 2014


For better readability the patch is divided by 3 parts.

Part #1: for a bit better security replace
     vsprintf(utmp, format, argptr)
with
     vsnprintf_s(utmp, 32768, _TRUNCATE, format, argptr)


Part #2: potential memleak fixed: utf8argv[i] are not freed
when utf8argv itself is freed.


Part #3: 'if (ret != 0) break;' line seems redundant.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win_utf8_io.zip
Type: application/zip
Size: 1209 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20140808/9d8220c8/attachment.zip 


More information about the flac-dev mailing list