mirror of
https://github.com/opnsense/src.git
synced 2026-04-04 17:05:14 -04:00
Silence VPS-Studio errors (V512). These buffer underflows are intentional.
This commit is contained in:
parent
cd82d21b2e
commit
c2a9e596ed
1 changed files with 2 additions and 2 deletions
|
|
@ -586,7 +586,7 @@ x86bios_call(struct x86regs *regs, uint16_t seg, uint16_t off)
|
|||
X86BIOS_TRACE(Calling 0x%06x, (seg << 4) + off, regs);
|
||||
|
||||
mtx_lock(&x86bios_lock);
|
||||
memcpy(&x86bios_emu.x86, regs, sizeof(*regs));
|
||||
memcpy((struct x86regs *)&x86bios_emu.x86, regs, sizeof(*regs));
|
||||
x86bios_fault = 0;
|
||||
spinlock_enter();
|
||||
x86emu_exec_call(&x86bios_emu, seg, off);
|
||||
|
|
@ -628,7 +628,7 @@ x86bios_intr(struct x86regs *regs, int intno)
|
|||
X86BIOS_TRACE(Calling INT 0x%02x, intno, regs);
|
||||
|
||||
mtx_lock(&x86bios_lock);
|
||||
memcpy(&x86bios_emu.x86, regs, sizeof(*regs));
|
||||
memcpy((struct x86regs *)&x86bios_emu.x86, regs, sizeof(*regs));
|
||||
x86bios_fault = 0;
|
||||
spinlock_enter();
|
||||
x86emu_exec_intr(&x86bios_emu, intno);
|
||||
|
|
|
|||
Loading…
Reference in a new issue