Skip to content
Tcl Source Code Artifact [449c4bab98]
Login

Artifact [449c4bab98]

Artifact 449c4bab984d13ed493aa848009c797e0f498c8d3a03ea15fe72b4f45255cc21:

Ticket change [449c4bab98] - Ticket [fb4a0a6675242362|fb4a0a6675] <i>signed integer overflow in TclpGetClicks()</i> status still Open with 3 other changes by chrstphrchvz on 2022-02-17 00:58:35.
D 2022-02-17T00:58:35.440
J comment Except\sfor\smaybe\s35\sminutes\sbefore\sand\safter\sthe\sepoch,\sthere\sis\salways\ssigned\sinteger\soverflow\sin\s<tt>TclpGetClicks()</tt>\simplementations\swhen\s<tt>long</tt>\sis\s32-bit:\r\n\r\n<blockquote><pre>\r\n%\sclock\sclicks\r\n<span\sstyle="font-weight:bold">tcl/unix/tclUnixTime.c:152:19:<span\sstyle="color:red">\sruntime\serror:\s</span>signed\sinteger\soverflow:\s1645057584\s*\s1000000\scannot\sbe\srepresented\sin\stype\s'long\sint'</span>\r\n3505507099\r\n</pre></blockquote>\r\n\r\nThe\sattached\spatch\sshould\savoid\sthis,\showever\sI\shave\sonly\stested\sthe\scase\sfor\sUnix\swith\s<tt>gettimeofday()</tt>,\sand\snot\sthe\scases\sfor\sUnix\swithout\s<tt>gettimeofday()</tt>\snor\sWindows\swithout\s<tt>NativeGetMicroseconds()</tt>.
J login chrstphrchvz
J mimetype text/plain
K fb4a0a66752423622d38c070f89ad81e3b4c2bb8
U chrstphrchvz
Z ce2db6c949e120ee77eadb2b2578070b