Skip to content
Tcl Source Code Artifact [6ace5481d8]
Login

Artifact [6ace5481d8]

Artifact 6ace5481d8582397a06049263213501da7943bbc0f9bf9be26adf04aad4d4494:

Ticket change [6ace5481d8] - Ticket [d07f42998da94cfe|d07f42998d] <i>Tcl_CreateObjCommand2 argument truncation and misleading error message</i> status still Open with 3 other changes by apnadkarni on 2023-05-09 17:27:30.
D 2023-05-09T17:27:30.472
J icomment With\srespect\sto\scall\svs\scall2\s-\sThat\sis\sby\sintent.\sThe\spurpose\sof\sthe\stestcmdinfo\sis\sto\stest\sthe\sexact\sC\sAPI\sby\scalling\sthe\sunderlying\sC\sfunctions\swithout\sany\sargument\schecks.\sWhen\sthe\s"Call"\sinterface\sis\sused,\sthe\sC\sAPI\sby\sdefinition\scannot\spass\smore\sthan\sINT_MAX\sarguments\s(or\snegative\sones).\stestcmdinfo\sdoes\snot\scheck\sfor\sthat\sas\sa\stest\scommand\sit\sexpects\sthe\scaller\s(test\sscript)\sto\spass\sarguments\sthat\smatch\sthe\stype\sof\sthe\sC\sAPI.\sLike\smuch\sof\sthe\stest\sframework,\sit\sdoes\snot\scheck\sfor\serrors\son\sthe\spart\sof\sthe\sscript.\sOne\scan\sadd\sthat\scheck\sto\sthe\simplementation\sof\stestcmdinfo\sif\sone\swishes,\snot\sto\sthe\score\scode.\r\n\r\nIn\sother\swords,\swith\sthe\scall\scommand\swhich\smaps\sto\sthe\s8.6\s"int"\sbased\sinterfaces,\sit\sis\simpossible\sto\spass\smore\sthan\sINT_MAX\sarguments.\sYou\scan\spass\snegative\sobjc\s(between\sINT_MAX\sand\sUINT_MAX)\svalues\swhich\sresults\sin\sthe\swrong\s#\sargs\smessage.\sYou\scannot\spass\s>\sINT_MAX\spositive\svalues\swhich\sresult\sin\s"limit\sexceeded\r\n\r\n/Ashok\r\n\r\n/Ashok
J login apnadkarni
J mimetype text/plain
K d07f42998da94cfe0c9cebc73c5cecc63f99f421
U apnadkarni
Z 6554158aa2d643f16358f304a9a33533