mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-16 11:56:56 -04:00
Fix heap-buffer-overflow in RGBController_MSIMysticLight185::GetDeviceConfig()
This commit is contained in:
@@ -478,7 +478,7 @@ void RGBController_MSIMysticLight185::GetDeviceConfig()
|
||||
|
||||
if(zones[i].colors != nullptr)
|
||||
{
|
||||
for(size_t j = 0; j < zones[i].leds_count; ++j)
|
||||
for(size_t j = 0; j < GetLEDsInZone((unsigned int)i); ++j)
|
||||
{
|
||||
zones[i].colors[j] = color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user