1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

20173: fix crash when reallocating heaps

This commit is contained in:
Peter Stephenson 2004-07-17 19:24:59 +00:00
parent 0cfb07ee92
commit f5d9a995f9
2 changed files with 6 additions and 0 deletions

@ -1,3 +1,8 @@
2004-07-17 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* 20173: Src/mem.c: crash when globbing lots of files; need to
NULLify fheap optimisation when reallocating a heap.
2004-07-13 Peter Stephenson <pws@csr.com>
* 20153: Src/Zle/zle_main.c: make zle-line-init run after

@ -491,6 +491,7 @@ hrealloc(char *p, size_t old, size_t new)
*/
size_t n = (new + sizeof(*h) + HEAPSIZE);
n -= n % HEAPSIZE;
fheap = NULL;
#ifdef USE_MMAP
{