.
A 0005-testcmdtoken-Don-t-rely-on-round-tripping-pointers-t.patch 37108037b980ea6e705f56a9d983e05ee218dd0c e858d625f2a570a48495d757a3eaaf9936a25d1d03a88c7e1ca7619315504158
C [PATCH\s5/8]\stestcmdtoken:\sDon't\srely\son\sround-tripping\spointers\sthrough\sstrings\r\n\r\nThis\sis\sneeded\sto\ssupport\sCHERI,\sand\sthus\sArm's\sexperimental\sMorello\r\nprototype,\swhere\spointers\sare\simplemented\susing\sunforgeable\scapabilities\r\nthat\sinclude\sbounds\sand\spermissions\smetadata\sto\sprovide\sfine-grained\r\nspatial\sand\sreferential\smemory\ssafety,\sas\swell\sas\srevocation\sby\ssweeping\r\nmemory\sto\sprovide\sheap\stemporal\smemory\ssafety.\r\n\r\nWhilst\sa\scapability\scan\sbe\sprinted\sand\sscanf\scan\sread\sthat\sback\sin,\sthe\r\nunforgeable\snature\sof\scapabilities\smeans\sits\stag\sbit\s(which\smarks\sthe\r\ncapability\sas\svalid/not\sforged)\swill\sbe\sclear\sand\sthus\sit\swill\strap\son\r\ndereference\s(in\sfact,\sprintf\swill\sonly\sprint\sthe\saddress\sand\sthus\sall\r\nthe\smetadata\swill\sbe\sstripped,\sbut\sthat's\snot\simportant\shere\sas\sthe\r\nunforgeability\sis\sthe\simportant\spart).\r\n\r\nSince\sthis\stest\sdoesn't\sreally\sneed\sthe\spointer\sto\sbe\sin\sthe\sstring,\r\njust\ssome\sidentifier\sthat\scan\sbe\sused\sto\sget\sback\sto\sthe\sTcl_Command,\r\nrewrite\sthis\sto\sbuild\sup\sa\slist\sof\sthese\spointers,\seach\swith\sa\sunique\r\ninteger\sthat\swe\suse\sas\sthe\shandle\spassed\sto\sand\sfrom\sthe\sTcl\sworld\r\ninstead.\sThis\sis\sinspired\sby\sthe\slist\sthat\stestasync\sbuilds\sup\sin\r\nadjacent\scode.\sIt\salso\shappens\sto\sremove\san\sassumption\sthat\sa\r\nTcl_Command\scan\sbe\scast\sto\sand\sfrom\sa\spointer.
D 2022-08-12T23:21:20.112
U jrtc27
Z 8f6ddcb923fa55ac9f4c0047e07279ed