[FFmpeg-trac] #4507(avformat:new): smbclient cause ffmpeg crash

FFmpeg trac at avcodec.org
Fri Apr 24 03:51:48 CEST 2015


#4507: smbclient cause ffmpeg crash
------------------------------------+------------------------------------
             Reporter:  chuan       |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by chuan):

 The hidden file is not the key point, any jpg shared by windows will cause
 crash.
 I compiled debug version. The stacks is:

 {{{
 #0  0x00007ffff40cfa24 in SMBC_close_ctx () from
 /usr/local/samba/lib/libsmbclient.so.0
 #1  0x00007ffff40c5ff8 in smbc_close () from
 /usr/local/samba/lib/libsmbclient.so.0
 #2  0x00007ffff74d0587 in libsmbc_close (h=<optimized out>) at
 libavformat/libsmbclient.c:88
 #3  0x00007ffff74ebb99 in ffurl_closep (hh=hh at entry=0x7fffffffd8f8) at
 libavformat/avio.c:376
 #4  0x00007ffff74ebbd3 in ffurl_close (h=0x647400) at
 libavformat/avio.c:392
 #5  0x00007ffff74eef25 in avio_close (s=s at entry=0x658960) at
 libavformat/aviobuf.c:936
 #6  0x00007ffff75ee6ef in avformat_close_input (ps=0x66f100) at
 libavformat/utils.c:3653
 #7  0x00000000004230b0 in ffmpeg_cleanup (ret=1) at ffmpeg.c:498
 #8  0x000000000040aae1 in exit_program (ret=1) at cmdutils.c:124
 #9  0x000000000040875f in main (argc=5, argv=0x7fffffffe0a8) at
 ffmpeg.c:4055
 }}}

 I guess libsmbc_close errored called one more times.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4507#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list