Project

General

Profile

Actions

Bug #13606

closed

tic(1) writes uninitialized data to some terminfo entries

Added by Rich Lowe over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

I tripped wsdiff in the nansi.sysk terminfo entry, it turns out to be because for dubious reasons tic(1) avoids offsets of 255 stating that "Vr2 binaries read it as -1", and in doing so will write a junk byte between the trailing NUL of the previous string table entry,
and the start of the current one, tripping wsdiff. It should write a NUL instead.

Probably, the paranoia around 255 is unwarranted, but that's going to come up in consumers and is likely not worth the testing load.
(even more probably, we should just use the ncurses tic(1), but that has the same testing load of making sure our 3 other curses libraries are ok with it)

Actions

Also available in: Atom PDF