[FFmpeg-trac] #396(avdevice:new): libavdevice/vfwcvap.c memory allocation error
FFmpeg
trac at avcodec.org
Sun Aug 14 06:59:13 CEST 2011
#396: libavdevice/vfwcvap.c memory allocation error
------------------------+--------------------------
Reporter: RickWinkpa | Type: defect
Status: new | Priority: important
Component: avdevice | Version: unspecified
Keywords: vfwcap | Blocked By:
Blocking: | Reproduced: 1
Analyzed: 0 |
------------------------+--------------------------
vfw_read_header()
line 358 a structure memory area is freed
av_free(bi);
a few lines later, lines: 384 & 385 the freed memory are is used.
codec->width = bi->bmiHeader.biWidth;
codec->height = bi->bmiHeader.biHeight;
by debugging it, i have found the memory is already been used and
corrupted. This causes erratic behavior with ffmpeg.exe
I tried the obvious corrections by copying the height and width values
from the memory (bi) values before the free, and then used the copied
values to set the codec values. This causes a hang in av_read_packet()
in ffmpeg.exe and an abort when debugged using eclipse.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/396>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list