If the underlying array for a repeated field is a nullptr (which is possible for const array access on a message field that hasn't been set) the begin iterator will currently contain garbage data, which can lead to an illegal access. This CL adds a nullptr check to `begin()`, similar to what already exists for `size()`. PiperOrigin-RevId: 595217999pull/15252/head
parent
df57e5474b
commit
670e0c2a0d
2 changed files with 19 additions and 3 deletions
Loading…
Reference in new issue