Bug 10918 - CPU_ISSET() doesn't use const casts
Summary: CPU_ISSET() doesn't use const casts
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-08 14:00 UTC by Aurelien Jarno
Modified: 2014-07-01 05:29 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Last reconfirmed:
fweimer: security-


Attachments
Patch to fix the problem (338 bytes, patch)
2009-11-08 14:01 UTC, Aurelien Jarno
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Jarno 2009-11-08 14:00:10 UTC
const cpuset_t's can be handed to CPU_ISSET(), and by extension, no
structure containing a cpuset_t can be handed as const to a function
which calls CPU_ISSET() at some point.
Comment 1 Aurelien Jarno 2009-11-08 14:01:10 UTC
Created attachment 4367 [details]
Patch to fix the problem
Comment 2 Ulrich Drepper 2009-11-19 18:04:49 UTC
Correctly fixed in git.