Skip to content

Commit 1fc9c13

Browse files
committed
Avoid calling sbrk() with negative values
This is not supported in mintlib. In fact, even sbrk(0) isn't.
1 parent babed59 commit 1fc9c13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mintlib/malloc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#define HAVE_MMAP 0
22
#define HAVE_MORECORE 1
33
#define MORECORE_CONTIGUOUS 0
4+
#define MORECORE_CANNOT_TRIM 1
45
#define NO_MALLOC_STATS 1
56
#define LACKS_TIME_H /* time(0) calls malloc... */
67

0 commit comments

Comments
 (0)