Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 01300bb753c8db66f8a0b3fc1f7013f0b344e83d
Ticket: 2819227fffffffffffffffffffffffffffffffff
broken compat/mkstemp.c
User & Date: dgp on 2009-07-09 20:35:35
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "52. Portability Support"
  11. title changed to: "broken compat/mkstemp.c"
  12. type changed to: "Bug"