Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f820b3c0cd6df3e16cc3e13fc61cdd180c239d484b68c7b92c5cacf06597a676
Ticket: 41b1406f515e092067103439e63caad5843039e3
AppendUtfToUtfRep(): undefined behavior involving pointers
User & Date: jan.nijtmans on 2021-12-13 13:43:26
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2459562.07183899"
  3. closer changed to: "jan.nijtmans"
  4. icomment:
    I think the "runtime error" is fixed [3f70533e6d35fa9f|here]. About the pointer arithmetic, I don't think very much can be done. I you have an idea, feel free to re-open this issue. For now, it's best to just close it as "fixed".
    
    Explanation: if objPtr->bytes is NULL, it means that there is no byte representation yet, so GrowBuffer() will create a new buffer. This also means that "bytes" can never point to somewhere in the new buffer, so the whole extra processing can just be skipped.
    
    Thanks for the report!
    
  5. login: "jan.nijtmans"
  6. mimetype: "text/x-fossil-wiki"
  7. resolution changed to: "Fixed"
  8. status changed to: "Closed"