[FFmpeg-cvslog] r10017 - trunk/libavformat/nutdec.c
michael
subversion
Thu Aug 9 14:51:08 CEST 2007
Author: michael
Date: Thu Aug 9 14:51:08 2007
New Revision: 10017
Log:
check forw_ptr CRC
Modified:
trunk/libavformat/nutdec.c
Modified: trunk/libavformat/nutdec.c
==============================================================================
--- trunk/libavformat/nutdec.c (original)
+++ trunk/libavformat/nutdec.c Thu Aug 9 14:51:08 2007
@@ -103,9 +103,12 @@ static int get_packetheader(NUTContext *
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);
More information about the ffmpeg-cvslog
mailing list