There was an error while loading. Please reload this page.
1 parent 341ae90 commit 37bab84Copy full SHA for 37bab84
libbacktrace/ChangeLog
@@ -1,3 +1,8 @@
1
+2015-09-08 Ian Lance Taylor <iant@google.com>
2
+
3
+PR other/67457
4
+* mmap.c (backtrace_alloc): Correct test for mmap failure.
5
6
2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7
8
* configure.ac: For spu-*-* targets, set have_fcntl to no.
libbacktrace/mmap.c
@@ -139,7 +139,7 @@ backtrace_alloc (struct backtrace_state *state,
139
asksize = (size + pagesize - 1) & ~ (pagesize - 1);
140
page = mmap (NULL, asksize, PROT_READ | PROT_WRITE,
141
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
142
- if (page == NULL)
+ if (page == MAP_FAILED)
143
error_callback (data, "mmap", errno);
144
else
145
{
0 commit comments