[FFmpeg-trac] #7335(avcodec:new): Low-level error in DCA XLL decode becomes ignored in dcadec.c then SWResample crashes NPX

FFmpeg trac at avcodec.org
Mon Jul 30 19:29:09 EEST 2018


#7335: Low-level error in DCA XLL decode becomes ignored in dcadec.c then
SWResample crashes NPX
------------------------------------+-----------------------------------
             Reporter:  DjangoTX    |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  DCA         |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------

Comment (by DjangoTX):

 Reproduce:
 * Using doc/examples/decode_audio.c as starting point
   *  Read attached erroneous sample (DUMP.dts)
   *  av_parser_parse2     --> encoded packets with 1 DTS HD frame each
   *  avcodec_send_packet  --> plain send + receive mechanism
   *  avcodec_receive_frame
 * Using doc/examples/resampling_audio.c for SWResampler code, which fails,
 but due to an unhandled error code in dcadec.c
   *  av_samples_alloc  (ONCE!)
   *  swr_convert
 * The last packet in the attached sample audio (4116 bytes) raises dcaxll
 error by log message, returns error code, dcadec does not handle it,
 channel planes 7+8 are still NULL => SWR crashes accessing the planes.

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


More information about the FFmpeg-trac mailing list