Skip to content

Commit

Permalink
Fix integer overflow in URI parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasWoodtli committed Aug 15, 2023
1 parent 28033f6 commit 3fda7e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/uri.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ static int prv_parseNumber(uint8_t * uriString,
{
result *= 10;
result += uriString[*headP] - '0';
if (result > LWM2M_MAX_ID) {
return -1;
}
}
else
{
Expand Down

0 comments on commit 3fda7e4

Please sign in to comment.