#396(avdevice:new): libavdevice/vfwcvap.c memory allocation error
#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
#396: libavdevice/vfwcap.c memory allocation error ------------------------------+----------------------- Reporter: RickWinkpa | Owner: Type: defect | Status: open Priority: important | Component: avdevice Version: git-master | Resolution: Keywords: vfwcap regression | Blocked By: Blocking: | Reproduced: 1 Analyzed: 0 | ------------------------------+----------------------- Changes (by cehoyos): * keywords: vfwcap => vfwcap regression * status: new => open * version: unspecified => git-master Comment: This is a regression since 3e15ea21504a5cc1765afd78dd72ef486a10a27b. commit 3e15ea21504a5cc1765afd78dd72ef486a10a27b Author: Anton Khirnov <anton@khirnov.net> Date: Tue May 24 07:43:01 2011 +0200 vfwcap: add video_size private option. -- Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/396#comment:1> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#396: libavdevice/vfwcap.c memory allocation error ------------------------------+----------------------- Reporter: RickWinkpa | Owner: Type: defect | Status: open Priority: important | Component: avdevice Version: git-master | Resolution: Keywords: vfwcap regression | Blocked By: Blocking: | Reproduced: 1 Analyzed: 0 | ------------------------------+----------------------- Comment (by reimar): I just sent a patch, it would be great if you could help by testing it. http://ffmpeg.org/pipermail/ffmpeg-devel/2011-August/114238.html -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/396#comment:2> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#396: libavdevice/vfwcap.c memory allocation error ------------------------------+----------------------- Reporter: RickWinkpa | Owner: Type: defect | Status: closed Priority: important | Component: avdevice Version: git-master | Resolution: fixed Keywords: vfwcap regression | Blocked By: Blocking: | Reproduced: 1 Analyzed: 0 | ------------------------------+----------------------- Changes (by reimar): * status: open => closed * resolution: => fixed -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/396#comment:3> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg