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 libc/22020] New: _SC_ATEXIT_MAX defined incorrectly, sysconf (_SC_ATEXIT_MAX) is wrong


https://sourceware.org/bugzilla/show_bug.cgi?id=22020

            Bug ID: 22020
           Summary: _SC_ATEXIT_MAX defined incorrectly, sysconf
                    (_SC_ATEXIT_MAX) is wrong
           Product: glibc
           Version: 2.26
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---
             Flags: security-

glibc defines _SC_ATEXIT_MAX, but this is incorrect according to POSIX.  If the
limit is dependent on an unspecified quantity such as available system memory,
POSIX says that the constant shall not be defined.

In any case, the return value INT_MAX of sysconf (_SC_ATEXIT_MAX) is bogus.

-- 
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]