Mercurial > libavformat.hg
changeset 2333:892b9d82e812 libavformat
check forw_ptr CRC
author | michael |
---|---|
date | Thu, 09 Aug 2007 12:51:08 +0000 |
parents | 7dd23262372f |
children | 2f7e67256bd1 |
files | nutdec.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nutdec.c Thu Aug 09 12:48:52 2007 +0000 +++ b/nutdec.c Thu Aug 09 12:51:08 2007 +0000 @@ -103,9 +103,12 @@ int64_t size; // start= url_ftell(bc) - 8; + init_checksum(bc, av_crc04C11DB7_update, 0); size= get_v(bc); if(size > 4096) - get_be32(bc); //FIXME check this + get_be32(bc); + if(get_checksum(bc) && size > 4096) + return -1; init_checksum(bc, calculate_checksum ? av_crc04C11DB7_update : NULL, 0);