Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6755ae513b03ca9d0dfb0b473eb69eb217b5d77f
Ticket: 3484402fffffffffffffffffffffffffffffffff
off-by-one address error in AppendUnicodeToUnicodeRep
User & Date: pooryorick on 2012-02-06 22:47:38
Changes

  1. icomment:
    It's not easy to recreate, because even with a certain set of values, they might not fall exactly right in memory to expose the problem.  I did manage to get a test case that triggered the problem about 50% of the time, and I did observe that the problem only occurred when the 'unicode' symbol was located at exactly the next address up from stringPtr, making the "if" condition true even though the 'unicode' value was not in the boundaries of stringPtr.  The test case was still 600 lines of code cut from another program, and very sensitive to contextual things like the length of the current working directory at the time of invocation.  I don't currently know how to write a good test case for this.  Any suggestions?
    
    
  2. login: "pooryorick"
  3. mimetype: "text/plain"
  4. username: "pooryorick"