Overview
| Artifact ID: | 01300bb753c8db66f8a0b3fc1f7013f0b344e83d |
|---|---|
| Ticket: | 2819227fffffffffffffffffffffffffffffffff
broken compat/mkstemp.c |
| User & Date: | dgp on 2009-07-09 20:35:35 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "52. Portability Support"
- title changed to: "broken compat/mkstemp.c"
- type changed to: "Bug"