Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1b3c7d0619e96e42b62f17b132f2b89164854a2760e22b1a6c3ed090c8052799
Ticket: 8dd2807066d7cc4d8604164f39b7f0d65c0dc321
bug in single-argument 'max' with bignums
User & Date: apnadkarni on 2025-11-10 07:34:05
Changes

  1. icomment:
    While I have a proposed fix that checks for the specific failure mode when `valuePtr==valuePtr2` (causing double free), I am not convinced there are other failure modes. In particular, the `TclCompareTwoNumbers` function uses `Tcl_TakeBigNumFromObj` which afaik should only be used on unshared `Tcl_Obj`. Should it not be using `Tcl_GetBigNumFromObj` instead?
    
    Review by someone more familiar with bignums (Jan?) would be beneficial.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"