Skip to content
Tcl Source Code Artifact [01300bb753]
Login

Artifact [01300bb753]

Artifact 01300bb753c8db66f8a0b3fc1f7013f0b344e83d:

Ticket change [01300bb753] - New ticket [2819227fffffffff|2819227fff] <i>broken compat/mkstemp.c</i>. by dgp on 2009-07-09 20:35:35.
D 2009-07-09T20:35:35
J assignee dkf
J cmimetype text/plain
J comment \nDoing\sa\stest\sbuild\sof\sHEAD\son\san\nIRIX64\s6.5\ssystem,\sapparently\sthe\nmkstemp()\sreplacement\sroutine\sin\ncompat/mkstemp.c\sis\scalled\sinto\nservice.\n\nIt\ssegfaults.\n\nTracking\sit\sdown,\sthe\sproblem\sis\sthat\nthe\scode\sassumes\sthe\srange\sof\sthe\nrandom()\sfunction\sis\sbounded\sby\nRAND_MAX.\s\sAt\sleast\son\sthis\ssystem\nthat\sis\sfalse.\s\sRAND_MAX\sbounds\nthe\srange\sof\sthe\srand()\scall\sand\shas\na\smuch\ssmaller\svalue\sthan\sthe\srange\nof\sthe\srandom()\scall.\n\nSimpleminded\sfix\sis\sto\sreplace\s\nthe\srandom()\scall\swith\sa\srand()\ncall\sinstead.\n
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 52.\sPortability\sSupport
J title broken\scompat/mkstemp.c
J type Bug
K 2819227fffffffffffffffffffffffffffffffff
U dgp
Z 77cb2b2218a2de27a75d91d949bd3e12