Closed arthurscchan closed 8 months ago
This PR provides a suggested fix for #451 by adding a negative index checking in CBORParser to ensure that the index _inputPtr is not negative in additional to the original check to ensure it is not larger than or equals to the length of the input.
CBORParser
_inputPtr
Thank you again, @arthurscchan ! Modified fix a bit, should resolve the issue.
This PR provides a suggested fix for #451 by adding a negative index checking in
CBORParser
to ensure that the index_inputPtr
is not negative in additional to the original check to ensure it is not larger than or equals to the length of the input.