mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2024-09-09 11:01:31 +02: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:
parent
183cbc087a
commit
77d070fe73
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue