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/gtkatlantic-0.6.3/src/theme.c Examining data/gtkatlantic-0.6.3/src/global.h Examining data/gtkatlantic-0.6.3/src/xmlparse.h Examining data/gtkatlantic-0.6.3/src/eng_list.h Examining data/gtkatlantic-0.6.3/src/game.h Examining data/gtkatlantic-0.6.3/src/eng_frame.h Examining data/gtkatlantic-0.6.3/src/parser.h Examining data/gtkatlantic-0.6.3/src/eng_main.c Examining data/gtkatlantic-0.6.3/src/engine.h Examining data/gtkatlantic-0.6.3/src/main.c Examining data/gtkatlantic-0.6.3/src/xmlparse.c Examining data/gtkatlantic-0.6.3/src/display.c Examining data/gtkatlantic-0.6.3/src/game.c Examining data/gtkatlantic-0.6.3/src/callback.h Examining data/gtkatlantic-0.6.3/src/trade.h Examining data/gtkatlantic-0.6.3/src/interface.h Examining data/gtkatlantic-0.6.3/src/load.c Examining data/gtkatlantic-0.6.3/src/eng_list.c Examining data/gtkatlantic-0.6.3/src/eng_main.h Examining data/gtkatlantic-0.6.3/src/eng_frame.c Examining data/gtkatlantic-0.6.3/src/theme.h Examining data/gtkatlantic-0.6.3/src/callback.c Examining data/gtkatlantic-0.6.3/src/trade.c Examining data/gtkatlantic-0.6.3/src/client.h Examining data/gtkatlantic-0.6.3/src/load.h Examining data/gtkatlantic-0.6.3/src/parser.c Examining data/gtkatlantic-0.6.3/src/client.c Examining data/gtkatlantic-0.6.3/src/interface.c Examining data/gtkatlantic-0.6.3/src/display.h FINAL RESULTS: data/gtkatlantic-0.6.3/src/game.c:59: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. path = g_strconcat(getenv("HOME"), "/", ".", PACKAGE, NULL); data/gtkatlantic-0.6.3/src/callback.c:176:9: [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 = fopen(filename, "wt"); data/gtkatlantic-0.6.3/src/callback.c:193:3: [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). atoi( gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(global->ConfigWin), "config_customserver_port") ) ) ), data/gtkatlantic-0.6.3/src/callback.c:230:10: [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). money = atoi(gtk_entry_get_text(GTK_ENTRY(entry))); data/gtkatlantic-0.6.3/src/callback.c:414:4: [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). atoi(gtk_entry_get_text(GTK_ENTRY(port)))); data/gtkatlantic-0.6.3/src/callback.c:482:9: [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 = fopen(filename, "rt"); data/gtkatlantic-0.6.3/src/callback.c:507: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). port = atoi(buf); data/gtkatlantic-0.6.3/src/callback.c:628:12: [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). money = atoi( gtk_entry_get_text( g_object_get_data( G_OBJECT(button), "amount_money" ) ) ); data/gtkatlantic-0.6.3/src/callback.c:637:13: [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). cardid = atoi( gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT(g_object_get_data( G_OBJECT(button), "name_card" ) )) ); data/gtkatlantic-0.6.3/src/callback.c:1027:14: [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). theme_load( atoi( g_object_get_data(G_OBJECT(global->ThemeWin), "theme_preview_selected") ) ); data/gtkatlantic-0.6.3/src/client.c:119:2: [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 port_str[6]; data/gtkatlantic-0.6.3/src/client.c:121:2: [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 ip_str[INET6_ADDRSTRLEN]; data/gtkatlantic-0.6.3/src/eng_frame.c:506: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(out, in, rwidth * 4); data/gtkatlantic-0.6.3/src/eng_main.c:469: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(o->bgcolor, &rgb, 3); data/gtkatlantic-0.6.3/src/game.c:61:2: [2] (buffer) TCHAR: 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. TCHAR home[MAX_PATH]; data/gtkatlantic-0.6.3/src/game.c:281:30: [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(currentgame->command[i].open && currentgame->command[i].command) data/gtkatlantic-0.6.3/src/game.c:379:31: [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(!currentgame->command[i].open) { data/gtkatlantic-0.6.3/src/game.c:397:30: [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(currentgame->command[i].open) { data/gtkatlantic-0.6.3/src/game.c:689:9: [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 = fopen(filename, "wt"); data/gtkatlantic-0.6.3/src/game.c:787:30: [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(! currentgame->trade[i].open) { data/gtkatlantic-0.6.3/src/game.c:804:30: [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(! currentgame->trade[i].open) continue; data/gtkatlantic-0.6.3/src/global.h:211:11: [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). gboolean open; data/gtkatlantic-0.6.3/src/global.h:236:11: [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). gboolean open; data/gtkatlantic-0.6.3/src/global.h:378:11: [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). gboolean open; data/gtkatlantic-0.6.3/src/load.c:46:9: [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 = fopen(filename, "r"); data/gtkatlantic-0.6.3/src/load.c:66:38: [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). config->metaserver_autoconnect = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:72:44: [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). config->metaserver_sendclientversion = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:86:29: [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). config->getgames_port = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:92: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). config->getgames_autoconnect = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:109:42: [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). config->game_token_animation_speed = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:115:39: [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). config->game_token_transparency = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:169:14: [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). ident = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:173:38: [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). data->pngfile_board_x[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:177:38: [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). data->pngfile_board_y[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:181:42: [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). data->pngfile_board_width[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:185:42: [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). data->pngfile_board_height[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:204:14: [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). ident = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:211:38: [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). data->pngfile_token_x[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:215:38: [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). data->pngfile_token_y[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:219:42: [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). data->pngfile_token_width[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:223:42: [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). data->pngfile_token_height[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:242:14: [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). ident = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:246:37: [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). data->pngfile_card_x[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:250:37: [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). data->pngfile_card_y[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:254:41: [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). data->pngfile_card_width[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:258:41: [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). data->pngfile_card_height[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:277:14: [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). ident = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:281:37: [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). data->pngfile_star_x[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:285:37: [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). data->pngfile_star_y[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:289:41: [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). data->pngfile_star_width[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:293:41: [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). data->pngfile_star_height[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:312:14: [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). ident = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:316:39: [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). data->pngfile_star_m_x[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:320:39: [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). data->pngfile_star_m_y[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:324:43: [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). data->pngfile_star_m_width[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:328:43: [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). data->pngfile_star_m_height[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:347:14: [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). ident = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:351:40: [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). data->pngfile_command_x[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:355:40: [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). data->pngfile_command_y[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:359:44: [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). data->pngfile_command_width[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:363:44: [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). data->pngfile_command_height[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:382:14: [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). ident = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:386:44: [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). data->pngfile_horiz_house_x[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:390:44: [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). data->pngfile_horiz_house_y[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:394:48: [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). data->pngfile_horiz_house_width[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:398:48: [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). data->pngfile_horiz_house_height[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:417:14: [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). ident = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:421:43: [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). data->pngfile_vert_house_x[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:425:43: [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). data->pngfile_vert_house_y[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:429:47: [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). data->pngfile_vert_house_width[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:433:47: [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). data->pngfile_vert_house_height[ident] = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:451:24: [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). data->board_width = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:455:25: [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). data->board_height = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:459:27: [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). data->board_center_x = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:463:27: [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). data->board_center_y = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:467:31: [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). data->board_center_width = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:471:32: [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). data->board_center_height = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:481:14: [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). ident = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:485:30: [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). data->estate[ident].x = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:489:30: [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). data->estate[ident].y = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:493:41: [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). data->estate[ident].buffer_board = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:497:60: [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). data->estate[ident].x1token = data->estate[ident].x + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:501:60: [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). data->estate[ident].y1token = data->estate[ident].y + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:505:60: [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). data->estate[ident].x2token = data->estate[ident].x + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:509:60: [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). data->estate[ident].y2token = data->estate[ident].y + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:513:59: [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). data->estate[ident].x1jail = data->estate[ident].x + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:517:59: [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). data->estate[ident].y1jail = data->estate[ident].y + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:521:59: [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). data->estate[ident].x2jail = data->estate[ident].x + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:525:59: [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). data->estate[ident].y2jail = data->estate[ident].y + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:529:58: [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). data->estate[ident].xstar = data->estate[ident].x + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:533:58: [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). data->estate[ident].ystar = data->estate[ident].y + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:537:59: [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). data->estate[ident].xhouse = data->estate[ident].x + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:541:59: [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). data->estate[ident].yhouse = data->estate[ident].y + atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:564:35: [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). data->playerlist_token_width = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:568: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). data->playerlist_token_height = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:578:35: [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). data->playerlist_cards_width = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:582: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). data->playerlist_cards_height = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:586:14: [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). xoffset = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:590:14: [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). yoffset = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:599:47: [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). else data->playerlist_cards_alphaunowned = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:608:45: [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). else data->playerlist_cards_alphaowned = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:617:48: [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). else data->playerlist_cards_alphamortgage = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:637:14: [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). ident = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:641:39: [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). data->playerlist_card[ident].x = atoi( (gchar*)tmp ) + xoffset; data/gtkatlantic-0.6.3/src/load.c:645:39: [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). data->playerlist_card[ident].y = atoi( (gchar*)tmp ) + yoffset; data/gtkatlantic-0.6.3/src/load.c:649:39: [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). data->playerlist_card[ident].z = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:653:49: [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). data->playerlist_card[ident].buffer_card = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/load.c:657:46: [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). data->playerlist_card[ident].estateid = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/theme.c:52:22: [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(!data->theme[i].open) continue; data/gtkatlantic-0.6.3/src/theme.c:106:22: [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(!data->theme[i].open) { data/gtkatlantic-0.6.3/src/theme.c:118:24: [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(!data->theme[slot].open) return; data/gtkatlantic-0.6.3/src/theme.c:155:9: [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 = fopen(path2, "r"); data/gtkatlantic-0.6.3/src/theme.c:397:23: [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 (!data->theme[i].open) { data/gtkatlantic-0.6.3/src/theme.c:428:28: [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(! data->theme[themeid].open) return; data/gtkatlantic-0.6.3/src/theme.c:482:28: [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 (!data->theme[themeid].open) return NULL; data/gtkatlantic-0.6.3/src/trade.c:76:36: [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(!currentgame->trade[tradeslot].open) return; data/gtkatlantic-0.6.3/src/trade.c:220:36: [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(!currentgame->trade[tradeslot].open) return; data/gtkatlantic-0.6.3/src/xmlparse.c:214:25: [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). global->my_playerid = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/xmlparse.c:239:12: [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). gameid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:294:18: [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). game->master = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:322:12: [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). gameid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:395:7: [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). id = atoi( (gchar*)tmp ); data/gtkatlantic-0.6.3/src/xmlparse.c:425:39: [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). t = currentgame->estate[id].owner = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:433:43: [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). u = currentgame->estate[id].mortgaged = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:503:31: [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(! currentgame->trade[i].open) continue; data/gtkatlantic-0.6.3/src/xmlparse.c:515:40: [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). t = currentgame->estate[id].houses = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:548:40: [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). currentgame->estate[id].houseprice = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:554:44: [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). currentgame->estate[id].sellhouseprice = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:560:43: [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). currentgame->estate[id].mortgageprice = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:566:45: [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). currentgame->estate[id].unmortgageprice = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:572:35: [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). currentgame->estate[id].group = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:578:42: [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). currentgame->estate[id].can_be_owned = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:584:49: [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). currentgame->estate[id].can_toggle_mortgage = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:590:44: [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). currentgame->estate[id].can_buy_houses = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:596:45: [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). currentgame->estate[id].can_sell_houses = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:602:35: [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). currentgame->estate[id].money = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:608:35: [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). currentgame->estate[id].price = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:618:38: [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). currentgame->estate[id].rent[i] = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:643:7: [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). id = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:658:13: [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). p->game = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:708:32: [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(! currentgame->trade[i].open) continue; data/gtkatlantic-0.6.3/src/xmlparse.c:716:32: [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(! currentgame->trade[i].open) continue; data/gtkatlantic-0.6.3/src/xmlparse.c:725:14: [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). p->money = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:745:20: [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). p->location_to = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:750:20: [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). p->directmove = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:761:21: [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). gboolean jailed = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:776:17: [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). p->bankrupt = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:790:16: [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). p->hasturn = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:831:17: [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). p->can_roll = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:837:22: [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). p->can_buyestate = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:843:18: [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). p->turnorder = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:849:18: [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). p->spectator = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:882:14: [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). auctionid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:888:22: [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). guint32 estateid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:903:13: [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). highbid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:910:24: [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). guint32 highbidder = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:941:20: [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). guint32 status = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:987:7: [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). if( atoi((gchar*)tmp) ) display_clear_text(); data/gtkatlantic-0.6.3/src/xmlparse.c:993:7: [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). if( atoi((gchar*)tmp) ) display_clear_buttons(); data/gtkatlantic-0.6.3/src/xmlparse.c:999:14: [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). estateid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1020:13: [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). enable = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1049:19: [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). game = game_find(atoi((gchar*)tmp)); data/gtkatlantic-0.6.3/src/xmlparse.c:1060:7: [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). id = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1118:61: [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). gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), (atoi((gchar*)tmp) != 0)); data/gtkatlantic-0.6.3/src/xmlparse.c:1152:13: [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). tradeid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1180:34: [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). trade_update_revision(tradeid, atoi((gchar*)tmp)); data/gtkatlantic-0.6.3/src/xmlparse.c:1191:16: [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). playerid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1197:14: [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). accept = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1209:14: [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). cardid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1215:20: [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). targetplayer = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1227:16: [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). estateid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1233:20: [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). targetplayer = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1245:18: [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). playerfrom = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1251:16: [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). playerto = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1257:13: [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). money = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1285:11: [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). cardid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1292:10: [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). owner = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1333:30: [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(! currentgame->trade[i].open) continue; data/gtkatlantic-0.6.3/src/xmlparse.c:1356:13: [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). groupid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1380:7: [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). id = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1409:7: [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). id = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1438:14: [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). int turn = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1471:17: [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). canbejoined = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1477:18: [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). canbewatched = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1565:7: [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). id = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1636:15: [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). serverid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1655:13: [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). users = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1673:13: [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). port = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1716:15: [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). gameid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1738:18: [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). int turn = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1771:21: [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). canbejoined = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1777:22: [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). canbewatched = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1875:15: [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). gameid = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1903: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). id = atoi((gchar*)tmp); data/gtkatlantic-0.6.3/src/callback.c:492:8: [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). len = strlen(buf); data/gtkatlantic-0.6.3/src/callback.c:502:8: [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). len = strlen(buf); data/gtkatlantic-0.6.3/src/callback.c:512:8: [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). len = strlen(buf); data/gtkatlantic-0.6.3/src/client.c:369:79: [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). fprintf(stdout, "\033[32mID(%.2d): RECV(%.4d): [%s]\033[m\n", c->id, (int)strlen(beg), beg); data/gtkatlantic-0.6.3/src/client.c:416:8: [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). len = strlen(data); data/gtkatlantic-0.6.3/src/display.c:150:55: [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). gtk_text_buffer_insert(textbuff, &textiter, message, strlen(message)); data/gtkatlantic-0.6.3/src/game.c:343:6: [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) <= 0) return NULL; data/gtkatlantic-0.6.3/src/game.c:399:59: [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(! strncmp(command, currentgame->command[i].command, strlen(command)) ) data/gtkatlantic-0.6.3/src/game.c:427:10: [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). while( strlen(msg) ) { data/gtkatlantic-0.6.3/src/game.c:433: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(msg) == 0 || !strcmp(msg, my_player->name)) { data/gtkatlantic-0.6.3/src/game.c:445:10: [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). while( strlen(msg) ) { data/gtkatlantic-0.6.3/src/game.c:451: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(msg) == 0 || !strcmp(msg, my_player->name)) { data/gtkatlantic-0.6.3/src/game.c:464:10: [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). while( strlen(msg) ) { data/gtkatlantic-0.6.3/src/game.c:470: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(msg) == 0 || !strcmp(msg, my_player->name)) { data/gtkatlantic-0.6.3/src/game.c:498:10: [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). while( strlen(msg) ) { data/gtkatlantic-0.6.3/src/game.c:504:6: [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(msg) == 0) { data/gtkatlantic-0.6.3/src/game.c:511: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). text_insert_chat(tmp, strlen(tmp) ); data/gtkatlantic-0.6.3/src/game.c:519: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). text_insert_chat(tmp, strlen(tmp)); data/gtkatlantic-0.6.3/src/game.c:528:10: [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). while( strlen(msg) ) { data/gtkatlantic-0.6.3/src/game.c:534: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(msg) != 0 && strcmp(player_from_id(global->my_playerid)->name, msg)) { data/gtkatlantic-0.6.3/src/game.c:550:9: [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). len = strlen(tmp); data/gtkatlantic-0.6.3/src/game.c:559: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). text_insert_chat(tmp, strlen(tmp) ); data/gtkatlantic-0.6.3/src/game.c:576: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). text_insert_chat(tmp, strlen(tmp) ); data/gtkatlantic-0.6.3/src/game.c:583:10: [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). while( strlen(msg) ) { data/gtkatlantic-0.6.3/src/game.c:589:6: [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(msg) != 0) { data/gtkatlantic-0.6.3/src/parser.c:39:8: [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). len = strlen(str); data/gtkatlantic-0.6.3/src/parser.c:60:8: [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). len = strlen(str); data/gtkatlantic-0.6.3/src/parser.c:63:13: [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). len_key2 = strlen(key2); data/gtkatlantic-0.6.3/src/xmlparse.c:123: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). doc = xmlParseMemory(buffer, strlen(buffer)); data/gtkatlantic-0.6.3/src/xmlparse.c:157: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). doc = xmlParseMemory(buffer, strlen(buffer)); data/gtkatlantic-0.6.3/src/xmlparse.c:355: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). text_insert_chat(text, strlen(text)); data/gtkatlantic-0.6.3/src/xmlparse.c:1007: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((gchar*)tmp) > 0) display_text((gchar*)tmp); data/gtkatlantic-0.6.3/src/xmlparse.c:1591: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). doc = xmlParseMemory(buffer, strlen(buffer) ); ANALYSIS SUMMARY: Hits = 227 Lines analyzed = 11689 in approximately 0.34 seconds (34566 lines/second) Physical Source Lines of Code (SLOC) = 7789 Hits@level = [0] 66 [1] 33 [2] 193 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 293 [1+] 227 [2+] 194 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 37.6172 [1+] 29.1437 [2+] 24.9069 [3+] 0.128386 [4+] 0 [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.