Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cde88ea4ce609b2e4790f1ed31b7237ef3dec7f0
Ticket: 940843ffffffffffffffffffffffffffffffffff
crash scanning dict with zero entries
User & Date: dgp on 2004-04-23 16:17:07
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    It appears this causes a crash:
    
    int done = 0;
    Tcl_DictSearch search;
    Tcl_Obj *keyPtr;
    Tcl_Obj *dictPtr;
    
    dictPtr = Tcl_NewObj();
    Tcl_DictObjFirst(NULL, dictPtr, &search, &keyPtr, NULL,
    &done);
    Tcl_DictObjDone(&search);    /* CRASH! */
    
    Perhaps this is pilot error, and the caller
    must coded like so:
    
    if (!done) {
        Tcl_DictObjDone(&search);
    }
    
    but if so, maybe a friendlier interface is worth
    considering (or sterner warnings in the docs).
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "15. Dict Object"
  10. title changed to: "crash scanning dict with zero entries"
  11. type changed to: "Bug"