This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/18592] New: sbrk() does not set errno on overflow
- From: "chrubis at suse dot cz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 24 Jun 2015 12:13:06 +0000
- Subject: [Bug libc/18592] New: sbrk() does not set errno on overflow
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18592
Bug ID: 18592
Summary: sbrk() does not set errno on overflow
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: chrubis at suse dot cz
CC: drepper.fsp at gmail dot com
Target Milestone: ---
I've been looking at LTP test failures on x86_64 with 32bit test binaries
and I've found that testcase for sbrk() fails. What the test does is to
call sbrk() repeatedly until it fails and checks that the return value
is -1 and errno set to ENOMEM.
Now this works fine on x86_64 because we hit ENOMEM from kernel brk()
before address space overflows. But with 32bit binary we hit overflow
check in glibc which does not set errno.
Patch has been send to glibc ML.
--
You are receiving this mail because:
You are on the CC list for the bug.