Skip to content
Tcl Source Code Artifact [d5dde281fe]
Login

Artifact [d5dde281fe]

Artifact d5dde281fe1047765a9f1aa62c71516f8f6becbe37d86724b9cbe8e80ddc9577:

Ticket change [d5dde281fe] - Add attachment [/artifact/7b31eaf6341d5f93|0008-Silence-harmless-warnings-on-CHERI-by-using-INT2PTR-.patch] to ticket [37108037b980ea6e|37108037b9] by jrtc27 on 2022-08-12 23:21:56.
A 0008-Silence-harmless-warnings-on-CHERI-by-using-INT2PTR-.patch 37108037b980ea6e705f56a9d983e05ee218dd0c 7b31eaf6341d5f93896be8709e8c6f8c583177a576b65d08fcf9e1899d374772
C [PATCH\s8/8]\sSilence\sharmless\swarnings\son\sCHERI\sby\susing\sINT2PTR\swhere\sappropriate\r\n\r\nOn\sCHERI,\spointers\sare\simplemented\susing\sunforgeable\scapabilities\sthat\r\ninclude\sbounds\sand\spermissions\smetadata\sto\sprovide\sfine-grained\sspatial\r\nand\sreferential\smemory\ssafety,\sas\swell\sas\srevocation\sby\ssweeping\smemory\r\nto\sprovide\sheap\stemporal\smemory\ssafety.\sIn\sorder\sto\sensure\sround\strips\r\nvia\s(u)intptr_t\spreserve\sthis\smetadata,\s(u)intptr_t\sare\sthemselves\r\nrepresented\sas\scapabilities,\snot\splain\sintegers.\sIn\sorder\sto\scatch\r\nprogramming\serrors\scaused\sby\susing\san\sinteger\stype\sother\sthan\sthose\sto\r\nhold\sa\spointer,\sCHERI\sLLVM\semits\sa\swarning\sby\sdefault\swhenever\sa\splain\r\ninteger\sis\scast\sdirectly\sto\sa\spointer\s(except\sfor\sinteger\sconstants,\sso\r\nthat\sidioms\slike\s(void\s*)-1\scontinue\sto\swork),\ssince\sit\sis\slikely\sthe\r\nsource\sof\sthat\scast\sshould\shave\sbeen\sa\s(u)intptr_t\sinstead.\sThree\r\ninstances\sof\sthis\swarning\sremain\swhen\scompiling\sfor\sCHERI\s(note\sthat\r\nTcl_SetHashValue\sinternally\scasts\sto\svoid\s*),\sall\sof\swhich\sare\sharmless;\r\nsilence\sthem\sby\susing\sINT2PTR.
D 2022-08-12T23:21:56.031
U jrtc27
Z a771ed62ff5abdde1564e17ce7d27499