Fix overflow memset in JGINYUEInternalV2Controller.cpp

This commit is contained in:
Adam Honse 2025-01-17 11:24:22 -06:00
parent 9ced0a9225
commit 8305572613

View file

@ -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];