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
No known key found for this signature in database
GPG key ID: DD0C382D5FCFB8FC

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
}
}