Overview
| Artifact ID: | 393866f0a1fdd7c594f566c9441570fe60f7b5cf |
|---|---|
| Ticket: | 2997087fffffffffffffffffffffffffffffffff
Dangerous type casts to ClientData |
| User & Date: | nijtmans on 2010-05-05 11:52:42 |
Changes
- assignee changed to: "nijtmans"
- cmimetype changed to: "text/plain"
- comment changed to:
In tclPkg.c I encountered a const char *versionToProvide which should not have been const at all. The reason that the compiler did not complain were type casts to (ClientData). The danger of such type casts is that the casted pointer could be "const", and then the const'ness is cast away silencing the compiler. So, I scanned the code for casts to ClientData. The bug in tclPkg.c is the only bug I found, but many casts to ClientData simply are not necessary at all. Here is a patch which removes all unnecessary type casts to ClientData. - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nijtmans"
- subsystem changed to: "52. Portability Support"
- title changed to: "Dangerous type casts to ClientData"
- type changed to: "Patch"