[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Infinite xrealloc loop?
From: |
Jaak Ristioja |
Subject: |
Infinite xrealloc loop? |
Date: |
Thu, 10 Nov 2016 09:33:21 +0200 |
Hi!
While debugging the ARM crashes I noticed the following loop in the code:
1) void * xrealloc (void *ptr, unsigned int size) might call OUT_OF_MEM()
2) The OUT_OF_MEM() macro basically calls fatal() with some arguments
3) void fatal (const floc *flocp, size_t len, const char *fmt, ...)
might call get_buffer()
4) static char * get_buffer(size_t need) might call xrealloc()
...
Potentially an infinite loop?
Best regards,
J
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Infinite xrealloc loop?,
Jaak Ristioja <=