Overview
| Artifact ID: | 1b3c7d0619e96e42b62f17b132f2b89164854a2760e22b1a6c3ed090c8052799 |
|---|---|
| Ticket: | 8dd2807066d7cc4d8604164f39b7f0d65c0dc321
bug in single-argument 'max' with bignums |
| User & Date: | apnadkarni on 2025-11-10 07:34:05 |
Changes
- 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.
- login: "apnadkarni"
- mimetype: "text/x-markdown"