[FFmpeg-trac] #2139(avformat:open): Crash on invalid command-line
FFmpeg
trac at avcodec.org
Wed Feb 13 17:26:30 CET 2013
#2139: Crash on invalid command-line
-------------------------------------+-------------------------------------
Reporter: cehoyos | Owner:
Type: defect | Status: open
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: crash | Blocked By:
SIGSEGV | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by pk_hariprasad):
For out.bmp, h->prot looks like
$3 = {name = 0xc872d1 "file", url_open = 0x5402c0 <file_open>,
url_open2 = 0x0, url_read = 0x5404a0 <file_read>,
url_write = 0x540460 <file_write>, url_seek = 0x540220 <file_seek>,
url_close = 0x540200 <file_close>, next = 0xc33d20, url_read_pause =
0x0,
url_read_seek = 0x0, url_get_file_handle = 0x540150 <file_get_handle>,
url_get_multi_file_handle = 0x0, url_shutdown = 0x0, priv_data_size =
12,
priv_data_class = 0xc872e0, flags = 0, url_check = 0x5403c0
<file_check>}
For concat:out.bmp, it looks like
$1 = {name = 0xc86eba "concat", url_open = 0xbe5038 <concat_open>,
url_open2 = 0x0, url_read = 0x53f510 <concat_read>, url_write = 0x0,
url_seek = 0x53f280 <concat_seek>, url_close = 0xbe4ff4 <concat_close>,
next = 0xc33b40, url_read_pause = 0x0, url_read_seek = 0x0,
url_get_file_handle = 0x0, url_get_multi_file_handle = 0x0,
url_shutdown = 0x0, priv_data_size = 12, priv_data_class = 0x0, flags =
0,
url_check = 0x0}
Since url_write is NULL, it causes seg fault in function
retry_transfer_wrapper where its passed as param.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2139#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list