Mercurial > mplayer.hg
view tests/ref/txd/misc.txd.md5 @ 35394:7bad316da87a
stream ftp: Pass full buffer size to snprintf
Previously the buffer size was always passed as one less than
the underlying buffer's size. This is not using the underlying
buffer to its full potential according to the C99 standard. The
last byte of the buffers were never used.
No vulnerabilities should have been caused by this mistake because
the strings stored in the buffers were zero terminated at all
times. Neither were out-of-array writes nor reads possible.
author | al |
---|---|
date | Mon, 26 Nov 2012 23:36:00 +0000 |
parents | f6cce8c4ea66 |
children |
line wrap: on
line source
68c5b16b7cbccb45ee1e0f194c53a6b6 frame00000000 c182694005d0b0e339de69494981b4d8 frame00000001 ed2cf49cff72959761dac17485e3e189 frame00000002 ee129e604b822bc68fd780dd659152eb frame00000003 68fbe73e44fa10c841ed1a66eb7ebb0a frame00000004 0cb7fe0e888aaec4046eb6d7c5798fb6 frame00000005 ee6fa338f6e0e75ab6b3b02dcbdb88c0 frame00000006 69f47855930a1f666ccdc88ae1d4c7d0 frame00000007 5d79dcfd572c1d593680ec1a5c7832af frame00000008 2ba3d54cbbe8af04efb6ed0da9f97c0a frame00000009 e751d6f2aa885f38b49db4eeecb319bf frame00000010