Skip to content
Tcl Source Code Artifact [74333d1cd2]
Login

Artifact [74333d1cd2]

Artifact 74333d1cd23213ffd9728e28b93bcebdc70c989b532ea235c78b47e5d63a2cd7:

Ticket change [74333d1cd2] - New ticket [fb4a0a6675242362|fb4a0a6675] <i>signed integer overflow in TclpGetClicks()</i>. by chrstphrchvz on 2022-02-17 00:55:29.
D 2022-02-17T00:55:29.136
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment Except\sfor\smaybe\s35\sminutes\sbefore\sand\safter\sthe\sepoch,\sthere\sis\salways\ssigned\sinteger\soverflow\sin\s<tt>TclpGetClicks()</tt>\simplementations:\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 foundin core-8-6-branch
J is_private 0
J login chrstphrchvz
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter chrstphrchvz
J subsystem 16.\sCommands\sA-H
J title signed\sinteger\soverflow\sin\sTclpGetClicks()
J type Patch
K fb4a0a66752423622d38c070f89ad81e3b4c2bb8
U chrstphrchvz
Z 2d5a6b9494a3f6e25d2f2fa8cc7de725