[FFmpeg-devel] [PATCH] nutdec: make chapter start and length uint64_t to prevent overflows.
Anton Khirnov
wyskas
Sun Feb 28 22:04:46 CET 2010
i really wonder why nobody noticed this until now.
---
libavformat/nutdec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 8ca5923..415f720 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -389,8 +389,8 @@ static void set_disposition_bits(AVFormatContext* avf, char* value, int stream_i
static int decode_info_header(NUTContext *nut){
AVFormatContext *s= nut->avf;
ByteIOContext *bc = s->pb;
- uint64_t tmp;
- unsigned int stream_id_plus1, chapter_start, chapter_len, count;
+ uint64_t tmp, chapter_start, chapter_len;
+ unsigned int stream_id_plus1, count;
int chapter_id, i;
int64_t value, end;
char name[256], str_value[1024], type_str[256];
--
1.6.6.1
More information about the ffmpeg-devel
mailing list