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/isync-1.3.0/src/tst_timers.c Examining data/isync-1.3.0/src/driver.h Examining data/isync-1.3.0/src/drv_maildir.c Examining data/isync-1.3.0/src/drv_imap.c Examining data/isync-1.3.0/src/config.h Examining data/isync-1.3.0/src/mdconvert.c Examining data/isync-1.3.0/src/main.c Examining data/isync-1.3.0/src/driver.c Examining data/isync-1.3.0/src/sync.c Examining data/isync-1.3.0/src/util.c Examining data/isync-1.3.0/src/sync.h Examining data/isync-1.3.0/src/config.c Examining data/isync-1.3.0/src/common.h Examining data/isync-1.3.0/src/drv_proxy.c Examining data/isync-1.3.0/src/socket.h Examining data/isync-1.3.0/src/compat/main.c Examining data/isync-1.3.0/src/compat/util.c Examining data/isync-1.3.0/src/compat/config.c Examining data/isync-1.3.0/src/compat/convert.c Examining data/isync-1.3.0/src/compat/isync.h Examining data/isync-1.3.0/src/socket.c FINAL RESULTS: data/isync-1.3.0/src/common.h:48:57: [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 ATTR_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) data/isync-1.3.0/src/compat/config.c:265:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. hl = sprintf( buf, "%s", p2 + 1 ); data/isync-1.3.0/src/compat/isync.h:30:57: [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 ATTR_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) data/isync-1.3.0/src/compat/main.c:421:4: [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( buf, argv[optind] ); data/isync-1.3.0/src/compat/main.c:424: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( buf, argv[optind] ); data/isync-1.3.0/src/compat/main.c:435:2: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp( args[0], args ); data/isync-1.3.0/src/compat/util.c:36:16: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. if ((unsigned)vsnprintf( buf, sizeof(buf), msg, va ) >= sizeof(buf)) data/isync-1.3.0/src/compat/util.c:80:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. if ((len = vsnprintf( tmp, sizeof(tmp), fmt, ap )) < 0 || !(*strp = malloc( len + 1 ))) data/isync-1.3.0/src/compat/util.c:83:3: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( *strp, fmt, ap ); data/isync-1.3.0/src/compat/util.c:146:36: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. if (blen <= 0 || (unsigned)(ret = vsnprintf( buf, blen, fmt, va )) >= (unsigned)blen) data/isync-1.3.0/src/drv_imap.c:1876:14: [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( cmd, "r" ))) { data/isync-1.3.0/src/drv_imap.c:1903:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( prompt, "Password (%s): ", srvc->name ); data/isync-1.3.0/src/drv_imap.c:1904:10: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. pass = getpass( prompt ); data/isync-1.3.0/src/drv_imap.c:3162:8: [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( server->sconf.cert_file, R_OK )) { data/isync-1.3.0/src/drv_imap.c:3171:8: [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( server->sconf.client_certfile, R_OK )) { data/isync-1.3.0/src/drv_imap.c:3178:8: [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( server->sconf.client_keyfile, R_OK )) { data/isync-1.3.0/src/main.c:152:3: [4] (shell) execlp: 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. execlp( "gdb", "gdb", pabuf, pbuf, (char *)0 ); data/isync-1.3.0/src/mdconvert.c:39:57: [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 ATTR_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var))) data/isync-1.3.0/src/mdconvert.c:59:16: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. if ((unsigned)vsnprintf( buf, sizeof(buf), msg, va ) >= sizeof(buf)) data/isync-1.3.0/src/mdconvert.c:72:36: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. if (blen <= 0 || (unsigned)(ret = vsnprintf( buf, blen, fmt, va )) >= (unsigned)blen) data/isync-1.3.0/src/socket.c:402:4: [4] (shell) execl: 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. execl( "/bin/sh", "sh", "-c", conf->tunnel, (char *)0 ); data/isync-1.3.0/src/sync.c:82:6: [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. r = vfprintf( f, msg, va ); data/isync-1.3.0/src/util.c:52:2: [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( msg, va ); data/isync-1.3.0/src/util.c:60: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( msg, va ); data/isync-1.3.0/src/util.c:70: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( msg, va ); data/isync-1.3.0/src/util.c:82:2: [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( msg, va ); data/isync-1.3.0/src/util.c:135: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, msg, va ); data/isync-1.3.0/src/util.c:147:2: [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, msg, va ); data/isync-1.3.0/src/util.c:159:12: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. if ((uint)vsnprintf( buf, sizeof(buf), msg, va ) >= sizeof(buf)) data/isync-1.3.0/src/util.c:201:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. if ((len = vsnprintf( tmp, sizeof(tmp), fmt, ap )) < 0 || !(*strp = malloc( len + 1 ))) data/isync-1.3.0/src/util.c:204:3: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( *strp, fmt, ap ); data/isync-1.3.0/src/util.c:344:32: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. if (blen <= 0 || (uint)(ret = vsnprintf( buf, blen, fmt, va )) >= (uint)blen) data/isync-1.3.0/src/compat/main.c:162:15: [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 (!(Home = getenv("HOME"))) { data/isync-1.3.0/src/compat/main.c:172:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. global.user = getenv( "USER" ); data/isync-1.3.0/src/compat/main.c:174:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. global.user = getenv( "LOGNAME" ); data/isync-1.3.0/src/compat/main.c:189: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 ((i = getopt_long( argc, argv, FLAGS, Opts, NULL )) != -1) data/isync-1.3.0/src/compat/main.c:191: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 ((i = getopt( argc, argv, FLAGS )) != -1) data/isync-1.3.0/src/main.c:174:26: [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 (cols < 0 && (!(cs = getenv( "COLUMNS" )) || !(cols = atoi( cs )))) data/isync-1.3.0/src/main.c:418:15: [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 (!(Home = getenv("HOME"))) { data/isync-1.3.0/src/common.h:95: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 Hostname[256]; data/isync-1.3.0/src/common.h:121: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 string[1]; data/isync-1.3.0/src/compat/config.c:36: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( r, s, nchars ); data/isync-1.3.0/src/compat/config.c:94: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 buf[1024]; data/isync-1.3.0/src/compat/config.c:96: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 (!(fp = fopen( path, "r" ))) { data/isync-1.3.0/src/compat/config.c:121:4: [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( cfg, &global, sizeof(config_t) ); data/isync-1.3.0/src/compat/config.c:159: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). cfg->port = atoi( val ); data/isync-1.3.0/src/compat/config.c:171: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). cfg->max_size = atol( val ); data/isync-1.3.0/src/compat/config.c:173:24: [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). cfg->max_messages = atol( val ); data/isync-1.3.0/src/compat/config.c:246: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 buf[128], ubuf[64]; data/isync-1.3.0/src/compat/convert.c:77: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 buf[_POSIX_PATH_MAX], diumname[_POSIX_PATH_MAX], data/isync-1.3.0/src/compat/convert.c:110:12: [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( ilname, O_WRONLY|O_CREAT, 0600 )) < 0) { data/isync-1.3.0/src/compat/convert.c:127: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 (!(fp = fopen( iuvname, "r" ))) { data/isync-1.3.0/src/compat/convert.c:138: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 (!(fp = fopen( imuname, "r" ))) { data/isync-1.3.0/src/compat/convert.c:153:12: [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 ((db->open)( db, 0, iumname, 0, DB_HASH, 0, 0 )) { data/isync-1.3.0/src/compat/convert.c:191: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). uid = atoi( p + 3 ); data/isync-1.3.0/src/compat/convert.c:206: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 (!(fp = fopen( sname, "w" ))) { data/isync-1.3.0/src/compat/convert.c:248: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 (!(fp = fopen( uvname, "w" ))) { data/isync-1.3.0/src/compat/main.c:160: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 path1[_POSIX_PATH_MAX], path2[_POSIX_PATH_MAX]; data/isync-1.3.0/src/compat/main.c:233: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). global.port = atoi( optarg ); data/isync-1.3.0/src/compat/main.c:314: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( box, &global, sizeof(config_t) ); data/isync-1.3.0/src/compat/main.c:387:3: [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( path2, "/tmp/mbsyncrcXXXXXX" ); data/isync-1.3.0/src/compat/main.c:388:13: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). if ((fd = mkstemp( path2 )) < 0) { data/isync-1.3.0/src/compat/main.c:419:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/isync-1.3.0/src/compat/main.c:420:4: [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( buf, "o2o:" ); data/isync-1.3.0/src/compat/util.c:33: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 buf[1024]; data/isync-1.3.0/src/compat/util.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 tmp[1024]; data/isync-1.3.0/src/compat/util.c:85: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( *strp, tmp, len + 1 ); data/isync-1.3.0/src/config.c:323: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[_POSIX_PATH_MAX]; data/isync-1.3.0/src/config.c:324: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 buf[1024]; data/isync-1.3.0/src/config.c:336: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). if (!(cfile.fp = fopen( cfile.file, "r" ))) { data/isync-1.3.0/src/config.c:445: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( chanlist->string, arg, len + 1 ); data/isync-1.3.0/src/driver.h:71: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 tuid[TUIDL]; data/isync-1.3.0/src/drv_imap.c:108: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 delimiter[2]; /* hierarchy delimiter */ data/isync-1.3.0/src/drv_imap.c:290: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 buf[1024]; data/isync-1.3.0/src/drv_imap.c:447: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 buf[1024]; /* Minimal supported command buffer size per IMAP spec. */ data/isync-1.3.0/src/drv_imap.c:458:4: [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( d, s, l ); data/isync-1.3.0/src/drv_imap.c:497:6: [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( d, s, l ); data/isync-1.3.0/src/drv_imap.c:1117:4: [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( cur->gen.tuid, tuid, TUIDL ); data/isync-1.3.0/src/drv_imap.c:1290: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( *buf, prefix, pl ); data/isync-1.3.0/src/drv_imap.c:1402: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). ctx->total_msgs = atoi( arg ); data/isync-1.3.0/src/drv_imap.c:1404: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). ctx->recent_msgs = atoi( arg ); data/isync-1.3.0/src/drv_imap.c:1450: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). tag = atoi( arg ); data/isync-1.3.0/src/drv_imap.c:1870:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[80]; data/isync-1.3.0/src/drv_imap.c:1900: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 *pass, prompt[80]; data/isync-1.3.0/src/drv_imap.c:2095: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 saslmechs[1024], *saslend = saslmechs; data/isync-1.3.0/src/drv_imap.c:2118:6: [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( saslend, cmech->string, len + 1 ); data/isync-1.3.0/src/drv_imap.c:2546: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 buf[1000]; data/isync-1.3.0/src/drv_imap.c:2557:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. bl += sprintf( buf + bl, "%u", excs.data[i] ); data/isync-1.3.0/src/drv_imap.c:2561:12: [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. bl += sprintf( buf + bl, ":%u", excs.data[i] ); data/isync-1.3.0/src/drv_imap.c:2581:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buf, "%u:%u", ranges[r].first, ranges[r].last ); data/isync-1.3.0/src/drv_imap.c:2686: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 buf[256]; data/isync-1.3.0/src/drv_imap.c:2754: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 buf[1000]; data/isync-1.3.0/src/drv_imap.c:2762:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. bl += sprintf( buf + bl, "%u", msg->uid ); data/isync-1.3.0/src/drv_imap.c:2766:12: [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. bl += sprintf( buf + bl, ":%u", msg->uid ); data/isync-1.3.0/src/drv_imap.c:2838: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 flagstr[128], datestr[64]; data/isync-1.3.0/src/drv_imap.c:3342:4: [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( store->server, &sserver, sizeof(sserver) ); data/isync-1.3.0/src/drv_maildir.c:181: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( out, prefix, pl ); data/isync-1.3.0/src/drv_maildir.c:330: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[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:342: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 name[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:465: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[_POSIX_PATH_MAX], name[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:481: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[_POSIX_PATH_MAX], name[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:523: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 tuid[TUIDL]; data/isync-1.3.0/src/drv_maildir.c:550: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( buf + bl, "tmp/", 5 ); data/isync-1.3.0/src/drv_maildir.c:595: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 buf[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:617: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( buf + bl, subdirs[i], 4 ); data/isync-1.3.0/src/drv_maildir.c:657: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 buf[128]; data/isync-1.3.0/src/drv_maildir.c:678:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. n = sprintf( buf, "%u\n%u\n", ctx->uidvalidity, ctx->nuid ); data/isync-1.3.0/src/drv_maildir.c:719: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 buf[128]; data/isync-1.3.0/src/drv_maildir.c:746:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ret = (ctx->db->open)( ctx->db, 0, ctx->usedb, 0, DB_HASH, data/isync-1.3.0/src/drv_maildir.c:874: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). return (*ldot2 != '_' ? 0 : atoi( ldot2 + 1 )) - data/isync-1.3.0/src/drv_maildir.c:875: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). (*rdot2 != '_' ? 0 : atoi( rdot2 + 1 )); data/isync-1.3.0/src/drv_maildir.c:884: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( lseq + 1 ) - atoi( rseq + 1 ); data/isync-1.3.0/src/drv_maildir.c:884:29: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi( lseq + 1 ) - atoi( rseq + 1 ); data/isync-1.3.0/src/drv_maildir.c:887: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). if ((ret = atoi( lseq + 1 ) - atoi( rseq + 1 ))) data/isync-1.3.0/src/drv_maildir.c:887:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ((ret = atoi( lseq + 1 ) - atoi( rseq + 1 ))) data/isync-1.3.0/src/drv_maildir.c:890: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). return atoi( lseq + 1 ) - atoi( rseq + 1 ); data/isync-1.3.0/src/drv_maildir.c:890:30: [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( lseq + 1 ) - atoi( rseq + 1 ); data/isync-1.3.0/src/drv_maildir.c:915: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 buf[_POSIX_PATH_MAX], nbuf[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:927: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 ((tdb->open)( tdb, 0, 0, 0, DB_HASH, DB_CREATE, 0 )) { data/isync-1.3.0/src/drv_maildir.c:939:4: [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( buf + bl, subdirs[i], 4 ); data/isync-1.3.0/src/drv_maildir.c:956:4: [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( buf + bl, subdirs[i], 4 ); data/isync-1.3.0/src/drv_maildir.c:1017:4: [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( buf + bl, subdirs[i], 4 ); data/isync-1.3.0/src/drv_maildir.c:1114: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( nbuf, buf, bl + 4 ); data/isync-1.3.0/src/drv_maildir.c:1148: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 (!(f = fopen( buf, "r" ))) { data/isync-1.3.0/src/drv_maildir.c:1169: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( entry->tuid, nbuf + 8, TUIDL ); data/isync-1.3.0/src/drv_maildir.c:1212: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( msg->gen.tuid, entry->tuid, TUIDL ); data/isync-1.3.0/src/drv_maildir.c:1277: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 uvpath[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:1284:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->uvfd = open( uvpath, O_RDWR|O_CREAT, 0600 )) < 0) { data/isync-1.3.0/src/drv_maildir.c:1291:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->uvfd = open( uvpath, O_RDWR, 0600 )) < 0) { data/isync-1.3.0/src/drv_maildir.c:1293:20: [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 ((ctx->uvfd = open( uvpath, O_RDWR, 0600 )) < 0) { data/isync-1.3.0/src/drv_maildir.c:1295:22: [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 ((ctx->uvfd = open( uvpath, O_RDWR|O_CREAT, 0600 )) >= 0) data/isync-1.3.0/src/drv_maildir.c:1299:22: [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 ((ctx->uvfd = open( uvpath, O_RDWR|O_CREAT, 0600 )) >= 0) data/isync-1.3.0/src/drv_maildir.c:1354: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 buf[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:1377:4: [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( buf + bl, subdirs[i], 4 ); data/isync-1.3.0/src/drv_maildir.c:1519: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 buf[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:1523:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open( buf, O_RDONLY )) >= 0) data/isync-1.3.0/src/drv_maildir.c:1570: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 buf[_POSIX_PATH_MAX], nbuf[_POSIX_PATH_MAX], fbuf[NUM_FLAGS + 3], base[128]; data/isync-1.3.0/src/drv_maildir.c:1599:12: [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( buf, O_WRONLY|O_CREAT|O_EXCL, 0600 )) < 0) { data/isync-1.3.0/src/drv_maildir.c:1611:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open( buf, O_WRONLY|O_CREAT|O_EXCL, 0600 )) < 0) { data/isync-1.3.0/src/drv_maildir.c:1674: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 buf[_POSIX_PATH_MAX], nbuf[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:1677: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( nbuf, ctx->path, bbl - 1 ); data/isync-1.3.0/src/drv_maildir.c:1678: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( nbuf + bbl - 1, "/cur/", 5 ); data/isync-1.3.0/src/drv_maildir.c:1684: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( buf + bl, msg->base, ol + 1 ); data/isync-1.3.0/src/drv_maildir.c:1685: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( nbuf + bl, msg->base, ol + 1 ); data/isync-1.3.0/src/drv_maildir.c:1748: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 buf[_POSIX_PATH_MAX], nbuf[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_maildir.c:1794: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 buf[_POSIX_PATH_MAX]; data/isync-1.3.0/src/drv_proxy.c:196: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 ubuf[12]; data/isync-1.3.0/src/drv_proxy.c:209: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 fbuf[as(Flags) + 1]; data/isync-1.3.0/src/drv_proxy.c:239:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char fbuf[as(Flags) + 1]; data/isync-1.3.0/src/drv_proxy.c:254: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 fbuf[as(Flags) + 1]; data/isync-1.3.0/src/drv_proxy.c:269: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 fbuf1[as(Flags) + 1], fbuf2[as(Flags) + 1]; data/isync-1.3.0/src/main.c:44: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 Hostname[256]; /* for maildir */ data/isync-1.3.0/src/main.c:138: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 pbuf[10], pabuf[20]; data/isync-1.3.0/src/main.c:141:2: [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). open( "/dev/tty", O_RDWR ); data/isync-1.3.0/src/main.c:150:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( pbuf, "%d", Pid ); data/isync-1.3.0/src/main.c:151:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( pabuf, "/proc/%d/exe", Pid ); data/isync-1.3.0/src/main.c:166: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 buf[3][64]; data/isync-1.3.0/src/main.c:174:59: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (cols < 0 && (!(cs = getenv( "COLUMNS" )) || !(cols = atoi( cs )))) data/isync-1.3.0/src/main.c:176:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. ll = sprintf( buf[2], "C: %d/%d B: %d/%d", chans_done, chans_total, boxes_done, boxes_total ); data/isync-1.3.0/src/main.c:179:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. l = sprintf( buf[t], "+%d/%d *%d/%d #%d/%d", data/isync-1.3.0/src/main.c:386: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 *names[2]; data/isync-1.3.0/src/main.c:801: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 **boxes[2]; data/isync-1.3.0/src/main.c:802: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. const char *labels[2]; data/isync-1.3.0/src/main.c:974:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8]; data/isync-1.3.0/src/mdconvert.c:56: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 buf[1024]; data/isync-1.3.0/src/mdconvert.c:92: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 buf[_POSIX_PATH_MAX], buf2[_POSIX_PATH_MAX]; data/isync-1.3.0/src/mdconvert.c:93: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 umpath[_POSIX_PATH_MAX], uvpath[_POSIX_PATH_MAX], tdpath[_POSIX_PATH_MAX]; data/isync-1.3.0/src/mdconvert.c:107:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((sfd = open( spath, O_RDWR )) < 0) { data/isync-1.3.0/src/mdconvert.c:116:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((dfd = open( tdpath, O_RDWR|O_CREAT, 0600 )) < 0) { data/isync-1.3.0/src/mdconvert.c:124:18: [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 ((ret = (db->open)( db, 0, dbpath, 0, DB_HASH, altmap ? DB_CREATE|DB_TRUNCATE : 0, 0 ))) { data/isync-1.3.0/src/mdconvert.c:155:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. n = sprintf( buf, "%d\n%d\n", ((int *)value.data)[0], ((int *)value.data)[1] ); data/isync-1.3.0/src/mdconvert.c:173:4: [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( buf2, buf, bl ); data/isync-1.3.0/src/mdconvert.c:188: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). uid = atoi( p + 3 ); data/isync-1.3.0/src/socket.c:125: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 cname[1000]; data/isync-1.3.0/src/socket.c:472: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 sockname[64]; data/isync-1.3.0/src/socket.c:728: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( buf, conn->buf + conn->offset, n ); data/isync-1.3.0/src/socket.c:947: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( bc->data + bc->len, iov->buf + offset, len ); data/isync-1.3.0/src/socket.h:67: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[1]; data/isync-1.3.0/src/socket.h:118: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 buf[100000]; data/isync-1.3.0/src/socket.h:120: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 z_buf[100000]; data/isync-1.3.0/src/sync.c:147: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 tuid[TUIDL]; data/isync-1.3.0/src/sync.c:153: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 *dname, *jname, *nname, *lname, *box_name[2]; data/isync-1.3.0/src/sync.c:159: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. const char *orig_name[2]; data/isync-1.3.0/src/sync.c:327: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( out, in_buf + idx, in_len - idx ); data/isync-1.3.0/src/sync.c:390: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( out_buf, "X-TUID: ", 8 ); data/isync-1.3.0/src/sync.c:392: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( out_buf, vars->srec->tuid, TUIDL ); data/isync-1.3.0/src/sync.c:642:20: [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 ((svars->lfd = open( svars->lname, O_WRONLY|O_CREAT, 0666 )) < 0) { data/isync-1.3.0/src/sync.c:660: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 fbuf[16]; /* enlarge when support for keywords is added */ data/isync-1.3.0/src/sync.c:697: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 fbuf[16]; /* enlarge when support for keywords is added */ data/isync-1.3.0/src/sync.c:698: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 buf[128], buf1[64], buf2[64]; data/isync-1.3.0/src/sync.c:700: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 ((jfp = fopen( svars->dname, "r" ))) { data/isync-1.3.0/src/sync.c:840: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 ((jfp = fopen( svars->jname, "r" ))) { data/isync-1.3.0/src/sync.c:928: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( srec->tuid, buf + tn + 2, TUIDL ); data/isync-1.3.0/src/sync.c:1222:21: [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 (!(svars->nfp = fopen( svars->nname, "w" ))) { data/isync-1.3.0/src/sync.c:1226:21: [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 (!(svars->jfp = fopen( svars->jname, "a" ))) { data/isync-1.3.0/src/sync.c:1559: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. char afbuf[16], dfbuf[16]; /* enlarge when support for keywords is added */ data/isync-1.3.0/src/sync.h: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. const char *boxes[2]; data/isync-1.3.0/src/sync.h:70:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *str_ms[2], *str_hl[2]; data/isync-1.3.0/src/util.c:155: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 buf[1024]; data/isync-1.3.0/src/util.c:173: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( elem->string, str, len ); data/isync-1.3.0/src/util.c:199: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[1024]; data/isync-1.3.0/src/util.c:206: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( *strp, tmp, len + 1 ); data/isync-1.3.0/src/util.c:391: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( ret, str, nchars ); data/isync-1.3.0/src/util.c:486: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( *result + reserve, arg, l + 1 ); data/isync-1.3.0/src/util.c:527: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( p, out, outl ); data/isync-1.3.0/src/util.c:581:12: [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( "/dev/urandom", O_RDONLY )) < 0 && (fd = open( "/dev/random", O_RDONLY )) < 0) { data/isync-1.3.0/src/util.c:581:59: [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( "/dev/urandom", O_RDONLY )) < 0 && (fd = open( "/dev/random", O_RDONLY )) < 0) { data/isync-1.3.0/src/compat/convert.c:183:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key.size = s ? (size_t)(s - e->d_name) : strlen( e->d_name ); data/isync-1.3.0/src/compat/main.c:166: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). HomeLen = strlen( Home ); data/isync-1.3.0/src/compat/main.c:299: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). pl = strlen( path1 ); data/isync-1.3.0/src/compat/main.c:423:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat( buf, "," ); data/isync-1.3.0/src/config.c:443:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( arg ); data/isync-1.3.0/src/config.c:474: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). if (strlen( cfile.val ) != 1) { data/isync-1.3.0/src/drv_imap.c:1251:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((l = strlen( ctx->prefix ))) { data/isync-1.3.0/src/drv_imap.c:1280:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int pl = strlen( prefix ); data/isync-1.3.0/src/drv_imap.c:1951: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). interact->len = strlen( val ); data/isync-1.3.0/src/drv_imap.c:1982: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). uint prompt_len = strlen( prompt ); data/isync-1.3.0/src/drv_imap.c:2114: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). int len = strlen( cmech->string ); data/isync-1.3.0/src/drv_imap.c:3254:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen( cfg->val ) != 1) { data/isync-1.3.0/src/drv_maildir.c:156: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). pl = strlen( prefix ); data/isync-1.3.0/src/drv_maildir.c:473:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ctx, 1, flags, 0, 0, basePath, basePath ? strlen( basePath ) - 1 : 0, data/isync-1.3.0/src/drv_maildir.c:490:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ctx, 0, flags, inbox, inbox ? strlen( inbox ) : 0, 0, 0, data/isync-1.3.0/src/drv_maildir.c:645:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tkey->size = u ? (size_t)(u - name) : strlen( name ); data/isync-1.3.0/src/drv_maildir.c:766:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((n = read( ctx->uvfd, buf, sizeof(buf) - 1 )) <= 0 || data/isync-1.3.0/src/drv_maildir.c:1157: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). int bufl = strlen( nbuf ); data/isync-1.3.0/src/drv_maildir.c:1535:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read( fd, data->data, data->len ) != data->len) { data/isync-1.3.0/src/drv_maildir.c:1681: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). ol = strlen( msg->base ); data/isync-1.3.0/src/drv_maildir.c:1876: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). if (strlen( cfg->val ) != 1) { data/isync-1.3.0/src/main.c:247: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). pfxl = prefix ? strlen( prefix ) : 0; data/isync-1.3.0/src/main.c:353: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). boxl = strlen( boxp ); data/isync-1.3.0/src/mdconvert.c:138:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((n = read( sfd, buf, sizeof(buf) - 1 )) <= 0 || data/isync-1.3.0/src/mdconvert.c:199:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). key.size = s ? (size_t)(s - e->d_name) : strlen( e->d_name ); data/isync-1.3.0/src/socket.c:134: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( (const char *)subj_alt_name->d.ia5->data ) == (size_t)subj_alt_name->d.ia5->length && data/isync-1.3.0/src/socket.c:155: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( cname ) == (size_t)len && host_matches( hostname, cname )) data/isync-1.3.0/src/socket.c:638:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((n = read( sock->fd, buf, len )) < 0) { data/isync-1.3.0/src/sync.c:707:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!(ll = strlen( buf )) || buf[ll - 1] != '\n') { data/isync-1.3.0/src/sync.c:716:9: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (sscanf( buf, "%63s %63s", buf1, buf2 ) != 2 || data/isync-1.3.0/src/sync.c:725:8: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (sscanf( buf, "%63s %u", buf1, &uid ) != 2) { data/isync-1.3.0/src/sync.c:751:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!(ll = strlen( buf )) || buf[--ll] != '\n') { data/isync-1.3.0/src/sync.c:758:8: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (sscanf( buf, "%u %u %15s", &t1, &t2, fbuf ) < 2) { data/isync-1.3.0/src/sync.c:845:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!(ll = strlen( buf )) || buf[--ll] != '\n') { data/isync-1.3.0/src/sync.c:850:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!equals( buf, ll, JOURNAL_VERSION, strlen(JOURNAL_VERSION) )) { data/isync-1.3.0/src/sync.c:859: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). if (!(ll = strlen( buf )) || buf[--ll] != '\n') { data/isync-1.3.0/src/util.c:180: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). add_string_list_n( list, str, strlen( str ) ); data/isync-1.3.0/src/util.c:399:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return nfstrndup( str, strlen( str ) ); data/isync-1.3.0/src/util.c:482: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). l = strlen( arg ); data/isync-1.3.0/src/util.c:489: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). inl = strlen( in ); data/isync-1.3.0/src/util.c:491: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). outl = strlen( out ); data/isync-1.3.0/src/util.c:585:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read( fd, dat, 128 ) != 128) { ANALYSIS SUMMARY: Hits = 249 Lines analyzed = 14330 in approximately 0.43 seconds (33103 lines/second) Physical Source Lines of Code (SLOC) = 12127 Hits@level = [0] 81 [1] 42 [2] 168 [3] 7 [4] 32 [5] 0 Hits@level+ = [0+] 330 [1+] 249 [2+] 207 [3+] 39 [4+] 32 [5+] 0 Hits/KSLOC@level+ = [0+] 27.212 [1+] 20.5327 [2+] 17.0693 [3+] 3.21596 [4+] 2.63874 [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.