mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-03-24 17:01:05 -04:00
Fix overflow memset in JGINYUEInternalV2Controller.cpp
This commit is contained in:
@@ -97,8 +97,8 @@ void JGINYUEInternalUSBV2Controller::Init_device()
|
||||
if(usb_buf[1] != 0x0F)
|
||||
{
|
||||
ZoneCount = 0x00;
|
||||
memset(device_config, 0x00, 8*sizeof(AreaConfigurationV2));
|
||||
memset (&device_config_Global, 0x00, 8*sizeof(AreaConfigurationV2));
|
||||
memset(device_config, 0x00, sizeof(device_config));
|
||||
memset (&device_config_Global, 0x00, sizeof(device_config_Global));
|
||||
return;
|
||||
}
|
||||
unsigned char Zone_Info = usb_buf[4];
|
||||
|
||||
Reference in New Issue
Block a user