phillbush / xmenu

a x11 menu utility
Other
296 stars 26 forks source link

Fix a segfault if a sub-menu is added to a separator. #29

Closed TobiasRH closed 3 years ago

TobiasRH commented 3 years ago

Fixes a null pointer dereferencing at https://github.com/phillbush/xmenu/blob/master/xmenu.c#L733 in strlen() after adding a sub-menu to a separator.

echo -e "Menu entry 1\n\tSubmenu entry 1\n\n\tSubmenu entry 2" | xmenu
phillbush commented 3 years ago

Merged.
Thanks for the PR!