realloc(): put an absolute upper limit on slack
authorH. Peter Anvin <hpa@zytor.com>
Wed, 27 Feb 2008 20:44:52 +0000 (12:44 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 27 Feb 2008 20:44:52 +0000 (12:44 -0800)
commitdd8d65961f2b6a45af1ceb7813b7012c0f6691b6
treee0f15f942e58352ba8112db28ba52dff8473e088
parent48722c47bbdcfe51e905e87ec0d34415506393c5
realloc(): put an absolute upper limit on slack

With loadfile() doing megabyte-sized trial-and-error allocations, we
want to be able to do really set the size on the final allocation;
thus constrain the amount of permitted slack to 4K max.
com32/lib/realloc.c