This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/18434] New: sem_post at SEM_VALUE_MAX succeeds (overflowing) on 32-bit
- From: "roland at gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 19 May 2015 15:58:37 +0000
- Subject: [Bug nptl/18434] New: sem_post at SEM_VALUE_MAX succeeds (overflowing) on 32-bit
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18434
Bug ID: 18434
Summary: sem_post at SEM_VALUE_MAX succeeds (overflowing) on
32-bit
Product: glibc
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: nptl
Assignee: unassigned at sourceware dot org
Reporter: roland at gnu dot org
CC: drepper.fsp at gmail dot com
Target Milestone: ---
When a sem_t's value is currently SEM_VALUE_MAX, then sem_post should fail with
EOVERFLOW. As of 2.21, this no longer happens on 32-bit platforms (actually
ones without __HAVE_64B_ATOMICS).
I'm including a test case with my fix, so I won't attach it here.
--
You are receiving this mail because:
You are on the CC list for the bug.