Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 517032

Summary: =net-analyzer/nast-0.2.0-r1 - ncurses/n_comm.c:266:21: warning: array subscript is above array bounds [-Warray-bounds]
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: CONFIRMED ---    
Severity: normal Keywords: NeedPatch
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.