Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 317afd3be3116553c4712d8d1cace8b76d7b91d04d269faad78d887602b3b8f5
Ticket: 536ae0326dd09dc372d5e7ab9637384ed9221393
tsv::set or get in thread 2.8.8 crash
User & Date: chw on 2022-12-29 05:03:06
Changes

  1. icomment:
    The fix catches the case when an empty list in the shared variable
    needs to be duplicated to be returned to the caller. In the duplication
    step, the duplicated Tcl_Obj becomes the special empty string and the
    postprocessing of the duplicated Tcl_Obj by inspecting the original
    Tcl_Obj did not consider the special empty string form. Later on that
    malformed Tcl_Obj triggers a crash when Tcl_GetString() is applied on it.
    
    Scary is, that this problem lived obviously undetected for a long time.
    
  2. login: "chw"
  3. mimetype: "text/plain"