mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-07-30 15:06:16 -04:00
The SDK LED/zone update handlers checked the client-supplied index with '>' instead of '>=', so an index equal to the element count passed the check and reached an out-of-bounds access: - UpdateSingleLED: out-of-bounds write to colors[led_idx] - UpdateZoneLEDs / UpdateZoneMode: out-of-bounds read/write on zones[zone_idx] UpdateMode had the same off-by-one (currently harmless due to a later check), fixed for consistency. The num_colors check stays '>' since num_colors == leds_count is a valid "all LEDs" request.
173 KiB
173 KiB