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/crossfire-client-1.74.0/gtk-v2/src/spells.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/opengl.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/main.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/inventory.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/keys.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/sound.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/image.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/stats.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/skills.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/gtk2proto.h
Examining data/crossfire-client-1.74.0/gtk-v2/src/info.h
Examining data/crossfire-client-1.74.0/gtk-v2/src/map.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/config.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/image.h
Examining data/crossfire-client-1.74.0/gtk-v2/src/metaserver.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/menubar.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/magicmap.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/info.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/png.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/create_char.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/pickup.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/sdl.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/account.c
Examining data/crossfire-client-1.74.0/gtk-v2/src/main.h
Examining data/crossfire-client-1.74.0/common/item.c
Examining data/crossfire-client-1.74.0/common/p_cmd.c
Examining data/crossfire-client-1.74.0/common/script.c
Examining data/crossfire-client-1.74.0/common/metaserver.c
Examining data/crossfire-client-1.74.0/common/mapdata.h
Examining data/crossfire-client-1.74.0/common/player.c
Examining data/crossfire-client-1.74.0/common/image.c
Examining data/crossfire-client-1.74.0/common/init.c
Examining data/crossfire-client-1.74.0/common/client.c
Examining data/crossfire-client-1.74.0/common/chelp.h
Examining data/crossfire-client-1.74.0/common/version.h
Examining data/crossfire-client-1.74.0/common/commands.c
Examining data/crossfire-client-1.74.0/common/proto.h
Examining data/crossfire-client-1.74.0/common/shared/newclient.h
Examining data/crossfire-client-1.74.0/common/metaserver.h
Examining data/crossfire-client-1.74.0/common/mapdata.c
Examining data/crossfire-client-1.74.0/common/item-types.h
Examining data/crossfire-client-1.74.0/common/script.h
Examining data/crossfire-client-1.74.0/common/p_cmd.h
Examining data/crossfire-client-1.74.0/common/item.h
Examining data/crossfire-client-1.74.0/common/misc.c
Examining data/crossfire-client-1.74.0/common/test-metaserver.c
Examining data/crossfire-client-1.74.0/common/client.h
Examining data/crossfire-client-1.74.0/common/script_lua.c
Examining data/crossfire-client-1.74.0/common/newsocket.c
Examining data/crossfire-client-1.74.0/common/external.h
Examining data/crossfire-client-1.74.0/sound-src/common.h
Examining data/crossfire-client-1.74.0/sound-src/cfsndserv.c
Examining data/crossfire-client-1.74.0/sound-src/main.c

FINAL RESULTS:

data/crossfire-client-1.74.0/common/image.c:111:13:  [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(fd_cache[last].name, filename);
data/crossfire-client-1.74.0/common/image.c:348:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(line, "%s %u %s", imagename, &checksum, filename) == 3) {
data/crossfire-client-1.74.0/common/image.c:590:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(filename, R_OK | W_OK | X_OK) == -1) {
data/crossfire-client-1.74.0/common/image.c:607:9:  [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(basename, facetoname[face]);
data/crossfire-client-1.74.0/common/item.c:486: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(op->flags, apply_string[op->apply_type]);
data/crossfire-client-1.74.0/common/item.c:567:13:  [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(op->d_name, op->s_name);
data/crossfire-client-1.74.0/common/misc.c:77: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(buffer, replace);
data/crossfire-client-1.74.0/common/misc.c:123:5:  [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.
    vsnprintf(buf, sizeof(buf), format, ap);
data/crossfire-client-1.74.0/common/newsocket.c:256:15:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sl.len += vsprintf((char*)sl.buf + sl.len, str, args);
data/crossfire-client-1.74.0/common/player.c:193:17:  [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(last_command, command);
data/crossfire-client-1.74.0/common/script.c:300:13:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        r = execvp(argv[0], argv);
data/crossfire-client-1.74.0/common/script.c:1259:17:  [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.
                snprintf(buf, sizeof(buf), "request stat xp %d %" G_GINT64_FORMAT, cpl.stats.level, cpl.stats.exp);
data/crossfire-client-1.74.0/common/script.c:1262:21:  [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.
                    snprintf(buf, sizeof(buf), " %d %" G_GINT64_FORMAT, cpl.stats.skill_level[s], cpl.stats.skill_exp[s]);
data/crossfire-client-1.74.0/gtk-v2/src/config.c:163:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(theme, R_OK) == -1) {
data/crossfire-client-1.74.0/gtk-v2/src/info.c:931: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(stamp, message);
data/crossfire-client-1.74.0/gtk-v2/src/info.c:1279:17:  [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(info_buffer[empty].message, message);
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:875:13:  [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(cpl.input_text, kb->command);
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1234:5:  [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(bind_buf, params);
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1800:9:  [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(cpl.input_text, entry_text);
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1803:9:  [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(cpl.input_text, entry_text);
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:579:9:  [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(last_name, cpl.title);
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:585:9:  [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.
        snprintf(buff, sizeof(buff), "Experience: %5" G_GINT64_FORMAT,
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:684:9:  [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(last_range, cpl.range);
data/crossfire-client-1.74.0/common/mapdata.c:876:17:  [3] (random) g_random_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        phase = g_random_int() % num_animations;
data/crossfire-client-1.74.0/common/mapdata.c:878:35:  [3] (random) g_random_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        speed_left = anim_speed % g_random_int();
data/crossfire-client-1.74.0/common/script.c:432:10:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    if (!CreateProcess(NULL, name, NULL, NULL, TRUE, CREATE_NEW_PROCESS_GROUP, NULL, NULL, &siStartupInfo, &piProcInfo)) {
data/crossfire-client-1.74.0/common/script.c:432:10:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    if (!CreateProcess(NULL, name, NULL, NULL, TRUE, CREATE_NEW_PROCESS_GROUP, NULL, NULL, &siStartupInfo, &piProcInfo)) {
data/crossfire-client-1.74.0/sound-src/main.c:210:20:  [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 ((flag = getopt(argc, argv, "hv")) != -1) {
data/crossfire-client-1.74.0/common/client.c:48:1:  [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 VERSION_INFO[MAX_BUF];
data/crossfire-client-1.74.0/common/client.c:50:1:  [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 *skill_names[MAX_SKILL];
data/crossfire-client-1.74.0/common/client.c:70:7:  [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.
const char *const resists_name[NUM_RESISTS] = {
data/crossfire-client-1.74.0/common/client.c:269:27:  [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.
void client_connect(const char hostname[static 1]) {
data/crossfire-client-1.74.0/common/client.c:348: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).
        face_info.faceset = atoi(face_info.want_faceset);
data/crossfire-client-1.74.0/common/client.c:452:9:  [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[MAX_BUF];
data/crossfire-client-1.74.0/common/client.h:70:8:  [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.
extern char VERSION_INFO[256];
data/crossfire-client-1.74.0/common/client.h:244:14:  [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.
extern const char *const config_names[CONFIG_NUMS]; /**< See common/init.c -
data/crossfire-client-1.74.0/common/client.h: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 name[256];                     /**< One length byte plus data       */
data/crossfire-client-1.74.0/common/client.h:295: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 message[10000];                /**< This is huge, the packets can't
data/crossfire-client-1.74.0/common/client.h:325: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 requirements[256];             /**< Spellmon 2 data. One length byte
data/crossfire-client-1.74.0/common/client.h:340: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        last_command[MAX_BUF];  /**< Last command entered */
data/crossfire-client-1.74.0/common/client.h:341: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        input_text[MAX_BUF];    /**< keys typed (for long commands) */
data/crossfire-client-1.74.0/common/client.h:345: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        spells[255][40];        /**< List of all the spells the */
data/crossfire-client-1.74.0/common/client.h:349: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        title[MAX_BUF];         /**< Title of character */
data/crossfire-client-1.74.0/common/client.h:350: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        range[MAX_BUF];         /**< Range attack chosen */
data/crossfire-client-1.74.0/common/client.h:426:8:  [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.
extern char *skill_names[MAX_SKILL];
data/crossfire-client-1.74.0/common/client.h:445:14:  [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.
extern const char *const resists_name[NUM_RESISTS];
data/crossfire-client-1.74.0/common/commands.c:107:14:  [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 *const short_stat_name[NUM_STATS] = {
data/crossfire-client-1.74.0/common/commands.c:314: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).
            stat_points = atoi((char *)data + olen);
data/crossfire-client-1.74.0/common/commands.c:752: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).
        val = atoi(cp);
data/crossfire-client-1.74.0/common/commands.c:953:13:  [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 *cp, tmpbuf[MAX_BUF];
data/crossfire-client-1.74.0/common/commands.c:966: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).
            x = atoi(param);
data/crossfire-client-1.74.0/common/commands.c:969: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).
                    y = atoi(cp+1);
data/crossfire-client-1.74.0/common/commands.c:1035: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).
                spellmon_level = atoi(param);
data/crossfire-client-1.74.0/common/commands.c:1038: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).
            use_config[CONFIG_CACHE] = atoi(param);
data/crossfire-client-1.74.0/common/commands.c:1058:26:  [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 method = atoi(param);
data/crossfire-client-1.74.0/common/commands.c:1215: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).
    int color = atoi(data);
data/crossfire-client-1.74.0/common/commands.c:1545: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).
    guint8 flags = atoi(data);
data/crossfire-client-1.74.0/common/commands.c:1617: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 name[MAX_BUF];
data/crossfire-client-1.74.0/common/commands.c:1628: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(name, (const char*)data+i, nlen);
data/crossfire-client-1.74.0/common/commands.c:1648: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 (op->open) {
data/crossfire-client-1.74.0/common/commands.c:1666: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 name[MAX_BUF];
data/crossfire-client-1.74.0/common/commands.c:1688: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(name, (char*)data+pos, nlen);
data/crossfire-client-1.74.0/common/commands.c:1717: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 name[MAX_BUF];
data/crossfire-client-1.74.0/common/commands.c:1764: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(name, (char*)data+pos, nlen);
data/crossfire-client-1.74.0/common/commands.c:1830: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).
    tag = atoi((const char*)data);
data/crossfire-client-1.74.0/common/commands.c:1842:20:  [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 void rstrip(char buf[static 1], size_t len) {
data/crossfire-client-1.74.0/common/commands.c:2187: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).
    dx = atoi(data);
data/crossfire-client-1.74.0/common/commands.c:2194: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).
    dy = atoi(buf);
data/crossfire-client-1.74.0/common/commands.c:2350: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(cpl.magicmap, cp, cpl.mmapx*cpl.mmapy);
data/crossfire-client-1.74.0/common/commands.c:2446: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 name[MAX_BUF], class[MAX_BUF], race[MAX_BUF],
data/crossfire-client-1.74.0/common/image.c: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    name[MAX_BUF];
data/crossfire-client-1.74.0/common/image.c:73: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).
        offset = atoi(cp + 1);
data/crossfire-client-1.74.0/common/image.c:81: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).
        length = atoi(lp + 1);
data/crossfire-client-1.74.0/common/image.c:101:38:  [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 ((fd_cache[last].fd = open(filename, O_RDONLY | O_BINARY)) == -1)
data/crossfire-client-1.74.0/common/image.c:103:38:  [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 ((fd_cache[last].fd = open(filename, O_RDONLY)) == -1)
data/crossfire-client-1.74.0/common/image.c:124:19:  [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 ((fd = open(filename, O_RDONLY | O_BINARY)) == -1) {
data/crossfire-client-1.74.0/common/image.c:131:19:  [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 ((fd = open(filename, O_RDONLY)) == -1) {
data/crossfire-client-1.74.0/common/image.c:174:8:  [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 char *facetoname[MAXPIXMAPNUM];
data/crossfire-client-1.74.0/common/image.c:341: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 imagename[MAX_BUF], filename[MAX_BUF];
data/crossfire-client-1.74.0/common/image.c:361: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    bmaps[MAX_BUF], inbuf[MAX_BUF];
data/crossfire-client-1.74.0/common/image.c:376: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).
    if ((fp = fopen(bmaps, "r")) != NULL) {
data/crossfire-client-1.74.0/common/image.c:389: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).
    if ((fp = fopen(bmaps, "r")) != NULL) {
data/crossfire-client-1.74.0/common/image.c:407:1:  [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 facecachedir[MAX_BUF];
data/crossfire-client-1.74.0/common/image.c:434: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 filename[1024];
data/crossfire-client-1.74.0/common/image.c:572: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 filename[MAX_BUF], basename[MAX_BUF];
data/crossfire-client-1.74.0/common/image.c:573:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    FILE *tmpfile;
data/crossfire-client-1.74.0/common/image.c:621:20:  [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 ((tmpfile = fopen(filename, "wb")) == NULL)
data/crossfire-client-1.74.0/common/image.c:623:20:  [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 ((tmpfile = fopen(filename, "w")) == NULL)
data/crossfire-client-1.74.0/common/image.c:631:32:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        fwrite(buf, buflen, 1, tmpfile);
data/crossfire-client-1.74.0/common/image.c:632:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        fclose(tmpfile);
data/crossfire-client-1.74.0/common/image.c:651:24:  [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 ((tmpfile = fopen(filename, "a")) == NULL) {
data/crossfire-client-1.74.0/common/image.c:655:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            fprintf(tmpfile, "%s %u %c%c/%s.%d\n",
data/crossfire-client-1.74.0/common/image.c:658:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            fclose(tmpfile);
data/crossfire-client-1.74.0/common/image.c:707: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 *cp, *lp, *cps[7], buf[MAX_BUF];
data/crossfire-client-1.74.0/common/image.c:717:28:  [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).
    face_info.num_images = atoi(lp);
data/crossfire-client-1.74.0/common/image.c:746: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).
            onset = atoi(cps[0]);
data/crossfire-client-1.74.0/common/image.c:753:50:  [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).
            face_info.facesets[onset].fallback = atoi(cps[3]);
data/crossfire-client-1.74.0/common/image.c:766: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).
    if (face_info.want_faceset && atoi(face_info.want_faceset) == 0) {
data/crossfire-client-1.74.0/common/image.c:820: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).
    stop = atoi(lp);
data/crossfire-client-1.74.0/common/init.c:30:7:  [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.
const char *const config_names[CONFIG_NUMS] = {
data/crossfire-client-1.74.0/common/init.c:47:26:  [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).
    csocket.cs_version = atoi(data);
data/crossfire-client-1.74.0/common/init.c:59:26:  [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).
    csocket.sc_version = atoi(cp);
data/crossfire-client-1.74.0/common/item-types.h:8:14:  [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 * const item_types[256][64] = {
data/crossfire-client-1.74.0/common/item.c:199:12:  [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 char buf[MAX_BUF];
data/crossfire-client-1.74.0/common/item.c:482:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(op->flags, " *");
data/crossfire-client-1.74.0/common/item.c:488:13:  [2] (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). Risk is low because the
  source is a constant string.
            strcat(op->flags, " (undefined)");
data/crossfire-client-1.74.0/common/item.c:491: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 (op->open) {
data/crossfire-client-1.74.0/common/item.c:492:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(op->flags, " (open)");
data/crossfire-client-1.74.0/common/item.c:495:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(op->flags, " (damned)");
data/crossfire-client-1.74.0/common/item.c:498:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(op->flags, " (cursed)");
data/crossfire-client-1.74.0/common/item.c:501:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(op->flags, " (blessed)");
data/crossfire-client-1.74.0/common/item.c:504:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(op->flags, " (magic)");
data/crossfire-client-1.74.0/common/item.c:507:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(op->flags, " (unpaid)");
data/crossfire-client-1.74.0/common/item.c:513: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).
    op->was_open = op->open;
data/crossfire-client-1.74.0/common/item.c:688: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[MAX_BUF];
data/crossfire-client-1.74.0/common/item.c:689: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 buf2[MAX_BUF];
data/crossfire-client-1.74.0/common/item.h:55: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 d_name[NAME_LEN];	/* item's full name w/o status information */
data/crossfire-client-1.74.0/common/item.h:56: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_name[NAME_LEN];	/* item's singular name as sent to us */
data/crossfire-client-1.74.0/common/item.h:57: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 p_name[NAME_LEN];	/* item's plural name as sent to us */
data/crossfire-client-1.74.0/common/item.h:58: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 flags[NAME_LEN];	/* item's status information */
data/crossfire-client-1.74.0/common/item.h:74: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).
    guint16 open:1;		/* container is open */
data/crossfire-client-1.74.0/common/mapdata.c:1285: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(mapdata_cell(dx, dst_y), mapdata_cell(sx, src_y), len_y*sizeof(struct MapCell));
data/crossfire-client-1.74.0/common/mapdata.c:1292: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(mapdata_cell(dx, dst_y), mapdata_cell(sx, src_y), len_y*sizeof(struct MapCell));
data/crossfire-client-1.74.0/common/metaserver.c:67: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(&(mem->memory[mem->size]), contents, realsize);
data/crossfire-client-1.74.0/common/metaserver.c:118:24:  [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 void parse_meta(char inbuf[static 1], ms_callback callback) {
data/crossfire-client-1.74.0/common/metaserver.c:147:13:  [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[MS_LARGE_BUF];
data/crossfire-client-1.74.0/common/metaserver.c:173: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).
                metaserver.port = atoi(eq);
data/crossfire-client-1.74.0/common/metaserver.c:189: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).
                metaserver.num_players = atoi(eq);
data/crossfire-client-1.74.0/common/metaserver.c:191: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).
                metaserver.in_bytes = atoi(eq);
data/crossfire-client-1.74.0/common/metaserver.c:193: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).
                metaserver.out_bytes = atoi(eq);
data/crossfire-client-1.74.0/common/metaserver.c:195: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).
                metaserver.uptime = atoi(eq);
data/crossfire-client-1.74.0/common/metaserver.c:197: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).
                metaserver.sc_version = atoi(eq);
data/crossfire-client-1.74.0/common/metaserver.c:199: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).
                metaserver.cs_version = atoi(eq);
data/crossfire-client-1.74.0/common/metaserver.c:206:53:  [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).
                metaserver.idle_time = time(NULL) - atoi(eq);
data/crossfire-client-1.74.0/common/metaserver.h:19: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    hostname[MS_LARGE_BUF];
data/crossfire-client-1.74.0/common/metaserver.h:21: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    html_comment[MS_LARGE_BUF];
data/crossfire-client-1.74.0/common/metaserver.h:22: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    text_comment[MS_LARGE_BUF]; /* all comments are text */
data/crossfire-client-1.74.0/common/metaserver.h:23: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    archbase[MS_SMALL_BUF];
data/crossfire-client-1.74.0/common/metaserver.h:24: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    mapbase[MS_SMALL_BUF];
data/crossfire-client-1.74.0/common/metaserver.h:25: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    codebase[MS_SMALL_BUF];
data/crossfire-client-1.74.0/common/metaserver.h:26: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    flags[MS_SMALL_BUF];
data/crossfire-client-1.74.0/common/metaserver.h:32: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    version[MS_SMALL_BUF];
data/crossfire-client-1.74.0/common/misc.c:115: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[20480];
data/crossfire-client-1.74.0/common/newsocket.c:105: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(sl->buf + sl->len, str, len);
data/crossfire-client-1.74.0/common/newsocket.c:193:48:  [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 guint16 GetUShort_String(const unsigned char data[static 2]) // We want at least two characters.
data/crossfire-client-1.74.0/common/p_cmd.c:49:13:  [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[MAX_BUF];
data/crossfire-client-1.74.0/common/p_cmd.c:67: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[MAX_BUF];
data/crossfire-client-1.74.0/common/p_cmd.c:92:9:  [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[MAX_BUF];
data/crossfire-client-1.74.0/common/p_cmd.c:138: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).
        want_config[CONFIG_CWINDOW] = atoi(cpnext);
data/crossfire-client-1.74.0/common/p_cmd.c:390: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(cat_sorted_commands, name_sorted_commands, sizeof(ConsoleCommand *) * num_commands);
data/crossfire-client-1.74.0/common/p_cmd.c:460:9:  [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[MAX_BUF];
data/crossfire-client-1.74.0/common/p_cmd.c:486: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 *cpnext, command[MAX_BUF];
data/crossfire-client-1.74.0/common/p_cmd.c:586:12:  [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 char result[64];
data/crossfire-client-1.74.0/common/p_cmd.c:587: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 list[500];
data/crossfire-client-1.74.0/common/p_cmd.c:595:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(list, "Matching commands:");
data/crossfire-client-1.74.0/common/player.c:119:9:  [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[MAX_BUF];
data/crossfire-client-1.74.0/common/player.c:137:9:  [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[MAX_BUF];
data/crossfire-client-1.74.0/common/player.c:157:12:  [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 char last_command[MAX_BUF]="";
data/crossfire-client-1.74.0/common/script.c:134: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 cmd[1024]; /* command from the script */
data/crossfire-client-1.74.0/common/script.c:209: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 *name, *args, params[MAX_BUF];
data/crossfire-client-1.74.0/common/script.c:266:9:  [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 *argv[256];
data/crossfire-client-1.74.0/common/script.c:349: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 params[ MAX_BUF ];
data/crossfire-client-1.74.0/common/script.c:489:13:  [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/crossfire-client-1.74.0/common/script.c:505:9:  [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/crossfire-client-1.74.0/common/script.c:639:17:  [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[10240];
data/crossfire-client-1.74.0/common/script.c:927:13:  [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/crossfire-client-1.74.0/common/script.c:943:13:  [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/crossfire-client-1.74.0/common/script.c:963: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 params_cpy[MAX_BUF]; 
data/crossfire-client-1.74.0/common/script.c:1000: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).
        i = atoi(name);
data/crossfire-client-1.74.0/common/script.c:1055: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[1024];
data/crossfire-client-1.74.0/common/script.c:1082: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 cmd[1024];
data/crossfire-client-1.74.0/common/script.c:1132: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).
            scripts[i].sync_watch = atoi(c);
data/crossfire-client-1.74.0/common/script.c:1208:13:  [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/crossfire-client-1.74.0/common/script.c:1213:13:  [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/crossfire-client-1.74.0/common/script.c:1218:13:  [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/crossfire-client-1.74.0/common/script.c:1241:17:  [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/crossfire-client-1.74.0/common/script.c:1246:17:  [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/crossfire-client-1.74.0/common/script.c:1251:17:  [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/crossfire-client-1.74.0/common/script.c:1256:17:  [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/crossfire-client-1.74.0/common/script.c:1267:17:  [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/crossfire-client-1.74.0/common/script.c:1278:17:  [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/crossfire-client-1.74.0/common/script.c:1284:13:  [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/crossfire-client-1.74.0/common/script.c:1369:17:  [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/crossfire-client-1.74.0/common/script.c:1400: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).
                x = atoi(c);
data/crossfire-client-1.74.0/common/script.c:1410: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).
                y = atoi(c);
data/crossfire-client-1.74.0/common/script.c:1414:13:  [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/crossfire-client-1.74.0/common/script.c:1426:13:  [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/crossfire-client-1.74.0/common/script.c:1439:13:  [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/crossfire-client-1.74.0/common/script.c:1454: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).
            repeat = atoi(c);
data/crossfire-client-1.74.0/common/script.c:1464: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).
            must_send = atoi(c);
data/crossfire-client-1.74.0/common/script.c:1479: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.
                    char buf[1024];
data/crossfire-client-1.74.0/common/script.c:1513:23:  [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).
                tag = atoi(c);
data/crossfire-client-1.74.0/common/script.c:1532:26:  [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).
                locked = atoi(c);
data/crossfire-client-1.74.0/common/script.c:1542:23:  [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).
                tag = atoi(c);
data/crossfire-client-1.74.0/common/script.c:1572:13:  [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/crossfire-client-1.74.0/common/script.c:1589: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).
        color = atoi(c);
data/crossfire-client-1.74.0/common/script.c:1605:9:  [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/crossfire-client-1.74.0/common/script.c:1629: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[4096];
data/crossfire-client-1.74.0/common/script.c:1639: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).
    flags = (flags<<1)|it->open;
data/crossfire-client-1.74.0/common/script_lua.c:63:12:  [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 char buf[4096];
data/crossfire-client-1.74.0/common/script_lua.c:128:29:  [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).
    lua_pushnumber(lua, it->open);
data/crossfire-client-1.74.0/common/script_lua.c:232:12:  [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(name,"r");
data/crossfire-client-1.74.0/common/script_lua.c:313:9:  [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/crossfire-client-1.74.0/common/script_lua.c:327: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).
    i = atoi(param) - 1;
data/crossfire-client-1.74.0/common/shared/newclient.h:656:14:  [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.
    unsigned char buf[MAXSOCKBUF]; /* 2(size)+65535(content)+1(ending NULL) */
data/crossfire-client-1.74.0/gtk-v2/src/account.c:61:1:  [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 account_password[256];
data/crossfire-client-1.74.0/gtk-v2/src/account.c:288: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).
    retry = atoi(message);
data/crossfire-client-1.74.0/gtk-v2/src/account.c:1194:13:  [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 *mynews, *cp, *el, big_buf[BIG_BUF], *cp1;
data/crossfire-client-1.74.0/gtk-v2/src/config.c:77: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 path[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/config.c:200: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 path[MAX_BUF], inbuf[MAX_BUF], *cp;
data/crossfire-client-1.74.0/gtk-v2/src/config.c:210: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).
    if ((fp = fopen(path, "r")) == NULL) {
data/crossfire-client-1.74.0/gtk-v2/src/config.c:229: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).
            val = atoi(cp);
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:210: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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:224: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).
        statval += atoi(tval);
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:227: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).
        statval += atoi(tval);
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:268: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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:539: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/crossfire-client-1.74.0/gtk-v2/src/create_char.c:635: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/crossfire-client-1.74.0/gtk-v2/src/create_char.c:792: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 tmpbuf[80];
data/crossfire-client-1.74.0/gtk-v2/src/image.c:360: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(png_tmp, rgba_data, width * height * BPP);
data/crossfire-client-1.74.0/gtk-v2/src/info.c:28:14:  [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 *const usercolorname[NUM_COLORS] = {
data/crossfire-client-1.74.0/gtk-v2/src/info.c:47:14:  [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 *font_style_names[NUM_FONTS] = {
data/crossfire-client-1.74.0/gtk-v2/src/info.c:70:15:  [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.
extern  const char * const usercolorname[NUM_COLORS];
data/crossfire-client-1.74.0/gtk-v2/src/info.c:74:15:  [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.
extern  const char * const colorname[NUM_COLORS];
data/crossfire-client-1.74.0/gtk-v2/src/info.c:167: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 message[MESSAGE_BUFFER_SIZE];    /**< Message data:  Message text.
data/crossfire-client-1.74.0/gtk-v2/src/info.c:410: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    style_name[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/info.c:550:13:  [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 style_name[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/info.c:634: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    widget_name[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/info.c:1020: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 output_buffer[MESSAGE_BUFFER_SIZE  /* Buffer for output big enough */
data/crossfire-client-1.74.0/gtk-v2/src/info.c:1494: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  pathbuf[MAX_BUF];             /* Buffer for a save file path name */
data/crossfire-client-1.74.0/gtk-v2/src/info.c:1495: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  textbuf[MAX_BUF];             /* Buffer for output to save file   */
data/crossfire-client-1.74.0/gtk-v2/src/info.c:1513: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).
    if ((fptr = fopen(pathbuf, "w")) == NULL) {
data/crossfire-client-1.74.0/gtk-v2/src/info.c:1562: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  pathbuf[MAX_BUF];             /* Buffer for a save file path name */
data/crossfire-client-1.74.0/gtk-v2/src/info.c:1563: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  textbuf[MAX_BUF];             /* Buffer for input from save file  */
data/crossfire-client-1.74.0/gtk-v2/src/info.c:1577: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).
    if ((fptr = fopen(pathbuf, "r")) == NULL) {
data/crossfire-client-1.74.0/gtk-v2/src/inventory.c:67:14:  [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 *Style_Names[Style_Last] = {
data/crossfire-client-1.74.0/gtk-v2/src/inventory.c:145:33:  [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 ((it->locked && !it->open) ? 0 : (INV_SHOW_ITEM | INV_SHOW_COLOR));
data/crossfire-client-1.74.0/gtk-v2/src/inventory.c:598:9:  [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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/inventory.c:694: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], buf1[256];
data/crossfire-client-1.74.0/gtk-v2/src/inventory.c:749:44:  [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 ((cpl.container == tmp) && tmp->open) {
data/crossfire-client-1.74.0/gtk-v2/src/inventory.c:791:44:  [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 ((cpl.container == tmp) && tmp->open) {
data/crossfire-client-1.74.0/gtk-v2/src/inventory.c:878: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/crossfire-client-1.74.0/gtk-v2/src/inventory.c:1034: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/crossfire-client-1.74.0/gtk-v2/src/keys.c:88:1:  [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 history[MAX_HISTORY][MAX_COMMAND_LEN];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:125:8:  [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 char bind_buf[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:155:14:  [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.
extern const char *const directions[9];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:515: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[BIG_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:518:10:  [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).
    fp = fopen(filename, "r");
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:542: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[BIG_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:824: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[MAX_BUF], tmpbuf[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:922:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(tmpbuf, "fire+");
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:925:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(tmpbuf, "run+");
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:928:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(tmpbuf, "alt+");
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:931:9:  [2] (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). Risk is low because the
  source is a constant string.
        strcat(tmpbuf, "meta+");
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:986:12:  [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 char buf[MAX_BUF + sizeof(bind_buf)];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:988: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 buff[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1022: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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1084: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[MAX_BUF + 16];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1266: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[MAX_BUF], buf2[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1281:14:  [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).
        fp = fopen(buf, "w");
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1302:14:  [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).
        fp = fopen(buf, "w");
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1361: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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1463: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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1480: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).
    if ((keyentry = atoi(params)) == 0) {
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:2041: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[MAX_BUF], buf2[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:2076: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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:2227:12:  [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 char bind_buf[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/main.c:38:14:  [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 *const colorname[NUM_COLORS] = {
data/crossfire-client-1.74.0/gtk-v2/src/main.c:92:1:  [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 window_xml_file[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/main.h:37:8:  [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.
extern char window_xml_file[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/main.h:41:8:  [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.
extern char account_password[256];
data/crossfire-client-1.74.0/gtk-v2/src/metaserver.c:219: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/crossfire-client-1.74.0/gtk-v2/src/opengl.c:895: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(datastart + y * nwidth * 4 + (nwidth - pi->map_width) * 4,
data/crossfire-client-1.74.0/gtk-v2/src/opengl.c:924: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(newdata, data, pi->map_height *  pi->map_width * 4);
data/crossfire-client-1.74.0/gtk-v2/src/pickup.c:95: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 modestr[128];
data/crossfire-client-1.74.0/gtk-v2/src/png.c:45: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(data, data_cp + data_start, length);
data/crossfire-client-1.74.0/gtk-v2/src/sdl.c:213: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 SDL_windowhack[32];
data/crossfire-client-1.74.0/gtk-v2/src/sdl.c:235: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( SDL_windowhack, "SDL_WINDOWID=%ld",
data/crossfire-client-1.74.0/gtk-v2/src/skills.c:64: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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/skills.c:199: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 command[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/spells.c:45:14:  [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 *Style_Names[Style_Last] = {
data/crossfire-client-1.74.0/gtk-v2/src/spells.c:195: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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/spells.c:498: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 command[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/spells.c:527: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 command[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/spells.c:555: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 command[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:35:14:  [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 * const stat_bar_names[MAX_STAT_BARS] = {
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:53:14:  [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 * const stat_style_names[NUM_STYLES] = {
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:113: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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:136:17:  [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(bar_colors[stat_bar][sub_style],
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:149: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[MAX_BUF];
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:347: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(&ncolor, lcolor, sizeof(GdkColor));
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:373:17:  [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(&ncolor, hcolor, sizeof(GdkColor));
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:388:17:  [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(&ncolor, lcolor, sizeof(GdkColor));
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:557:12:  [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 char last_name[MAX_BUF]="", last_range[MAX_BUF]="";
data/crossfire-client-1.74.0/gtk-v2/src/stats.c:561: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 buff[MAX_BUF];
data/crossfire-client-1.74.0/sound-src/cfsndserv.c:103:30:  [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 Mix_Chunk* load_chunk(char const name[static 1]) {
data/crossfire-client-1.74.0/sound-src/cfsndserv.c:109: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 path[MAXSOCKBUF];
data/crossfire-client-1.74.0/sound-src/cfsndserv.c:132:20:  [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 const sound[static 1], char const source[static 1]) {
data/crossfire-client-1.74.0/sound-src/cfsndserv.c:132:48:  [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 const sound[static 1], char const source[static 1]) {
data/crossfire-client-1.74.0/sound-src/cfsndserv.c:154:32:  [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 bool music_is_different(char const music[static 1]) {
data/crossfire-client-1.74.0/sound-src/cfsndserv.c:155:12:  [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 char last_played[MAXSOCKBUF] = "";
data/crossfire-client-1.74.0/sound-src/cfsndserv.c:182: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 path[MAXSOCKBUF];
data/crossfire-client-1.74.0/sound-src/common.h:9:27:  [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 const sound[static 1],
data/crossfire-client-1.74.0/sound-src/common.h:10:27:  [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 const source[static 1]);
data/crossfire-client-1.74.0/sound-src/main.c:235: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 inbuf[1024];
data/crossfire-client-1.74.0/common/client.c:327:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(10*1000);    /* 10 milliseconds */
data/crossfire-client-1.74.0/common/client.c:443:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(10*1000);    /* 10 milliseconds */
data/crossfire-client-1.74.0/common/commands.c:195:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(cp, (char *)data + pos, length);
data/crossfire-client-1.74.0/common/commands.c:339:49:  [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).
                            short_stat_name[i], strlen(short_stat_name[i]))) {
data/crossfire-client-1.74.0/common/commands.c:341: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).
                        olen += strlen(short_stat_name[i]) + 1;
data/crossfire-client-1.74.0/common/commands.c:516:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(rci->public_name, nl, namelen);
data/crossfire-client-1.74.0/common/commands.c:554:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(rci->description, nl, msglen);
data/crossfire-client-1.74.0/common/commands.c:573:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(rci->rc_choice[oc].choice_name, cp, clen);
data/crossfire-client-1.74.0/common/commands.c:583:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(rci->rc_choice[oc].choice_desc, cp, clen);
data/crossfire-client-1.74.0/common/commands.c:606:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(rci->rc_choice[oc].value_arch[vn], cp, clen);
data/crossfire-client-1.74.0/common/commands.c:615:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(rci->rc_choice[oc].value_desc[vn], cp, clen);
data/crossfire-client-1.74.0/common/commands.c:1505:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(cpl.range, (const char*)data+i, rlen);
data/crossfire-client-1.74.0/common/commands.c:1513:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(cpl.title, (const char*)data+i, rlen);
data/crossfire-client-1.74.0/common/commands.c:1895:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(newspell->name, (char*)data+pos, nlen);
data/crossfire-client-1.74.0/common/commands.c:1900:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(newspell->message, (char*)data+pos, mlen);
data/crossfire-client-1.74.0/common/commands.c:1922:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(newspell->requirements, (char*) data+pos, nlen);
data/crossfire-client-1.74.0/common/commands.c:2489:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(name, buf + pos +1, flen-1);
data/crossfire-client-1.74.0/common/commands.c:2494:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(class, buf + pos +1, flen-1);
data/crossfire-client-1.74.0/common/commands.c:2499:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(race, buf + pos +1, flen-1);
data/crossfire-client-1.74.0/common/commands.c:2504:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(face, buf + pos +1, flen-1);
data/crossfire-client-1.74.0/common/commands.c:2509:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(party, buf + pos +1, flen-1);
data/crossfire-client-1.74.0/common/commands.c:2514:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(map, buf + pos +1, flen-1);
data/crossfire-client-1.74.0/common/image.c:116:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *len = read(fd_cache[i].fd, data, length);
data/crossfire-client-1.74.0/common/image.c:118:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *len = read(fd_cache[i].fd, data, 65535);
data/crossfire-client-1.74.0/common/image.c:129:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *len = read(fd, data, length);
data/crossfire-client-1.74.0/common/image.c:134:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *len = read(fd, data, 65535);
data/crossfire-client-1.74.0/common/item.c:51:73:  [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 (!g_ascii_strncasecmp(name, item_types[type][pos]+1, strlen(item_types[type][pos]+1))) {
data/crossfire-client-1.74.0/common/item.c:551: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).
            copy_name(op->p_name, name+strlen(name)+1);
data/crossfire-client-1.74.0/common/item.h:43:24:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define copy_name(t,f) strncpy(t, f, NAME_LEN-1); t[NAME_LEN-1]=0;
data/crossfire-client-1.74.0/common/metaserver.c:171:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(metaserver.hostname, eq, sizeof (metaserver.hostname));
data/crossfire-client-1.74.0/common/metaserver.c:175:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(metaserver.html_comment, eq, sizeof (metaserver.html_comment));
data/crossfire-client-1.74.0/common/metaserver.c:177:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(metaserver.text_comment, eq, sizeof (metaserver.text_comment));
data/crossfire-client-1.74.0/common/metaserver.c:179:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(metaserver.archbase, eq, sizeof (metaserver.archbase));
data/crossfire-client-1.74.0/common/metaserver.c:181:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(metaserver.mapbase, eq, sizeof (metaserver.mapbase));
data/crossfire-client-1.74.0/common/metaserver.c:183:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(metaserver.codebase, eq, sizeof (metaserver.codebase));
data/crossfire-client-1.74.0/common/metaserver.c:185:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(metaserver.flags, eq, sizeof (metaserver.flags));
data/crossfire-client-1.74.0/common/metaserver.c:187:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(metaserver.version, eq, sizeof (metaserver.version));
data/crossfire-client-1.74.0/common/misc.c:62:19:  [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).
    replace_len = strlen(replace);
data/crossfire-client-1.74.0/common/misc.c:63:20:  [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).
    template_len = strlen(buffer);
data/crossfire-client-1.74.0/common/misc.c:125: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).
    if (strlen(buf) > 0) {
data/crossfire-client-1.74.0/common/newsocket.c:100: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).
    int len = strlen(str);
data/crossfire-client-1.74.0/common/newsocket.c:212:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    gsize read;
data/crossfire-client-1.74.0/common/newsocket.c:213:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!g_input_stream_read_all(in, sl->buf, 2, &read, NULL, error)) {
data/crossfire-client-1.74.0/common/newsocket.c:216:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read != 2) {
data/crossfire-client-1.74.0/common/newsocket.c:226:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!g_input_stream_read_all(in, sl->buf + 2, to_read, &read, NULL, error)) {
data/crossfire-client-1.74.0/common/newsocket.c:229:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read != to_read) {
data/crossfire-client-1.74.0/common/p_cmd.c:494:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(command, ocommand, len);
data/crossfire-client-1.74.0/common/p_cmd.c:529:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(command, ocommand, MAX_BUF-1);
data/crossfire-client-1.74.0/common/p_cmd.c:589:11:  [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(command);
data/crossfire-client-1.74.0/common/p_cmd.c:613: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).
                snprintf(list + strlen(list), 499 - strlen(list), " %s", commands[i]);
data/crossfire-client-1.74.0/common/p_cmd.c:613: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).
                snprintf(list + strlen(list), 499 - strlen(list), " %s", commands[i]);
data/crossfire-client-1.74.0/common/p_cmd.c:616: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).
                snprintf(list + strlen(list), 499 - strlen(list), " %s %s", match, commands[i]);
data/crossfire-client-1.74.0/common/p_cmd.c:616: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).
                snprintf(list + strlen(list), 499 - strlen(list), " %s %s", match, commands[i]);
data/crossfire-client-1.74.0/common/p_cmd.c:628: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).
                snprintf(list + strlen(list), 499 - strlen(list), " %s", CommonCommands[i].name);
data/crossfire-client-1.74.0/common/p_cmd.c:628: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).
                snprintf(list + strlen(list), 499 - strlen(list), " %s", CommonCommands[i].name);
data/crossfire-client-1.74.0/common/p_cmd.c:631: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).
                snprintf(list + strlen(list), 499 - strlen(list), " %s %s", match, CommonCommands[i].name);
data/crossfire-client-1.74.0/common/p_cmd.c:631: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).
                snprintf(list + strlen(list), 499 - strlen(list), " %s %s", match, CommonCommands[i].name);
data/crossfire-client-1.74.0/common/p_cmd.c:641:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
            strncat(list, "\n", 499 - strlen(list));
data/crossfire-client-1.74.0/common/p_cmd.c:641:39:  [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).
            strncat(list, "\n", 499 - strlen(list));
data/crossfire-client-1.74.0/common/player.c:51: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).
    if (strlen(name) != 0) {
data/crossfire-client-1.74.0/common/script.c:172:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read(x, y, z) emulate_read(x, y, z)
data/crossfire-client-1.74.0/common/script.c:219:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(params, cparams, MAX_BUF - 1);
data/crossfire-client-1.74.0/common/script.c:362:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(params, cparams, MAX_BUF-1);
data/crossfire-client-1.74.0/common/script.c:492:43:  [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).
            write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:588:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            r = read(scripts[i].in_fd, scripts[i].cmd+scripts[i].cmd_count, sizeof(scripts[i].cmd)-scripts[i].cmd_count-1);
data/crossfire-client-1.74.0/common/script.c:637:17:  [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).
            l = strlen(scripts[i].watch[w]);
data/crossfire-client-1.74.0/common/script.c:913:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:930:43:  [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).
            write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:946:43:  [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).
            write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:985: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).
    write(scripts[i].out_fd, p, strlen(p));
data/crossfire-client-1.74.0/common/script.c:1059:39:  [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).
        write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1073: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).
    write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1211:43:  [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).
            write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1216:43:  [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).
            write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1221:43:  [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).
            write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1244:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1249:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1254:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1260:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1263:51:  [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).
                    write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1271:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1274:51:  [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).
                    write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1281:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1287:43:  [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).
            write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1313:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1325:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1335:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1347:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1372:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1392:50:  [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).
                write(scripts[i].out_fd, endmsg, strlen(endmsg));
data/crossfire-client-1.74.0/common/script.c:1420:51:  [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).
                    write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1424:43:  [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).
            write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1434:47:  [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).
                write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1437:43:  [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).
            write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script.c:1643: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).
    write(scripts[i].out_fd, buf, strlen(buf));
data/crossfire-client-1.74.0/common/script_lua.c:161: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 ( it->tag == 0 || strlen(it->s_name) == 0 ) {
data/crossfire-client-1.74.0/gtk-v2/src/account.c:172: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).
        SockList_AddChar(&sl, strlen(name));
data/crossfire-client-1.74.0/gtk-v2/src/account.c:174: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).
        SockList_AddChar(&sl, strlen(account_password));
data/crossfire-client-1.74.0/gtk-v2/src/account.c:265: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).
        SockList_AddChar(&sl, strlen(name));
data/crossfire-client-1.74.0/gtk-v2/src/account.c:267: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).
        SockList_AddChar(&sl, strlen(password));
data/crossfire-client-1.74.0/gtk-v2/src/account.c:723: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).
        SockList_AddChar(&sl, strlen(name));
data/crossfire-client-1.74.0/gtk-v2/src/account.c:725: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).
        SockList_AddChar(&sl, strlen(p1));
data/crossfire-client-1.74.0/gtk-v2/src/account.c:932: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).
        SockList_AddChar(&sl, strlen(name));
data/crossfire-client-1.74.0/gtk-v2/src/account.c:934: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).
        SockList_AddChar(&sl, strlen(password));
data/crossfire-client-1.74.0/gtk-v2/src/account.c:1049: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).
        SockList_AddChar(&sl, strlen(old));
data/crossfire-client-1.74.0/gtk-v2/src/account.c:1051: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).
        SockList_AddChar(&sl, strlen(p1));
data/crossfire-client-1.74.0/gtk-v2/src/account.c:1201: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).
            for (cp = mynews + strlen(mynews); cp > mynews; cp--) {
data/crossfire-client-1.74.0/gtk-v2/src/config.c:215: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).
        inbuf[strlen(inbuf) - 1] = '\0'; /* kill newline */
data/crossfire-client-1.74.0/gtk-v2/src/config.c:266:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(window_xml_file, cp, MAX_BUF - 1);
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:275: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).
    SockList_AddChar(&sl, strlen(char_name));
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:277: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).
    SockList_AddChar(&sl, strlen(account_password));
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:288: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).
    SockList_AddChar(&sl, strlen(buf)+1);
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:304: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).
        SockList_AddChar(&sl, strlen(buf)+1);
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:312: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).
    SockList_AddChar(&sl, strlen(buf)+1);
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:324: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).
        SockList_AddChar(&sl, strlen(buf)+1);
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:337: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).
            SockList_AddChar(&sl, strlen(buf)+1);
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:346: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).
        SockList_AddChar(&sl, strlen(buf)+1);
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:556: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).
                                 strlen(classes[active_entry].description));
data/crossfire-client-1.74.0/gtk-v2/src/create_char.c:567: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).
                                 strlen(races[active_entry].description));
data/crossfire-client-1.74.0/gtk-v2/src/info.c:772: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).
        pane->textbuffer, &end, message, strlen(message),
data/crossfire-client-1.74.0/gtk-v2/src/info.c:837: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).
        if (strlen(current) > 0)
data/crossfire-client-1.74.0/gtk-v2/src/info.c:926: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).
        stamp = calloc(1, strlen(message) + 7);
data/crossfire-client-1.74.0/gtk-v2/src/info.c:930:9:  [1] (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). Risk is low because the
  source is a constant character.
        strcat(stamp, " ");
data/crossfire-client-1.74.0/gtk-v2/src/info.c:1155:18:  [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(message) >= MESSAGE_BUFFER_SIZE)) {
data/crossfire-client-1.74.0/gtk-v2/src/info.c:1250:56:  [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).
                        "Buffer full; oldest unknown", strlen(message));
data/crossfire-client-1.74.0/gtk-v2/src/inventory.c:601:57:  [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(params, inv_notebooks[i].name, strlen(params))) {
data/crossfire-client-1.74.0/gtk-v2/src/inventory.c:700:9:  [1] (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). Risk is low because the source is a constant character.
        strcpy(buf, " ");
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:480:16:  [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).
        cpnext[strlen(cpnext) - 1] = '\0';
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:481: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).
        if (strlen(cpnext) > (sizeof(bind_buf) - 1)) {
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1225: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).
    if (strlen(params) >= sizeof(bind_buf)) {
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:1817:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(history[cur_history_position], entry_text, MAX_COMMAND_LEN);
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:2263: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).
    if (strlen(ed) >= sizeof(bind_buf)) {
data/crossfire-client-1.74.0/gtk-v2/src/keys.c:2266:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(bind_buf, ed, MAX_BUF - 1);
data/crossfire-client-1.74.0/gtk-v2/src/main.c:299: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).
    if (retval > 0 && strlen(name) > 0) {
data/crossfire-client-1.74.0/gtk-v2/src/main.c:301:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(window_xml_file, name, sizeof(window_xml_file));
data/crossfire-client-1.74.0/gtk-v2/src/spells.c:236:28:  [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).
            snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
data/crossfire-client-1.74.0/gtk-v2/src/spells.c:236: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).
            snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
data/crossfire-client-1.74.0/sound-src/main.c:151:20:  [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).
        spacelen = strlen(dptr);
data/crossfire-client-1.74.0/sound-src/main.c:171:16:  [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).
    soundlen = strlen(dptr);
data/crossfire-client-1.74.0/sound-src/main.c:237:28:  [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).
        parse_input(inbuf, strlen(inbuf));

ANALYSIS SUMMARY:

Hits = 445
Lines analyzed = 29155 in approximately 0.85 seconds (34217 lines/second)
Physical Source Lines of Code (SLOC) = 18010
Hits@level = [0] 298 [1] 140 [2] 277 [3]   5 [4]  23 [5]   0
Hits@level+ = [0+] 743 [1+] 445 [2+] 305 [3+]  28 [4+]  23 [5+]   0
Hits/KSLOC@level+ = [0+] 41.2549 [1+] 24.7085 [2+] 16.935 [3+] 1.55469 [4+] 1.27707 [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.