From 800ca0aa7cded1241e2e7e3e694729243d448f5e Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Mon, 13 Apr 2026 11:42:03 -0500 Subject: [PATCH] Fix same heap buffer overflow in RGBController_MSIMysticLight761.cpp --- .../RGBController_MSIMysticLight761.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controllers/MSIMysticLightController/MSIMysticLight761Controller/RGBController_MSIMysticLight761.cpp b/Controllers/MSIMysticLightController/MSIMysticLight761Controller/RGBController_MSIMysticLight761.cpp index 940082fe..50eeedc9 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight761Controller/RGBController_MSIMysticLight761.cpp +++ b/Controllers/MSIMysticLightController/MSIMysticLight761Controller/RGBController_MSIMysticLight761.cpp @@ -417,7 +417,7 @@ void RGBController_MSIMysticLight761::GetDeviceConfig() if(zones[i].colors != nullptr) { - for(unsigned int j = 0; j < zones[i].leds_count; ++j) + for(size_t j = 0; j < GetLEDsInZone((unsigned int)i); ++j) { zones[i].colors[j] = color; }