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/neverball-1.6.0+git20180603/putt/hud.c Examining data/neverball-1.6.0+git20180603/putt/hud.h Examining data/neverball-1.6.0+git20180603/putt/st_conf.c Examining data/neverball-1.6.0+git20180603/putt/course.h Examining data/neverball-1.6.0+git20180603/putt/main.c Examining data/neverball-1.6.0+git20180603/putt/st_all.h Examining data/neverball-1.6.0+git20180603/putt/game.h Examining data/neverball-1.6.0+git20180603/putt/st_all.c Examining data/neverball-1.6.0+git20180603/putt/hole.h Examining data/neverball-1.6.0+git20180603/putt/st_conf.h Examining data/neverball-1.6.0+git20180603/putt/hole.c Examining data/neverball-1.6.0+git20180603/putt/game.c Examining data/neverball-1.6.0+git20180603/putt/course.c Examining data/neverball-1.6.0+git20180603/share/st_common.h Examining data/neverball-1.6.0+git20180603/share/hmd_libovr.cpp Examining data/neverball-1.6.0+git20180603/share/vec3.h Examining data/neverball-1.6.0+git20180603/share/solid_draw.c Examining data/neverball-1.6.0+git20180603/share/st_common.c Examining data/neverball-1.6.0+git20180603/share/text.c Examining data/neverball-1.6.0+git20180603/share/tilt.h Examining data/neverball-1.6.0+git20180603/share/tilt_null.c Examining data/neverball-1.6.0+git20180603/share/mtrl.c Examining data/neverball-1.6.0+git20180603/share/queue.h Examining data/neverball-1.6.0+git20180603/share/binary.c Examining data/neverball-1.6.0+git20180603/share/fs_png.h Examining data/neverball-1.6.0+git20180603/share/text.h Examining data/neverball-1.6.0+git20180603/share/hmd_common.h Examining data/neverball-1.6.0+git20180603/share/solid_vary.c Examining data/neverball-1.6.0+git20180603/share/array.h Examining data/neverball-1.6.0+git20180603/share/fs_jpg.h Examining data/neverball-1.6.0+git20180603/share/state.c Examining data/neverball-1.6.0+git20180603/share/cmd.c Examining data/neverball-1.6.0+git20180603/share/tilt_loop.c Examining data/neverball-1.6.0+git20180603/share/theme.h Examining data/neverball-1.6.0+git20180603/share/fs.h Examining data/neverball-1.6.0+git20180603/share/part.h Examining data/neverball-1.6.0+git20180603/share/config.c Examining data/neverball-1.6.0+git20180603/share/fbo.h Examining data/neverball-1.6.0+git20180603/share/fs_jpg.c Examining data/neverball-1.6.0+git20180603/share/part.c Examining data/neverball-1.6.0+git20180603/share/geom.h Examining data/neverball-1.6.0+git20180603/share/font.h Examining data/neverball-1.6.0+git20180603/share/array.c Examining data/neverball-1.6.0+git20180603/share/gui.h Examining data/neverball-1.6.0+git20180603/share/base_image.h Examining data/neverball-1.6.0+git20180603/share/list.c Examining data/neverball-1.6.0+git20180603/share/vec3.c Examining data/neverball-1.6.0+git20180603/share/solid_all.h Examining data/neverball-1.6.0+git20180603/share/mapc.c Examining data/neverball-1.6.0+git20180603/share/solid_base.c Examining data/neverball-1.6.0+git20180603/share/tilt_wii.c Examining data/neverball-1.6.0+git20180603/share/state.h Examining data/neverball-1.6.0+git20180603/share/dir.h Examining data/neverball-1.6.0+git20180603/share/theme.c Examining data/neverball-1.6.0+git20180603/share/queue.c Examining data/neverball-1.6.0+git20180603/share/base_config.h Examining data/neverball-1.6.0+git20180603/share/hmd_null.c Examining data/neverball-1.6.0+git20180603/share/lang.c Examining data/neverball-1.6.0+git20180603/share/fs_common.c Examining data/neverball-1.6.0+git20180603/share/glext.h Examining data/neverball-1.6.0+git20180603/share/audio.h Examining data/neverball-1.6.0+git20180603/share/list.h Examining data/neverball-1.6.0+git20180603/share/ball.h Examining data/neverball-1.6.0+git20180603/share/audio.c Examining data/neverball-1.6.0+git20180603/share/solid_vary.h Examining data/neverball-1.6.0+git20180603/share/fs_ov.c Examining data/neverball-1.6.0+git20180603/share/config.h Examining data/neverball-1.6.0+git20180603/share/solid_sim_sol.c Examining data/neverball-1.6.0+git20180603/share/fs_png.c Examining data/neverball-1.6.0+git20180603/share/fbo.c Examining data/neverball-1.6.0+git20180603/share/glsl.c Examining data/neverball-1.6.0+git20180603/share/tilt_leapmotion.cpp Examining data/neverball-1.6.0+git20180603/share/gui.c Examining data/neverball-1.6.0+git20180603/share/glext.c Examining data/neverball-1.6.0+git20180603/share/ball.c Examining data/neverball-1.6.0+git20180603/share/solid_sim.h Examining data/neverball-1.6.0+git20180603/share/lang.h Examining data/neverball-1.6.0+git20180603/share/fs_stdio.c Examining data/neverball-1.6.0+git20180603/share/video.h Examining data/neverball-1.6.0+git20180603/share/log.c Examining data/neverball-1.6.0+git20180603/share/solid_all.c Examining data/neverball-1.6.0+git20180603/share/cmd.h Examining data/neverball-1.6.0+git20180603/share/common.c Examining data/neverball-1.6.0+git20180603/share/common.h Examining data/neverball-1.6.0+git20180603/share/fs_ov.h Examining data/neverball-1.6.0+git20180603/share/base_config.c Examining data/neverball-1.6.0+git20180603/share/font.c Examining data/neverball-1.6.0+git20180603/share/binary.h Examining data/neverball-1.6.0+git20180603/share/solid_draw.h Examining data/neverball-1.6.0+git20180603/share/geom.c Examining data/neverball-1.6.0+git20180603/share/image.h Examining data/neverball-1.6.0+git20180603/share/solid_base.h Examining data/neverball-1.6.0+git20180603/share/hmd_common.c Examining data/neverball-1.6.0+git20180603/share/video.c Examining data/neverball-1.6.0+git20180603/share/hmd_openhmd.c Examining data/neverball-1.6.0+git20180603/share/log.h Examining data/neverball-1.6.0+git20180603/share/glsl.h Examining data/neverball-1.6.0+git20180603/share/base_image.c Examining data/neverball-1.6.0+git20180603/share/image.c Examining data/neverball-1.6.0+git20180603/share/fs_physfs.c Examining data/neverball-1.6.0+git20180603/share/version.in.h Examining data/neverball-1.6.0+git20180603/share/dir.c Examining data/neverball-1.6.0+git20180603/share/hmd.h Examining data/neverball-1.6.0+git20180603/share/mtrl.h Examining data/neverball-1.6.0+git20180603/contrib/curve.c Examining data/neverball-1.6.0+git20180603/ball/demo.c Examining data/neverball-1.6.0+git20180603/ball/st_name.c Examining data/neverball-1.6.0+git20180603/ball/st_pause.c Examining data/neverball-1.6.0+git20180603/ball/st_save.c Examining data/neverball-1.6.0+git20180603/ball/st_shared.c Examining data/neverball-1.6.0+git20180603/ball/hud.c Examining data/neverball-1.6.0+git20180603/ball/hud.h Examining data/neverball-1.6.0+git20180603/ball/score.c Examining data/neverball-1.6.0+git20180603/ball/st_over.h Examining data/neverball-1.6.0+git20180603/ball/game_client.h Examining data/neverball-1.6.0+git20180603/ball/level.c Examining data/neverball-1.6.0+git20180603/ball/st_demo.h Examining data/neverball-1.6.0+git20180603/ball/st_help.h Examining data/neverball-1.6.0+git20180603/ball/util.c Examining data/neverball-1.6.0+git20180603/ball/st_shared.h Examining data/neverball-1.6.0+git20180603/ball/demo_dir.h Examining data/neverball-1.6.0+git20180603/ball/util.h Examining data/neverball-1.6.0+git20180603/ball/game_client.c Examining data/neverball-1.6.0+git20180603/ball/st_ball.h Examining data/neverball-1.6.0+git20180603/ball/st_done.h Examining data/neverball-1.6.0+git20180603/ball/st_start.h Examining data/neverball-1.6.0+git20180603/ball/demo.h Examining data/neverball-1.6.0+git20180603/ball/st_conf.c Examining data/neverball-1.6.0+git20180603/ball/st_fail.h Examining data/neverball-1.6.0+git20180603/ball/progress.c Examining data/neverball-1.6.0+git20180603/ball/st_set.c Examining data/neverball-1.6.0+git20180603/ball/st_fail.c Examining data/neverball-1.6.0+git20180603/ball/st_help.c Examining data/neverball-1.6.0+git20180603/ball/st_play.h Examining data/neverball-1.6.0+git20180603/ball/st_over.c Examining data/neverball-1.6.0+git20180603/ball/game_common.c Examining data/neverball-1.6.0+git20180603/ball/game_draw.h Examining data/neverball-1.6.0+git20180603/ball/st_save.h Examining data/neverball-1.6.0+git20180603/ball/main.c Examining data/neverball-1.6.0+git20180603/ball/st_level.c Examining data/neverball-1.6.0+git20180603/ball/st_demo.c Examining data/neverball-1.6.0+git20180603/ball/game_draw.c Examining data/neverball-1.6.0+git20180603/ball/progress.h Examining data/neverball-1.6.0+git20180603/ball/set.h Examining data/neverball-1.6.0+git20180603/ball/game_server.h Examining data/neverball-1.6.0+git20180603/ball/st_ball.c Examining data/neverball-1.6.0+git20180603/ball/st_level.h Examining data/neverball-1.6.0+git20180603/ball/set.c Examining data/neverball-1.6.0+git20180603/ball/game_server.c Examining data/neverball-1.6.0+git20180603/ball/game_proxy.c Examining data/neverball-1.6.0+git20180603/ball/game_common.h Examining data/neverball-1.6.0+git20180603/ball/st_conf.h Examining data/neverball-1.6.0+git20180603/ball/st_title.c Examining data/neverball-1.6.0+git20180603/ball/st_set.h Examining data/neverball-1.6.0+git20180603/ball/st_pause.h Examining data/neverball-1.6.0+git20180603/ball/level.h Examining data/neverball-1.6.0+git20180603/ball/demo_dir.c Examining data/neverball-1.6.0+git20180603/ball/st_done.c Examining data/neverball-1.6.0+git20180603/ball/score.h Examining data/neverball-1.6.0+git20180603/ball/st_goal.h Examining data/neverball-1.6.0+git20180603/ball/st_play.c Examining data/neverball-1.6.0+git20180603/ball/st_title.h Examining data/neverball-1.6.0+git20180603/ball/st_start.c Examining data/neverball-1.6.0+git20180603/ball/st_goal.c Examining data/neverball-1.6.0+git20180603/ball/game_proxy.h Examining data/neverball-1.6.0+git20180603/ball/st_name.h FINAL RESULTS: data/neverball-1.6.0+git20180603/ball/demo.c:47:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "Replays/%s.nbr", name); data/neverball-1.6.0+git20180603/ball/main.c:386:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(opt_usage, argv[0]); data/neverball-1.6.0+git20180603/ball/st_ball.c:111:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ball_file, "%s/%s", data/neverball-1.6.0+git20180603/ball/st_level.c:56:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(lvlattr, _("Bonus Level %s"), ln); data/neverball-1.6.0+git20180603/ball/st_level.c:58:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(lvlattr, _("Level %s"), ln); data/neverball-1.6.0+git20180603/ball/st_level.c:61:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(setattr, "%s: %s", set_name(curr_set()), data/neverball-1.6.0+git20180603/ball/st_level.c:66:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(setattr, "%s", set_name(curr_set())); data/neverball-1.6.0+git20180603/contrib/curve.c:203:2: [4] (buffer) scanf: 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. scanf("%s", str); data/neverball-1.6.0+git20180603/contrib/curve.c:227:2: [4] (buffer) scanf: 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. scanf("%s", str); data/neverball-1.6.0+git20180603/contrib/curve.c:387:19: [4] (buffer) fscanf: 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. huh = fscanf(fp,"%s %s",c1,c2); data/neverball-1.6.0+git20180603/contrib/curve.c:390:44: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (strcmp(c1,"TOP") == 0) sprintf(toptex,"mtrl/%s",c2); data/neverball-1.6.0+git20180603/contrib/curve.c:391:44: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (strcmp(c1,"BOT") == 0) sprintf(bottex,"mtrl/%s",c2); data/neverball-1.6.0+git20180603/contrib/curve.c:392:44: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (strcmp(c1,"IN") == 0) sprintf(intex, "mtrl/%s",c2); data/neverball-1.6.0+git20180603/contrib/curve.c:393:44: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (strcmp(c1,"OUT") == 0) sprintf(outtex,"mtrl/%s",c2); data/neverball-1.6.0+git20180603/contrib/curve.c:535:3: [4] (buffer) scanf: 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. scanf("%s",str); data/neverball-1.6.0+git20180603/putt/hole.c:75:20: [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. sscanf(buff, "%s %s %d %s", data/neverball-1.6.0+git20180603/share/common.c:97: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(dst, src); data/neverball-1.6.0+git20180603/share/common.c:120:17: [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(full, part); data/neverball-1.6.0+git20180603/share/common.c:165: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. return (access(path, F_OK) == 0); data/neverball-1.6.0+git20180603/share/common.c:342:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str, "%s=%s", name, value); data/neverball-1.6.0+git20180603/share/common.c:344:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str, "%s=", name); data/neverball-1.6.0+git20180603/share/common.h:90:12: [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. extern int vsnprintf(char *, size_t, const char *, va_list); data/neverball-1.6.0+git20180603/share/fs_common.c:223:15: [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. len = 1 + vsnprintf(NULL, 0, fmt, ap); data/neverball-1.6.0+git20180603/share/fs_common.c:231:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buff, len, fmt, ap); data/neverball-1.6.0+git20180603/share/fs_common.c:282:36: [4] (shell) system: 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. const char *fs_resolve(const char *system) data/neverball-1.6.0+git20180603/share/fs_common.c:294:19: [4] (shell) system: 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. SAFECPY(path, system); data/neverball-1.6.0+git20180603/share/log.c:36:15: [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. len = 1 + vsnprintf(NULL, 0, fmt, ap); data/neverball-1.6.0+git20180603/share/log.c:42:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(str, len, fmt, ap); data/neverball-1.6.0+git20180603/share/log.c:76:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(log_header, "%s - %s %s", data/neverball-1.6.0+git20180603/share/mapc.c:246:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s overflow\n", s); data/neverball-1.6.0+git20180603/share/mapc.c:606: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(imagedata[image_n].s, name); data/neverball-1.6.0+git20180603/share/mapc.c:795:17: [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. sscanf(line + 6, "%s", mtrl); data/neverball-1.6.0+git20180603/share/mapc.c:930: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(key, strtok(buf, "\"")); data/neverball-1.6.0+git20180603/share/mapc.c:932: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(val, strtok(NULL, "\"")); data/neverball-1.6.0+git20180603/share/mapc.c:939:13: [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(buf, data/neverball-1.6.0+git20180603/share/mapc.c:2756:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s (%d/$%d) %.3f\n", name, n, c, t); data/neverball-1.6.0+git20180603/share/mapc.c:2760:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "\t%d %s\n", *stats[i].ptr, stats[i].desc); data/neverball-1.6.0+git20180603/share/solid_base.c:907:28: [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. while (sscanf(p, "%s%n", word, &n) > 0) data/neverball-1.6.0+git20180603/share/solid_draw.c:815:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "%s mismatch (0x%08X -> 0x%08X)", name, real, curr); data/neverball-1.6.0+git20180603/contrib/curve.c:239:9: [3] (random) srand: 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. srand((unsigned int) time(NULL)); data/neverball-1.6.0+git20180603/putt/main.c:291:5: [3] (random) srand: 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. srand((int) time(NULL)); data/neverball-1.6.0+git20180603/share/base_config.c:38:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((env = getenv("NEVERBALL_DATA"))) data/neverball-1.6.0+git20180603/share/base_config.c:73:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return (path = getenv("HOME")) ? path : fs_base_dir(); data/neverball-1.6.0+git20180603/share/lang.c:38:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *dir = strdup(getenv("NEVERBALL_LOCALE")); data/neverball-1.6.0+git20180603/share/lang.c:70:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((env = getenv("LANGUAGE"))) data/neverball-1.6.0+git20180603/ball/demo.c:46: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 path[MAXSTR]; data/neverball-1.6.0+git20180603/ball/demo.c:53: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 name[MAXSTR]; data/neverball-1.6.0+git20180603/ball/demo.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 datestr[DATELEN]; data/neverball-1.6.0+git20180603/ball/demo.c:117: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 datestr[DATELEN]; data/neverball-1.6.0+git20180603/ball/demo.c:184: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 name[MAXSTR]; data/neverball-1.6.0+git20180603/ball/demo.c:258: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(numpart, "_%02d", i); data/neverball-1.6.0+git20180603/ball/demo.c:334: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[MAXSTR]; data/neverball-1.6.0+git20180603/ball/demo.h:14: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[MAXSTR]; /* Demo path */ data/neverball-1.6.0+git20180603/ball/demo.h:15: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[PATHMAX]; /* Demo basename */ data/neverball-1.6.0+git20180603/ball/demo.h:17: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 player[MAXSTR]; data/neverball-1.6.0+git20180603/ball/demo.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 shot[PATHMAX]; /* Image filename */ data/neverball-1.6.0+git20180603/ball/demo.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 file[PATHMAX]; /* Level filename */ data/neverball-1.6.0+git20180603/ball/game_common.c:40: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 str[64]; data/neverball-1.6.0+git20180603/ball/game_common.c:48:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, _("Camera %d"), c + 1); data/neverball-1.6.0+git20180603/ball/hud.c:46: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 *speed_labels[SPEED_MAX] = { data/neverball-1.6.0+git20180603/ball/level.c:54: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). l->goal = atoi(v); data/neverball-1.6.0+git20180603/ball/level.c:59: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). l->time = atoi(v); data/neverball-1.6.0+git20180603/ball/level.c:103: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). l->is_bonus = atoi(v) ? 1 : 0; data/neverball-1.6.0+git20180603/ball/level.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 file[PATHMAX]; data/neverball-1.6.0+git20180603/ball/level.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 shot[PATHMAX]; data/neverball-1.6.0+git20180603/ball/level.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 song[PATHMAX]; data/neverball-1.6.0+git20180603/ball/level.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 message[MAXSTR]; data/neverball-1.6.0+git20180603/ball/level.h:27: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_str[32]; data/neverball-1.6.0+git20180603/ball/level.h:29: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 author[MAXSTR]; data/neverball-1.6.0+git20180603/ball/level.h:41: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[MAXSTR]; data/neverball-1.6.0+git20180603/ball/main.c:52: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 filename[MAXSTR]; data/neverball-1.6.0+git20180603/ball/main.c:53:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename, "Screenshots/screen%05d.png", config_screenshot()); data/neverball-1.6.0+git20180603/ball/main.c:82: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 key_pressed[4]; data/neverball-1.6.0+git20180603/ball/score.c:45: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 player[MAXSTR]; data/neverball-1.6.0+git20180603/ball/score.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 player[RANK_MAX][MAXSTR]; data/neverball-1.6.0+git20180603/ball/set.c:35:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file[PATHMAX]; data/neverball-1.6.0+git20180603/ball/set.c:51: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 *level_name_v[MAXLVL]; /* List of level file names */ data/neverball-1.6.0+git20180603/ball/set.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 line[MAXSTR]; data/neverball-1.6.0+git20180603/ball/set.c:239: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[MAXSTR]; data/neverball-1.6.0+git20180603/ball/set.c:504:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(l->name, "%02d", regular++); data/neverball-1.6.0+git20180603/ball/st_ball.c:40: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 ball_file[64]; data/neverball-1.6.0+git20180603/ball/st_level.c:53: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 setattr[MAXSTR], lvlattr[MAXSTR]; data/neverball-1.6.0+git20180603/ball/st_level.c:64:21: [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(setattr, _("Standalone level")); data/neverball-1.6.0+git20180603/ball/st_title.c:93: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 queue[sizeof (keyphrase)] = ""; data/neverball-1.6.0+git20180603/contrib/curve.c:39: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 toptex[256]; data/neverball-1.6.0+git20180603/contrib/curve.c:40: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 intex [256]; data/neverball-1.6.0+git20180603/contrib/curve.c:41: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 outtex[256]; data/neverball-1.6.0+git20180603/contrib/curve.c:42: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 bottex[256]; data/neverball-1.6.0+git20180603/contrib/curve.c:43: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 blanktex[256]; data/neverball-1.6.0+git20180603/contrib/curve.c:45: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 *helptxt[MAX_HELP_TXTS] = { data/neverball-1.6.0+git20180603/contrib/curve.c:198: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 str[80]; data/neverball-1.6.0+git20180603/contrib/curve.c:210: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). else i = atoi(str); data/neverball-1.6.0+git20180603/contrib/curve.c:223: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 str[80]; data/neverball-1.6.0+git20180603/contrib/curve.c:372: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 c1[256],c2[256]; data/neverball-1.6.0+git20180603/contrib/curve.c:374: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(toptex,"mtrl/invisible"); data/neverball-1.6.0+git20180603/contrib/curve.c:375: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(bottex,"mtrl/invisible"); data/neverball-1.6.0+git20180603/contrib/curve.c:376: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(intex, "mtrl/invisible"); data/neverball-1.6.0+git20180603/contrib/curve.c:377: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(outtex,"mtrl/invisible"); data/neverball-1.6.0+git20180603/contrib/curve.c:378: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(blanktex,"mtrl/invisible"); data/neverball-1.6.0+git20180603/contrib/curve.c:380: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("textures.txt","r"); data/neverball-1.6.0+git20180603/contrib/curve.c:448:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen("textures.txt", "w"); data/neverball-1.6.0+git20180603/contrib/curve.c:460: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 str[80]; data/neverball-1.6.0+git20180603/contrib/curve.c:551: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). r0 = atoi(argv[1]); r2=r0; data/neverball-1.6.0+git20180603/contrib/curve.c:555: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). r1 = atoi(argv[2]); r3=r1; data/neverball-1.6.0+git20180603/contrib/curve.c:558: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). n = atoi(argv[3]); data/neverball-1.6.0+git20180603/contrib/curve.c:560: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). a0 = atoi(argv[4]); data/neverball-1.6.0+git20180603/contrib/curve.c:562: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). a1 = atoi(argv[5]); data/neverball-1.6.0+git20180603/contrib/curve.c:564:33: [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). thickness = atoi(argv[6]); data/neverball-1.6.0+git20180603/contrib/curve.c:566:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). r2=atoi(argv[7]); data/neverball-1.6.0+git20180603/contrib/curve.c:568:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). r3=atoi(argv[8]); data/neverball-1.6.0+git20180603/contrib/curve.c:571:33: [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). totalstep = atoi(argv[9]); usesteps=1; data/neverball-1.6.0+git20180603/contrib/curve.c:574:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). innerdrop= atoi(argv[10]); data/neverball-1.6.0+git20180603/contrib/curve.c:576:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). outerdrop= atoi(argv[11]); data/neverball-1.6.0+git20180603/contrib/curve.c:578: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). hill= atoi(argv[12]); data/neverball-1.6.0+git20180603/contrib/curve.c:580:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ct=atoi(argv[13]); /*any non-zero number keeps curves constant thickness.. */ data/neverball-1.6.0+git20180603/putt/course.c:29: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 holes[MAXSTR]; data/neverball-1.6.0+git20180603/putt/course.c:31: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 shot[MAXSTR]; data/neverball-1.6.0+git20180603/putt/course.c: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 desc[MAXSTR]; data/neverball-1.6.0+git20180603/putt/hole.c:33: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 file[MAXSTR]; data/neverball-1.6.0+git20180603/putt/hole.c:34: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 back[MAXSTR]; data/neverball-1.6.0+git20180603/putt/hole.c:35:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char song[MAXSTR]; data/neverball-1.6.0+git20180603/putt/hole.c: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 buff[MAXSTR]; data/neverball-1.6.0+git20180603/putt/hole.c:112:33: [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). hole_v[h].par = atoi(v); data/neverball-1.6.0+git20180603/putt/hole.c:172: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 str[MAXSTR]; data/neverball-1.6.0+git20180603/putt/hole.c:178:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%d", score_v[h][p]); data/neverball-1.6.0+git20180603/putt/hole.c:187: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 str[MAXSTR]; data/neverball-1.6.0+git20180603/putt/hole.c:196: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(str, "%d", T); data/neverball-1.6.0+git20180603/putt/hole.c:205: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 str[MAXSTR]; data/neverball-1.6.0+git20180603/putt/hole.c:214: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(str, "%d", T); data/neverball-1.6.0+git20180603/putt/hole.c:223: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 str[MAXSTR]; data/neverball-1.6.0+git20180603/putt/hole.c:233: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(str, "%d", T); data/neverball-1.6.0+git20180603/putt/hole.c:249: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[8]; data/neverball-1.6.0+git20180603/putt/hole.c:251:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", score_v[hole][player]); data/neverball-1.6.0+git20180603/putt/hole.c:258: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[8]; data/neverball-1.6.0+git20180603/putt/hole.c:260:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", score_v[hole][0]); data/neverball-1.6.0+git20180603/putt/main.c:49: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 filename[MAXSTR]; data/neverball-1.6.0+git20180603/putt/main.c:50:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename, "Screenshots/screen%05d.png", config_screenshot()); data/neverball-1.6.0+git20180603/putt/main.c:269:17: [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(ext, ".sol"); data/neverball-1.6.0+git20180603/putt/st_all.c:44: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 str[MAXSTR]; data/neverball-1.6.0+git20180603/putt/st_all.c:46:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%02d", i); data/neverball-1.6.0+git20180603/putt/st_all.c:729: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 str[MAXSTR]; data/neverball-1.6.0+git20180603/putt/st_all.c:731:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, _("Hole %02d"), curr_hole()); data/neverball-1.6.0+git20180603/share/ball.c:61:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). flags = SET(flags, atoi(v), F_PENDULUM); data/neverball-1.6.0+git20180603/share/ball.c:63:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). flags = SET(flags, atoi(v), F_DRAWBACK); data/neverball-1.6.0+git20180603/share/ball.c:65:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). flags = SET(flags, atoi(v), F_DRAWCLIP); data/neverball-1.6.0+git20180603/share/ball.c:67:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). flags = SET(flags, atoi(v), F_DEPTHMASK); data/neverball-1.6.0+git20180603/share/ball.c:69:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). flags = SET(flags, atoi(v), F_DEPTHTEST); data/neverball-1.6.0+git20180603/share/base_config.c:32: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 dir[MAXSTR]; data/neverball-1.6.0+git20180603/share/base_config.c:54: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 path[MAX_PATH]; data/neverball-1.6.0+git20180603/share/base_config.c:58:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char gamepath[MAX_PATH]; data/neverball-1.6.0+git20180603/share/base_image.c:237:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&dst[(R * W + C) * b], &src[(r * w) * b], w * b); data/neverball-1.6.0+git20180603/share/base_image.c:347:46: [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. q[qi] = ((const unsigned char *) p)[pi]; data/neverball-1.6.0+git20180603/share/cmd.c:163: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 buff[MAXSTR]; data/neverball-1.6.0+git20180603/share/cmd.c:563: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/common.c:43: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/common.c:158: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 str[sizeof ("YYYY-mm-dd HH:MM:SS")]; data/neverball-1.6.0+git20180603/share/common.c:187: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/common.c:271: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 base[MAXSTR]; data/neverball-1.6.0+git20180603/share/common.c:302: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 buff[MAXSTR]; data/neverball-1.6.0+git20180603/share/common.c:339: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 str[MAXSTR]; data/neverball-1.6.0+git20180603/share/config.c:263: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). config_set_d(i, atoi(s)); data/neverball-1.6.0+git20180603/share/config.c:268: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 buff[sizeof ("256")]; data/neverball-1.6.0+git20180603/share/config.c:270:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buff, "%d", b); data/neverball-1.6.0+git20180603/share/config.c:391:45: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). config_set_d(i, atoi(val)); data/neverball-1.6.0+git20180603/share/font.c:27:38: [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. int font_load(struct font *ft, const char *path, int sizes[3]) data/neverball-1.6.0+git20180603/share/font.h:11: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[PATHMAX]; data/neverball-1.6.0+git20180603/share/font.h:19:37: [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. int font_load(struct font *, const char *path, int sizes[3]); data/neverball-1.6.0+git20180603/share/fs_common.c:284: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 path[MAXSTR]; data/neverball-1.6.0+git20180603/share/fs_stdio.c:230:26: [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). fh->handle = fopen(real, "rb"); data/neverball-1.6.0+git20180603/share/fs_stdio.c:255:30: [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). fh->handle = fopen(real, append ? "ab" : "wb"); data/neverball-1.6.0+git20180603/share/geom.c:301: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 item_sols[GEOM_MAX][PATHMAX] = { data/neverball-1.6.0+git20180603/share/geom.c:721: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/glext.c:104: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(&fun, &ptr, sizeof (void *)); \ data/neverball-1.6.0+git20180603/share/gui.c:723: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(str, text, mid); data/neverball-1.6.0+git20180603/share/gui.c:724: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(str + mid, "...", sizeof ("...")); data/neverball-1.6.0+git20180603/share/gui.c:736: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(str, text, left); data/neverball-1.6.0+git20180603/share/gui.c:737: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(str + left, "...", sizeof ("...")); data/neverball-1.6.0+git20180603/share/gui.c:831: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[GUI_LINES][MAXSTR]; data/neverball-1.6.0+git20180603/share/gui.c:1041: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 s[GUI_LINES][MAXSTR]; data/neverball-1.6.0+git20180603/share/gui.c:2191: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 str[16]; data/neverball-1.6.0+git20180603/share/gui.c:2192:17: [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(str, "%d/%d", page, pages); data/neverball-1.6.0+git20180603/share/lang.c:35: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 default_lang[MAXSTR]; data/neverball-1.6.0+git20180603/share/lang.c:114: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 path[MAXSTR]; data/neverball-1.6.0+git20180603/share/lang.c:138: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/lang.h:47: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 code[32]; data/neverball-1.6.0+git20180603/share/lang.h:49: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 name1[MAXSTR]; data/neverball-1.6.0+git20180603/share/lang.h:50: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 name2[MAXSTR]; data/neverball-1.6.0+git20180603/share/lang.h:51: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 font[MAXSTR]; data/neverball-1.6.0+git20180603/share/log.c:23: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 log_header[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:74: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. static unsigned char bcast_msg[MAX_BCAST_MSG]; data/neverball-1.6.0+git20180603/share/mapc.c:109: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(p, str, n); data/neverball-1.6.0+git20180603/share/mapc.c:146: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[512]; data/neverball-1.6.0+git20180603/share/mapc.c:159:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "<message level=\"%1d\">%.*s</message>", lvl, maxstr, str); data/neverball-1.6.0+git20180603/share/mapc.c:245: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[64]; data/neverball-1.6.0+git20180603/share/mapc.c:424: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:431: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:559: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:596:24: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy(tmp, imagedata, sizeof(struct _imagedata) * image_alloc); data/neverball-1.6.0+git20180603/share/mapc.c:618: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 [MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:781: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 line[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:782: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 mtrl[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:907:43: [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 int map_token(fs_file fin, int pi, char key[MAXSTR], char val[MAXSTR]) data/neverball-1.6.0+git20180603/share/mapc.c:907:61: [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 int map_token(fs_file fin, int pi, char key[MAXSTR], char val[MAXSTR]) data/neverball-1.6.0+git20180603/share/mapc.c:909: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:969: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 k[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:970: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 v[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:1025: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). pp->f = atoi(v[i]); data/neverball-1.6.0+git20180603/share/mapc.c:1031: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). pp->s = atoi(v[i]); data/neverball-1.6.0+git20180603/share/mapc.c:1402: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). xp->f = atoi(v[i]); data/neverball-1.6.0+git20180603/share/mapc.c:1405: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). xp->i = atoi(v[i]); data/neverball-1.6.0+git20180603/share/mapc.c:1487: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 k[MAXKEY][MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:1488: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 v[MAXKEY][MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:1527: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 k[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:1528: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 v[MAXSTR]; data/neverball-1.6.0+git20180603/share/mapc.c:2690: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[5]; data/neverball-1.6.0+git20180603/share/mapc.c:2691: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 desc[32]; data/neverball-1.6.0+git20180603/share/mapc.c:2727:44: [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. stats[i].ptr = (int *) &((unsigned char *) fp)[stats[i].off]; data/neverball-1.6.0+git20180603/share/mapc.c:2753: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 msg[512]; data/neverball-1.6.0+git20180603/share/mapc.c:2754: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[64]; data/neverball-1.6.0+git20180603/share/mapc.c:2806: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 src[MAXSTR] = ""; data/neverball-1.6.0+git20180603/share/mapc.c:2807: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 dst[MAXSTR] = ""; data/neverball-1.6.0+git20180603/share/mapc.c:2845:13: [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(dst + strlen(dst) - 4, ".sol"); data/neverball-1.6.0+git20180603/share/mapc.c:2847: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(dst, ".sol"); data/neverball-1.6.0+git20180603/share/mtrl.c:86: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/mtrl.c:148: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(&mp->base, base, sizeof (struct b_mtrl)); data/neverball-1.6.0+git20180603/share/solid_base.c:806: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 mtrl_func_names[8][16] = { data/neverball-1.6.0+git20180603/share/solid_base.c:819: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[16]; data/neverball-1.6.0+git20180603/share/solid_base.c:837: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 line[MAXSTR]; data/neverball-1.6.0+git20180603/share/solid_base.c:838: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 word[MAXSTR]; data/neverball-1.6.0+git20180603/share/solid_base.c:871: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 str[16] = ""; data/neverball-1.6.0+git20180603/share/solid_base.h: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 f[PATHMAX]; /* texture file name */ data/neverball-1.6.0+git20180603/share/solid_base.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 prefix[16]; data/neverball-1.6.0+git20180603/share/solid_base.h:351:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char suffix[8]; data/neverball-1.6.0+git20180603/share/solid_draw.c:798: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 buff[64]; data/neverball-1.6.0+git20180603/share/solid_draw.c:1015: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(mq, mp, sizeof (struct mtrl)); data/neverball-1.6.0+git20180603/share/st_common.c:328: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 resolution[sizeof ("12345678 x 12345678")]; data/neverball-1.6.0+git20180603/share/st_common.c:332: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(resolution, "%d x %d", data/neverball-1.6.0+git20180603/share/st_common.c:542: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 buff[sizeof ("1234567890 x 1234567890")] = ""; data/neverball-1.6.0+git20180603/share/st_common.c:556:25: [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(buff, "%d x %d", modes[m].w, modes[m].h); data/neverball-1.6.0+git20180603/share/st_common.h:10: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[8]; data/neverball-1.6.0+git20180603/share/text.c:91: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 text_input[MAXSTR]; data/neverball-1.6.0+git20180603/share/text.h:18: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 text_input[MAXSTR]; data/neverball-1.6.0+git20180603/share/theme.c:22: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 theme_images[THEME_IMAGES_MAX][PATHMAX] = { data/neverball-1.6.0+git20180603/share/theme.c:77: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 path[MAXSTR]; data/neverball-1.6.0+git20180603/share/theme.c:92: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[MAXSTR]; data/neverball-1.6.0+git20180603/share/video.c:61: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 snapshot_path[MAXSTR] = ""; data/neverball-1.6.0+git20180603/ball/demo.c:212:17: [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. strncat(name, set, space_left); data/neverball-1.6.0+git20180603/ball/demo.c:213: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). space_left -= strlen(set); data/neverball-1.6.0+git20180603/ball/demo.c:217:17: [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. strncat(name, level, space_left); data/neverball-1.6.0+git20180603/ball/demo.c:218: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). space_left -= strlen(level); data/neverball-1.6.0+git20180603/ball/demo.c:222:17: [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(name, "%", space_left); data/neverball-1.6.0+git20180603/ball/demo.c:238: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. strncat(name, fmt, 1); data/neverball-1.6.0+git20180603/ball/demo.c:251:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (space_left < strlen("_23")) data/neverball-1.6.0+git20180603/ball/demo.c:252:44: [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). numpart = name + MAXSTRLEN(name) - strlen("_23"); data/neverball-1.6.0+git20180603/ball/hud.c:105: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(cam_to_str(v)) > strlen(str_cam)) data/neverball-1.6.0+git20180603/ball/hud.c:105:37: [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(cam_to_str(v)) > strlen(str_cam)) data/neverball-1.6.0+git20180603/ball/level.c:220: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(level->message) > 0) data/neverball-1.6.0+git20180603/ball/main.c:433:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(argv[i]); data/neverball-1.6.0+git20180603/ball/main.c:441:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(ext, ".sol", 4); data/neverball-1.6.0+git20180603/ball/set.c:142: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). n = MIN(strlen(buf), s->count); data/neverball-1.6.0+git20180603/ball/st_ball.c:94: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). if (strncmp(ball_file, path, strlen(path)) == 0) data/neverball-1.6.0+git20180603/ball/st_demo.c:176: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(status_to_str(s)) > strlen(status)) data/neverball-1.6.0+git20180603/ball/st_demo.c:176: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). if (strlen(status_to_str(s)) > strlen(status)) data/neverball-1.6.0+git20180603/ball/st_name.c:69: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(text_input) == 0) data/neverball-1.6.0+git20180603/ball/st_save.c:64: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(text_input) == 0) data/neverball-1.6.0+git20180603/ball/st_title.c:95:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t queue_len = strlen(queue); data/neverball-1.6.0+git20180603/ball/st_title.c:106: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(config_get_s(CONFIG_PLAYER)) == 0) data/neverball-1.6.0+git20180603/putt/course.c:51:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(crs->holes, filename, MAXSTR - 1); data/neverball-1.6.0+git20180603/putt/main.c:262:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(argv[1]); data/neverball-1.6.0+git20180603/share/base_image.c:199:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *ext = filename + strlen(filename) - 4; data/neverball-1.6.0+git20180603/share/binary.h:14:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define STRING_BYTES(s) (strlen(s) + 1) data/neverball-1.6.0+git20180603/share/common.c:67: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). len0 = strlen(line); data/neverball-1.6.0+git20180603/share/common.c:69: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). len1 = strlen(line); data/neverball-1.6.0+git20180603/share/common.c:84:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *c = str + strlen(str) - 1; data/neverball-1.6.0+git20180603/share/common.c:96: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 (src && (dst = malloc(strlen(src) + 1))) data/neverball-1.6.0+git20180603/share/common.c:117:38: [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 ((new = realloc(full, strlen(full) + strlen(part) + 1))) data/neverball-1.6.0+git20180603/share/common.c:117: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). if ((new = realloc(full, strlen(full) + strlen(part) + 1))) data/neverball-1.6.0+git20180603/share/common.c:285:12: [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). blen = strlen(base); data/neverball-1.6.0+git20180603/share/common.c:286:12: [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). slen = strlen(suffix); data/neverball-1.6.0+git20180603/share/common.h:66:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (strncpy((dst), (src), MAXSTRLEN(dst))) data/neverball-1.6.0+git20180603/share/common.h:68:6: [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. (strncat((dst), (src), MAXSTRLEN(dst) - MIN(strlen(dst), MAXSTRLEN(dst)))) data/neverball-1.6.0+git20180603/share/common.h:68: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). (strncat((dst), (src), MAXSTRLEN(dst) - MIN(strlen(dst), MAXSTRLEN(dst)))) data/neverball-1.6.0+git20180603/share/common.h:81: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). #define str_starts_with(s, h) (strncmp((s), (h), strlen(h)) == 0) data/neverball-1.6.0+git20180603/share/common.h:82: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). #define str_ends_with(s, t) ((strlen(s) >= strlen(t)) && strcmp((s) + strlen(s) - strlen(t), (t)) == 0) data/neverball-1.6.0+git20180603/share/common.h:82:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define str_ends_with(s, t) ((strlen(s) >= strlen(t)) && strcmp((s) + strlen(s) - strlen(t), (t)) == 0) data/neverball-1.6.0+git20180603/share/common.h:82:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define str_ends_with(s, t) ((strlen(s) >= strlen(t)) && strcmp((s) + strlen(s) - strlen(t), (t)) == 0) data/neverball-1.6.0+git20180603/share/common.h:82:83: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define str_ends_with(s, t) ((strlen(s) >= strlen(t)) && strcmp((s) + strlen(s) - strlen(t), (t)) == 0) data/neverball-1.6.0+git20180603/share/fs_common.c:239:37: [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). written = write_lines(buff, strlen(buff), fh); data/neverball-1.6.0+git20180603/share/fs_png.c:26:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read < length) data/neverball-1.6.0+git20180603/share/fs_png.c:27:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). memset(data + read, 0, length - read); data/neverball-1.6.0+git20180603/share/fs_png.c:27:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). memset(data + read, 0, length - read); data/neverball-1.6.0+git20180603/share/gui.c:688: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). right = strlen(text); data/neverball-1.6.0+git20180603/share/gui.c:715: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). right = strlen(text); data/neverball-1.6.0+git20180603/share/gui.c:844:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s[sc], p, (n = strcspn(p, "\\"))); data/neverball-1.6.0+git20180603/share/gui.c:1050:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s[j], p, (n = strcspn(p, "\\"))); data/neverball-1.6.0+git20180603/share/image.c:206:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (font && text && strlen(text) > 0) data/neverball-1.6.0+git20180603/share/mapc.c:106: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). size_t n = MIN(strlen(str), (sizeof (bcast_msg) - data/neverball-1.6.0+git20180603/share/mapc.c:448:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sym->name, name, MAXSTR - 1); data/neverball-1.6.0+git20180603/share/mapc.c:462:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ref->name, name, MAXSTR - 1); data/neverball-1.6.0+git20180603/share/mapc.c:603:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). imagedata[image_n].s = (char *) calloc(strlen(name) + 1, 1); data/neverball-1.6.0+git20180603/share/mapc.c:1100: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). space_needed = strlen(k) + 1 + strlen(v) + 1; data/neverball-1.6.0+git20180603/share/mapc.c:1100:36: [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). space_needed = strlen(k) + 1 + strlen(v) + 1; data/neverball-1.6.0+git20180603/share/mapc.c:1109: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). dp->aj = dp->ai + strlen(k) + 1; data/neverball-1.6.0+git20180603/share/mapc.c:1110: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). fp->ac = dp->aj + strlen(v) + 1; data/neverball-1.6.0+git20180603/share/mapc.c:1112:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fp->av + dp->ai, k, space_left); data/neverball-1.6.0+git20180603/share/mapc.c:1113:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fp->av + dp->aj, v, space_left - strlen(k) - 1); data/neverball-1.6.0+git20180603/share/mapc.c:1113:46: [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). strncpy(fp->av + dp->aj, v, space_left - strlen(k) - 1); data/neverball-1.6.0+git20180603/share/mapc.c:2841:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(src, argv[1], MAXSTR - 1); data/neverball-1.6.0+git20180603/share/mapc.c:2842:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dst, argv[1], MAXSTR - 1); data/neverball-1.6.0+git20180603/share/mapc.c:2844:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strcmp(dst + strlen(dst) - 4, ".map") == 0) data/neverball-1.6.0+git20180603/share/mapc.c:2845:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strcpy(dst + strlen(dst) - 4, ".sol"); data/neverball-1.6.0+git20180603/share/solid_base.c:924:26: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. else if (sscanf(p, "alpha-test %15s %f", data/neverball-1.6.0+git20180603/share/text.c:25: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). size_t pos = strlen(string); data/neverball-1.6.0+git20180603/share/text.c:64:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int pos = (int) strlen(string) - 1; data/neverball-1.6.0+git20180603/share/tilt_wii.c:112: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(address) > 0) ANALYSIS SUMMARY: Hits = 315 Lines analyzed = 39812 in approximately 1.11 seconds (35930 lines/second) Physical Source Lines of Code (SLOC) = 27611 Hits@level = [0] 112 [1] 69 [2] 201 [3] 6 [4] 39 [5] 0 Hits@level+ = [0+] 427 [1+] 315 [2+] 246 [3+] 45 [4+] 39 [5+] 0 Hits/KSLOC@level+ = [0+] 15.4649 [1+] 11.4085 [2+] 8.90949 [3+] 1.62979 [4+] 1.41248 [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.