[FFmpeg-devel] [PATCH] rawdec: fix mjpeg probing buffer size check

Michael Niedermayer michael at niedermayer.cc
Thu Jul 30 00:17:49 CEST 2015


On Wed, Jul 29, 2015 at 10:33:44PM +0200, wm4 wrote:
> ---
> If I read this right, the subtraction and comparison would be done in
> unsigned, because size_t is unsigned. Which would make this check
> ineffective. (p->buf_size is int.)
> ---
>  libavformat/rawdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

i wonder why this wasnt noticed before
ive the suspicioun the negative case cannot actually occur
either way its a bug

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150730/bb3504d7/attachment.sig>


More information about the ffmpeg-devel mailing list