[FFmpeg-trac] #6160(avformat:new): Valgrind error in mpegps_read_header
FFmpeg
trac at avcodec.org
Sun Feb 19 03:22:01 EET 2017
#6160: Valgrind error in mpegps_read_header
----------------------------------+---------------------------------------
Reporter: mi | Type: defect
Status: new | Priority: normal
Component: avformat | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
I noticed strange crashes working on my own code and attempted to run it
under valgrind. The error reported by the tool is there even with the
stock ffmpeg-executable -- without my code in the equation.
How to reproduce:
{{{
% valgrind ffmpeg -i robot.avi
ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
built with FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final
208032) 20140512
...
==52950== Conditional jump or move depends on uninitialised value(s)
==52950== at 0x554F02F: mpegps_read_header (mpeg.c:148)
==52950== by 0x55D43DA: avformat_open_input (utils.c:593)
==52950== by 0x40F881: ??? (in /opt/bin/ffmpeg)
==52950== by 0x40F10C: ??? (in /opt/bin/ffmpeg)
==52950== by 0x40EE93: ??? (in /opt/bin/ffmpeg)
==52950== by 0x41AC7B: ??? (in /opt/bin/ffmpeg)
==52950== by 0x408F8E: ??? (in /opt/bin/ffmpeg)
==52950== by 0x4020FFF: ???
==52950==
}}}
The reported line mpeg.c:148 reads:
{{{
if (!memcmp("IMKH", buffer, 4)) {
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6160>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list