Commit f25f00f3 authored by reimar's avatar reimar

Change buffer check to avoid an unlikely pointer arithmetic overflow.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18596 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cf567db6
...@@ -104,7 +104,7 @@ static int xan_huffman_decode(unsigned char *dest, const unsigned char *src, ...@@ -104,7 +104,7 @@ static int xan_huffman_decode(unsigned char *dest, const unsigned char *src,
val = src[val - 0x17 + get_bits1(&gb) * byte]; val = src[val - 0x17 + get_bits1(&gb) * byte];
if ( val < 0x16 ) { if ( val < 0x16 ) {
if (dest + 1 > dest_end) if (dest >= dest_end)
return 0; return 0;
*dest++ = val; *dest++ = val;
val = ival; val = ival;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment