[Ffmpeg-devel] [BUG][PATCH] double free in libavformat/utils.c/av_destruct_packet()
Wed Jan 4 16:20:24 CET 2006
Wolfram Gloger wrote:
>>Triggers this bug, my latest cook fixes are needed also. Attached patch
>>seams to fix that, I tried with av_freep but valgrind complained.
>>--- libavformat/utils.c 22 Dec 2005 01:10:11 -0000 1.172
>>+++ libavformat/utils.c 4 Jan 2006 12:37:30 -0000
>>@@ -178,7 +178,8 @@
>> void av_destruct_packet(AVPacket *pkt)
>>+ if (!pkt->data)
>> pkt->data = NULL; pkt->size = 0;
>Aehem, this patch cannot possibly be correct (huge memory leaks would
>result), you're not proposing this patch but just trying to outline
>what the problem is, right?
Um, yeah you're right, I thought it was a NULL pointer problem but I
inverted the logic.
I guess it's a problem with the rm demuxer then.
"incorrect information" is an oxymoron. Information is, by definition, factual, correct.
More information about the ffmpeg-devel