Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/adonthell-0.3.8/src/surface.cc Examining data/adonthell-0.3.8/src/achievements.h Examining data/adonthell-0.3.8/src/event_list.cc Examining data/adonthell-0.3.8/src/dialog.cc Examining data/adonthell-0.3.8/src/animation.h Examining data/adonthell-0.3.8/src/label_input.h Examining data/adonthell-0.3.8/src/gametime.h Examining data/adonthell-0.3.8/src/yarg.cc Examining data/adonthell-0.3.8/src/win_manager.h Examining data/adonthell-0.3.8/src/event.cc Examining data/adonthell-0.3.8/src/prefs.cc Examining data/adonthell-0.3.8/src/win_container.h Examining data/adonthell-0.3.8/src/mapsquare.h Examining data/adonthell-0.3.8/src/map_event.cc Examining data/adonthell-0.3.8/src/mapsquare_walkable.h Examining data/adonthell-0.3.8/src/win_keys.h Examining data/adonthell-0.3.8/src/win_scroll.cc Examining data/adonthell-0.3.8/src/fileops.h Examining data/adonthell-0.3.8/src/screen.h Examining data/adonthell-0.3.8/src/gettext.h Examining data/adonthell-0.3.8/src/time_event.h Examining data/adonthell-0.3.8/src/win_container.cc Examining data/adonthell-0.3.8/src/quest.h Examining data/adonthell-0.3.8/src/label_input.cc Examining data/adonthell-0.3.8/src/character_base.cc Examining data/adonthell-0.3.8/src/label.cc Examining data/adonthell-0.3.8/src/storage.h Examining data/adonthell-0.3.8/src/input.cc Examining data/adonthell-0.3.8/src/time_event_handler.h Examining data/adonthell-0.3.8/src/py_object.h Examining data/adonthell-0.3.8/src/mapcharacter.cc Examining data/adonthell-0.3.8/src/event_handler_base.h Examining data/adonthell-0.3.8/src/mapobject.h Examining data/adonthell-0.3.8/src/character.h Examining data/adonthell-0.3.8/src/mapview.h Examining data/adonthell-0.3.8/src/py_adonthell_wrap.cc Examining data/adonthell-0.3.8/src/win_base.h Examining data/adonthell-0.3.8/src/surface.h Examining data/adonthell-0.3.8/src/gametime.cc Examining data/adonthell-0.3.8/src/window.h Examining data/adonthell-0.3.8/src/data_screen.cc Examining data/adonthell-0.3.8/src/input.h Examining data/adonthell-0.3.8/src/python_class.h Examining data/adonthell-0.3.8/src/gamedata.h Examining data/adonthell-0.3.8/src/text_bubble.cc Examining data/adonthell-0.3.8/src/win_wrappers.h Examining data/adonthell-0.3.8/src/drawable.h Examining data/adonthell-0.3.8/src/win_write.h Examining data/adonthell-0.3.8/src/gamedate.cc Examining data/adonthell-0.3.8/src/pnm.h Examining data/adonthell-0.3.8/src/achievements.cc Examining data/adonthell-0.3.8/src/py_object.cc Examining data/adonthell-0.3.8/src/py_callback.h Examining data/adonthell-0.3.8/src/win_scrollbar.h Examining data/adonthell-0.3.8/src/audio.cc Examining data/adonthell-0.3.8/src/path.cc Examining data/adonthell-0.3.8/src/python_class.cc Examining data/adonthell-0.3.8/src/mapview.cc Examining data/adonthell-0.3.8/src/win_object.h Examining data/adonthell-0.3.8/src/image.cc Examining data/adonthell-0.3.8/src/map_event.h Examining data/adonthell-0.3.8/src/data_screen.h Examining data/adonthell-0.3.8/src/win_ttf.cc Examining data/adonthell-0.3.8/src/win_select.cc Examining data/adonthell-0.3.8/src/image.h Examining data/adonthell-0.3.8/src/mapcharacter.h Examining data/adonthell-0.3.8/src/event_handler.cc Examining data/adonthell-0.3.8/src/game.cc Examining data/adonthell-0.3.8/src/text_bubble.h Examining data/adonthell-0.3.8/src/mapsquare_walkable.cc Examining data/adonthell-0.3.8/src/path.h Examining data/adonthell-0.3.8/src/str_hash.h Examining data/adonthell-0.3.8/src/time_event.cc Examining data/adonthell-0.3.8/src/nls.cc Examining data/adonthell-0.3.8/src/character.cc Examining data/adonthell-0.3.8/src/prefs.h Examining data/adonthell-0.3.8/src/event_handler.h Examining data/adonthell-0.3.8/src/win_manager.cc Examining data/adonthell-0.3.8/src/win_ttf.h Examining data/adonthell-0.3.8/src/landmap.cc Examining data/adonthell-0.3.8/src/win_image.h Examining data/adonthell-0.3.8/src/main.cc Examining data/adonthell-0.3.8/src/win_border.cc Examining data/adonthell-0.3.8/src/dialog_screen.cc Examining data/adonthell-0.3.8/src/lex.prefs.cc Examining data/adonthell-0.3.8/src/gamedata.cc Examining data/adonthell-0.3.8/src/map_event_handler.h Examining data/adonthell-0.3.8/src/win_background.cc Examining data/adonthell-0.3.8/src/dialog_screen.h Examining data/adonthell-0.3.8/src/map_event_handler.cc Examining data/adonthell-0.3.8/src/event.h Examining data/adonthell-0.3.8/src/adonthell.h Examining data/adonthell-0.3.8/src/win_border.h Examining data/adonthell-0.3.8/src/yarg.h Examining data/adonthell-0.3.8/src/win_font.h Examining data/adonthell-0.3.8/src/screen.cc Examining data/adonthell-0.3.8/src/game.h Examining data/adonthell-0.3.8/src/win_select.h Examining data/adonthell-0.3.8/src/win_theme.cc Examining data/adonthell-0.3.8/src/win_keys.cc Examining data/adonthell-0.3.8/src/adonthell.cc Examining data/adonthell-0.3.8/src/win_background.h Examining data/adonthell-0.3.8/src/audio.h Examining data/adonthell-0.3.8/src/character_base.h Examining data/adonthell-0.3.8/src/py_callback.cc Examining data/adonthell-0.3.8/src/types.h Examining data/adonthell-0.3.8/src/time_event_handler.cc Examining data/adonthell-0.3.8/src/win_mapview.h Examining data/adonthell-0.3.8/src/mapobject.cc Examining data/adonthell-0.3.8/src/pnm.cc Examining data/adonthell-0.3.8/src/gamedate.h Examining data/adonthell-0.3.8/src/storage.cc Examining data/adonthell-0.3.8/src/mapsquare.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_tree.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_node_gfx.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_graph_events.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_tooltip.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_circle_entry.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_module.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_modal_dialog.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_module.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_scrollable.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_file.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_scrollable.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_list_events.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_messages.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_circle.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_circle_events.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_resources.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_arrow.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_list.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_list.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_circle.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_graph.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_recent_files.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_tree.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_error.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_module_entry.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_resources.h Examining data/adonthell-0.3.8/src/tools/dlgedit/cfg_project.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_dlgedit_events.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_circle_events.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_tooltip.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_module_entry.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_code.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_graph_events.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_arrow.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_circle.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_settings.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_dlgedit_events.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_list_events.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_cmdline.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_settings.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/kb_traverse.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_types.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_graph.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_file.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_recent_files.h Examining data/adonthell-0.3.8/src/tools/dlgedit/util.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_rect.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/lex.loadcfg.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_mover.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/cfg_project.h Examining data/adonthell-0.3.8/src/tools/dlgedit/main.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_rect.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_mover.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_point.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_dlgedit.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_compiler.h Examining data/adonthell-0.3.8/src/tools/dlgedit/util.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_messages.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_compiler.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/cfg_data.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_circle_entry.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_edit.h Examining data/adonthell-0.3.8/src/tools/dlgedit/cfg_io.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/cfg_io.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_point.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_dlgedit.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_node_gfx.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/cfg_data.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_cmdline.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_code.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_node.h Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_edit.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_modal_dialog.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_circle.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/kb_traverse.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/lex.loadlg.cc Examining data/adonthell-0.3.8/src/tools/dlgedit/gui_error.h Examining data/adonthell-0.3.8/src/tools/dlgedit/dlg_node.cc Examining data/adonthell-0.3.8/src/event_list.h Examining data/adonthell-0.3.8/src/win_event.cc Examining data/adonthell-0.3.8/src/win_event.h Examining data/adonthell-0.3.8/src/animation.cc Examining data/adonthell-0.3.8/src/drawing_area.cc Examining data/adonthell-0.3.8/src/label.h Examining data/adonthell-0.3.8/src/win_scrollbar.cc Examining data/adonthell-0.3.8/src/win_theme.h Examining data/adonthell-0.3.8/src/win_base.cc Examining data/adonthell-0.3.8/src/win_types.h Examining data/adonthell-0.3.8/src/drawable.cc Examining data/adonthell-0.3.8/src/quest.cc Examining data/adonthell-0.3.8/src/win_scroll.h Examining data/adonthell-0.3.8/src/drawing_area.h Examining data/adonthell-0.3.8/src/nls.h Examining data/adonthell-0.3.8/src/callback.h Examining data/adonthell-0.3.8/src/win_label.h Examining data/adonthell-0.3.8/src/dialog.h Examining data/adonthell-0.3.8/src/landmap.h Examining data/adonthell-0.3.8/src/fileops.cc Examining data/adonthell-0.3.8/src/win_font.cc FINAL RESULTS: data/adonthell-0.3.8/src/dialog.cc:314:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (tmp, mid); data/adonthell-0.3.8/src/dialog.cc:315:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (tmp, start+end+1); data/adonthell-0.3.8/src/dialog.cc:370:28: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). if (!repl.empty()) strcat (tmp, repl.c_str()); data/adonthell-0.3.8/src/dialog.cc:371:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (tmp, start+end+1); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:698:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(r,name); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:838:25: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define PyOS_snprintf _snprintf data/adonthell-0.3.8/src/py_adonthell_wrap.cc:840:25: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define PyOS_snprintf snprintf data/adonthell-0.3.8/src/py_adonthell_wrap.cc:857:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. res = vsnprintf(buf, sizeof(buf), fmt, ap); data/adonthell-0.3.8/src/python_class.cc:68:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf ( buf, "import sys ; sys.path.insert(0, \"%s\")", name ); data/adonthell-0.3.8/src/win_background.cc:155:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(path,WIN_DIRECTORY); data/adonthell-0.3.8/src/win_background.cc:156:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path,WIN_BACKGROUND_DIRECTORY); data/adonthell-0.3.8/src/win_background.cc:157:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path,rep); data/adonthell-0.3.8/src/win_background.cc:158:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path,WIN_BACKGROUND_FILE); data/adonthell-0.3.8/src/win_border.cc:170:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(path,WIN_DIRECTORY); data/adonthell-0.3.8/src/win_border.cc:171:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path,WIN_BORDER_DIRECTORY); data/adonthell-0.3.8/src/win_border.cc:172:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path,rep); data/adonthell-0.3.8/src/win_border.cc:173:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path,size); data/adonthell-0.3.8/src/win_border.cc:176:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_border.cc:177:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_H_BORDER_TEMPLATE_FILE); data/adonthell-0.3.8/src/win_border.cc:182:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_border.cc:183:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_V_BORDER_TEMPLATE_FILE); data/adonthell-0.3.8/src/win_border.cc:188:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_border.cc:189:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_CORNER_TOP_LEFT_FILE); data/adonthell-0.3.8/src/win_border.cc:197:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_border.cc:198:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_CORNER_TOP_RIGHT_FILE); data/adonthell-0.3.8/src/win_border.cc:207:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_border.cc:208:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_CORNER_BOTTOM_LEFT_FILE); data/adonthell-0.3.8/src/win_border.cc:217:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_border.cc:218:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_CORNER_BOTTOM_RIGHT_FILE); data/adonthell-0.3.8/src/win_scrollbar.cc:168:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(path,WIN_DIRECTORY); data/adonthell-0.3.8/src/win_scrollbar.cc:169:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path,WIN_SCROLLBAR_DIRECTORY); data/adonthell-0.3.8/src/win_scrollbar.cc:170:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path,theme); data/adonthell-0.3.8/src/win_scrollbar.cc:183:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_scrollbar.cc:184:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_SCROLLBAR_BAR_TOP); data/adonthell-0.3.8/src/win_scrollbar.cc:188:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_scrollbar.cc:189:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_SCROLLBAR_BAR_MID); data/adonthell-0.3.8/src/win_scrollbar.cc:193:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_scrollbar.cc:194:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_SCROLLBAR_BAR_BOT); data/adonthell-0.3.8/src/win_scrollbar.cc:198:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_scrollbar.cc:199:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_SCROLLBAR_BAR_FLEX); data/adonthell-0.3.8/src/win_scrollbar.cc:203:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_scrollbar.cc:204:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_SCROLLBAR_BACK_TOP); data/adonthell-0.3.8/src/win_scrollbar.cc:208:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_scrollbar.cc:209:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_SCROLLBAR_BACK_MID); data/adonthell-0.3.8/src/win_scrollbar.cc:213:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tmp,path); data/adonthell-0.3.8/src/win_scrollbar.cc:214:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmp,WIN_SCROLLBAR_BACK_BOT); data/adonthell-0.3.8/src/game.cc:63:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. result = string (getenv ("HOME")) + "/Library/Application Support/Adonthell/"; data/adonthell-0.3.8/src/game.cc:66:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *appDataDir = getenv ("APPDATA"); data/adonthell-0.3.8/src/game.cc:68:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. result = string (getenv("APPDATA")) + "/Adonthell/"; data/adonthell-0.3.8/src/game.cc:73:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *homeDir = getenv ("HOME"); data/adonthell-0.3.8/src/game.cc:81:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *xdgDir = getenv (xdgEnv); data/adonthell-0.3.8/src/game.cc:87:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. result = string (getenv ("HOME")) + "/.local/share/adonthell/"; data/adonthell-0.3.8/src/game.cc:89:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. result = string (getenv ("HOME")) + "/.config/adonthell/"; data/adonthell-0.3.8/src/prefs.cc:113:13: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt (argc, argv, "lcdhvg:"); data/adonthell-0.3.8/src/tools/dlgedit/cfg_io.cc:43:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. Dlgeditrc = std::string (getenv ("HOME")) + "/Library/Application Support/Adonthell/dlgeditrc"; data/adonthell-0.3.8/src/tools/dlgedit/cfg_io.cc:46:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *appDataDir = getenv ("APPDATA"); data/adonthell-0.3.8/src/tools/dlgedit/cfg_io.cc:48:31: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. Dlgeditrc = std::string (getenv("APPDATA")) + "/Adonthell/dlgeditrc"; data/adonthell-0.3.8/src/tools/dlgedit/cfg_io.cc:53:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *xdgDir = getenv ("XDG_CONFIG_HOME"); data/adonthell-0.3.8/src/tools/dlgedit/cfg_io.cc:57:31: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. Dlgeditrc = std::string (getenv ("HOME")) + "/.config/adonthell/dlgeditrc"; data/adonthell-0.3.8/src/tools/dlgedit/dlg_cmdline.cc:49:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt (argc, argv, "cdhvg:p:")) != -1) data/adonthell-0.3.8/src/tools/dlgedit/util.cc:35:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. #define realpath(N,R) _fullpath((R),(N),_MAX_PATH) data/adonthell-0.3.8/src/tools/dlgedit/util.cc:77:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath(base_path.c_str(), canonical_path)) data/adonthell-0.3.8/src/tools/dlgedit/util.cc:80:13: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath(path.c_str(), canonical_path)) data/adonthell-0.3.8/src/achievements.cc:183:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!in.open (filepath)) data/adonthell-0.3.8/src/achievements.cc:212:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, &global, 4); data/adonthell-0.3.8/src/achievements.cc:240:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open (filepath)) data/adonthell-0.3.8/src/achievements.cc:259:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, &i->_persistent, 4); data/adonthell-0.3.8/src/audio.cc:158:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen (filename, "r"); data/adonthell-0.3.8/src/audio.cc:245:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen (filename, "r"); data/adonthell-0.3.8/src/callback.h:35:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char memFunc[MEM_FUNC_SIZE]; data/adonthell-0.3.8/src/callback.h:43:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(memFunc,mf,sz); data/adonthell-0.3.8/src/data_screen.cc:167:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (gametime, "Day %i - %02i:%02i", gamedate::day (), data/adonthell-0.3.8/src/data_screen.h:121:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gametime[20]; // time when saving the game data/adonthell-0.3.8/src/fileops.cc:46:5: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open (fname, t); data/adonthell-0.3.8/src/fileops.cc:54:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool gz_file::open (const string & fname, gz_type t) data/adonthell-0.3.8/src/fileops.cc:81:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool igzstream::open (const string & fname) data/adonthell-0.3.8/src/fileops.cc:83:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return gz_file::open (fname, READ); data/adonthell-0.3.8/src/fileops.cc:266:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool ogzstream::open (const string & fname) data/adonthell-0.3.8/src/fileops.cc:268:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return gz_file::open (fname, WRITE); data/adonthell-0.3.8/src/fileops.cc:352:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sf[16]; data/adonthell-0.3.8/src/fileops.h:89:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open (const string & fname, gz_type t); data/adonthell-0.3.8/src/fileops.h:167:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open (const string & fname); data/adonthell-0.3.8/src/fileops.h:259:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open (const string & fname); data/adonthell-0.3.8/src/game.cc:126:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * file = fopen (fname.c_str (), "r"); data/adonthell-0.3.8/src/gamedata.cc:128:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:174:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:212:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:245:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:278:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:344:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[10]; data/adonthell-0.3.8/src/gamedata.cc:360:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(t, "%03i", pos++); data/adonthell-0.3.8/src/gamedata.cc:393:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:429:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:458:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:473:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:488:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:504:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open (filepath); data/adonthell-0.3.8/src/gamedata.cc:586:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in.open (filepath); data/adonthell-0.3.8/src/gamedate.cc:107:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char num[2] = "0"; data/adonthell-0.3.8/src/gamedate.cc:115:36: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). number = 10 * number + atoi (num); data/adonthell-0.3.8/src/gettext.h:218:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/adonthell-0.3.8/src/gettext.h:220:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/adonthell-0.3.8/src/gettext.h:228:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/adonthell-0.3.8/src/gettext.h:230:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/adonthell-0.3.8/src/gettext.h:264:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/adonthell-0.3.8/src/gettext.h:266:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/adonthell-0.3.8/src/gettext.h:274:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/adonthell-0.3.8/src/gettext.h:276:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/adonthell-0.3.8/src/input.cc:54:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(keystate, state, keystatelength); data/adonthell-0.3.8/src/landmap.cc:138:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open (fdef); data/adonthell-0.3.8/src/lex.prefs.cc:914:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mynum = atoi (prefstext); return PREFS_NUM; data/adonthell-0.3.8/src/main.cc:157:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[500]; data/adonthell-0.3.8/src/mapobject.cc:116:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open (fdef); data/adonthell-0.3.8/src/mapobject.cc:151:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open (fdef); data/adonthell-0.3.8/src/pnm.cc:38:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sign[10]; data/adonthell-0.3.8/src/pnm.cc:58:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). l = atoi (sign); data/adonthell-0.3.8/src/pnm.cc:67:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). h = atoi (sign); data/adonthell-0.3.8/src/pnm.cc:82:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[30]; data/adonthell-0.3.8/src/pnm.cc:84:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (s, "P6\n%d %d\n255\n", length, height); data/adonthell-0.3.8/src/prefs.cc:224:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[256]; data/adonthell-0.3.8/src/prefs.cc:294:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char suffix[16] = "\0", SUFFIX[16] = "\0"; data/adonthell-0.3.8/src/prefs.cc:304:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). prefsin = fopen (fname.c_str (), "r"); data/adonthell-0.3.8/src/prefs.cc:312:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(prefsin = fopen (fname.c_str (), "r"))) data/adonthell-0.3.8/src/py_adonthell_wrap.cc:649:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex[17] = "0123456789abcdef"; data/adonthell-0.3.8/src/py_adonthell_wrap.cc:810:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newstr, cstr, len+1); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:854:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[SWIG_PYBUFFER_SIZE * 2]; data/adonthell-0.3.8/src/py_adonthell_wrap.cc:2048:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result[SWIG_BUFFER_SIZE]; data/adonthell-0.3.8/src/py_adonthell_wrap.cc:2062:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result[SWIG_BUFFER_SIZE]; data/adonthell-0.3.8/src/py_adonthell_wrap.cc:2073:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result[SWIG_BUFFER_SIZE]; data/adonthell-0.3.8/src/py_adonthell_wrap.cc:2216:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pack, ptr, size); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:2234:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, sobj->pack, size); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:2871:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mesg[256]; data/adonthell-0.3.8/src/py_adonthell_wrap.cc:3342:38: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:3372:45: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:3883:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (csize) memcpy(val, cptr, csize*sizeof(char)); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:4034:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). result = (bool)(arg1)->open((string const &)*arg2,arg3); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:4178:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). result = (bool)(arg1)->open((string const &)*arg2); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:4492:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). result = (bool)(arg1)->open((string const &)*arg2); data/adonthell-0.3.8/src/python_class.cc:66:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/adonthell-0.3.8/src/surface.cc:562:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src, Info->BytesPerPixel); data/adonthell-0.3.8/src/surface.cc:570:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (target_next_line, target_data, target_line_length); data/adonthell-0.3.8/src/surface.cc:615:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dst_pixels, src_pixels, pitch); data/adonthell-0.3.8/src/surface.cc:709:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (Info->Pixels, src, pitch); data/adonthell-0.3.8/src/surface.cc:751:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, (u_int8*) Info->Pixels, Info->Pitch); data/adonthell-0.3.8/src/tools/dlgedit/dlg_compiler.cc:96:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open ((fname + ".py").c_str ()); data/adonthell-0.3.8/src/tools/dlgedit/dlg_module_entry.cc:95:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in.open (file); data/adonthell-0.3.8/src/tools/dlgedit/dlg_module_entry.cc:135:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in.open (file); data/adonthell-0.3.8/src/tools/dlgedit/gui_dlgedit.h:239:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *progState[NUM_MODES]; data/adonthell-0.3.8/src/tools/dlgedit/lex.loadcfg.cc:846:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mynum = atoi (loadcfgtext); return LOAD_NUM; data/adonthell-0.3.8/src/tools/dlgedit/lex.loadlg.cc:1052:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mynum = atoi (loadlgtext); return LOAD_NUM; data/adonthell-0.3.8/src/tools/dlgedit/util.cc:76:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char canonical_path[PATH_MAX]; data/adonthell-0.3.8/src/win_background.cc:154:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[255]; data/adonthell-0.3.8/src/win_border.cc:169:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[255];char tmp[255]; data/adonthell-0.3.8/src/win_border.cc:169:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[255];char tmp[255]; data/adonthell-0.3.8/src/win_font.cc:76:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!f.open (path)) data/adonthell-0.3.8/src/win_scrollbar.cc:167:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[255];char tmp[255]; data/adonthell-0.3.8/src/win_scrollbar.cc:167:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[255];char tmp[255]; data/adonthell-0.3.8/src/yarg.h:42:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char schieberegister[16];// Here the random numbers are created data/adonthell-0.3.8/src/dialog.cc:287:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). begin = newstr.length () - strlen (start); data/adonthell-0.3.8/src/dialog.cc:303:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (str, start+3, end); data/adonthell-0.3.8/src/dialog.cc:310:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). begin = newstr.length () - strlen(start); data/adonthell-0.3.8/src/dialog.cc:311:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp = new char[newstr.length () - end + strlen (mid)]; data/adonthell-0.3.8/src/dialog.cc:312:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (tmp, newstr.c_str (), begin); data/adonthell-0.3.8/src/dialog.cc:326:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newstr[newstr.length () - strlen (start)] = ' '; data/adonthell-0.3.8/src/dialog.cc:344:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (str, start+1, end-1); data/adonthell-0.3.8/src/dialog.cc:364:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). begin = len - strlen (start); data/adonthell-0.3.8/src/dialog.cc:365:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp = new char[(repl.length()) + len - strlen(str)]; data/adonthell-0.3.8/src/dialog.cc:368:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (tmp, newstr.c_str (), begin); data/adonthell-0.3.8/src/dialog.cc:392:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (result, string+b, e); data/adonthell-0.3.8/src/game.cc:67:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (appDataDir != NULL && strlen (appDataDir) > 0) data/adonthell-0.3.8/src/game.cc:82:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdgDir != NULL && strlen (xdgDir) > 0) data/adonthell-0.3.8/src/gettext.h:214:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgctxt_len = strlen (msgctxt) + 1; data/adonthell-0.3.8/src/gettext.h:215:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/adonthell-0.3.8/src/gettext.h:260:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgctxt_len = strlen (msgctxt) + 1; data/adonthell-0.3.8/src/gettext.h:261:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/adonthell-0.3.8/src/lex.prefs.cc:677:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( prefsin )) != EOF && c != '\n'; ++n ) \ data/adonthell-0.3.8/src/lex.prefs.cc:1646:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return prefs_scan_bytes(yystr,strlen(yystr) ); data/adonthell-0.3.8/src/pnm.cc:85:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). SDL_RWwrite (file, s, sizeof (char), strlen (s)); data/adonthell-0.3.8/src/prefs.cc:380:21: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. sscanf (s.c_str (), "%u.%u.%u%15s", &major, &minor, µ, suffix); data/adonthell-0.3.8/src/prefs.cc:390:5: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. sscanf (VERSION, "%u.%u.%u%15s", &MAJOR, &MINOR, &MICRO, SUFFIX); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:413:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char* te = tb + strlen(tb); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:697:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(name) + 1 > (bsz - (r - buff))) return 0; data/adonthell-0.3.8/src/py_adonthell_wrap.cc:718:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lname = (name ? strlen(name) : 0); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:723:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r,name,lname+1); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:891:91: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} data/adonthell-0.3.8/src/py_adonthell_wrap.cc:3390:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; data/adonthell-0.3.8/src/py_adonthell_wrap.cc:3859:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:33626:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t size = strlen(name)+1; data/adonthell-0.3.8/src/py_adonthell_wrap.cc:33629:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(gv->name,name,size); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:33693:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(const_table[j].name)) == 0) { data/adonthell-0.3.8/src/py_adonthell_wrap.cc:33704:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; data/adonthell-0.3.8/src/py_adonthell_wrap.cc:33708:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, methods[i].ml_doc, ldoc); data/adonthell-0.3.8/src/py_adonthell_wrap.cc:33710:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(buff, "swig_ptr: ", 10); data/adonthell-0.3.8/src/tools/dlgedit/cfg_io.cc:47:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (appDataDir != NULL && strlen (appDataDir) > 0) data/adonthell-0.3.8/src/tools/dlgedit/cfg_io.cc:54:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdgDir != NULL && strlen (xdgDir) > 0) data/adonthell-0.3.8/src/tools/dlgedit/lex.loadcfg.cc:639:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( loadcfgin )) != EOF && c != '\n'; ++n ) \ data/adonthell-0.3.8/src/tools/dlgedit/lex.loadcfg.cc:1578:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return loadcfg_scan_bytes(yystr,strlen(yystr) ); data/adonthell-0.3.8/src/tools/dlgedit/lex.loadlg.cc:707:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( loadlgin )) != EOF && c != '\n'; ++n ) \ data/adonthell-0.3.8/src/tools/dlgedit/lex.loadlg.cc:1781:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return loadlg_scan_bytes(yystr,strlen(yystr) ); ANALYSIS SUMMARY: Hits = 199 Lines analyzed = 84019 in approximately 2.02 seconds (41605 lines/second) Physical Source Lines of Code (SLOC) = 54299 Hits@level = [0] 50 [1] 41 [2] 95 [3] 17 [4] 46 [5] 0 Hits@level+ = [0+] 249 [1+] 199 [2+] 158 [3+] 63 [4+] 46 [5+] 0 Hits/KSLOC@level+ = [0+] 4.58572 [1+] 3.66489 [2+] 2.90981 [3+] 1.16024 [4+] 0.847161 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.