Mercurial > libavformat.hg
changeset 4295:36a6d25e95ea libavformat
better header_size check
author | michael |
---|---|
date | Tue, 27 Jan 2009 21:01:47 +0000 |
parents | e6b06b0c611a |
children | 42a9dba93e69 |
files | 4xm.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/4xm.c Tue Jan 27 20:51:10 2009 +0000 +++ b/4xm.c Tue Jan 27 21:01:47 2009 +0000 @@ -114,7 +114,7 @@ /* 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 */