Bug 1240

Summary: Better sigaction() emulation: No NULL dereferences
Product: Portable OpenSSH Reporter: Ighighi <ighighi>
Component: MiscellaneousAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: djm, ighighi
Priority: P3    
Version: 4.4p1   
Hardware: All   
OS: Other   
Bug Depends on:    
Bug Blocks: 1452    
Attachments:
Description Flags
Better sigaction() emulation on non-POSIX systems
none
tidied diff none

Description Ighighi 2006-10-01 21:58:45 AEST
If there's a reason at all to ship openbsd-compat/sigact.c these days, then a better support is needed for sigaction() and friends on non-POSIX systems.  There are NULL dereferences that shouldn't be there...
A summary of changes:
  + No NULL dereferences.
  + Added sigfillset()
  + Return -1 with errno set to EINVAL for corner cases.
Comment 1 Ighighi 2006-10-01 22:00:06 AEST
Created attachment 1193 [details]
Better sigaction() emulation on non-POSIX systems
Comment 2 Damien Miller 2008-06-15 10:42:14 AEST
Created attachment 1527 [details]
tidied diff

Slightly tidied diff.
Comment 3 Damien Miller 2008-06-15 10:57:18 AEST
fix applied - thanks!
Comment 4 Damien Miller 2008-07-22 12:08:54 AEST
Mass update RESOLVED->CLOSED after release of openssh-5.1