From a91679609b749b91bbfacb289a6fe1bf97f9b60e Mon Sep 17 00:00:00 2001 From: kuroki-kael Date: Mon, 13 Apr 2026 16:40:46 +0000 Subject: [PATCH] Fix heap-buffer-overflow in RGBController_MSIMysticLight185::GetDeviceConfig() --- .../RGBController_MSIMysticLight185.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controllers/MSIMysticLightController/MSIMysticLight185Controller/RGBController_MSIMysticLight185.cpp b/Controllers/MSIMysticLightController/MSIMysticLight185Controller/RGBController_MSIMysticLight185.cpp index 46697678..f4d70a76 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight185Controller/RGBController_MSIMysticLight185.cpp +++ b/Controllers/MSIMysticLightController/MSIMysticLight185Controller/RGBController_MSIMysticLight185.cpp @@ -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; }