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/awesfx-0.5.2/agusload.c
Examining data/awesfx-0.5.2/alsa.c
Examining data/awesfx-0.5.2/asfxload.c
Examining data/awesfx-0.5.2/awelib/awe_parm.c
Examining data/awesfx-0.5.2/awelib/bool.c
Examining data/awesfx-0.5.2/awelib/cmpopen.c
Examining data/awesfx-0.5.2/awelib/dummy.c
Examining data/awesfx-0.5.2/awelib/dynload.c
Examining data/awesfx-0.5.2/awelib/fskip.c
Examining data/awesfx-0.5.2/awelib/gentxt.c
Examining data/awesfx-0.5.2/awelib/loadbank.c
Examining data/awesfx-0.5.2/awelib/loadtext.c
Examining data/awesfx-0.5.2/awelib/malloc.c
Examining data/awesfx-0.5.2/awelib/optfile.c
Examining data/awesfx-0.5.2/awelib/parsesf.c
Examining data/awesfx-0.5.2/awelib/path.c
Examining data/awesfx-0.5.2/awelib/sample.c
Examining data/awesfx-0.5.2/awelib/sbkconv.c
Examining data/awesfx-0.5.2/awelib/sffile.c
Examining data/awesfx-0.5.2/awelib/sfitem.c
Examining data/awesfx-0.5.2/awelib/sfopts.c
Examining data/awesfx-0.5.2/awelib/sfout.c
Examining data/awesfx-0.5.2/awelib/slist.c
Examining data/awesfx-0.5.2/aweset.c
Examining data/awesfx-0.5.2/gusload.c
Examining data/awesfx-0.5.2/guspatch.h
Examining data/awesfx-0.5.2/include/awe_parm.h
Examining data/awesfx-0.5.2/include/awe_voice.h
Examining data/awesfx-0.5.2/include/awebank.h
Examining data/awesfx-0.5.2/include/aweseq.h
Examining data/awesfx-0.5.2/include/itypes.h
Examining data/awesfx-0.5.2/include/sffile.h
Examining data/awesfx-0.5.2/include/sfitem.h
Examining data/awesfx-0.5.2/include/sflayer.h
Examining data/awesfx-0.5.2/include/sfopts.h
Examining data/awesfx-0.5.2/include/slist.h
Examining data/awesfx-0.5.2/include/util.h
Examining data/awesfx-0.5.2/seq.c
Examining data/awesfx-0.5.2/seq.h
Examining data/awesfx-0.5.2/setfx.c
Examining data/awesfx-0.5.2/sf2text.c
Examining data/awesfx-0.5.2/sfxload.c
Examining data/awesfx-0.5.2/sfxtest.c
Examining data/awesfx-0.5.2/text2sf.c

FINAL RESULTS:

data/awesfx-0.5.2/awelib/cmpopen.c:58:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(rec->v.ext + 1, ext);
data/awesfx-0.5.2/awelib/cmpopen.c:80:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(name, R_OK) != 0)
data/awesfx-0.5.2/awelib/cmpopen.c:119:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(str, rec->format, name);
data/awesfx-0.5.2/awelib/cmpopen.c:121:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(str, "%s \"%s\"", rec->format, name);
data/awesfx-0.5.2/awelib/cmpopen.c:122:13:  [4] (shell) popen:
  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.
		if ((fp = popen(str, "r")) != NULL) {
data/awesfx-0.5.2/awelib/optfile.c:55:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(rcfile, R_OK) != 0)
data/awesfx-0.5.2/awelib/optfile.c:60:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(rcfile, SYSTEM_RCFILE);
data/awesfx-0.5.2/awelib/optfile.c:61:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(rcfile, R_OK) != 0)
data/awesfx-0.5.2/awelib/optfile.c:165:2:  [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(options, OPTION_FLAGS);
data/awesfx-0.5.2/awelib/optfile.c:167:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(options, optflags);
data/awesfx-0.5.2/awelib/path.c:31:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(path, R_OK) == 0)
data/awesfx-0.5.2/awelib/path.c:36:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(lastp, *ext);
data/awesfx-0.5.2/awelib/path.c:37:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(path, R_OK) == 0)
data/awesfx-0.5.2/awelib/path.c:51:2:  [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(fresult, fname);
data/awesfx-0.5.2/aweset.c:236:2:  [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.
	fprintf(stderr, VERSION_NOTE);
data/awesfx-0.5.2/gusload.c:51:2:  [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.
	fprintf(stderr, PROGNAME " -- load GUS patch file on AWE32 sound driver\n");
data/awesfx-0.5.2/gusload.c:52:2:  [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.
	fprintf(stderr, VERSION_NOTE);
data/awesfx-0.5.2/setfx.c:67:2:  [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.
	fprintf(stderr, VERSION_NOTE);
data/awesfx-0.5.2/sfxload.c:349:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(tmp, arg);
data/awesfx-0.5.2/sfxtest.c:312:2:  [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.
	fprintf(stderr, VERSION_NOTE);
data/awesfx-0.5.2/text2sf.c:33:2:  [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.
	fprintf(stderr, VERSION_NOTE);
data/awesfx-0.5.2/awelib/loadbank.c:97: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 *p = getenv("SFBANKDIR");
data/awesfx-0.5.2/awelib/optfile.c:53:11:  [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 ((p = getenv("HOME")) != NULL && *p) {
data/awesfx-0.5.2/awelib/optfile.c:179:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	if ((c = getopt_long(argc, argv, options, long_options, optidx)) == -1)
data/awesfx-0.5.2/aweset.c:93:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, OPTIONS, long_options, NULL)) != -1) {
data/awesfx-0.5.2/gusload.c:91:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, OPTION_FLAGS)) != -1) {
data/awesfx-0.5.2/setfx.c:91:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "F:D:")) != -1) {
data/awesfx-0.5.2/setfx.c:111: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.
	default_sf_path = getenv("SFBANKDIR");
data/awesfx-0.5.2/sfxload.c:259:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, optstr, args, &dummy)) != -1)
data/awesfx-0.5.2/sfxtest.c:186:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "F:D:")) != -1) {
data/awesfx-0.5.2/alsa.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmpname[32];
data/awesfx-0.5.2/alsa.c:80:4:  [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(tmpname, "hw:%d,2", i);
data/awesfx-0.5.2/awelib/cmpopen.c:109:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[256];
data/awesfx-0.5.2/awelib/cmpopen.c:128:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return fopen(name, "r");
data/awesfx-0.5.2/awelib/dynload.c:94:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atoi(arg);
data/awesfx-0.5.2/awelib/fskip.c:28: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 tmp[1024];
data/awesfx-0.5.2/awelib/gentxt.c:23: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 *sf_gen_text[SF_EOF] = {
data/awesfx-0.5.2/awelib/loadbank.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sfpath[256];
data/awesfx-0.5.2/awelib/loadbank.c:142:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(path, "r")) == NULL) {
data/awesfx-0.5.2/awelib/loadbank.c:381:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[256], *p, *name;
data/awesfx-0.5.2/awelib/loadbank.c:477:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256];
data/awesfx-0.5.2/awelib/loadbank.c:480:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    (fp = fopen(path, "r")) != NULL) {
data/awesfx-0.5.2/awelib/loadbank.c:527:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256];
data/awesfx-0.5.2/awelib/loadbank.c:535:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = fopen(path, "r")) == NULL) {
data/awesfx-0.5.2/awelib/optfile.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *p, rcfile[256];
data/awesfx-0.5.2/awelib/optfile.c:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[256];
data/awesfx-0.5.2/awelib/optfile.c:70:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(rcfile, "r")) == NULL)
data/awesfx-0.5.2/awelib/optfile.c:74: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 *argv[MAX_ARGC];
data/awesfx-0.5.2/awelib/optfile.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[256], *base, *ep;
data/awesfx-0.5.2/awelib/optfile.c:159: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.
	static char options[100];
data/awesfx-0.5.2/awelib/optfile.c:184:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		ival = atoi(optarg);
data/awesfx-0.5.2/awelib/optfile.c:197:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		ival = atoi(optarg);
data/awesfx-0.5.2/awelib/optfile.c:204:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		ival = atoi(optarg);
data/awesfx-0.5.2/awelib/optfile.c:211:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		ival = atoi(optarg);
data/awesfx-0.5.2/awelib/optfile.c:233:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		ival = atoi(optarg);
data/awesfx-0.5.2/awelib/parsesf.c:162:2:  [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(rec.parm.name, name, AWE_PATCH_NAME_LEN);
data/awesfx-0.5.2/awelib/parsesf.c:168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmpname[AWE_PATCH_NAME_LEN];
data/awesfx-0.5.2/awelib/parsesf.c:175:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char uname[AWE_PATCH_NAME_LEN];
data/awesfx-0.5.2/awelib/parsesf.c:227:2:  [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(dst + 6, "%-18.18s", given);
data/awesfx-0.5.2/awelib/sffile.c:620:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(layp->list, &bags->gen[genNdx],
data/awesfx-0.5.2/awelib/sfout.c:408: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.
	static char buf[1024];
data/awesfx-0.5.2/awelib/slist.c:254:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[256];
data/awesfx-0.5.2/awelib/slist.c:275:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[256];
data/awesfx-0.5.2/awelib/slist.c:283:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[256];
data/awesfx-0.5.2/aweset.c:99:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_devidx = atoi(optarg);
data/awesfx-0.5.2/aweset.c:140:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[MAX_LINES];
data/awesfx-0.5.2/aweset.c:141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *argv[MAX_ARGS];
data/awesfx-0.5.2/aweset.c:144:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(fname, "r")) == NULL) {
data/awesfx-0.5.2/gusload.c:102:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_devidx = atoi(optarg);
data/awesfx-0.5.2/gusload.c:107:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				awe_verbose = atoi(optarg);
data/awesfx-0.5.2/gusload.c:112:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			bankchange = atoi(optarg);
data/awesfx-0.5.2/gusload.c:115:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			preset = atoi(optarg);
data/awesfx-0.5.2/gusload.c:118:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			keynote = atoi(optarg);
data/awesfx-0.5.2/gusload.c:135:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = fopen(gusfile, "r")) == NULL) {
data/awesfx-0.5.2/gusload.c:299:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(patch->env_rate, sample.envelope_rate, 6);
data/awesfx-0.5.2/gusload.c:300:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(patch->env_offset, sample.envelope_offset, 6);
data/awesfx-0.5.2/guspatch.h:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	header[ GUS_HEADER_SIZE ];	
data/awesfx-0.5.2/guspatch.h:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	gravis_id[ GUS_ID_SIZE ];	/* Id = "ID#000002" */
data/awesfx-0.5.2/guspatch.h:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	description[ GUS_DESC_SIZE ];
data/awesfx-0.5.2/guspatch.h:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	reserved[ GUS_PATCH_HEADER_RESERVED_SIZE ];
data/awesfx-0.5.2/guspatch.h:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	instrument_name[ 16 ];
data/awesfx-0.5.2/guspatch.h:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	reserved[ GUS_RESERVED_SIZE ];	
data/awesfx-0.5.2/guspatch.h:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	reserved[ GUS_LAYER_RESERVED_SIZE ];	
data/awesfx-0.5.2/guspatch.h:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	wave_name[7];
data/awesfx-0.5.2/guspatch.h:97:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	reserved[ GUS_PATCH_DATA_RESERVED_SIZE ];
data/awesfx-0.5.2/include/awe_voice.h:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[0];
data/awesfx-0.5.2/include/awe_voice.h:97:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[AWE_PATCH_NAME_LEN];
data/awesfx-0.5.2/include/itypes.h:28:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define get32rec(vp,cp) memcpy(vp, cp, 4)
data/awesfx-0.5.2/include/sffile.h:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char id[4];
data/awesfx-0.5.2/include/sffile.h:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[20];
data/awesfx-0.5.2/include/sffile.h:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[20];
data/awesfx-0.5.2/include/sflayer.h:97:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *sf_gen_text[SF_EOF];
data/awesfx-0.5.2/include/sflayer.h:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char set[SF_EOF];
data/awesfx-0.5.2/seq.c:72:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((seqfd = open(devname, O_WRONLY, 0)) < 0) {
data/awesfx-0.5.2/setfx.c:51: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 chorus_defined[AWE_CHORUS_NUMBERS] = {1,1,1,1,1,1,1,1,};
data/awesfx-0.5.2/setfx.c:52: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 reverb_defined[AWE_CHORUS_NUMBERS] = {1,1,1,1,1,1,1,1,};
data/awesfx-0.5.2/setfx.c:59: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 line[1024];
data/awesfx-0.5.2/setfx.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sfname[500];
data/awesfx-0.5.2/setfx.c:97:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_devidx = atoi(optarg);
data/awesfx-0.5.2/setfx.c:123:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(sfname, "r")) == NULL) {
data/awesfx-0.5.2/setfx.c:154:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mode = atoi(tok);
data/awesfx-0.5.2/setfx.c:177:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			incl = atoi(tok);
data/awesfx-0.5.2/setfx.c:299:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			src = atoi(p);
data/awesfx-0.5.2/sf2text.c:52: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).
		if ((fd = fopen(argv[1], "r")) == NULL) {
data/awesfx-0.5.2/sf2text.c:64:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fout = fopen(argv[2], "w")) == NULL) {
data/awesfx-0.5.2/sfxload.c:300:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				awe_verbose = atoi(optarg);
data/awesfx-0.5.2/sfxload.c:323:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_devidx = atoi(optarg);
data/awesfx-0.5.2/sfxload.c:343:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[100];
data/awesfx-0.5.2/sfxtest.c:192:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_devidx = atoi(optarg);
data/awesfx-0.5.2/sfxtest.c:225:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			chan = atoi(argv[idx+1]); idx += 2;
data/awesfx-0.5.2/sfxtest.c:228: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).
			seq_set_bank(chan, atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:231: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).
			seq_set_program(chan, atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:234: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).
			seq_start_note(chan, atoi(argv[idx+1]),atoi(argv[idx+2]));
data/awesfx-0.5.2/sfxtest.c:234:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_start_note(chan, atoi(argv[idx+1]),atoi(argv[idx+2]));
data/awesfx-0.5.2/sfxtest.c:241: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).
			seq_stop_note(chan, atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:244: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).
			seq_pitchsense(chan, atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:247:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_wait(atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:250:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			sleep(atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:253: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).
			seq_pitchbend(chan, atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:256:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_panning(chan, atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:259: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).
			seq_key_press(chan, atoi(argv[idx+1]), atoi(argv[idx+2]));
data/awesfx-0.5.2/sfxtest.c:259:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_key_press(chan, atoi(argv[idx+1]), atoi(argv[idx+2]));
data/awesfx-0.5.2/sfxtest.c:263: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).
			seq_send_effect(chan, atoi(argv[idx+1]), atoi(argv[idx+2]));
data/awesfx-0.5.2/sfxtest.c:263: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).
			seq_send_effect(chan, atoi(argv[idx+1]), atoi(argv[idx+2]));
data/awesfx-0.5.2/sfxtest.c:267: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).
			seq_add_effect(chan, atoi(argv[idx+1]), atoi(argv[idx+2]));
data/awesfx-0.5.2/sfxtest.c:267:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_add_effect(chan, atoi(argv[idx+1]), atoi(argv[idx+2]));
data/awesfx-0.5.2/sfxtest.c:271: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).
			seq_send_control(chan, atoi(argv[idx+1]), atoi(argv[idx+2]));
data/awesfx-0.5.2/sfxtest.c:271:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_send_control(chan, atoi(argv[idx+1]), atoi(argv[idx+2]));
data/awesfx-0.5.2/sfxtest.c:275:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_set_debug(atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:281:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_set_reverb(atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:284:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_set_chorus(atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:290: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).
			AWE_INITIAL_VOLUME(awe_dev, atoi(argv[idx+1])); idx += 2;
data/awesfx-0.5.2/sfxtest.c:293:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_equalizer(atoi(argv[idx+1]), atoi(argv[idx+2])); idx += 3;
data/awesfx-0.5.2/sfxtest.c:293:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			seq_equalizer(atoi(argv[idx+1]), atoi(argv[idx+2])); idx += 3;
data/awesfx-0.5.2/sfxtest.c:296: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).
			AWE_MISC_MODE(awe_dev, atoi(argv[idx+1]), atoi(argv[idx+2])); idx += 3;
data/awesfx-0.5.2/sfxtest.c:296:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			AWE_MISC_MODE(awe_dev, atoi(argv[idx+1]), atoi(argv[idx+2])); idx += 3;
data/awesfx-0.5.2/text2sf.c:59:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(argv[2], "r")) == NULL) {
data/awesfx-0.5.2/text2sf.c:63:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fout = fopen(argv[3], "w")) == NULL) {
data/awesfx-0.5.2/awelib/cmpopen.c:56:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		rec->v.ext = (char*)safe_malloc(strlen(ext) + 2);
data/awesfx-0.5.2/awelib/cmpopen.c:68:14:  [1] (buffer) strlen:
  Does not handle 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 exlen = strlen(p->ext);
data/awesfx-0.5.2/awelib/cmpopen.c:83:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name);
data/awesfx-0.5.2/awelib/cmpopen.c:100:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return name + strlen(name) - strlen(rec->ext);
data/awesfx-0.5.2/awelib/cmpopen.c:100:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return name + strlen(name) - strlen(rec->ext);
data/awesfx-0.5.2/awelib/loadbank.c:388:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(line);
data/awesfx-0.5.2/awelib/loadtext.c:116:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(p->hdr.name, SStr(list), 20); list = SCdr(list);
data/awesfx-0.5.2/awelib/loadtext.c:148:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(p->hdr.name, SStr(list), 20); list = SCdr(list);
data/awesfx-0.5.2/awelib/loadtext.c:248:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(p->name, SStr(list), 20); list = SCdr(list);
data/awesfx-0.5.2/awelib/optfile.c:121:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp, fname, sizeof(tmp));
data/awesfx-0.5.2/awelib/optfile.c:162:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(OPTION_FLAGS) + strlen(optflags) >= sizeof(options))
data/awesfx-0.5.2/awelib/optfile.c:162: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 (strlen(OPTION_FLAGS) + strlen(optflags) >= sizeof(options))
data/awesfx-0.5.2/awelib/parsesf.c:169:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmpname, name, AWE_PATCH_NAME_LEN);
data/awesfx-0.5.2/awelib/path.c:34:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	lastp = path + strlen(path);
data/awesfx-0.5.2/awelib/path.c:48:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(fname) >= maxlen)
data/awesfx-0.5.2/awelib/path.c:59: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).
			if (*tok && tok[strlen(tok)-1] != '/')
data/awesfx-0.5.2/awelib/slist.c:107:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define skipc(fp)	getc(fp)
data/awesfx-0.5.2/awelib/slist.c:113:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF && c != '\n')
data/awesfx-0.5.2/awelib/slist.c:125:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((c = getc(fp)) == ESC_CHAR) {
data/awesfx-0.5.2/awelib/slist.c:126:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((c = getc(fp)) == EOF || c == '\n')
data/awesfx-0.5.2/awelib/slist.c:129:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ((c2 = getc(fp)) == EOF || !isdigit(c2))
data/awesfx-0.5.2/awelib/slist.c:131:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ((c3 = getc(fp)) == EOF || !isdigit(c3))
data/awesfx-0.5.2/awelib/slist.c:156:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ((c = getc(fp)) == EOF)
data/awesfx-0.5.2/awelib/slist.c:175:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF) {
data/awesfx-0.5.2/awelib/slist.c:266:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (getc(fp) != '\'')
data/awesfx-0.5.2/sfxload.c:345:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(arg) > sizeof(tmp)-1) {

ANALYSIS SUMMARY:

Hits = 164
Lines analyzed = 9481 in approximately 0.30 seconds (31464 lines/second)
Physical Source Lines of Code (SLOC) = 6532
Hits@level = [0] 292 [1]  26 [2] 108 [3]   9 [4]  21 [5]   0
Hits@level+ = [0+] 456 [1+] 164 [2+] 138 [3+]  30 [4+]  21 [5+]   0
Hits/KSLOC@level+ = [0+] 69.8102 [1+] 25.1072 [2+] 21.1268 [3+] 4.59277 [4+] 3.21494 [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.