When `DescriptorBuilder::BuildFileImpl` is called, `alloc.AllocateArray` appears to be allocating an uninitialized object. This means every field inside FileDescriptor should be initialized, and edition_ may be ignored if not present. This can then lead to a SEGFAULT later in `FileDescriptor::edition()`, with a check of `edition_ == nullptr ? anti_hyrum_string : *edition_;` potentially dereferencing `edition_` when it's uninitialized. PiperOrigin-RevId: 549712519pull/13366/head
parent
3ee67038e5
commit
61c6b6aee2
1 changed files with 2 additions and 0 deletions
Loading…
Reference in new issue