Tk Source Code

View Ticket
Login
Ticket UUID: b0249861181e80a95d732d573fda6da96488eedd
Title: Tcl_IsEmpty called through pointer to incorrect function type
Type: Bug Version: trunk
Submitter: chrstphrchvz Created on: 2025-12-20 04:54:48
Subsystem: 81. Portability Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-02-05 14:07:45
Resolution: None Closed By: nobody
    Closed on:
Description:

Tcl_IsEmpty() is defined as returning int rather than bool. UBSan error encountered during some tests:

tk91/unix/../generic/tkConfig.c:1129:13: runtime error: call to function Tcl_IsEmpty through pointer to incorrect function type 'bool (*)(struct Tcl_Obj *)'
tclStringObj.c:4403: note: Tcl_IsEmpty defined here

User Comments: jan.nijtmans added on 2026-02-05 14:07:45:

This will (hopefully) be fixed with TIP #748


chrstphrchvz added on 2025-12-20 04:59:06:

I think this is due to a change made in [50a8805c]. Assigning to Jan if that is okay.