qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Fix CVE-2010-0420, a possible remote crash when handling chat room
v2.6.6
2010-02-16, Mark Doliner
d9455f467795
Fix CVE-2010-0420, a possible remote crash when handling chat room
buddy names.
#include
<ncurses.h>
int
main
()
{
int
ch
;
initscr
();
noecho
();
cbreak
();
refresh
();
WINDOW
*
win
=
newpad
(
20
,
30
);
box
(
win
,
0
,
0
);
prefresh
(
win
,
0
,
0
,
0
,
0
,
19
,
29
);
doupdate
();
while
((
ch
=
getch
()))
{
printw
(
"%d "
,
ch
);
refresh
();
}
endwin
();
return
0
;
}