1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 03:18:09 +00:00

firmware/u2f: memzero the readbuffer

This commit is contained in:
Pavol Rusnak 2019-02-17 20:22:18 +01:00
parent 7492cf07fc
commit 0f5c96926c
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -175,6 +175,8 @@ void u2fhid_init_cmd(const U2FHID_FRAME *f) {
void u2fhid_read_start(const U2FHID_FRAME *f) {
U2F_ReadBuffer readbuffer;
memzero(&readbuffer, sizeof(readbuffer));
if (!(f->type & TYPE_INIT)) {
return;
}