Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#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 08/15/08 at 15:28:58.
Fix for code and test.

Download all attachments as: .zip

Change History (2)

Changed on 08/15/08 at 15:28:58 by Joel Sherrill

Attachment: pr1297.diff added

Fix for code and test.

comment:1 Changed on 08/15/08 at 15:30:25 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.