Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a76f1401835d27010ac16cf50b8a677a76d24cb1
Ticket: 2939073fffffffffffffffffffffffffffffffff
Unset PATTERN unsafe with trace-originated secondary unsets
User & Date: ferrieux on 2010-02-01 20:16:54
Changes

  1. icomment:
    The attached patch fixes the issue by properly protecting the next-in-current-bucket.
    This is done modularly (without touching tclHash.c) thanks to the property that the search object has a NULL nextEntryPtr at each bucket change. So the protection is done by upping the refcount of nextEntryPtr, and decreasing it again one loop cycle later. 
    
    Since the patch includes the "sanitizing" line, a deterministic test case will be provided shortly.
    
    Please review.
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"