all repos — fluxbox @ 90fcc93d6e87183c7d2956b4b1e067be25060169

custom fork of the fluxbox windowmanager

fix segfault opportunity in menu
simonb simonb
commit

90fcc93d6e87183c7d2956b4b1e067be25060169

parent

d6ee96775dfdf0ee8bb2f00537f11a335c9b5a18

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,6 +1,8 @@

(Format: Year/Month/Day) Changes for 0.9.13 *05/05/06: + * Fix potential segfault menu bug, thanks chenfeng (Simon) + Menu.cc * Added more KeyActions to TextBox (thanx to Vadim <suhanov_vadim@mail.ru> Control + LeftArrow -> Moves cursor to the left direction, up to next word. Control + RightArrow -> to the right direction.
M src/FbTk/Menu.ccsrc/FbTk/Menu.cc

@@ -273,6 +273,9 @@ menu.window.lower();

} void Menu::nextItem() { + if (menuitems.empty()) + return; + int old_which_press = m_which_press; m_active_index = -1; if (validIndex(old_which_press) &&

@@ -308,6 +311,8 @@

} void Menu::prevItem() { + if (menuitems.empty()) + return; int old_which_press = m_which_press; m_active_index = -1;