Skip to content

Commit 7c8fd71

Browse files
committed
otp: avoid signed left shift
Found by ubsan.
1 parent 719fa40 commit 7c8fd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/otpauth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static bool base32_to_bin(
271271
JADE_ASSERT(b32_dec_len);
272272
JADE_ASSERT(done);
273273

274-
int tmp = 0;
274+
unsigned int tmp = 0;
275275
uint8_t count = 0;
276276
*done = 0;
277277
const char* b32_str_end = b32_str + b32_str_len;

0 commit comments

Comments
 (0)