Security review code linting

This commit is contained in:
Alexandre Paillier
2022-08-08 13:55:45 +02:00
parent b2ec3eff0a
commit 3e3dade0b4
3 changed files with 2 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ void *encode_int(const uint8_t *const value, uint8_t length, uint8_t typesize) {
if (length < 1) {
apdu_response_code = APDU_RESPONSE_INVALID_DATA;
return NULL;
return NULL;
}
if ((length == typesize) && (value[0] & (1 << 7))) // negative number