Re: [FFmpeg-devel] [PATCH v3] avcodec/cbs_vp8: Use little endian in fixed() and improve the pos check

2024-01-04 Thread Dai, Jianhui J
> -Original Message- > From: ffmpeg-devel On Behalf Of Dai, > Jianhui J > Sent: Friday, January 5, 2024 8:35 AM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH v3] avcodec/cbs_vp8: Use little endian in > fixed() > and improve the pos check >

[FFmpeg-devel] [PATCH v3] avcodec/cbs_vp8: Use little endian in fixed() and improve the pos check

2024-01-04 Thread Dai, Jianhui J
This commit adds value range checks to cbs_vp8_read_unsigned_le, migrates fixed() to use it, and enforces little-endian consistency for all read methods. The VP8 compressed header may not be byte-aligned due to boolean coding. Use bitwise comparison to prevent the potential overread. TETS: ffmpeg