SIGN IN SIGN UP

Protocol Buffers - Google's data interchange format

0 0 58 C++

Fasttable: Fix oneof submessage merging corruption.

When a submessage field within a oneof is encountered, the fast path
parser was incorrectly reusing any existing message object at that
offset even if the oneof case had changed. We now correctly zero out
the pointer if the oneof case has changed, forcing the allocation of
a new submessage object of the correct type.

PiperOrigin-RevId: 917836422
P
Protobuf Team Bot committed
27d822c821580490518c9dd85a3ba565577c6654
Parent: 6221a32
Committed by Copybara-Service <copybara-worker@google.com> on 5/19/2026, 3:04:33 PM