Opened 11 years ago

Closed 11 years ago

#2734 closed defect (fixed)

flac crash with low mem

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

http://www1.datafilehost.com/d/a66b37b0

(gdb) r -max_alloc 35000 -i test.flac -f null -
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: D:\MinGW\msys\1.0\ffmpeg-HEAD-7f866c1\ffmpeg_g.exe -max_alloc
35000 -i test.flac -f null -
[New Thread 220.0x9ec]
ffmpeg version 1.1.git-7f866c1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 29 2013 22:13:29 with gcc 4.6.2 (GCC)
  configuration: --disable-ffprobe --disable-yasm --disable-w32threads --enable-
gpl
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 17.100 / 55. 17.100
  libavformat    55. 10.100 / 55. 10.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100

Program received signal SIGSEGV, Segmentation fault.
av_fifo_space (f=0x0) at libavutil/fifo.c:59
59          return f->end - f->buffer - av_fifo_size(f);
(gdb) bt
#0  av_fifo_space (f=0x0) at libavutil/fifo.c:59
#1  0x00849331 in flac_parse (s=0x4ca7220, avctx=0x4ca6c40, poutbuf=0x22f4c8,
    poutbuf_size=0x22f4cc, buf=0x4ca7900 "\377°╔\030", buf_size=1024)
    at libavcodec/flac_parser.c:596
#2  0x0059df53 in av_parser_parse2 (s=0x4ca7220, avctx=0x4ca6c40,
    poutbuf=0x22f4c8, poutbuf_size=0x22f4cc, buf=0x4ca7900 "\377°╔\030",
    buf_size=1024, pts=-9223372036854775808, dts=-9223372036854775808,
    pos=190) at libavcodec/parser.c:155
#3  0x004947c5 in parse_packet (s=0x4c95e00, pkt=0x22f5d8,
    stream_index=<optimized out>) at libavformat/utils.c:1181
#4  0x0049588d in read_frame_internal (s=0x4c95e00, pkt=0x22f8e0)
    at libavformat/utils.c:1357
#5  0x004989a9 in avformat_find_stream_info (ic=0x4c95e00, options=0x4ca7100)
    at libavformat/utils.c:2763
#6  0x004055ef in open_input_file (o=0x22fbb0, filename=<optimized out>)
    at ffmpeg_opt.c:814
#7  0x00403056 in open_files (inout=<optimized out>,
    open_file=0x405200 <open_input_file>, l=<optimized out>)
    at ffmpeg_opt.c:2483
#8  0x0040973f in ffmpeg_parse_options (argc=8, argv=0x4bb2510)
    at ffmpeg_opt.c:2520
#9  0x00aeea55 in main (argc=8, argv=0x4bb2510) at ffmpeg.c:3368
(gdb)

Change History (1)

comment:1 by Elon Musk, 11 years ago

Component: undeterminedavcodec
Reproduced by developer: set
Resolution: fixed
Status: newclosed
Version: unspecifiedgit-master
Note: See TracTickets for help on using tickets.