projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be50938
)
Change buffer check to avoid an unlikely pointer arithmetic overflow.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Fri, 17 Apr 2009 19:49:55 +0000
(19:49 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Fri, 17 Apr 2009 19:49:55 +0000
(19:49 +0000)
Originally committed as revision 18596 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/xan.c
patch
|
blob
|
history
diff --git
a/libavcodec/xan.c
b/libavcodec/xan.c
index
99feba0
..
b5303eb
100644
(file)
--- a/
libavcodec/xan.c
+++ b/
libavcodec/xan.c
@@
-104,7
+104,7
@@
static int xan_huffman_decode(unsigned char *dest, const unsigned char *src,
val = src[val - 0x17 + get_bits1(&gb) * byte];
if ( val < 0x16 ) {
- if (dest
+ 1 >
dest_end)
+ if (dest
>=
dest_end)
return 0;
*dest++ = val;
val = ival;