Curses: don't iterate through unbound COLORS #369
On DirectColor-capable terminals with the proper terminfo database in use, COLORS is 2^24. Since the color map is only 64k entries, this resulted in a segfault. I've introduced NC::colorCount(), which bounds it by the previously assumed maximum (and usable range) of 256.master
parent
31ee76e8ee
commit
302bcca99a
3 changed files with 24 additions and 4 deletions
Loading…
Reference in new issue