Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 393866f0a1fdd7c594f566c9441570fe60f7b5cf
Ticket: 2997087fffffffffffffffffffffffffffffffff
Dangerous type casts to ClientData
User & Date: nijtmans on 2010-05-05 11:52:42
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "52. Portability Support"
  11. title changed to: "Dangerous type casts to ClientData"
  12. type changed to: "Patch"