]> sourceware.org Git - newlib-cygwin.git/commit
Fix issue with malloc_extend_top
authorJeff Johnston <jjohnstn@redhat.com>
Fri, 25 May 2018 03:53:15 +0000 (23:53 -0400)
committerJeff Johnston <jjohnstn@redhat.com>
Tue, 29 May 2018 14:16:48 +0000 (10:16 -0400)
commit4a3d0a5a5d829c05868a34658eb45731dbb5112b
treee6600b9c33f8f5fea13a32e0253eb110edb17c7f
parentfcfea0ae2d213383f38b06690b6cf1454f2ac82d
Fix issue with malloc_extend_top

- when calculating a correction to align next brk to page boundary,
  ensure that the correction is less than a page size
- if allocating the correction fails, ensure that the top size is
  set to brk + sbrk_size (minus any front alignment made)

Signed-off-by: Jeff Johnston <jjohnstn@redhat.com>
newlib/libc/stdlib/mallocr.c
This page took 0.028853 seconds and 5 git commands to generate.