Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: xo/terminfo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.3.0
Choose a base ref
...
head repository: xo/terminfo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.3.1
Choose a head ref
  • 1 commit
  • 4 files changed
  • 2 contributors

Commits on Nov 4, 2026

  1. Fix two crashes in Decode and bound the output of a Printf format

    Andrei Beshkov found these with fuzzing, in pull request 7 and a comment
    on it. Each fix follows ncurses 6.6 (D3):
    
    - Decode refuses a negative count in the main header, as
      _nc_read_termtype does. Before, a negative count panicked.
    - canonicalizeAscChars follows repair_acsc. An unpaired last byte stays at
      the end, and when a source character repeats, the last pair wins.
      Before, an odd length panicked, and the first pair won.
    - scanFormatFn follows parse_format. Before the verb, it accepts only the
      flags, a width and a precision. A width or precision over 10000 drops
      the flags, and %c ignores the format. Before, "%:%%999999XX" returned
      1 MB.
    
    The expected values of the new Printf tests are the output of tput.
    FuzzDecode and FuzzPrintf check that neither function panics.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    Kenneth Shaw and claude committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    fd69d4a View commit details
    Browse the repository at this point in the history
Loading
⌂ 换网址