Skip to content
Tcl Source Code History Of Ticket 714106ffffffffff
Login

History Of Ticket 714106ffffffffff

Artifacts Associated With Ticket 714106ffffffffff

  1. Ticket change [f7026638d7] (rid 130413) by nobody on 2003-04-02 18:58:39:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The following code crashes a 32-bit machine (PC):
      
      set M  [string repeat x  1048576]
      set G4 [string repeat $M    4096]
      
      The culprit is the unchecked length multiplication
      in line 2110 in "generic/tclCmdMZ.c:
      
      length2             = length1 * count;
      
      That can overflow.  As a result, much less memory
      gets allocated, than filled after allocation.
      
      I suggest to check the multiplication by back-division:
      
      if ((length2 / count) != length1) { ...error... }
      
      Heiner [email protected]
      
    4. foundin initialized to: "obsolete: 8.4.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "41. Memory Allocation"
    10. title initialized to: "[string repeat] may crash"
    11. type initialized to: "Bug"
  2. Add attachment "714106.strrepeat" [462e373f6f] (rid 99480) by hobbs on 2003-05-11 06:57:38.

  3. Ticket change [3687e7bfe3] (rid 107117) by hobbs on 2003-05-11 06:57:38:

    1. closedate changed to: "2003-05-10T23:57:38"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      Closed with the attached patch.  I didn't add a test because it 
      would have different behavior on 64-bit ILP systems.  Fixed for 
      8.4.3 and 8.5.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"
  4. Ticket change [1597a9cd8b] (rid 124594) by hobbs on 2003-05-11 06:57:39:

    1. icomment:
      
      
      File Added - 50083: 714106.strrepeat
      
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"