Skip to content
Tcl Source Code Artifact [393866f0a1]
Login

Artifact [393866f0a1]

Artifact 393866f0a1fdd7c594f566c9441570fe60f7b5cf:

Ticket change [393866f0a1] - New ticket [2997087fffffffff|2997087fff] <i>Dangerous type casts to ClientData</i>. by nijtmans on 2010-05-05 11:52:42.
D 2010-05-05T11:52:42
J assignee nijtmans
J cmimetype text/plain
J comment In\stclPkg.c\sI\sencountered\sa\n\s\s\s\sconst\schar\s*versionToProvide\nwhich\sshould\snot\shave\sbeen\sconst\sat\sall.\sThe\sreason\nthat\sthe\scompiler\sdid\snot\scomplain\swere\stype\ncasts\sto\s(ClientData).\sThe\sdanger\sof\ssuch\stype\ncasts\sis\sthat\sthe\scasted\spointer\scould\sbe\s"const",\nand\sthen\sthe\sconst'ness\sis\scast\saway\ssilencing\nthe\scompiler.\n\nSo,\sI\sscanned\sthe\scode\sfor\scasts\sto\sClientData.\nThe\sbug\sin\stclPkg.c\sis\sthe\sonly\sbug\sI\sfound,\nbut\smany\scasts\sto\sClientData\ssimply\sare\nnot\snecessary\sat\sall.\sHere\sis\sa\spatch\swhich\nremoves\sall\sunnecessary\stype\scasts\sto\sClientData.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nijtmans
J subsystem 52.\sPortability\sSupport
J title Dangerous\stype\scasts\sto\sClientData
J type Patch
K 2997087fffffffffffffffffffffffffffffffff
U nijtmans
Z 9bf0cda0c37b8f17813d2b9b67f4b1e1