[FFmpeg-trac] #3778(avformat:new): RTMPProto Overflow Interger (bytes_read) Bug

FFmpeg trac at avcodec.org
Thu Jul 17 22:31:40 CEST 2014

#3778: RTMPProto Overflow Interger (bytes_read) Bug
             Reporter:  rbarajas     |                     Type:  defect
               Status:  new          |                 Priority:  critical
            Component:  avformat     |                  Version:
             Keywords:  ack rtmp     |  unspecified
  FMS bytes_read                     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 Summary of the bug:
 There is a bug in rtmpproto.c inside get_packet. If the bytes_read warps
 because the value is greater than 4,294,967,295 then the ack will never be
 send again to the FMS server resulting in the FMS server closing the
 connection. If the rt->last_bytes_read = rt->bytes_read; was outside the
 if statement then it would address the bug.

 How to reproduce:
 In order to reproduce you need to bytes_read to exceed the value of
 4,294,967,295 by listening to a stream. The higher the bandwidth the
 stream the faster the bug will occur.

 I would have submitted a patch except I have never done that, this
 actually my first time submitting a bug ticket. The reason I'm even
 submitting something is because after working with an Adobe engineer, I
 agreed to submit a bug report.

Ticket URL: <https://trac.ffmpeg.org/ticket/3778>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list