Fix heap-buffer-overflow in RGBController_MSIMysticLight185::GetDeviceConfig()
This commit is contained in:
1 parent
19f9408990
commit
a91679609b
1 file changed
+1
-1
+1
-1
@@ -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