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

History Of Ticket 845412ffffffffff

Artifacts Associated With Ticket 845412ffffffffff

  1. Ticket change [feb2365345] (rid 108632) by vincentdarley on 2003-11-19 21:21:34:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The new {expand} code crashes when attempting to
      compile commands with > 255 arguments (or something
      like that).
      
      The offending code is this:
      
      if ((delta == 255)
      && (tokenPtr->type != TCL_TOKEN_EXPAND_WORD)) {
          /*
          /*
           * Push an empty list for expansion so our delta
           * between expanded words doesn't overflow a byte
           */
          objIndex = TclRegisterNewLiteral(envPtr, "", 0);
          TclEmitPush(objIndex, envPtr);
          Tcl_DStringAppend(&deltaList, (CONST char
      *)&delta, 1);
          delta = 1;
      
      where 'deltaList' is never initialized in this code path.  
      
      A brief look at the code shows (to me at least!) that
      there's no way that DString is ever going to be
      initialized in the non-TCL_TOKEN_EXPAND_WORD case, so
      the code appears to be obviously incorrect.
      
      If necessary I can try to create a test case, but right
      now just a big application always crashes at that line.
      
      
    4. foundin initialized to: "obsolete: 8.5a0"
    5. priority initialized to: "8"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "vincentdarley"
    9. subsystem initialized to: "None"
    10. title initialized to: "tclCompile.c crash"
    11. type initialized to: "Bug"
  2. Ticket change [b79fc0f1e6] (rid 125635) by dkf on 2003-11-20 04:47:19:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      I get consistent hard failures with the following code:
          catch {if 1 [string repeat {x } 260]} msg
      It should, of course, complain about being unable to locate
      the "x" command.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. subsystem changed to: "47. Bytecode Compiler"
    6. username: "dkf"
  3. Ticket change [3cd0cdbb5c] (rid 120972) by dkf on 2003-11-20 04:49:09:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Fix is to do:
       if (expand && (delta == 255)
      since delta's only meaningful when generating code for
      command invocations with expanding arguments anyway.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [593fb83a51] (rid 117944) by dgp on 2003-11-20 05:01:50:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      will commit a fix once I get
      a test in place that crashes
      before and doesn't after the
      fix is applied.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. resolution changed to: "Fixed"
    6. username: "dgp"
  5. Ticket change [231565daa6] (rid 130856) by dkf on 2003-11-20 05:04:46:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2003-11-19T22:04:46"
    3. closer changed to: "dkf"
    4. priority changed to: "9 Immediate"
    5. status changed to: "Closed"