Commit 9244d121 authored by Protobuf Team Bot's avatar Protobuf Team Bot Committed by Copybara-Service
Browse files

Fix crash when attempting to parse a JSON document that contains an extension...

Fix crash when attempting to parse a JSON document that contains an extension field for the wrong type of message.

I.e., if foo.extn is an extension for message foo.Foo, attempting to parse the document

  {"[foo.extn]": 4}

as a foo.Bar would crash. This CL causes the parser to return an error instead.

PiperOrigin-RevId: 501299336
parent d36a6411
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment