Fix: check size of struct T_devices

This commit is contained in:
Siegfried Siegert 2024-02-05 17:33:38 +01:00
parent 2c67638c34
commit 786c4332ee
Signed by untrusted user: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -3326,6 +3326,10 @@ void hwapi::sys_restoreDeviceParameter(struct T_devices *deviceSettings) const
//runProcess->epi_restore64BdevParameter(&LL, buf); // wozu die???
epi_restoreRbDeviceSettings(&LL, buf); // viel besser, stimmt immer
if (LL >= sizeof(T_devices)) {
LL = sizeof (T_devices);
}
// Puffer in struct eintragen:
start = &deviceSettings->kindOfPrinter;
nn=0;