Fix offset parameter.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-12-14 23:51:30 +01:00
parent 81d3da2645
commit 4c724d0e8b
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3

View File

@ -66,7 +66,7 @@ int cbor_large_blobs(const uint8_t *data, size_t len) {
}
CBOR_PARSE_MAP_END(map, 1);
if (offset == 0)
if (offset == UINT64_MAX)
CBOR_ERROR(CTAP1_ERR_INVALID_PARAMETER);
if (get == 0 && set.present == false)
CBOR_ERROR(CTAP1_ERR_INVALID_PARAMETER);