.
D 2015-09-16T17:22:03.772
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment I\swas\sjust\sgoing\sthrough\sdeltas\sbetween\sTcl's\sregexp\scode\sand\sPostgres'\sversion\sof\sthe\scode,\sand\sI\sfound\swhat\sappears\sto\sbe\sa\stypo\sin\syour\sversion\sof\sthe\sfix\sfor\sthe\scolor-overflow\sproblem.\s\sIn\snewcolor(),\sregc_color.c\sline\s262\sin\s8.6.4,\syou\shave:\r\n\r\n\tif\s(n\s<\sMAX_COLOR\s+\s1)\s{\r\n\t\s\s\s\sn\s=\sMAX_COLOR\s+\s1;\r\n\t}\r\n\r\nWe\shave\sthat\stest\sas\s"if\s(n\s>\sMAX_COLOR\s+\s1)"\swhich\sI\sthink\sis\scorrect:\sthe\spoint\sis\sto\slimit\sthe\svalue\sof\sn\sto\sMAX_COLOR+1,\snot\sto\sforce\sit\sup\sto\sthat\sinstantly.\r\n\r\nThe\seffect\sof\sthis\sis\sjust\ssome\sinefficiency,\sie\scolormaps\swill\sbloat\sto\s32K\sentries\sas\ssoon\sas\sthey\sexceed\sNINLINECDS,\sbut\sstill\sit's\sa\sbug.
J foundin 8.6.4
J is_private 0
J login tgl
J priority 5\sMedium
J private_contact 26864b65f1c6ce8bda86f87ed9c554e19ac0390d
J resolution None
J severity Minor
J status Open
J submitter tgl
J subsystem 43.\sRegexp
J title backwards\stest\sin\snewcolor()
J type Bug
K a3c3508599b32dfda5e83698aa9e301273b5f7cf
U tgl
Z 90d6b1e51a74f46121a37f02c1b77f67