From 91c159e8239295c80b31d32f6532f8d103be2e2d Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Sat, 31 Dec 2022 14:42:24 +0300 Subject: [PATCH] Update TOTP https://github.com/akopachov/flipper-zero_authenticator --- applications/plugins/totp/types/token_info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/plugins/totp/types/token_info.c b/applications/plugins/totp/types/token_info.c index c032c6d3f..b9d22808d 100644 --- a/applications/plugins/totp/types/token_info.c +++ b/applications/plugins/totp/types/token_info.c @@ -27,6 +27,8 @@ bool token_info_set_secret( const char* base32_token_secret, size_t token_secret_length, const uint8_t* iv) { + if(token_secret_length == 0) return false; + uint8_t* plain_secret = malloc(token_secret_length); furi_check(plain_secret != NULL); int plain_secret_length =