gitlab is upgraded to version 13, please report any issues and enjoy

Commit 99d363cc authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Guard against when more than MEMUSE_INITLOG new allocations are logged while...

Guard against when more than MEMUSE_INITLOG new allocations are logged while we increase the buffer size
parent c7303413
......@@ -172,6 +172,10 @@ void memuse_log_allocation(const char *label, void *ptr, int allocated,
while (ind > memuse_log_size)
;
/* Guard against case when we have already overran the available new
* space. */
if (ind == memuse_log_size) memuse_log_reallocate(ind);
/* Record the log. */
memuse_log[ind].step = engine_current_step;
memuse_log[ind].allocated = allocated;
......
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