This is the mail archive of the glibc-bugs@sources.redhat.com 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/185] New: sigrelse() receives SIGSEGV when called with invalid signal


The SourceForge Open POSIX test suite performs end case tests where sigrelse()
is called with invalid signal numbers.  Instead of returning EINVAL, the
process receives a SIGSEGV.

The problem occurs because sigrelse.c calls __sigdelset(), which is an 
unchecked sigdelset() call. Since the invocation of sigrelse() is using an 
invalid signal number, __sigdelset assuming the signal is valid, gets a memory 
reference error.

sigrelse.c should call sigdelset(), not __sigdelset().

-- 
           Summary: sigrelse() receives SIGSEGV when called with invalid
                    signal
           Product: glibc
           Version: 2.3.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: alan dot johnston at gd-ais dot com
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: Linux Gentoo PPC 2.6.3-rc3
GCC target triplet: Linux Gentoo PPC 2.6.3-rc3


http://sources.redhat.com/bugzilla/show_bug.cgi?id=185

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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