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/dangen-0.5/background.c Examining data/dangen-0.5/background.h Examining data/dangen-0.5/chain.c Examining data/dangen-0.5/chain.h Examining data/dangen-0.5/const.h Examining data/dangen-0.5/esc-ok.c Examining data/dangen-0.5/esc-ok.h Examining data/dangen-0.5/info.c Examining data/dangen-0.5/info.h Examining data/dangen-0.5/loop.c Examining data/dangen-0.5/loop.h Examining data/dangen-0.5/main.c Examining data/dangen-0.5/option.c Examining data/dangen-0.5/option.h Examining data/dangen-0.5/pause.c Examining data/dangen-0.5/pause.h Examining data/dangen-0.5/score.c Examining data/dangen-0.5/score.h Examining data/dangen-0.5/ship.c Examining data/dangen-0.5/ship.h Examining data/dangen-0.5/slow.c Examining data/dangen-0.5/slow.h Examining data/dangen-0.5/stage.c Examining data/dangen-0.5/stage.h Examining data/dangen-0.5/util.c Examining data/dangen-0.5/util.h Examining data/dangen-0.5/libtenm/tenm_collision.c Examining data/dangen-0.5/libtenm/tenm_collision.h Examining data/dangen-0.5/libtenm/tenm_graphic.c Examining data/dangen-0.5/libtenm/tenm_graphic.h Examining data/dangen-0.5/libtenm/tenm_input.c Examining data/dangen-0.5/libtenm/tenm_input.h Examining data/dangen-0.5/libtenm/tenm_math.c Examining data/dangen-0.5/libtenm/tenm_math.h Examining data/dangen-0.5/libtenm/tenm_object.c Examining data/dangen-0.5/libtenm/tenm_object.h Examining data/dangen-0.5/libtenm/tenm_primitive.c Examining data/dangen-0.5/libtenm/tenm_primitive.h Examining data/dangen-0.5/libtenm/tenm_sdl_init.c Examining data/dangen-0.5/libtenm/tenm_sdl_init.h Examining data/dangen-0.5/libtenm/tenm_table.c Examining data/dangen-0.5/libtenm/tenm_table.h Examining data/dangen-0.5/libtenm/tenm_timer.c Examining data/dangen-0.5/libtenm/tenm_timer.h Examining data/dangen-0.5/record/record_lexical.c Examining data/dangen-0.5/record/record_parser.c Examining data/dangen-0.5/record/record_parser.h Examining data/dangen-0.5/record/record_data.c Examining data/dangen-0.5/record/record_data.h Examining data/dangen-0.5/record/record_io.c Examining data/dangen-0.5/record/record_io.h Examining data/dangen-0.5/record/record_lexical.h Examining data/dangen-0.5/record/record_parser_private.h Examining data/dangen-0.5/record/record_parser_public.h Examining data/dangen-0.5/record/record_util.c Examining data/dangen-0.5/record/record_util.h Examining data/dangen-0.5/spqr/afterdeath.c Examining data/dangen-0.5/spqr/afterdeath.h Examining data/dangen-0.5/spqr/brilliance.c Examining data/dangen-0.5/spqr/brilliance.h Examining data/dangen-0.5/spqr/cat-tail-grep.c Examining data/dangen-0.5/spqr/cat-tail-grep.h Examining data/dangen-0.5/spqr/cat-tail.c Examining data/dangen-0.5/spqr/cat-tail.h Examining data/dangen-0.5/spqr/empty-wind.c Examining data/dangen-0.5/spqr/empty-wind.h Examining data/dangen-0.5/spqr/explosion.c Examining data/dangen-0.5/spqr/explosion.h Examining data/dangen-0.5/spqr/flatdice.c Examining data/dangen-0.5/spqr/flatdice.h Examining data/dangen-0.5/spqr/fragment.c Examining data/dangen-0.5/spqr/fragment.h Examining data/dangen-0.5/spqr/gosanpachi.c Examining data/dangen-0.5/spqr/gosanpachi.h Examining data/dangen-0.5/spqr/hatsuda.c Examining data/dangen-0.5/spqr/hatsuda.h Examining data/dangen-0.5/spqr/hugin.c Examining data/dangen-0.5/spqr/hugin.h Examining data/dangen-0.5/spqr/insane-hand.c Examining data/dangen-0.5/spqr/insane-hand.h Examining data/dangen-0.5/spqr/laser.c Examining data/dangen-0.5/spqr/laser.h Examining data/dangen-0.5/spqr/last-boss.c Examining data/dangen-0.5/spqr/last-boss.h Examining data/dangen-0.5/spqr/mankanshoku.c Examining data/dangen-0.5/spqr/mankanshoku.h Examining data/dangen-0.5/spqr/negation-engine.c Examining data/dangen-0.5/spqr/negation-engine.h Examining data/dangen-0.5/spqr/net-can-howl.c Examining data/dangen-0.5/spqr/net-can-howl.h Examining data/dangen-0.5/spqr/nexus.c Examining data/dangen-0.5/spqr/nexus.h Examining data/dangen-0.5/spqr/normal-enemy.c Examining data/dangen-0.5/spqr/normal-enemy.h Examining data/dangen-0.5/spqr/normal-shot.c Examining data/dangen-0.5/spqr/normal-shot.h Examining data/dangen-0.5/spqr/p-can.c Examining data/dangen-0.5/spqr/p-can.h Examining data/dangen-0.5/spqr/perpeki.c Examining data/dangen-0.5/spqr/perpeki.h Examining data/dangen-0.5/spqr/plan-0.c Examining data/dangen-0.5/spqr/plan-0.h Examining data/dangen-0.5/spqr/plan-1.c Examining data/dangen-0.5/spqr/plan-1.h Examining data/dangen-0.5/spqr/plan-2.c Examining data/dangen-0.5/spqr/plan-2.h Examining data/dangen-0.5/spqr/plan-3.c Examining data/dangen-0.5/spqr/plan-3.h Examining data/dangen-0.5/spqr/plan-4.c Examining data/dangen-0.5/spqr/plan-4.h Examining data/dangen-0.5/spqr/plan-5.c Examining data/dangen-0.5/spqr/plan-5.h Examining data/dangen-0.5/spqr/plan-6.c Examining data/dangen-0.5/spqr/plan-6.h Examining data/dangen-0.5/spqr/plan-7.c Examining data/dangen-0.5/spqr/plan-7.h Examining data/dangen-0.5/spqr/plan-8.c Examining data/dangen-0.5/spqr/plan-8.h Examining data/dangen-0.5/spqr/plan-9.c Examining data/dangen-0.5/spqr/plan-9.h Examining data/dangen-0.5/spqr/plan-10.c Examining data/dangen-0.5/spqr/plan-10.h Examining data/dangen-0.5/spqr/plan-11.c Examining data/dangen-0.5/spqr/plan-11.h Examining data/dangen-0.5/spqr/plan-12.c Examining data/dangen-0.5/spqr/plan-12.h Examining data/dangen-0.5/spqr/plan-13.c Examining data/dangen-0.5/spqr/plan-13.h Examining data/dangen-0.5/spqr/plan-14.c Examining data/dangen-0.5/spqr/plan-14.h Examining data/dangen-0.5/spqr/plan-15.c Examining data/dangen-0.5/spqr/plan-15.h Examining data/dangen-0.5/spqr/plan-16.c Examining data/dangen-0.5/spqr/plan-16.h Examining data/dangen-0.5/spqr/plan-17.c Examining data/dangen-0.5/spqr/plan-17.h Examining data/dangen-0.5/spqr/plan-18.c Examining data/dangen-0.5/spqr/plan-18.h Examining data/dangen-0.5/spqr/plan-19.c Examining data/dangen-0.5/spqr/plan-19.h Examining data/dangen-0.5/spqr/plan-20.c Examining data/dangen-0.5/spqr/plan-20.h Examining data/dangen-0.5/spqr/player-shot.c Examining data/dangen-0.5/spqr/player-shot.h Examining data/dangen-0.5/spqr/player.c Examining data/dangen-0.5/spqr/player.h Examining data/dangen-0.5/spqr/respiration.c Examining data/dangen-0.5/spqr/respiration.h Examining data/dangen-0.5/spqr/result.c Examining data/dangen-0.5/spqr/result.h Examining data/dangen-0.5/spqr/scheduler.c Examining data/dangen-0.5/spqr/scheduler.h Examining data/dangen-0.5/spqr/seiron-fake.c Examining data/dangen-0.5/spqr/seiron-fake.h Examining data/dangen-0.5/spqr/seiron.c Examining data/dangen-0.5/spqr/seiron.h Examining data/dangen-0.5/spqr/show-record.c Examining data/dangen-0.5/spqr/show-record.h Examining data/dangen-0.5/spqr/silver-chimera.c Examining data/dangen-0.5/spqr/silver-chimera.h Examining data/dangen-0.5/spqr/spellbook.c Examining data/dangen-0.5/spqr/spellbook.h Examining data/dangen-0.5/spqr/stage-clear.c Examining data/dangen-0.5/spqr/stage-clear.h Examining data/dangen-0.5/spqr/stage-list.c Examining data/dangen-0.5/spqr/stage-list.h Examining data/dangen-0.5/spqr/stage-select.c Examining data/dangen-0.5/spqr/stage-select.h Examining data/dangen-0.5/spqr/stage-title.c Examining data/dangen-0.5/spqr/stage-title.h Examining data/dangen-0.5/spqr/strikers.c Examining data/dangen-0.5/spqr/strikers.h Examining data/dangen-0.5/spqr/tadashi.c Examining data/dangen-0.5/spqr/tadashi.h Examining data/dangen-0.5/spqr/tenmado.c Examining data/dangen-0.5/spqr/tenmado.h Examining data/dangen-0.5/spqr/theorem-weapon.c Examining data/dangen-0.5/spqr/theorem-weapon.h Examining data/dangen-0.5/spqr/title.c Examining data/dangen-0.5/spqr/title.h Examining data/dangen-0.5/spqr/tutor.c Examining data/dangen-0.5/spqr/tutor.h Examining data/dangen-0.5/spqr/w-ko.c Examining data/dangen-0.5/spqr/w-ko.h Examining data/dangen-0.5/spqr/wall-0.c Examining data/dangen-0.5/spqr/wall-0.h Examining data/dangen-0.5/spqr/wall-4.c Examining data/dangen-0.5/spqr/wall-4.h Examining data/dangen-0.5/spqr/wall-8.c Examining data/dangen-0.5/spqr/wall-8.h Examining data/dangen-0.5/spqr/wall-11.c Examining data/dangen-0.5/spqr/wall-11.h Examining data/dangen-0.5/spqr/wall-13.c Examining data/dangen-0.5/spqr/wall-13.h Examining data/dangen-0.5/spqr/warning.c Examining data/dangen-0.5/spqr/warning.h Examining data/dangen-0.5/spqr/watcher-below.c Examining data/dangen-0.5/spqr/watcher-below.h FINAL RESULTS: data/dangen-0.5/record/record_parser.c:704:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/dangen-0.5/record/record_util.c:119:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(result + head, s); data/dangen-0.5/spqr/show-record.c:645:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp, "%s", data/dangen-0.5/main.c:56:3: [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/dangen-0.5/record/record_io.c:270:13: [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 *s = getenv("HOME"); data/dangen-0.5/info.c:30:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[16]; data/dangen-0.5/info.c:54:3: [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(temp, "chain %4d", chain); data/dangen-0.5/info.c:75:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[16]; data/dangen-0.5/info.c:98:3: [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(temp, "ship %3d", ship); data/dangen-0.5/info.c:120:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/info.c:140:3: [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(temp, "score %8d", score); data/dangen-0.5/record/record_io.c:168: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). file = fopen(filename, mode); data/dangen-0.5/record/record_parser.c:1001: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. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/dangen-0.5/record/record_parser.c:1018: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. char yyformat[sizeof yyunexpected data/dangen-0.5/record/record_parser.c:1186:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yymsgbuf[128]; data/dangen-0.5/spqr/afterdeath.c:432:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/afterdeath.c:585: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/brilliance.c:348:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/brilliance.c:405: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/cat-tail-grep.c:894:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/cat-tail-grep.c:1049: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/cat-tail-grep.c:1648:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/cat-tail-grep.c:1735: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/cat-tail.c:795:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/cat-tail.c:950: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/cat-tail.c:1551:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/cat-tail.c:1638: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/empty-wind.c:894:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/empty-wind.c:1010: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/gosanpachi.c:446:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/gosanpachi.c:507: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/hatsuda.c:736:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/hatsuda.c:963: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/hugin.c:485:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/hugin.c:546: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/hugin.c:955:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/hugin.c:1014: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/insane-hand.c:1114:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/insane-hand.c:1241: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/insane-hand.c:1608:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/insane-hand.c:1673: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/last-boss.c:776:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/last-boss.c:881:7: [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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/mankanshoku.c:580:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/mankanshoku.c:687: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/net-can-howl.c:889:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/net-can-howl.c:1105: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/net-can-howl.c:2087:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/net-can-howl.c:2146: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/net-can-howl.c:2714:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/net-can-howl.c:2757: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/nexus.c:648:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/nexus.c:713: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/normal-enemy.c:977:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/normal-enemy.c:1148: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/p-can.c:425:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/p-can.c:515: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/perpeki.c:801:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/perpeki.c:897: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/perpeki.c:1741:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/perpeki.c:1830: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/plan-0.c:607:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/plan-0.c:629: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(temp, "level %3d", my->count[5]); data/dangen-0.5/spqr/respiration.c:347:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/respiration.c:447: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/result.c:33:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[128]; data/dangen-0.5/spqr/result.c:55:3: [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(temp, "version %.20s", VERSION); data/dangen-0.5/spqr/result.c:79:3: [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(temp, "total score: %8d", get_score()); data/dangen-0.5/spqr/result.c:93: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(temp, "%-20.20s %8d", get_stage_name(i), data/dangen-0.5/spqr/result.c:108: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(temp, "* ship bonus %8d", get_stage_score(6)); data/dangen-0.5/spqr/seiron-fake.c:727:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/seiron-fake.c:841:7: [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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/seiron.c:984:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/seiron.c:1098:7: [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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/show-record.c:38:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[128]; data/dangen-0.5/spqr/show-record.c:398: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(temp, "version %.20s", VERSION); data/dangen-0.5/spqr/show-record.c:424:11: [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(temp, "total"); data/dangen-0.5/spqr/show-record.c:426:11: [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(temp, "[%.10s] %.50s", data/dangen-0.5/spqr/show-record.c:450:11: [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(temp, "%8d", p_rec->score_max); data/dangen-0.5/spqr/show-record.c:452:11: [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(temp, " ---"); data/dangen-0.5/spqr/show-record.c:457:11: [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(temp, "%8d", record->total_p->total_score); data/dangen-0.5/spqr/show-record.c:459:11: [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(temp, " ---"); data/dangen-0.5/spqr/show-record.c:474:11: [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(temp, "%8d", p_rec->score_min_cleared); data/dangen-0.5/spqr/show-record.c:476:11: [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(temp, " ---"); data/dangen-0.5/spqr/show-record.c:490:11: [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(temp, "%8d", p_rec->number_play); data/dangen-0.5/spqr/show-record.c:492:11: [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(temp, " ---"); data/dangen-0.5/spqr/show-record.c:497:11: [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(temp, "%8d", record->total_p->number_play); data/dangen-0.5/spqr/show-record.c:499:11: [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(temp, " ---"); data/dangen-0.5/spqr/show-record.c:512: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(temp, "total"); data/dangen-0.5/spqr/show-record.c:514: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(temp, "[%.10s] %.50s", data/dangen-0.5/spqr/show-record.c:527:11: [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(temp, "%8d", p_rec->score_max); data/dangen-0.5/spqr/show-record.c:529:11: [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(temp, " ---"); data/dangen-0.5/spqr/show-record.c:548:11: [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(temp, "%8d", p_rec->score_min_cleared); data/dangen-0.5/spqr/show-record.c:550:11: [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(temp, " ---"); data/dangen-0.5/spqr/show-record.c:570: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(temp, "%8d", p_rec->number_play); data/dangen-0.5/spqr/show-record.c:590: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(temp, "%8d", p_rec->number_clear); data/dangen-0.5/spqr/show-record.c:608:11: [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(temp, "%8d", record->total_p->total_score); data/dangen-0.5/spqr/show-record.c:610:11: [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(temp, " ---"); data/dangen-0.5/spqr/show-record.c:636: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(temp, "ship bonus"); data/dangen-0.5/spqr/show-record.c:661:15: [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(temp, "%8d", record->total_p->stage_score[i]); data/dangen-0.5/spqr/show-record.c:677:11: [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(temp, "%8d", record->total_p->number_play); data/dangen-0.5/spqr/show-record.c:679:11: [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(temp, " ---"); data/dangen-0.5/spqr/show-record.c:738:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[128]; data/dangen-0.5/spqr/show-record.c:750:3: [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(temp, "%4d/%2d/%2d %2d:%2d", data/dangen-0.5/spqr/silver-chimera.c:569:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/silver-chimera.c:650: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/silver-chimera.c:1462:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/silver-chimera.c:1542: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/spellbook.c:443:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/spellbook.c:555: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/stage-clear.c:111:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/stage-clear.c:125: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(temp, "stage %d cleared", get_stage_number()); data/dangen-0.5/spqr/stage-clear.c:127: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(temp, "final stage cleared"); data/dangen-0.5/spqr/stage-clear.c:135:3: [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(temp, "stage score: %8d", get_stage_score(get_stage_number())); data/dangen-0.5/spqr/stage-select.c:53:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[64]; data/dangen-0.5/spqr/stage-select.c:342: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(temp, "[%.10s] %.50s", data/dangen-0.5/spqr/stage-select.c:375:7: [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(temp, "stage %d", get_stage_number()); data/dangen-0.5/spqr/stage-select.c:377:7: [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(temp, "final stage"); data/dangen-0.5/spqr/stage-select.c:429: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(temp, "%8d", p_rec->score_max); data/dangen-0.5/spqr/stage-select.c:431: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(temp, " ---"); data/dangen-0.5/spqr/stage-select.c:442: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(temp, "%8d", p_rec->score_min_cleared); data/dangen-0.5/spqr/stage-select.c:444: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(temp, " ---"); data/dangen-0.5/spqr/stage-select.c:455: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(temp, "%8d", p_rec->number_play); data/dangen-0.5/spqr/stage-select.c:457: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(temp, " ---"); data/dangen-0.5/spqr/stage-title.c:85:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/stage-title.c:97: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(temp, "stage %d", get_stage_number()); data/dangen-0.5/spqr/stage-title.c:99: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(temp, "final stage"); data/dangen-0.5/spqr/stage-title.c:107:3: [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(temp, "%.20s", get_stage_name(get_stage_number())); data/dangen-0.5/spqr/strikers.c:667:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/strikers.c:759: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/strikers.c:1230:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/strikers.c:1322: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/strikers.c:1870:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/strikers.c:1962: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/tadashi.c:488:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/tadashi.c:640: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/tenmado.c:370:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/tenmado.c:450: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/theorem-weapon.c:895:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/theorem-weapon.c:1027: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/title.c:31:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/title.c:109: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(temp, "version %.20s", VERSION); data/dangen-0.5/spqr/tutor.c:822:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/tutor.c:996: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/w-ko.c:813:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/w-ko.c:1045: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/watcher-below.c:605:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/watcher-below.c:702: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(temp, "%d", my->hit_point); data/dangen-0.5/spqr/watcher-below.c:1052:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[32]; data/dangen-0.5/spqr/watcher-below.c:1111: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(temp, "%d", my->hit_point); data/dangen-0.5/stage.c:10: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 *current_stage_name[6]; data/dangen-0.5/info.c:56: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). temp, (int) strlen(temp)) != 0) data/dangen-0.5/info.c:100: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). temp, (int) strlen(temp)) != 0) data/dangen-0.5/info.c:142: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). temp, (int) strlen(temp)) != 0) data/dangen-0.5/libtenm/tenm_object.c:94: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). temp->name = (char *) malloc(sizeof(char) * (strlen(name) + 1)); data/dangen-0.5/libtenm/tenm_object.c:101:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp->name, name, strlen(name)); data/dangen-0.5/libtenm/tenm_object.c:101: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). strncpy(temp->name, name, strlen(name)); data/dangen-0.5/libtenm/tenm_object.c:102: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). temp->name[strlen(name)] = '\0'; data/dangen-0.5/record/record_lexical.c:1104:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( record_in )) != EOF && c != '\n'; ++n ) \ data/dangen-0.5/record/record_lexical.c:2112:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return record__scan_bytes(yystr,strlen(yystr) ); data/dangen-0.5/record/record_parser.c:882: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). # define yystrlen strlen data/dangen-0.5/record/record_util.c:85: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). length += (int) strlen(s); data/dangen-0.5/record/record_util.c:104: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). length += (int) strlen(result); data/dangen-0.5/record/record_util.c:120:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). head += (int) strlen(s); data/dangen-0.5/spqr/afterdeath.c:587:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/brilliance.c:407:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/cat-tail-grep.c:1051:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/cat-tail-grep.c:1737:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/cat-tail.c:952:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/cat-tail.c:1640:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/empty-wind.c:1012:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/gosanpachi.c:509:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/hatsuda.c:965:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/hugin.c:548:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/hugin.c:1016:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/insane-hand.c:1243:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/insane-hand.c:1675:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/last-boss.c:882:61: [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 (draw_string((int) my->x, (int) my->y, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/mankanshoku.c:689:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/net-can-howl.c:1107:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/net-can-howl.c:2147:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string((int) my->x, (int) my->y, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/net-can-howl.c:2758:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string((int) my->x, (int) my->y, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/nexus.c:715:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/normal-enemy.c:1149:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string((int) my->x, (int) my->y, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/p-can.c:517:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/perpeki.c:899:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/perpeki.c:1832:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/plan-0.c:631:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/respiration.c:449:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/result.c:56: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 (draw_string(100, 60, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/result.c:80:41: [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 (draw_string(100, 150, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/result.c:95:41: [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 (draw_string(100, y, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/result.c:109: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 (draw_string(82, y, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/seiron-fake.c:842:61: [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 (draw_string((int) my->x, (int) my->y, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/seiron.c:1099:61: [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 (draw_string((int) my->x, (int) my->y, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:399: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 (draw_string(100, 60, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:429:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string(80, 120 + 20 * i, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:462:45: [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 (draw_string(510, 180, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:477:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string(510, 220, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:502:45: [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 (draw_string(510, 260, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:517: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). if (draw_string(80, 120, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:531:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string(200, 150, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:551:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string(200, 170, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:571:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string(200, 190, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:591:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string(200, 210, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:612:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string(200, 150, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:649:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:663:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:680:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string(200, 350, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/show-record.c:757: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 (draw_string(x, y, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/silver-chimera.c:652:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/silver-chimera.c:1544:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/spellbook.c:557:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/stage-clear.c:128:45: [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 (draw_string(WINDOW_WIDTH / 2 - ((int) strlen(temp)) * 9 / 2, 190, data/dangen-0.5/spqr/stage-clear.c:129: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). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/stage-clear.c:136:45: [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 (draw_string(WINDOW_WIDTH / 2 - ((int) strlen(temp)) * 9 / 2, 220, data/dangen-0.5/spqr/stage-clear.c:137: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). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/stage-select.c:345:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (draw_string(80, 120 + 20 * i, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/stage-select.c:380: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). x = WINDOW_WIDTH - 10 - ((int) strlen(temp)) * 9; data/dangen-0.5/spqr/stage-select.c:385: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). x = WINDOW_WIDTH / 2 - ((int) strlen(temp)) * 9 / 2; data/dangen-0.5/spqr/stage-select.c:390:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). x = (WINDOW_WIDTH - 10 - ((int) strlen(temp)) * 9) data/dangen-0.5/spqr/stage-select.c:393:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). x += (WINDOW_WIDTH / 2 - ((int) strlen(temp)) * 9 / 2) data/dangen-0.5/spqr/stage-select.c:400:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/stage-select.c:432:45: [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 (draw_string(510, 180, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/stage-select.c:445:45: [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 (draw_string(510, 220, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/stage-select.c:458:45: [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 (draw_string(510, 260, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/stage-title.c:100:45: [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 (draw_string(WINDOW_WIDTH / 2 - ((int) strlen(temp)) * 9 / 2, 190, data/dangen-0.5/spqr/stage-title.c:101: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). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/stage-title.c:108:45: [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 (draw_string(WINDOW_WIDTH / 2 - ((int) strlen(temp)) * 9 / 2, 220, data/dangen-0.5/spqr/stage-title.c:109: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). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/strikers.c:761:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/strikers.c:1324:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/strikers.c:1964:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/tadashi.c:642:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/tenmado.c:452:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/theorem-weapon.c:1029:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/title.c:110: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 (draw_string(80, 120, temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/title.c:126:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (int) strlen(COPYRIGHT_STRING)) != 0) data/dangen-0.5/spqr/tutor.c:998:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/w-ko.c:1047:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/watcher-below.c:704:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) data/dangen-0.5/spqr/watcher-below.c:1113:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp, (int) strlen(temp)) != 0) ANALYSIS SUMMARY: Hits = 242 Lines analyzed = 65062 in approximately 1.60 seconds (40602 lines/second) Physical Source Lines of Code (SLOC) = 52940 Hits@level = [0] 1489 [1] 91 [2] 146 [3] 2 [4] 3 [5] 0 Hits@level+ = [0+] 1731 [1+] 242 [2+] 151 [3+] 5 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 32.6974 [1+] 4.57121 [2+] 2.85229 [3+] 0.0944465 [4+] 0.0566679 [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.