Carl Eugen Hoyos <[email protected]> added the comment:

Does not crash on Linux and OS X (PPC).

==26309== Command: ./ffmpeg_g -i 1279729383-BLUE01.jpg -f null -
==26309==
FFmpeg version SVN-r24460, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jul 23 2010 16:46:14 with gcc 4.4.4
  configuration: --cc='/usr/local/gcc-4.4.4/bin/gcc -m32'
  libavutil     50.23. 0 / 50.23. 0
  libavcore      0. 0. 0 /  0. 0. 0
  libavcodec    52.84. 0 / 52.84. 0
  libavformat   52.76. 0 / 52.76. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.26. 1 /  1.26. 1
  libswscale     0.11. 0 /  0.11. 0
==26309== Use of uninitialised value of size 4
==26309==    at 0x82553F9: ff_mjpeg_decode_sos (mjpegdec.c:411)
==26309==
==26309== Conditional jump or move depends on uninitialised value(s)
==26309==    at 0x846D771: ff_simple_idct_put_mmx (in ffmpeg_g)
==26309==
==26309== Conditional jump or move depends on uninitialised value(s)
==26309==    at 0x846D892: ff_simple_idct_put_mmx (in ffmpeg_g)
==26309==
==26309== Conditional jump or move depends on uninitialised value(s)
==26309==    at 0x846D98F: ff_simple_idct_put_mmx (in ffmpeg_g)
==26309==
==26309== Conditional jump or move depends on uninitialised value(s)
==26309==    at 0x846DA8C: ff_simple_idct_put_mmx (in ffmpeg_g)
==26309==
==26309== Use of uninitialised value of size 4
==26309==    at 0x8255323: ff_mjpeg_decode_sos (get_bits.h:611)
==26309==
==26309== Invalid read of size 4
==26309==    at 0x82553E5: ff_mjpeg_decode_sos (bswap.h:42)
==26309==  Address 0x517a8d7 is 825,863 bytes inside a block of size 825,866 
alloc'd
==26309==    at 0x4CA8E9E: memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==26309==    by 0x4CA8EFB: posix_memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==26309==    by 0x854EAB0: av_malloc (mem.c:83)
==26309==
==26309== Invalid read of size 4
==26309==    at 0x8255311: ff_mjpeg_decode_sos (bswap.h:42)
==26309==  Address 0x517a8df is 5 bytes after a block of size 825,866 alloc'd
==26309==    at 0x4CA8E9E: memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==26309==    by 0x4CA8EFB: posix_memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==26309==    by 0x854EAB0: av_malloc (mem.c:83)
==26309==
==26309== Invalid read of size 4
==26309==    at 0x825536B: ff_mjpeg_decode_sos (bswap.h:42)
==26309==  Address 0x517a931 is not stack'd, malloc'd or (recently) free'd
==26309==
[mjpeg @ 0x4fb9e10] error count: 64
[mjpeg @ 0x4fb9e10] error y=72 x=54
[mjpeg @ 0x4fb9e10] EOI missing, emulating
Input #0, image2, from '1279729383-BLUE01.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj420p, 2048x1536 [PAR 1:1 DAR 4:3], 25 tbr, 25
tbn, 25 tbc
[buffer @ 0x579e220] w:2048 h:1536 pixfmt:yuvj420p
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf52.76.0
    Stream #0.0: Video: rawvideo, yuvj420p, 2048x1536 [PAR 1:1 DAR 4:3], q=2-31,
200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
==26309== Invalid read of size 4
==26309==    at 0x8255F94: ff_mjpeg_decode_sos (bswap.h:42)
==26309==  Address 0x5316af8 is 88 bytes inside a block of size 104 free'd
==26309==    at 0x4CA98A6: free (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==26309==    by 0x811F0AA: init_vlc_sparse (bitstream.c:326)
==26309==
[mjpeg @ 0x4fb9e10] error count: 67
[mjpeg @ 0x4fb9e10] error y=71 x=118
[mjpeg @ 0x4fb9e10] EOI missing, emulating
frame=    1 fps=  0 q=0.0 Lsize=      -0kB time=0.04 bitrate=  -4.4kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead -inf%
==26309==
==26309== HEAP SUMMARY:
==26309==     in use at exit: 0 bytes in 0 blocks
==26309==   total heap usage: 137 allocs, 137 frees, 36,181,313 bytes allocated
==26309==
==26309== All heap blocks were freed -- no leaks are possible
==26309==
==26309== For counts of detected and suppressed errors, rerun with: -v
==26309== Use --track-origins=yes to see where uninitialised values come from
==26309== ERROR SUMMARY: 21921 errors from 10 contexts (suppressed: 3 from 3)

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2117>
________________________________________________

Reply via email to