Artifacts Associated With Ticket 2819227fffffffffffffffffffffffffffffffff
Ticket change [01300bb753] (rid 119432) by dgp on 2009-07-09 20:35:35:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Doing a test build of HEAD on an IRIX64 6.5 system, apparently the mkstemp() replacement routine in compat/mkstemp.c is called into service. It segfaults. Tracking it down, the problem is that the code assumes the range of the random() function is bounded by RAND_MAX. At least on this system that is false. RAND_MAX bounds the range of the rand() call and has a much smaller value than the range of the random() call. Simpleminded fix is to replace the random() call with a rand() call instead.
- foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "broken compat/mkstemp.c"
- type initialized to: "Bug"
Ticket change [243606528f] (rid 131076) by dkf on 2009-07-10 05:29:07:
- closedate changed to: "2009-07-09T22:29:07"
- closer changed to: "dkf"
- icomment:
allow_comments - 1 Grrr! The OSX documentation round here is rather broken. (It gets confused between the standard and the sub-library of OpenSSL that happens to have a similar name, and it recommends using random() instead of rand() anyway.) What a mess.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "8"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"