projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4698bb2
)
better header_size check
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 27 Jan 2009 21:01:47 +0000
(21:01 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 27 Jan 2009 21:01:47 +0000
(21:01 +0000)
Originally committed as revision 16830 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/4xm.c
patch
|
blob
|
blame
|
history
diff --git
a/libavformat/4xm.c
b/libavformat/4xm.c
index
af57c6c
..
30d2403
100644
(file)
--- a/
libavformat/4xm.c
+++ b/
libavformat/4xm.c
@@
-114,7
+114,7
@@
static int fourxm_read_header(AVFormatContext *s,
/* check for LIST-HEAD */
GET_LIST_HEADER();
header_size = size - 4;
- if (fourcc_tag != HEAD_TAG ||
size < 4
)
+ if (fourcc_tag != HEAD_TAG ||
header_size < 0
)
return AVERROR_INVALIDDATA;
/* allocate space for the header and load the whole thing */