2
0
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:
Todd C. Miller
2022-06-09 07:34:55 -06:00
parent d2bf3aad06
commit b6a6451482

View File

@@ -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,