New submission from Vitor <[email protected]>:
This can be tested using the sample and command-line from FATE test #323. Note
that CRC differs depending on the "--malloc-fill" parameter.
Priority normal (not minor) because this can make FATE flaky...
vi...@vitor:~$ valgrind --malloc-fill=0x00 ../../../ffmpeg.milepost/ffmpeg_g -i
v210_720p-partial.avi -pix_fmt yuv422p16be -an -f framecrc -
==29077== Memcheck, a memory error detector.
==29077== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==29077== Using LibVEX rev 1804, a library for dynamic binary translation.
==29077== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==29077== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation
framework.
==29077== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==29077== For more details, rerun with: -v
==29077==
FFmpeg version SVN-r20191, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Oct 8 2009 05:52:14 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
configuration: --cc='ccache gcc' --cpu=host
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.36. 0 / 52.36. 0
libavformat 52.39. 0 / 52.39. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
Input #0, avi, from 'v210_720p-partial.avi':
Duration: 00:00:00.24, start: 0.000000, bitrate: 104857 kb/s
Stream #0.0: Video: v210, yuv422p16le, 1280x720, 50 tbr, 50 tbn, 50 tbc
Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Output #0, framecrc, to 'pipe:':
Stream #0.0: Video: rawvideo, yuv422p16be, 1280x720, q=2-31, 200 kb/s, 90k
tbn, 50 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
==29077== Conditional jump or move depends on uninitialised value(s)
==29077== at 0x849D66A: av_adler32_update (adler32.c:43)
==29077==
==29077== Use of uninitialised value of size 4
==29077== at 0x40DE2D1: (within /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x40E0209: vfprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x4103C03: vsnprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x40E83A4: snprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x808E699: framecrc_write_packet (framecrcenc.c:27)
==29077==
==29077== Conditional jump or move depends on uninitialised value(s)
==29077== at 0x40DE2D7: (within /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x40E0209: vfprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x4103C03: vsnprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x40E83A4: snprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x808E699: framecrc_write_packet (framecrcenc.c:27)
==29077==
==29077== Conditional jump or move depends on uninitialised value(s)
==29077== at 0x40DFF2D: vfprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x4103C03: vsnprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x40E83A4: snprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==29077== by 0x808E699: framecrc_write_packet (framecrcenc.c:27)
0, 0, 3686400, 0x16438ab6
frame= 1 fps= 0 q=0.0 Lsize= 0kB time=0.02 bitrate= 10.4kbits/s
video:3600kB audio:0kB global headers:0kB muxing overhead -99.999295%
==29077==
==29077== ERROR SUMMARY: 57629 errors from 4 contexts (suppressed: 25 from 1)
==29077== malloc/free: in use at exit: 0 bytes in 0 blocks.
==29077== malloc/free: 64 allocs, 64 frees, 19,609,742 bytes allocated.
==29077== For counts of detected errors, rerun with: -v
==29077== All heap blocks were freed -- no leaks are possible.
vi...@vitor:~$ valgrind --malloc-fill=0xff ../../../ffmpeg.milepost/ffmpeg_g -i
v210_720p-partial.avi -pix_fmt yuv422p16be -an -f framecrc -
[ identical valgrind output omitted ]
0, 0, 3686400, 0x654f4ce3
----------
messages: 7413
priority: normal
status: new
substatus: new
title: V210 decoder might give uninitialized memory as output
type: bug
_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1465>
_____________________________________________________