[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] fix infocmp/tic hang
From: |
Emanuele Giaquinta |
Subject: |
[PATCH] fix infocmp/tic hang |
Date: |
Thu, 22 Jun 2017 23:48:31 +0300 |
User-agent: |
Mutt/1.8.3+3 (35fba390b1f3) (2017-05-23) |
Hello,
starting with ncurses-6.0-20170506, infocmp and tic -c hang with
terminal descriptions specifying pairs#7744. The problem is that
dump_entry.c:number_format does not terminate if the input number
does not belong to any of the tested intervals, because the
expression (mm = (1UL << nn)) never becomes zero. The behaviour is
undefined for nn equal to 32 (or 64), and on x86 the SHL instruction
considers only the lowest 5 (or 6) bits of the shift count so the
expression wraps to 1. The attached patch fixes the issue.
Emanuele
dump_entry.diff
Description: Text Data
- [PATCH] fix infocmp/tic hang,
Emanuele Giaquinta <=