This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/18434] New: sem_post at SEM_VALUE_MAX succeeds (overflowing) on 32-bit


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]