Commit c05803bf authored by garretmcgraw's avatar garretmcgraw Committed by Wouter van Oortmerssen

Making flatbuffers JSON parsing deal with unexpected null values when unknown…

Making flatbuffers JSON parsing deal with unexpected null values when unknown JSON is allowed. (#4083)
parent d298adc4
...@@ -1758,6 +1758,9 @@ CheckedError Parser::SkipAnyJsonValue() { ...@@ -1758,6 +1758,9 @@ CheckedError Parser::SkipAnyJsonValue() {
case kTokenFloatConstant: case kTokenFloatConstant:
EXPECT(kTokenFloatConstant); EXPECT(kTokenFloatConstant);
break; break;
case kTokenNull:
EXPECT(kTokenNull);
break;
default: default:
return Error(std::string("Unexpected token:") + std::string(1, static_cast<char>(token_))); return Error(std::string("Unexpected token:") + std::string(1, static_cast<char>(token_)));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment