[repacker] bail on failure to alloc assigned_bytes set.

Fixes fuzzer issue https://oss-fuzz.com/testcase-detail/5390364397928448.
This commit is contained in:
Garret Rieger 2022-12-05 19:33:15 +00:00 committed by Behdad Esfahbod
parent 239a5aca02
commit f1d3489388
2 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ struct graph_t
assigned_bytes.add_range (start, end);
}
return true;
return !assigned_bytes.in_error ();
}
void normalize ()