Package: terminfo
Version: 0.0~git20220910.abceb7e-2
Severity: important

The go-infocmp program does not handle terminfo entries larger than 4096
bytes.  This is a problem since many xterm* entries are now larger than
that limit.

,----
| $ go-infocmp -term xterm
| 2026/08/03 18:19:18 invalid file size
| $ go-infocmp -term xterm-256color
| 2026/08/03 18:19:26 invalid file size
| $ stat -c '%s %n' /usr/share/terminfo/x/xterm{,-256color}
| 4156 /usr/share/terminfo/x/xterm
| 4242 /usr/share/terminfo/x/xterm-256color
`----

The remedy is likely to increase maxFileLength to 32768 in dec.go, but I
have not tested that.  Note that the limit has been raised to 32768
bytes since ncurses 6.1 (released 2018), but only this year have popular
terminfo entries started to exceed the previous limit of 4096 bytes.


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Reply via email to