mirror of
https://github.com/polhenarejos/pico-openpgp.git
synced 2026-08-22 04:27:31 +01:00
Fix CodeQL alert #229 loop counter type width
Co-authored-by: polhenarejos <55573252+polhenarejos@users.noreply.github.com>
This commit is contained in:
co-authored by
polhenarejos
parent
96443389f0
commit
c18ff0862f
@@ -231,7 +231,7 @@ static void restore_pw_status_limits(void) {
|
||||
uint8_t status[64];
|
||||
bool changed = false;
|
||||
memcpy(status, file_get_data(pw_status), status_len);
|
||||
for (uint8_t i = 1; i < 4 && i < status_len; i++) {
|
||||
for (uint16_t i = 1; i < 4 && i < status_len; i++) {
|
||||
if (status[i] != 127) {
|
||||
status[i] = 127;
|
||||
changed = true;
|
||||
|
||||
Reference in New Issue
Block a user