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/nsync-1.24.0/internal/common.c
Examining data/nsync-1.24.0/internal/common.h
Examining data/nsync-1.24.0/internal/counter.c
Examining data/nsync-1.24.0/internal/cv.c
Examining data/nsync-1.24.0/internal/debug.c
Examining data/nsync-1.24.0/internal/dll.c
Examining data/nsync-1.24.0/internal/dll.h
Examining data/nsync-1.24.0/internal/headers.h
Examining data/nsync-1.24.0/internal/mu.c
Examining data/nsync-1.24.0/internal/mu_wait.c
Examining data/nsync-1.24.0/internal/note.c
Examining data/nsync-1.24.0/internal/once.c
Examining data/nsync-1.24.0/internal/sem.h
Examining data/nsync-1.24.0/internal/sem_wait.c
Examining data/nsync-1.24.0/internal/sem_wait_no_note.c
Examining data/nsync-1.24.0/internal/time_internal.c
Examining data/nsync-1.24.0/internal/wait.c
Examining data/nsync-1.24.0/internal/wait_internal.h
Examining data/nsync-1.24.0/platform/aarch64/cputype.h
Examining data/nsync-1.24.0/platform/alpha/cputype.h
Examining data/nsync-1.24.0/platform/arm/cputype.h
Examining data/nsync-1.24.0/platform/atomic_ind/atomic.h
Examining data/nsync-1.24.0/platform/c++11.futex/platform.h
Examining data/nsync-1.24.0/platform/c++11/atomic.h
Examining data/nsync-1.24.0/platform/c++11/platform.h
Examining data/nsync-1.24.0/platform/c++11/src/nsync_panic.cc
Examining data/nsync-1.24.0/platform/c++11/src/nsync_semaphore_mutex.cc
Examining data/nsync-1.24.0/platform/c++11/src/per_thread_waiter.cc
Examining data/nsync-1.24.0/platform/c++11/src/start_thread.cc
Examining data/nsync-1.24.0/platform/c++11/src/time_rep_timespec.cc
Examining data/nsync-1.24.0/platform/c++11/src/time_rep_timespec_test.cc
Examining data/nsync-1.24.0/platform/c++11/src/yield.cc
Examining data/nsync-1.24.0/platform/c11/atomic.h
Examining data/nsync-1.24.0/platform/c_from_c++11/src/nsync_atm_c++.cc
Examining data/nsync-1.24.0/platform/clang/atomic.h
Examining data/nsync-1.24.0/platform/clang/compiler.h
Examining data/nsync-1.24.0/platform/cygwin/platform.h
Examining data/nsync-1.24.0/platform/decc/compiler.h
Examining data/nsync-1.24.0/platform/freebsd/platform.h
Examining data/nsync-1.24.0/platform/gcc/atomic.h
Examining data/nsync-1.24.0/platform/gcc/compiler.h
Examining data/nsync-1.24.0/platform/gcc_new/atomic.h
Examining data/nsync-1.24.0/platform/gcc_new_debug/atomic.h
Examining data/nsync-1.24.0/platform/gcc_no_tls/compiler.h
Examining data/nsync-1.24.0/platform/gcc_old/atomic.h
Examining data/nsync-1.24.0/platform/ia64/cputype.h
Examining data/nsync-1.24.0/platform/irix64/platform.h
Examining data/nsync-1.24.0/platform/lcc/compiler.h
Examining data/nsync-1.24.0/platform/lcc/nsync_time_init.h
Examining data/nsync-1.24.0/platform/linux/platform.h
Examining data/nsync-1.24.0/platform/linux/src/nsync_semaphore_futex.c
Examining data/nsync-1.24.0/platform/m68k/cputype.h
Examining data/nsync-1.24.0/platform/macos/atomic.h
Examining data/nsync-1.24.0/platform/macos/platform.h
Examining data/nsync-1.24.0/platform/macos/platform_c++11_os.h
Examining data/nsync-1.24.0/platform/macos/src/nsync_semaphore_gcd.c
Examining data/nsync-1.24.0/platform/mips/cputype.h
Examining data/nsync-1.24.0/platform/msvc/compiler.h
Examining data/nsync-1.24.0/platform/netbsd/atomic.h
Examining data/nsync-1.24.0/platform/netbsd/platform.h
Examining data/nsync-1.24.0/platform/num_time/nsync_time_init.h
Examining data/nsync-1.24.0/platform/num_time/src/time_rep.c
Examining data/nsync-1.24.0/platform/openbsd/platform.h
Examining data/nsync-1.24.0/platform/osf1/platform.h
Examining data/nsync-1.24.0/platform/parisc64/cputype.h
Examining data/nsync-1.24.0/platform/pcc/compiler.h
Examining data/nsync-1.24.0/platform/pmax/cputype.h
Examining data/nsync-1.24.0/platform/posix/compiler.h
Examining data/nsync-1.24.0/platform/posix/cputype.h
Examining data/nsync-1.24.0/platform/posix/nsync_time_init.h
Examining data/nsync-1.24.0/platform/posix/platform.h
Examining data/nsync-1.24.0/platform/posix/platform_c++11_os.h
Examining data/nsync-1.24.0/platform/posix/src/clock_gettime.c
Examining data/nsync-1.24.0/platform/posix/src/nsync_panic.c
Examining data/nsync-1.24.0/platform/posix/src/nsync_semaphore_mutex.c
Examining data/nsync-1.24.0/platform/posix/src/nsync_semaphore_sem_t.c
Examining data/nsync-1.24.0/platform/posix/src/per_thread_waiter.c
Examining data/nsync-1.24.0/platform/posix/src/start_thread.c
Examining data/nsync-1.24.0/platform/posix/src/time_rep.c
Examining data/nsync-1.24.0/platform/posix/src/time_rep_debug.c
Examining data/nsync-1.24.0/platform/posix/src/yield.c
Examining data/nsync-1.24.0/platform/ppc32/cputype.h
Examining data/nsync-1.24.0/platform/ppc64/cputype.h
Examining data/nsync-1.24.0/platform/riscv/cputype.h
Examining data/nsync-1.24.0/platform/s390x/cputype.h
Examining data/nsync-1.24.0/platform/shark/cputype.h
Examining data/nsync-1.24.0/platform/sparc64/cputype.h
Examining data/nsync-1.24.0/platform/tcc/compiler.h
Examining data/nsync-1.24.0/platform/tendracc/compiler.h
Examining data/nsync-1.24.0/platform/vax/cputype.h
Examining data/nsync-1.24.0/platform/win32/atomic.h
Examining data/nsync-1.24.0/platform/win32/platform.h
Examining data/nsync-1.24.0/platform/win32/platform_c++11_os.h
Examining data/nsync-1.24.0/platform/win32/src/clock_gettime.c
Examining data/nsync-1.24.0/platform/win32/src/init_callback_win32.c
Examining data/nsync-1.24.0/platform/win32/src/nanosleep.c
Examining data/nsync-1.24.0/platform/win32/src/nsync_semaphore_win32.c
Examining data/nsync-1.24.0/platform/win32/src/per_thread_waiter.c
Examining data/nsync-1.24.0/platform/win32/src/pthread_cond_timedwait_win32.c
Examining data/nsync-1.24.0/platform/win32/src/pthread_key_win32.cc
Examining data/nsync-1.24.0/platform/win32/src/start_thread.c
Examining data/nsync-1.24.0/platform/x86_32/cputype.h
Examining data/nsync-1.24.0/platform/x86_64/cputype.h
Examining data/nsync-1.24.0/public/nsync.h
Examining data/nsync-1.24.0/public/nsync_atomic.h
Examining data/nsync-1.24.0/public/nsync_counter.h
Examining data/nsync-1.24.0/public/nsync_cpp.h
Examining data/nsync-1.24.0/public/nsync_cv.h
Examining data/nsync-1.24.0/public/nsync_debug.h
Examining data/nsync-1.24.0/public/nsync_mu.h
Examining data/nsync-1.24.0/public/nsync_mu_wait.h
Examining data/nsync-1.24.0/public/nsync_note.h
Examining data/nsync-1.24.0/public/nsync_once.h
Examining data/nsync-1.24.0/public/nsync_time.h
Examining data/nsync-1.24.0/public/nsync_time_internal.h
Examining data/nsync-1.24.0/public/nsync_waiter.h
Examining data/nsync-1.24.0/testing/array.c
Examining data/nsync-1.24.0/testing/array.h
Examining data/nsync-1.24.0/testing/atm_log.c
Examining data/nsync-1.24.0/testing/atm_log.h
Examining data/nsync-1.24.0/testing/closure.c
Examining data/nsync-1.24.0/testing/closure.h
Examining data/nsync-1.24.0/testing/counter_test.c
Examining data/nsync-1.24.0/testing/cv_mu_timeout_stress_test.c
Examining data/nsync-1.24.0/testing/cv_test.c
Examining data/nsync-1.24.0/testing/cv_wait_example_test.c
Examining data/nsync-1.24.0/testing/dll_test.c
Examining data/nsync-1.24.0/testing/heap.h
Examining data/nsync-1.24.0/testing/mu_starvation_test.c
Examining data/nsync-1.24.0/testing/mu_test.c
Examining data/nsync-1.24.0/testing/mu_wait_example_test.c
Examining data/nsync-1.24.0/testing/mu_wait_test.c
Examining data/nsync-1.24.0/testing/note_test.c
Examining data/nsync-1.24.0/testing/once_test.c
Examining data/nsync-1.24.0/testing/pingpong_test.c
Examining data/nsync-1.24.0/testing/smprintf.c
Examining data/nsync-1.24.0/testing/smprintf.h
Examining data/nsync-1.24.0/testing/testing.c
Examining data/nsync-1.24.0/testing/testing.h
Examining data/nsync-1.24.0/testing/time_extra.c
Examining data/nsync-1.24.0/testing/time_extra.h
Examining data/nsync-1.24.0/testing/wait_test.c
Examining data/nsync-1.24.0/tools/detect.c
Examining data/nsync-1.24.0/tools/mkdep.c
Examining data/nsync-1.24.0/tools/run_tests.c

FINAL RESULTS:

data/nsync-1.24.0/platform/irix64/platform.h:35:5:  [4] (format) snprintf:
  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.
int snprintf (char *, size_t, const char *, ...);
data/nsync-1.24.0/platform/irix64/platform.h:36:5:  [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.
int vsnprintf (char *, size_t, const char *, va_list);
data/nsync-1.24.0/testing/smprintf.c:26:7:  [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.
		x = vsnprintf (buf, m, fmt, ap);
data/nsync-1.24.0/tools/mkdep.c:26:9:  [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.
#define popen _popen
data/nsync-1.24.0/tools/mkdep.c:107:15:  [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.
        ifp = popen (cmd, "r");
data/nsync-1.24.0/tools/run_tests.c:22:9:  [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.
#define popen _popen
data/nsync-1.24.0/tools/run_tests.c:157:45:  [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.
                        test[started].pfp = popen (test[started].cmd, "r");
data/nsync-1.24.0/platform/win32/platform.h:69:28:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#define pthread_mutex_lock EnterCriticalSection
data/nsync-1.24.0/platform/win32/platform.h:71:37:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
#define pthread_mutex_init(mu,attr) InitializeCriticalSection (mu)
data/nsync-1.24.0/tools/run_tests.c:26:14:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define TEMP tmpnam (NULL)
data/nsync-1.24.0/internal/debug.c:278:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char nsync_debug_buf[1024];
data/nsync-1.24.0/platform/win32/platform.h:33:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#define tmpfile nsync_tmpfile_wrapper
data/nsync-1.24.0/platform/win32/platform_c++11_os.h:34:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#define tmpfile nsync_tmpfile_wrapper
data/nsync-1.24.0/testing/array.c:33: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 (na, a->a_, omax*sz);
data/nsync-1.24.0/testing/cv_test.c:360: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 *result[sizeof (result_name) / sizeof (result_name[0])];
data/nsync-1.24.0/testing/cv_wait_example_test.c:126: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[64];
data/nsync-1.24.0/testing/dll_test.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char single[32];
data/nsync-1.24.0/testing/dll_test.c:286: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[32];
data/nsync-1.24.0/testing/mu_wait_example_test.c:125: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[64];
data/nsync-1.24.0/testing/testing.c:108: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).
		if (*pargn + 1 == argc || atoi (argv[1 + *pargn]) < 1) {
data/nsync-1.24.0/testing/testing.c:112: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).
		tb->parallelism = atoi (argv[++*pargn]);
data/nsync-1.24.0/testing/testing.c:312: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 Xbuf[128];
data/nsync-1.24.0/testing/testing.c:324: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, &pat[i], blen);
data/nsync-1.24.0/testing/testing.c:359:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			t->fp = tmpfile ();
data/nsync-1.24.0/testing/testing.c:398: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 dummy[256];	   /* so structs don't share cache line */
data/nsync-1.24.0/tools/mkdep.c:93:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char line[2048];
data/nsync-1.24.0/tools/mkdep.c:104:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 **list = (char **) malloc (sizeof (list[0]) * list_max);
data/nsync-1.24.0/tools/mkdep.c:130:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                        list = (char **) realloc (list,
data/nsync-1.24.0/tools/mkdep.c:171:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char cmd_prefix[2048];
data/nsync-1.24.0/tools/mkdep.c:173:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char cpp_cmd_prefix[2048];
data/nsync-1.24.0/tools/run_tests.c:25:9:  [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).
#define mkstemp(x) (-1)
data/nsync-1.24.0/tools/run_tests.c:65:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                FILE *fp = fopen (file, "r");
data/nsync-1.24.0/tools/run_tests.c:84:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                FILE *fp = fopen (file, "r");
data/nsync-1.24.0/tools/run_tests.c:204:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char flags[64];
data/nsync-1.24.0/tools/run_tests.c:208: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 templ[64];
data/nsync-1.24.0/tools/run_tests.c:211:17:  [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).
			test[i].fd = mkstemp (templ);
data/nsync-1.24.0/tools/run_tests.c:261:57:  [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).
                                          parallelism = atoi (argv[++argn]);
data/nsync-1.24.0/tools/run_tests.c:264:60:  [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).
                                          subparallelism = atoi (argv[++argn]);
data/nsync-1.24.0/platform/posix/src/nsync_panic.c:21: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).
        int len = strlen (s);
data/nsync-1.24.0/testing/cv_test.c:477: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).
	buflen = strlen (tmp)+1;
data/nsync-1.24.0/testing/cv_test.c:483: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).
	buflen = strlen (tmp)+1;
data/nsync-1.24.0/testing/cv_test.c:574:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen (s->result[i]) == 0) {
data/nsync-1.24.0/testing/dll_test.c:62: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).
	n = strlen (buf);
data/nsync-1.24.0/testing/dll_test.c:67:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (single);
data/nsync-1.24.0/testing/smprintf.c:19: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).
	int m = strlen (fmt) * 2 + 1;
data/nsync-1.24.0/testing/testing.c:208:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc (t->fp)) != EOF) {
data/nsync-1.24.0/testing/testing.c:327: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).
			int slen = strlen (str);
data/nsync-1.24.0/testing/testing.c:480: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).
	int len = strlen (msg);
data/nsync-1.24.0/tools/mkdep.c:45: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).
        while (pref != NULL && strncmp (s, pref, strlen (pref)) != 0) {
data/nsync-1.24.0/tools/mkdep.c:57:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int slen = strlen (s);
data/nsync-1.24.0/tools/mkdep.c:62: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).
               (slen < (int) strlen (suf) ||
data/nsync-1.24.0/tools/mkdep.c:63:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strcmp (&s[slen-strlen (suf)], suf) != 0)) {
data/nsync-1.24.0/tools/mkdep.c:81: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).
        int pos = strlen (s);
data/nsync-1.24.0/tools/mkdep.c:94: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).
        int cmdlen = strlen (cmd_prefix) + strlen (file) + 10;
data/nsync-1.24.0/tools/mkdep.c:94: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 cmdlen = strlen (cmd_prefix) + strlen (file) + 10;
data/nsync-1.24.0/tools/mkdep.c:186:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                cpp_cmd_len += strlen (
data/nsync-1.24.0/tools/mkdep.c:192: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).
                                cmd_len += strlen (&cmd_prefix[cmd_len]);
data/nsync-1.24.0/tools/mkdep.c:196:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                cpp_cmd_len += strlen (
data/nsync-1.24.0/tools/run_tests.c:70:37:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        while ((c = getc (fp)) != EOF) {
data/nsync-1.24.0/tools/run_tests.c:90:37:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        while ((c = getc (fp)) != EOF) {
data/nsync-1.24.0/tools/run_tests.c:134:45:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                while ((c = getc (test[i].pfp)) != EOF) {
data/nsync-1.24.0/tools/run_tests.c:213: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).
                        redirect_len = strlen (test[i].file) + 10;
data/nsync-1.24.0/tools/run_tests.c:230:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                cmd_len = strlen (test[i].name) +
data/nsync-1.24.0/tools/run_tests.c:231:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          strlen (redirect) + strlen (flags) + 64;
data/nsync-1.24.0/tools/run_tests.c:231:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          strlen (redirect) + strlen (flags) + 64;

ANALYSIS SUMMARY:

Hits = 65
Lines analyzed = 15897 in approximately 0.53 seconds (29768 lines/second)
Physical Source Lines of Code (SLOC) = 9675
Hits@level = [0]  42 [1]  27 [2]  28 [3]   3 [4]   7 [5]   0
Hits@level+ = [0+] 107 [1+]  65 [2+]  38 [3+]  10 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 11.0594 [1+] 6.71835 [2+] 3.92765 [3+] 1.03359 [4+] 0.723514 [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.