Null Check in UnknownField::AddAll() (#7328)
UnknownField::AddAll() is called (multiple times) from UnknownField::MergeFrom(). The `extras` parameter is one of: `varintList`, `fixed32List`, `fixed64List`, `lengthDelimitedList`, or `groupList`. All of these members can be null, and are appropriately checked in other usage. If attempting to parse a proto with unknown extensions, and exception is thrown (NRE). This adds the appropriate null check inside UnknownField::AddAll().pull/7835/head
parent
223e89157a
commit
090d28e8f7
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue