Re: [FFmpeg-devel] [PATCH] avcodec/dvdsub_parser: Fix length check for short packets

2022-11-12 Thread Anton Khirnov
Quoting Aidan MacDonald (2022-09-30 16:20:09) > The DVD subtitle parser handles two types of packets: "normal" > packets with a 16-bit length, and HD-DVD packets that set the > 16-bit length to 0 and encode a 32-bit length in the next four > bytes. This implies that HD-DVD packets are at least six

[FFmpeg-devel] [PATCH] avcodec/dvdsub_parser: Fix length check for short packets

2022-09-30 Thread Aidan MacDonald
The DVD subtitle parser handles two types of packets: "normal" packets with a 16-bit length, and HD-DVD packets that set the 16-bit length to 0 and encode a 32-bit length in the next four bytes. This implies that HD-DVD packets are at least six bytes long, but the code didn't actually verify this.