Commit 4cbdf441 authored by ace20022's avatar ace20022 Committed by Petri Hintukainen

Replace missed realloc with _safe_realloc.

parent 76c7b5a4
......@@ -341,7 +341,7 @@ int decode_allocation_extent(struct file_entry **p_fe, const uint8_t *p, size_t
return 0;
}
fe = (struct file_entry *)realloc(fe, sizeof(struct file_entry) + sizeof(struct long_ad) * (fe->num_ad + num_ad - 1));
fe = (struct file_entry *)_safe_realloc(fe, sizeof(struct file_entry) + sizeof(struct long_ad) * (fe->num_ad + num_ad - 1));
if (!fe) {
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment