Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5fd108205472e7665a2e12fb990f125c1ba103427e350ca80ac3745f23d42aae
Ticket: 3d3124d01dabb46584e39877d44802bf5e8f4952
failures with -ftrapv compiler option
User & Date: chrstphrchvz on 2023-09-15 11:39:49
Changes

  1. icomment:
    I agree that building with <tt>-ftrapv</tt> as the reporter did would have encountered various other instances of signed integer overflow. However, there remains possibility of that throughout Tcl/Tk codebases, and often beyond existing test suite coverage. So I expect this to remain an ongoing and gradually uncovered issue, rather than something a single ticket can be designated for and addressed in a reasonable time period.
    
    I would suggest having a CI build with UBSan (<tt>-fsanitize=undefined</tt>) enabled. That is what I have encountered other major software projects doing, and will likely be much more useful than <tt>-ftrapv</tt>.
    
  2. login: "chrstphrchvz"
  3. mimetype: "text/x-fossil-wiki"