This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/2796] pthread_mutexattr_getprioceiling() returns prioceiling out of range
- From: "pasky at suse dot cz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 19 Jun 2006 01:24:18 -0000
- Subject: [Bug nptl/2796] pthread_mutexattr_getprioceiling() returns prioceiling out of range
- References: <20060618234708.2796.pasky@suse.cz>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pasky at suse dot cz 2006-06-19 01:24 -------
Created an attachment (id=1100)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1100&action=view)
Proposed patch
This patch makes the getprioceiling() functions check if the priority is high
enough and bump it to the minimal allowable priority if not. It is rather ugly
to do the sanitization at that point but the thing is that we default for 0
e.g. in the constant initializers so a pthread_mutexattr_init()-ish solution
isn't really viable. Perhaps we could cache the range, though.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2796
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.