[FFmpeg-devel] ffmpeg SVN crashes when the input file doesn't exist

Ismail Dönmez ismail
Sat Dec 22 00:25:06 CET 2007


Hi all,

SVN revision 11298, 

[/packages/ffmpeg]> ./ffmpeg_g -i /dev/null
FFmpeg version SVN-r11298, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  
configuration: --enable-gpl --enable-libx264 --enable-libvorbis --enable-libfaad --enable-libfaac --disable-ffserver --enable-liba52 --disable-static --enable-shared --enable-pp --enable-libxvid 
--enable-libmp3lame --disable-debug --prefix=/usr --enable-pthreads --enable-libamr-nb --enable-libamr-wb --cpu=i686 
--enable-libtheora --enable-libgsm --extra-cflags=-fno-strict-aliasing --enable-x11grab
  libavutil version: 49.6.0
  libavcodec version: 51.49.0
  libavformat version: 52.3.0
  built on Dec 22 2007 01:16:51, gcc: 4.3.0 20071221 [trunk revision 131119]
zsh: segmentation fault  ./ffmpeg_g -i /dev/null


Valgrind reports invalid reads : 

==5603== Invalid write of size 4
==5603==    at 0x8052579: opt_input_file (ffmpeg.c:2666)
==5603==  Address 0x5294e7c is 0 bytes after a block of size 3,900 alloc'd
==5603==    at 0x4024A24: memalign 
(in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==5603==    by 0x38002FAF: (within /usr/lib/valgrind/x86-linux/memcheck)
==5603==
==5603== Invalid write of size 4
==5603==    at 0x80525B1: opt_input_file (ffmpeg.c:2667)
==5603==  Address 0x5294e80 is 4 bytes after a block of size 3,900 alloc'd
==5603==    at 0x4024A24: memalign 
(in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==5603==    by 0x38002FAF: (within /usr/lib/valgrind/x86-linux/memcheck)
==5603==
==5603== Invalid write of size 4
==5603==    at 0x80525E9: opt_input_file (ffmpeg.c:2668)
==5603==  Address 0x5294e84 is 8 bytes after a block of size 3,900 alloc'd
==5603==    at 0x4024A24: memalign 
(in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==5603==    by 0x38002FAF: (within /usr/lib/valgrind/x86-linux/memcheck)


Regards,
ismail

-- 
Never learn by your mistakes, if you do you may never dare to try again.




More information about the ffmpeg-devel mailing list