Commit a6a23806 authored by Adam Cozzette's avatar Adam Cozzette Committed by Copybara-Service
Browse files

Fix parsing/serialization of packed proto3 custom options

We have an obscure bug where packed-by-default repeated custom options defined
in proto3 files are not correctly treated as packed when dynamic extensions are
used. This CL introduces a simple fix and adds a test verifying the correct
behavior.

The bug was not a major problem in most cases, since parsers will accept both
the packed and unpacked encodings. It is useful to fix this to ensure that
descriptors are serialized in a consistent way, though.

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