From 0f5c96926cef227e83aba211efa5838bef3413e3 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 17 Feb 2019 20:22:18 +0100 Subject: [PATCH] firmware/u2f: memzero the readbuffer --- firmware/u2f.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/u2f.c b/firmware/u2f.c index 048b52a15f..6cb05914db 100644 --- a/firmware/u2f.c +++ b/firmware/u2f.c @@ -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; }