Skip to content

Commit

Permalink
Merge pull request #284 from keepkey/logic-bug
Browse files Browse the repository at this point in the history
fix backward logic bug
  • Loading branch information
markrypto authored Jul 13, 2021
2 parents 5ab76aa + 0834dd8 commit 8f1f299
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 8f1f299

Please sign in to comment.