Tcl Source Code

View Ticket
Login
Ticket UUID: d6d850993300b6680153f2a270505920a874a67e
Title: Tcl_InitBignumFromDouble() does not check for NaN
Type: Bug Created on: 2023-04-08 22:12:48
Submitter: chrstphrchvz Assigned to: nobody
Subsystem: 48. Number Handling Severity: Minor
Priority: 5 Medium Last modified: 2023-04-08 22:12:48
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: 8.6.13
Description:

Tcl_InitBignumFromDouble() does not check for NaN input, causing the mp_int to be initialized without error (invoking unspecified behavior of frexp() and ldexp()), except on Windows where it currently errors due to NaN being mistaken for an infinity (see [87986108835a]).