#1297 closed defect (fixed)

pthread_rwlock_init misinterprets NULL attr pointer

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: normal Milestone: 4.9
Component: score Version: 4.8
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

When attribute pointer is null, the pointer is dereferenced instead of using the default attributes. Test and code updated

Attachments (1)

pr1297.diff (2.2 KB) - added by Joel Sherrill on Aug 15, 2008 at 3:28:58 PM.
Fix for code and test.

Download all attachments as: .zip

Change History (2)

Changed on Aug 15, 2008 at 3:28:58 PM by Joel Sherrill

Attachment: pr1297.diff added

Fix for code and test.

comment:1 Changed on Aug 15, 2008 at 3:30:25 PM by Joel Sherrill

Resolution: fixed
Status: newclosed

POSIX rwlocks are only in 4.8 and 4.9. Patch applied.

Note: See TracTickets for help on using tickets.