Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #266234

Category ffmpeg
Changed by João Neves <joaocns0ohnoyoudont@protonmail.com>
Changed at Sun 03 May 2026 22:19:51
Repository https://git.ffmpeg.org/ffmpeg.git
Project ffmpeg
Branch master
Revision 2c71a28bf0731f5fdcf9f2366ab98c31270294e4

Comments

avcodec/hdrdec: fix pixel count decrement in RLE decompress loop
The w variable counts pixels, not bytes. The non-RLE path correctly
uses w-- (one pixel = 4 bytes), but the RLE path uses w -= 4, causing
the loop to terminate after roughly 1/4 of the expected pixels.

The w -= 4 was introduced in 14e99cb472 which moved the decrement
inside the loop to fix an OOB write (clusterfuzz-5423041009549312).
The move was correct, but the decrement value should have been 1 to
match the non-RLE path.

Signed-off-by: João Neves <joaocns0@protonmail.com>

Changed files