YAMLParser
throws unexpected NullPointerException
in certain number parsing cases
#445
Milestone
YAMLParser
throws unexpected NullPointerException
in certain number parsing cases
#445
In
YAMLParse::getNumberValueDeferred()
/YAMLParse::_parseNumericValue()
/YAMLParse::_parseIntValuev()
methods, thelenght()
method of the String object_cleanedTextValue
is called. This could cause an unexpectedNullPointerException
when the previous steps make_cleanedTextValue
become null with an invalid input value. To fix it, it is suggested to add a conditional check and report an error when_cleanedTextValue
is null.We found this issue by OSS-Fuzz and it is reported in https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64662.
The text was updated successfully, but these errors were encountered: