termcap emulation broken

Bug #481740 reported by vandyswa on 2009-11-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ncurses (Ubuntu)

Bug Description

With termcap emulation, tgetstr() needs to understand that it uses only the initial two characters of the capability
name. Mostly it has code to do this, but in Karmic I am seeing that the function _nc_find_type_entry() calls
hash_function() on the parameter string without honoring the termcap mode, and thus the hash value incorrectly
reflects subsequent bytes following the two byte capability name. The attached program shows the issue.

Thomas Dickey (dickey-his) wrote :

This was fixed upstream in

        + limit hashing for termcap-names to 2-characters (Ubuntu #481740).

Changed in ncurses (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers