Re: [FFmpeg-devel] [PATCH] cbs_h2645: Fix infinite loop in more_rbsp_data

2019-07-20 Thread Mark Thompson
On 05/06/2019 03:18, Andreas Rheinhardt wrote: > cbs_h2645_read_more_rbsp_data does not handle malformed input very well: > 1. If there were <= 8 bits left in the bitreader, these bits were read > via show_bits. But show_bits requires the number of bits to be read to > be > 0 (internally it shifts

[FFmpeg-devel] [PATCH] cbs_h2645: Fix infinite loop in more_rbsp_data

2019-06-04 Thread Andreas Rheinhardt
cbs_h2645_read_more_rbsp_data does not handle malformed input very well: 1. If there were <= 8 bits left in the bitreader, these bits were read via show_bits. But show_bits requires the number of bits to be read to be > 0 (internally it shifts by 32 - number of bits to be read which is undefined be