Skip to content
Tcl Source Code Artifact [8132ecf041]
Login

Artifact [8132ecf041]

Artifact 8132ecf041b0d946dc9b5cbbb43b0289b66ff2cd:

Ticket change [8132ecf041] - Ticket [6015221f59fd742a|6015221f59] <i>binary scan segfaults when too much a is requested</i> status still Open with 3 other changes by sebres on 2017-05-03 09:49:27.
D 2017-05-03T09:49:27.984
J icomment Another\sway\swould\sbe\sto\sredefine\sGetFormatSpec\s(and\scount\sas\sunsigned),\slike:\r\n\r\n\s\sGetFormatSpec(\s..\sunsigned\sint\s*countPtr\s..\s)\r\n\s\sunsigned\sint\scount;\r\n\r\nand\s\r\n\r\n\s\s#define\sBINARY_ALL\s((unsigned\sint)-1)\r\n\s\s...\r\n\r\nSo\s"overflow"\swill\sreach\sboth\sspecial\scases\sonly\sby\sfollowing\sranges\s(accoring\sINT_MAX):\r\n\r\n\s\sbinary\sscan\sx\sa[format\s%ld\s0xffffffff]a\sr\sn;\s#\sequal\sBINARY_ALL\r\n\s\sbinary\sscan\sx\sa[format\s%ld\s0xfffffffe]a\sr\sn;\s#\sequal\sBINARY_UNSIGNED
J login sebres
J mimetype text/plain
K 6015221f59fd742aac833c7a4521de9745c8c868
U sebres
Z d81c7e2db0b41d149a575f9033dbe494