Skip to content
Tcl Source Code History Of Ticket 2819227
Login

History Of Ticket 2819227

Artifacts Associated With Ticket 2819227

  1. Ticket change [01300bb753] (rid 119432) by dgp on 2009-07-09 20:35:35:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "52. Portability Support"
    11. title initialized to: "broken compat/mkstemp.c"
    12. type initialized to: "Bug"
  2. Ticket change [243606528f] (rid 131076) by dkf on 2009-07-10 05:29:07:

    1. closedate changed to: "2009-07-09T22:29:07"
    2. closer changed to: "dkf"
    3. 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.
      
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. priority changed to: "8"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dkf"