Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fb54e3e1aff9bae059d9abdfabfbd14fe30cc839
Ticket: 1410553fffffffffffffffffffffffffffffffff
String numchars and object length can be desynchronised
User & Date: pspjuth on 2006-01-20 20:58:11
Changes

  1. icomment:
    Logged In: YES 
    user_id=98900
    
    The fault is in Tcl_GetRange.
    objPtr->length is not valid unless there is a
    string rep and Tcl_GetRange do not check if
    objPtr->bytes != NULL first.
    
    It would probably work with:
    if (objPtr->bytes != NULL &&
        stringPtr->numChars == objPtr->length) {
    
    
    
    
  2. login: "pspjuth"
  3. mimetype: "text/plain"
  4. username: "pspjuth"