New submission from Vitor <[email protected]>:

Sample: http://samples.ffmpeg.org/game-formats/txd/fronten2.txd

vi...@vitor:/tmp$ valgrind ~/ffmpeg/ffmpeg/ffmpeg_g -i fronten2.txd -f 
md5 -
==22207== Memcheck, a memory error detector.
==22207== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et 
al.
==22207== Using LibVEX rev 1804, a library for dynamic binary 
translation.
==22207== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==22207== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation 
framework.
==22207== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et 
al.
==22207== For more details, rerun with: -v
==22207== 
FFmpeg version SVN-r24860, Copyright (c) 2000-2010 the FFmpeg developers
  built on Aug 23 2010 08:11:42 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
  configuration: --cpu=host --cc='ccache gcc' --disable-asm
  libavutil     50.24. 0 / 50.24. 0
  libavcore      0. 6. 0 /  0. 6. 0
  libavcodec    52.85. 1 / 52.85. 1
  libavformat   52.78. 3 / 52.78. 3
  libavdevice   52. 2. 1 / 52. 2. 1
  libavfilter    1.37. 0 /  1.37. 0
  libswscale     0.11. 0 /  0.11. 0
[txd @ 0x41f4be0] depth of 16 is unsupported
[txd @ 0x41e2f60] Estimating duration from bitrate, this may be 
inaccurate
Input #0, txd, from 'fronten2.txd':
  Duration: N/A, bitrate: N/A
    Stream #0.0: Video: txd, bgra, 512x512, 5 fps, 5 tbr, 90k tbn, 5 tbc
[buffer @ 0x442dbb0] w:512 h:512 pixfmt:bgra
Output #0, md5, to 'pipe:':
  Metadata:
    encoder         : Lavf52.78.3
    Stream #0.0: Video: rawvideo, bgra, 512x512, q=2-31, 200 kb/s, 90k 
tbn, 5 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
==22207== Invalid read of size 1s     0kB time=1.00 bitrate=   
0.0kbits/s    
==22207==    at 0x4024B30: memcpy (mc_replace_strmem.c:402)
==22207==    by 0x8200166: av_picture_data_copy (imgconvert.c:791)
==22207==  Address 0x4995f4f is not stack'd, malloc'd or (recently) 
free'd
==22207== 
==22207== Invalid read of size 1
==22207==    at 0x4024B38: memcpy (mc_replace_strmem.c:402)
==22207==    by 0x8200166: av_picture_data_copy (imgconvert.c:791)
==22207==  Address 0x4995f4e is not stack'd, malloc'd or (recently) 
free'd
==22207== 
==22207== Invalid read of size 1
==22207==    at 0x4024B3F: memcpy (mc_replace_strmem.c:402)
==22207==    by 0x8200166: av_picture_data_copy (imgconvert.c:791)
==22207==  Address 0x4995f4d is not stack'd, malloc'd or (recently) 
free'd
==22207== 
==22207== Invalid read of size 1
==22207==    at 0x4024B46: memcpy (mc_replace_strmem.c:402)
==22207==    by 0x8200166: av_picture_data_copy (imgconvert.c:791)
==22207==  Address 0x4995f4c is not stack'd, malloc'd or (recently) 
free'd
Input Stream #0.0 frame size changed to 512x256, bgra
==22207== 
==22207== ERROR SUMMARY: 458736 errors from 4 contexts (suppressed: 17 
from 1)
==22207== malloc/free: in use at exit: 3,318,210 bytes in 30 blocks.
==22207== malloc/free: 141 allocs, 111 frees, 19,451,531 bytes 
allocated.
==22207== For counts of detected errors, rerun with: -v
==22207== searching for pointers to 30 not-freed blocks.
==22207== checked 8,488,508 bytes.
==22207== 
==22207== LEAK SUMMARY:
==22207==    definitely lost: 3,032 bytes in 4 blocks.
==22207==      possibly lost: 0 bytes in 0 blocks.
==22207==    still reachable: 3,315,178 bytes in 26 blocks.
==22207==         suppressed: 0 bytes in 0 blocks.
==22207== Rerun with --leak-check=full to see details of leaked memory.

ffplay backtrace too messy to be relevant or to be cut-and-pasted.

----------
messages: 11731
priority: normal
status: new
substatus: new
title: TXD file makes ffplay segfault (and invalid reads for ffmpeg)
type: bug

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

Reply via email to