mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Fix regression with zero-length messages introduced in protobuf-c PR 500.
This commit is contained in:
@@ -2618,7 +2618,7 @@ parse_required_member(ScannedMember *scanned_member,
|
||||
return FALSE;
|
||||
|
||||
def_mess = scanned_member->field->default_value;
|
||||
if (len > pref_len) {
|
||||
if (len >= pref_len) {
|
||||
subm = protobuf_c_message_unpack(scanned_member->field->descriptor,
|
||||
allocator,
|
||||
len - pref_len,
|
||||
|
Reference in New Issue
Block a user