keeperfx icon indicating copy to clipboard operation
keeperfx copied to clipboard

Suspicious code in src\frontend.cpp (line 2158~2160)

Open Linvail opened this issue 1 year ago • 0 comments

        struct TextScrollWindow *scrollwnd;
        scrollwnd = (struct TextScrollWindow *)gbtn->content;
        if ((scrollwnd != NULL) && (scrollwnd->text[0] == 1))

Is it okay to assume that "gbtn->content" is a TextScrollWindow?

Look at "GuiButtonInit main_menu_buttons[]" at line 139 of src\frontmenu_ingame_tabs_data.cpp.

{ LbBtnT_RadioBtn, BID_INFO_TAB, 0, 0, gui_set_menu_mode, NULL, NULL, GMnu_QUERY, 0, 154, 0, 154, 28, 34, gui_draw_tab, GPS_rpanel_rpanel_tab_infoa, GUIStr_InformationPanelDesc,0,{(long)&info_tag}, 0, menu_tab_maintain },

{(long)&info_tag} is a pointer to a char.

Linvail avatar Oct 19 '24 19:10 Linvail