termcap emulation broken

Bug #481740 reported by vandyswa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ncurses (Ubuntu)
Fix Released
Undecided
Unassigned

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.

Revision history for this message
vandyswa (ajv-cauriumbin) wrote :
Revision history for this message
Thomas Dickey (dickey-his) wrote :

This was fixed upstream in

20091114
        + 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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.