Skip to content

Commit

Permalink
Fix out of bound read in registration handling
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasWoodtli committed Aug 15, 2023
1 parent 94a30c1 commit 28033f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/registration.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ static int prv_getId(uint8_t * data,
}
// Ignore any unrecognized attribute
}
if (data[limit] == REG_ATTR_SEPARATOR)
if (limit < length && data[limit] == REG_ATTR_SEPARATOR)
{
limit += 1;
}
Expand Down

0 comments on commit 28033f6

Please sign in to comment.