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/fuse-emulator-utils-1.4.3/compat/amiga/basename.c Examining data/fuse-emulator-utils-1.4.3/compat/amiga/osname.c Examining data/fuse-emulator-utils-1.4.3/compat/unix/basename.c Examining data/fuse-emulator-utils-1.4.3/compat/unix/osname.c Examining data/fuse-emulator-utils-1.4.3/compat/win32/osname.c Examining data/fuse-emulator-utils-1.4.3/compat/getopt.h Examining data/fuse-emulator-utils-1.4.3/compat/getopt.c Examining data/fuse-emulator-utils-1.4.3/compat/getopt1.c Examining data/fuse-emulator-utils-1.4.3/converter/findpilot.h Examining data/fuse-emulator-utils-1.4.3/converter/findsync1.h Examining data/fuse-emulator-utils-1.4.3/converter/getpulse1.h Examining data/fuse-emulator-utils-1.4.3/converter/getpulse2.h Examining data/fuse-emulator-utils-1.4.3/converter/getsync2.h Examining data/fuse-emulator-utils-1.4.3/converter/romloader.h Examining data/fuse-emulator-utils-1.4.3/converter/romloaderstate.h Examining data/fuse-emulator-utils-1.4.3/converter/findpilot.cc Examining data/fuse-emulator-utils-1.4.3/converter/findsync1.cc Examining data/fuse-emulator-utils-1.4.3/converter/getpulse1.cc Examining data/fuse-emulator-utils-1.4.3/converter/getpulse2.cc Examining data/fuse-emulator-utils-1.4.3/converter/getsync2.cc Examining data/fuse-emulator-utils-1.4.3/converter/romloader.cc Examining data/fuse-emulator-utils-1.4.3/converter/romloaderstate.cc Examining data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_aiff.c Examining data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_au.c Examining data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_avi.c Examining data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_ppm.c Examining data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_scr.c Examining data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_wav.c Examining data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_yuv.c Examining data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_jpg.c Examining data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_png.c Examining data/fuse-emulator-utils-1.4.3/importer/interpolator.h Examining data/fuse-emulator-utils-1.4.3/importer/schmitt.h Examining data/fuse-emulator-utils-1.4.3/importer/simple.h Examining data/fuse-emulator-utils-1.4.3/importer/soundfile.h Examining data/fuse-emulator-utils-1.4.3/importer/trigger.h Examining data/fuse-emulator-utils-1.4.3/importer/soundfile.cc Examining data/fuse-emulator-utils-1.4.3/importer/trigger.cc Examining data/fuse-emulator-utils-1.4.3/compat.h Examining data/fuse-emulator-utils-1.4.3/ide.h Examining data/fuse-emulator-utils-1.4.3/utils.h Examining data/fuse-emulator-utils-1.4.3/audio2tape.h Examining data/fuse-emulator-utils-1.4.3/fmfconv.h Examining data/fuse-emulator-utils-1.4.3/fmfconv_compr.h Examining data/fuse-emulator-utils-1.4.3/fmfconv_types.h Examining data/fuse-emulator-utils-1.4.3/movie_tables.h Examining data/fuse-emulator-utils-1.4.3/audio2tape.cc Examining data/fuse-emulator-utils-1.4.3/utils.c Examining data/fuse-emulator-utils-1.4.3/ide.c Examining data/fuse-emulator-utils-1.4.3/createhdf.c Examining data/fuse-emulator-utils-1.4.3/fmfconv.c Examining data/fuse-emulator-utils-1.4.3/fmfconv_compr.c Examining data/fuse-emulator-utils-1.4.3/fmfconv_types.c Examining data/fuse-emulator-utils-1.4.3/listbasic.c Examining data/fuse-emulator-utils-1.4.3/profile2map.c Examining data/fuse-emulator-utils-1.4.3/raw2hdf.c Examining data/fuse-emulator-utils-1.4.3/rzxcheck.c Examining data/fuse-emulator-utils-1.4.3/keys.c Examining data/fuse-emulator-utils-1.4.3/rzxdump.c Examining data/fuse-emulator-utils-1.4.3/rzxtool.c Examining data/fuse-emulator-utils-1.4.3/scl2trd.c Examining data/fuse-emulator-utils-1.4.3/snap2tzx.c Examining data/fuse-emulator-utils-1.4.3/snapconv.c Examining data/fuse-emulator-utils-1.4.3/snapdump.c Examining data/fuse-emulator-utils-1.4.3/tape2pulses.c Examining data/fuse-emulator-utils-1.4.3/tape2wav.c Examining data/fuse-emulator-utils-1.4.3/tapeconv.c Examining data/fuse-emulator-utils-1.4.3/tzxlist.c FINAL RESULTS: data/fuse-emulator-utils-1.4.3/compat.h:32:63: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define GCC_PRINTF( fmtstring, args ) __attribute__ ((format( printf, fmtstring, args ))) data/fuse-emulator-utils-1.4.3/createhdf.c:48:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/fmfconv.c:239: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, F_OK ) == 0 ) data/fuse-emulator-utils-1.4.3/fmfconv.c:601:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if( ( sscanf( s, "%"PRIu64, &frm) != 1 ) ) { /* OK, unknown value.. */ data/fuse-emulator-utils-1.4.3/fmfconv.c:707:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( out_tmpl, "%%%s%ull%c", c1, n, c2[0] ); data/fuse-emulator-utils-1.4.3/fmfconv.c:709:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( out_tmpl, "%%%sll%c", c1, c2[0] ); data/fuse-emulator-utils-1.4.3/fmfconv.c:726: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( out_next, out_orig ); data/fuse-emulator-utils-1.4.3/fmfconv.c:727:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf( out_nmbr, out_tmpl, num ); data/fuse-emulator-utils-1.4.3/fmfconv.c:729:5: [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( out_next, out_pfix ); data/fuse-emulator-utils-1.4.3/fmfconv.c:1542:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/fmfconv.h:49:5: [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, "*ERR " format) data/fuse-emulator-utils-1.4.3/fmfconv.h:52:5: [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, "*WRN " format) data/fuse-emulator-utils-1.4.3/fmfconv.h:55:26: [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. if( lvl <= verbose ) fprintf( stderr, "*INF " format ) data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_avi.c:107:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( idx_name, "%s.idx", out_name ); data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_ppm.c:36:3: [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( out, ( greyscale ? "P5\n" : "P6\n" ) ); data/fuse-emulator-utils-1.4.3/listbasic.c:163:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/profile2map.c:47:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/raw2hdf.c:47:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/rzxcheck.c:47:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/rzxdump.c:92:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/rzxtool.c:296:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/scl2trd.c:312:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/snap2tzx.c:81:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf( stderr, format, ap ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:95:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf( format, ap ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:348:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/snapconv.c:58:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/snapdump.c:776:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/tape2pulses.c:114:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/tape2wav.c:120:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/tapeconv.c:154:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( PROGRAM_NAME " (" PACKAGE ") " PACKAGE_VERSION "\n" data/fuse-emulator-utils-1.4.3/tzxlist.c:727:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( data/fuse-emulator-utils-1.4.3/audio2tape.cc:119:16: [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, "t:srkz:c:hV", long_options, data/fuse-emulator-utils-1.4.3/compat/getopt.c:221:9: [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. #ifndef getenv data/fuse-emulator-utils-1.4.3/compat/getopt.c:222:14: [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. extern char *getenv (); data/fuse-emulator-utils-1.4.3/compat/getopt.c:407:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT"); data/fuse-emulator-utils-1.4.3/compat/getopt.c:1197:1: [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. getopt (argc, argv, optstring) data/fuse-emulator-utils-1.4.3/compat/getopt.c:1227:11: [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. c = getopt (argc, argv, "abc:d:0123456789"); data/fuse-emulator-utils-1.4.3/compat/getopt.h:145:12: [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. extern int getopt (int ___argc, char *const *___argv, const char *__shortopts); data/fuse-emulator-utils-1.4.3/compat/getopt.h:147:12: [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. extern int getopt (); data/fuse-emulator-utils-1.4.3/compat/getopt.h:151:12: [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. extern int getopt_long (int ___argc, char *const *___argv, data/fuse-emulator-utils-1.4.3/compat/getopt.h:165:12: [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. extern int getopt (); data/fuse-emulator-utils-1.4.3/compat/getopt.h:167:12: [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. extern int getopt_long (); data/fuse-emulator-utils-1.4.3/compat/getopt1.c:73:1: [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. getopt_long (argc, argv, options, long_options, opt_index) data/fuse-emulator-utils-1.4.3/compat/getopt1.c:100:18: [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. libc_hidden_def (getopt_long) data/fuse-emulator-utils-1.4.3/compat/getopt1.c:133: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. c = getopt_long (argc, argv, "abc:d:0123456789", data/fuse-emulator-utils-1.4.3/createhdf.c:102:16: [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, "csv:hV", long_options, data/fuse-emulator-utils-1.4.3/fmfconv.c:1780:9: [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. c = getopt_long (argc, argv, "i:o:s:f:g:C:wumSPYyE:" data/fuse-emulator-utils-1.4.3/listbasic.c:87:16: [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, "bhV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/profile2map.c:93:16: [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, "hV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/raw2hdf.c:92:16: [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, "v:hV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/rzxcheck.c:100:16: [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, "Vh", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/rzxdump.c:134:16: [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, "shV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/rzxtool.c:348:16: [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, "d:e:i:ufhV", long_options, data/fuse-emulator-utils-1.4.3/scl2trd.c:356:16: [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, "hV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/snap2tzx.c:376:16: [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, "1:2:b:g:l:o:rs:v$:hV", long_options, data/fuse-emulator-utils-1.4.3/snapconv.c:112:16: [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, "cnfhV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/snapdump.c:823:16: [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, "mhV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/tape2pulses.c:59:16: [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, "hV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/tape2wav.c:64:16: [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, "r:hV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/tapeconv.c:74:16: [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, "a:s:i:bhV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/tzxlist.c:772:16: [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, "d:hV", long_options, NULL ) ) != -1 ) { data/fuse-emulator-utils-1.4.3/audio2tape.cc:141:20: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). zero_point = atol( optarg ); data/fuse-emulator-utils-1.4.3/audio2tape.cc:145:33: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). schmitt_noise_threshold = atol( optarg ); data/fuse-emulator-utils-1.4.3/audio2tape.cc:278:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen( filename, "wb" ); data/fuse-emulator-utils-1.4.3/audio2tape.h:44: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 text[BUFLEN]; data/fuse-emulator-utils-1.4.3/createhdf.c:149:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *cylinders = atoi( argv[ optind++ ] ); data/fuse-emulator-utils-1.4.3/createhdf.c:150:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *heads = atoi( argv[ optind++ ] ); data/fuse-emulator-utils-1.4.3/createhdf.c:151:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *sectors = atoi( argv[ optind++ ] ); data/fuse-emulator-utils-1.4.3/createhdf.c:172: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( &hdf_header[ HDF_SIGNATURE_OFFSET ], HDF_SIGNATURE, data/fuse-emulator-utils-1.4.3/createhdf.c:224:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ CHUNK_LENGTH ]; data/fuse-emulator-utils-1.4.3/createhdf.c:274:8: [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). fd = open( filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, data/fuse-emulator-utils-1.4.3/fmfconv.c:117: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 out_tmpl[16]; /* multiple out filename number template */ data/fuse-emulator-utils-1.4.3/fmfconv.c:228: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). return fopen( path, mode ); data/fuse-emulator-utils-1.4.3/fmfconv.c:232:8: [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). fd = open( path, ( rw ? O_RDWR : O_WRONLY ) | O_EXCL | O_CREAT | O_BINARY, data/fuse-emulator-utils-1.4.3/fmfconv.c:242: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). return fopen( path, mode ); data/fuse-emulator-utils-1.4.3/fmfconv.c:258:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( ptr, fbuff, n ); data/fuse-emulator-utils-1.4.3/fmfconv.c:268:7: [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( ptr, fbuff, n ); data/fuse-emulator-utils-1.4.3/fmfconv.c:662: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 c1[2], c2[2]; data/fuse-emulator-utils-1.4.3/fmfconv.c:694:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy( out_tmpl, "-%08u" ); data/fuse-emulator-utils-1.4.3/fmfconv.c:698:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy( out_tmpl, "-%08u" ); data/fuse-emulator-utils-1.4.3/fmfconv.c:934:22: [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( ( inp_file = fopen( inp_name, "rb" ) ) == NULL ) { data/fuse-emulator-utils-1.4.3/fmfconv.c:1829: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). out_rte = atoi( optarg ); data/fuse-emulator-utils-1.4.3/fmfconv.c:1851:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). jpg_quality = atoi( optarg ); data/fuse-emulator-utils-1.4.3/fmfconv.c:1854:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). jpg_smooth = atoi( optarg ); data/fuse-emulator-utils-1.4.3/fmfconv.c:1893: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). png_compress = atoi( optarg ); data/fuse-emulator-utils-1.4.3/fmfconv_compr.c:37:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 zbuf_o[ZBUF_SIZE]; /* zlib output buffer */ data/fuse-emulator-utils-1.4.3/fmfconv_compr.c:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 zbuf_i[ZBUF_INP_SIZE]; /* zlib input buffer */ data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_au.c:62: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. const char zeros[7] = { 0 }; data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_avi.c:357: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 buff[4096]; data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_jpg.c:221: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( nextbuffer, dest->buffer, dest->bufsize ); data/fuse-emulator-utils-1.4.3/profile2map.c:130:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen( profile, "r" ); data/fuse-emulator-utils-1.4.3/raw2hdf.c:161: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( &hdf_header[ HDF_SIGNATURE_OFFSET ], HDF_SIGNATURE, data/fuse-emulator-utils-1.4.3/raw2hdf.c:214: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( &identity[ IDENTITY_MODEL_NUMBER_OFFSET ], MODEL_NUMBER, data/fuse-emulator-utils-1.4.3/raw2hdf.c:237: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 buffer[ CHUNK_LENGTH ]; data/fuse-emulator-utils-1.4.3/raw2hdf.c:285: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). raw = fopen( raw_filename, "rb" ); data/fuse-emulator-utils-1.4.3/raw2hdf.c:292: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). hdf = fopen( hdf_filename, "wb" ); data/fuse-emulator-utils-1.4.3/rzxtool.c:242:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *where = atoi( buffer ); data/fuse-emulator-utils-1.4.3/rzxtool.c:268:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). action->where = atoi( argument ); data/fuse-emulator-utils-1.4.3/scl2trd.c:100: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 signature[8]; data/fuse-emulator-utils-1.4.3/scl2trd.c:102: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 headers[256][14]; data/fuse-emulator-utils-1.4.3/scl2trd.c:110:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char template[34] = data/fuse-emulator-utils-1.4.3/scl2trd.c:126:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fh = fopen(newname, "wb"); data/fuse-emulator-utils-1.4.3/scl2trd.c:132:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&mem[TRD_DIRSTART], template, TRD_DIRLEN); data/fuse-emulator-utils-1.4.3/scl2trd.c:152:14: [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 ((TRD = open(newname, O_RDWR | O_BINARY)) == -1) { data/fuse-emulator-utils-1.4.3/scl2trd.c:171:14: [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 ((SCL = open(oldname, O_RDONLY | O_BINARY)) == -1) { data/fuse-emulator-utils-1.4.3/scl2trd.c:220:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void *) ((char *) TRDh + *trd_files * 16), data/fuse-emulator-utils-1.4.3/scl2trd.c:223:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void *) ((char *) TRDh + *trd_files * 16 + 0x0E), data/fuse-emulator-utils-1.4.3/snap2tzx.c:51: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 output_filename[512]; /* Target filename */ data/fuse-emulator-utils-1.4.3/snap2tzx.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 loader_name[9]; /* Name displayed by BASIC loader */ data/fuse-emulator-utils-1.4.3/snap2tzx.c:54: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 game_name[33]; /* Name displayed while game is loading */ data/fuse-emulator-utils-1.4.3/snap2tzx.c:55: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 info1[33], info2[33]; /* Extra lines displayed while loading */ data/fuse-emulator-utils-1.4.3/snap2tzx.c:157:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (BufferTemp, BufferIn, BlLength); /* Return the inputblock uncompressed */ data/fuse-emulator-utils-1.4.3/snap2tzx.c:392:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). settings->load_colour = atoi( optarg ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:423: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). settings->speed = atoi( optarg ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:479:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat( settings->output_filename, ".tzx" ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:916: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( buffer + 1, data, length ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:1042: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( buffer, loader_data, loader_length ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:1045: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( buffer + 341 + 256, turbo_loader, turbo_loader_length ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:1133: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( basic, SpectrumBASICData, basic_length ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:1136: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( basic + basic_game_name_offset, settings->game_name, 32 ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:1137: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( basic + basic_info1_offset, settings->info1, 32 ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:1138: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( basic + basic_info2_offset, settings->info2, 32 ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:1181:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen( filename, "rb" ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:1349: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( &buffer[1], WorkBuffer + reverse_offset, compressed_length ); data/fuse-emulator-utils-1.4.3/tape2pulses.c:175:19: [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). output_file = fopen(filename, "w"); data/fuse-emulator-utils-1.4.3/tape2wav.c:68:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'r': sample_rate = abs( atoi( optarg ) ); break; data/fuse-emulator-utils-1.4.3/tapeconv.c:296: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( description, "Spectrum Screen ", DESCRIPTION_BUFFER_LEN ); data/fuse-emulator-utils-1.4.3/tapeconv.c:314: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( custom_block_data + 2, scr_data, scr_length ); data/fuse-emulator-utils-1.4.3/tapeconv.c:356: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( description, "Picture ", DESCRIPTION_BUFFER_LEN ); data/fuse-emulator-utils-1.4.3/tapeconv.c:382: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( custom_block_data + 2, jpg_data, jpg_length ); data/fuse-emulator-utils-1.4.3/tzxlist.c:266: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 filename[17]; /* %8d.dsc; %8d.hdr %8d.dat */ data/fuse-emulator-utils-1.4.3/tzxlist.c:309:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen( filename, "wb" ); data/fuse-emulator-utils-1.4.3/tzxlist.c:479:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char description[ DESCRIPTION_LENGTH ]; data/fuse-emulator-utils-1.4.3/tzxlist.c:777:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dump_block = atoi( optarg ); data/fuse-emulator-utils-1.4.3/utils.c:71: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 osname[ 256 ]; data/fuse-emulator-utils-1.4.3/utils.c:129:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( ( fd = open( filename, O_RDONLY | O_BINARY ) ) == -1 ) { data/fuse-emulator-utils-1.4.3/utils.c:183:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen( filename, "wb" ); data/fuse-emulator-utils-1.4.3/audio2tape.h:33:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( text, message, sizeof(text)-1 ); data/fuse-emulator-utils-1.4.3/compat/getopt.c:244:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # if (!defined __STDC__ || !__STDC__) && !defined strlen data/fuse-emulator-utils-1.4.3/compat/getopt.c:247:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). extern int strlen (const char *); data/fuse-emulator-utils-1.4.3/compat/getopt.c:438: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). int len = nonoption_flags_max_len = strlen (orig_str); data/fuse-emulator-utils-1.4.3/compat/getopt.c:666: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). == (unsigned int) strlen (p->name)) data/fuse-emulator-utils-1.4.3/compat/getopt.c:711: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). nextchar += strlen (nextchar); data/fuse-emulator-utils-1.4.3/compat/getopt.c:777: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). nextchar += strlen (nextchar); data/fuse-emulator-utils-1.4.3/compat/getopt.c:811: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). nextchar += strlen (nextchar); data/fuse-emulator-utils-1.4.3/compat/getopt.c:816: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). nextchar += strlen (nextchar); data/fuse-emulator-utils-1.4.3/compat/getopt.c:1003:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((unsigned int) (nameend - nextchar) == strlen (p->name)) data/fuse-emulator-utils-1.4.3/compat/getopt.c:1043:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/fuse-emulator-utils-1.4.3/compat/getopt.c:1081: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). nextchar += strlen (nextchar); data/fuse-emulator-utils-1.4.3/compat/getopt.c:1113: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). nextchar += strlen (nextchar); data/fuse-emulator-utils-1.4.3/compat/getopt.c:1117:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/fuse-emulator-utils-1.4.3/fmfconv.c:687:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). out_next = malloc( strlen( out_name ) + 24 ); data/fuse-emulator-utils-1.4.3/fmfconv.c:695:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). out_nmbr = out_next + strlen( out_name ); data/fuse-emulator-utils-1.4.3/fmfconv_compr.c:103:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return fgetc( f ); data/fuse-emulator-utils-1.4.3/fmfconv_compr.h:38:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define fgetc_compr fgetc data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_avi.c:70: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). #define WSTRING( str ) fwrite( str, strlen( str ), 1, out ) data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_avi.c:71: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). #define WZSTRING( str ) fwrite( str, strlen( str ) + 1, 1, out ) data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_avi.c:103: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). if( !( idx_name = malloc( strlen( out_name ) + 5 ) ) ) { data/fuse-emulator-utils-1.4.3/fmfconv_output/fmfconv_jpg.c:116: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). jpeg_write_marker( &cinfo, JPEG_COM, (void *)comment, strlen( comment ) ); data/fuse-emulator-utils-1.4.3/listbasic.c:385:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). last_char = keyword[ strlen( keyword ) - 1 ]; data/fuse-emulator-utils-1.4.3/rzxdump.c:199: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( end - ptr < (ptrdiff_t)strlen( rzx_signature ) + 6 ) { data/fuse-emulator-utils-1.4.3/rzxdump.c:202: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). progname, (unsigned long)strlen( rzx_signature ) + 6 ); data/fuse-emulator-utils-1.4.3/rzxdump.c:207: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). if( memcmp( ptr, rzx_signature, strlen( rzx_signature ) ) ) { data/fuse-emulator-utils-1.4.3/rzxdump.c:215:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ptr += strlen( rzx_signature ); data/fuse-emulator-utils-1.4.3/rzxdump.c:258: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). if( !strncmp( creator, "Fuse", strlen( "Fuse" ) ) || data/fuse-emulator-utils-1.4.3/rzxdump.c:259: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). !strncmp( creator, "rzxtool", strlen( "rzxtool" ) )) { data/fuse-emulator-utils-1.4.3/rzxdump.c:262: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). } else if( !strncmp( creator, "Spectaculator", strlen( "Spectaculator" ) ) ) { data/fuse-emulator-utils-1.4.3/rzxdump.c:265:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if( !strncmp( creator, "RealSpectrum", strlen( "RealSpectrum" ) ) ) { data/fuse-emulator-utils-1.4.3/rzxdump.c:339:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snap_filename_len = strlen( buffer2 ) + 16; data/fuse-emulator-utils-1.4.3/scl2trd.c:133:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char*)&mem[TRD_NAMEOFFSET], "Fuse ", TRD_MAXNAMELENGTH); data/fuse-emulator-utils-1.4.3/scl2trd.c:158:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read(TRD, TRDh, 4096); data/fuse-emulator-utils-1.4.3/scl2trd.c:176:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read(SCL, &signature, 8); data/fuse-emulator-utils-1.4.3/scl2trd.c:188:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read(SCL, &blocks, 1); data/fuse-emulator-utils-1.4.3/scl2trd.c:196:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read(SCL, &(headers[x][0]), 14); data/fuse-emulator-utils-1.4.3/scl2trd.c:233:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read(SCL, tmpscl, 32000); data/fuse-emulator-utils-1.4.3/scl2trd.c:249:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read(SCL, tmpscl, left); data/fuse-emulator-utils-1.4.3/snap2tzx.c:271:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy( settings->info1, " ", 33 ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:272:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy( settings->info2, " ", 33 ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:414:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( settings->output_filename, optarg, 511 ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:477:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( settings->output_filename, buffer2, 507 ); data/fuse-emulator-utils-1.4.3/snap2tzx.c:938:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen( loader_name ); data/fuse-emulator-utils-1.4.3/snapdump.c:123:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename_len = strlen( buffer2 ) + strlen( memory_name ) + sizeof( page ) + 7; data/fuse-emulator-utils-1.4.3/snapdump.c:123: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). filename_len = strlen( buffer2 ) + strlen( memory_name ) + sizeof( page ) + 7; data/fuse-emulator-utils-1.4.3/tapeconv.c:340:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return ( strlen( new_filename ) >= strlen(type) && data/fuse-emulator-utils-1.4.3/tapeconv.c:340: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). return ( strlen( new_filename ) >= strlen(type) && data/fuse-emulator-utils-1.4.3/tapeconv.c:341: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). !strcasecmp( new_filename + (strlen( new_filename ) - strlen(type) ), data/fuse-emulator-utils-1.4.3/tapeconv.c:341:66: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). !strcasecmp( new_filename + (strlen( new_filename ) - strlen(type) ), data/fuse-emulator-utils-1.4.3/tzxlist.c:152:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t input_left = strlen( input ) + 1; data/fuse-emulator-utils-1.4.3/utils.c:114: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). strlen( custom ) ); data/fuse-emulator-utils-1.4.3/utils.c:152:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = read( fd, *buffer, *length ); ANALYSIS SUMMARY: Hits = 190 Lines analyzed = 17295 in approximately 0.62 seconds (28116 lines/second) Physical Source Lines of Code (SLOC) = 12204 Hits@level = [0] 606 [1] 53 [2] 76 [3] 30 [4] 31 [5] 0 Hits@level+ = [0+] 796 [1+] 190 [2+] 137 [3+] 61 [4+] 31 [5+] 0 Hits/KSLOC@level+ = [0+] 65.2245 [1+] 15.5687 [2+] 11.2258 [3+] 4.99836 [4+] 2.54015 [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.