1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows Bootloader: for MBR bootloader, reset position pointers to keystroke buffer after password or PIM is entered to avoid leaking length information

This commit is contained in:
Mounir IDRASSI
2016-09-24 23:36:13 +02:00
parent 183cbc087a
commit 77d070fe73

View File

@@ -299,6 +299,12 @@ void ClearBiosKeystrokeBuffer ()
mov cx, 32
cld
rep stosb
// reset position pointers at 0x41A and 0x41C to the begining
// of keyboard buffer to avoid revealing password/PIM length
mov ax, 0x001e
mov es:[0x41a], ax
mov es:[0x41c], ax
pop es
}
}