Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix backward logic bug
  • Loading branch information
markrypto committed Jul 13, 2021
1 parent 5ab76aa commit 0834dd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.7.2)

project(KeepKeyFirmware

VERSION 7.1.5
VERSION 7.1.7

LANGUAGES C CXX ASM)

Expand Down
2 changes: 1 addition & 1 deletion tools/firmware/keepkey_main.c
Expand Up @@ -95,7 +95,7 @@ static bool canDropPrivs(void) {
// by this point already, and trying to drop privs *again* will cause a fault.
bool sigPresent = sigindex1 >= 1 && sigindex1 <= BLK_v2_0_0_PUBKEYS;
// delay before the security-critical branch instruction
return !fi_defense_delay(sigPresent);
return fi_defense_delay(sigPresent);
}
}
__builtin_unreachable();
Expand Down

0 comments on commit 0834dd8

Please sign in to comment.