This PR provides a suggested fix for #464 by adding multiple checking conditions for the array index and buffer length in the CBORParser::_finishShortText() method to avoid malformed length value (negative value or value too large) causing infinite while loop and result in AIOOBE.
This PR provides a suggested fix for #464 by adding multiple checking conditions for the array index and buffer length in the
CBORParser::_finishShortText()
method to avoid malformed length value (negative value or value too large) causing infinite while loop and result in AIOOBE.