Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517032 - =net-analyzer/nast-0.2.0-r1 - ncurses/n_comm.c:266:21: warning: array subscript is above array bounds [-Warray-bounds]
Summary: =net-analyzer/nast-0.2.0-r1 - ncurses/n_comm.c:266:21: warning: array subscri...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Netmon Herd
Keywords: NeedPatch
Depends on:
Reported: 2014-07-13 15:22 UTC by Jeroen Roovers (RETIRED)
Modified: 2014-07-13 15:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2014-07-13 15:22:20 UTC
In ncurses/n_nast.h we see:

pthread_t thID[6];

and yet in ncurses/n_comm.c the array index thID[6] is used. I got really bored trying to find which windows/menus as defined in ncurses/n_* belong to which threads. Needless to say the ncurses interface is basically broken.