Skip to content
Tcl Source Code Artifact [d53513d79d]
Login

Artifact [d53513d79d]

Artifact d53513d79d334d18ee73dcea5ab666af1e7f1853e5d8c6364b2be8eb7de02bcb:

Ticket change [d53513d79d] - Ticket [167e0635db79f05d|167e0635db] <i>`make valgrind` detections</i> status still Open with 3 other changes by sebres on 2024-04-05 19:57:32.
D 2024-04-05T19:57:32.290
J icomment Oh...\snow\sI\sfollowed\syour\sapproach...\showever\sI\sdon't\sthink\sit\sis\swell,\sbecause\snow\sdue\sto\san\sattempt\swith\sTcl_GetIndexFromObj\sfirstly,\sit\swould\salways\stry\sto\sconvert\snumeric\sseconds\s(either\sregular\scase)\sto\sindex\s(together\swith\sconversion\snumeric\sto\sstr,\setc),\swhat\swas\savoided\sbefore.\r\n\r\nI\scould\ssuggest\sthis\sone:\r\n\r\n```diff\r\n\tif\s(\r\n-\t\s\s\s\s(baseObj->length\s==\s4\s&&\sbaseObj->bytes\s&&\s*(baseObj->bytes+1)\s==\s'n')\s||\r\n+\t\s\s\s\s(baseObj->bytes\s&&\sbaseObj->length\s==\s4\s&&\s*(baseObj->bytes+1)\s==\s'n')\s||\r\n\r\n```\r\nBut\sI\scannot\sreproduce\sit\s-\sdon't\ssee\s"Conditional\sjump\sor\smove\sdepends\son\suninitialised\svalue"\sat\sall...\r\nEverything\sI\ssee\sfrom\svalgrind\sis\sa\slot\sof\s"X\sbytes\sin\s1\sblocks\sare\sstill\sreachable\sin\sloss\srecord".
J login sebres
J mimetype text/x-markdown
K 167e0635db79f05d23d766376f6eed32b1572451
U sebres
Z a7cbfdf33694240d360aac24688258f6