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/libsearpc-3.2.0-7-g50ff08b/demo/demo-async-client.c
Examining data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-client.c
Examining data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-packet.h
Examining data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-server.c
Examining data/libsearpc-3.2.0-7-g50ff08b/demo/test-object.c
Examining data/libsearpc-3.2.0-7-g50ff08b/demo/test-object.h
Examining data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-client.c
Examining data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-client.h
Examining data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.h
Examining data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-server.c
Examining data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-server.h
Examining data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-utils.c
Examining data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-utils.h
Examining data/libsearpc-3.2.0-7-g50ff08b/lib/searpc.h
Examining data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c
Examining data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c
Examining data/libsearpc-3.2.0-7-g50ff08b/tests/clar.h
Examining data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fixtures.h
Examining data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h
Examining data/libsearpc-3.2.0-7-g50ff08b/tests/clar/print.h
Examining data/libsearpc-3.2.0-7-g50ff08b/tests/clar/sandbox.h
Examining data/libsearpc-3.2.0-7-g50ff08b/tests/clar_test.h
Examining data/libsearpc-3.2.0-7-g50ff08b/tests/main.c
Examining data/libsearpc-3.2.0-7-g50ff08b/tests/searpc.c

FINAL RESULTS:

data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:150:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod(un_path, 0700) < 0) {
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:36:10:  [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.
#	ifndef access
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:37:11:  [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.
#		define access(path, mode) _access(path, mode)
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:59:22:  [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.
#		define p_snprintf snprintf
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:78:21:  [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.
#	define p_snprintf snprintf
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:10:27:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
#define wcscpy_s(a, b, c) wcscpy((a), (c))
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:11:27:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
#define wcscat_s(a, b, c) wcscat((a), (c))
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:274:3:  [4] (shell) execv:
  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.
		execv(argv[0], argv);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/print.h:64: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, argp);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/sandbox.h:14:10:  [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.
	return (access(path, W_OK) == 0);
data/libsearpc-3.2.0-7-g50ff08b/tests/searpc.c:286:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (buf, "%s%d", name, i);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/sandbox.h:29:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *env = getenv(env_vars[i]);
data/libsearpc-3.2.0-7-g50ff08b/demo/demo-async-client.c:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFLEN];
data/libsearpc-3.2.0-7-g50ff08b/demo/demo-async-client.c:45: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(pac->data, fcall_str, fcall_len);
data/libsearpc-3.2.0-7-g50ff08b/demo/demo-async-client.c:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFLEN];
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-client.c:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFLEN];
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-client.c:43: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(pac->data, fcall_str, fcall_len);
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-client.c:111:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[16] = "hello searpc";
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-client.c:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[16] = "A rpc test.";
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-packet.h:22:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[0];
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-packet.h:243:9:  [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(dst, &val, INADDRSZ);
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-packet.h:342: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(dst, tmp, IN6ADDRSZ);
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-server.c:86:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFLEN];
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-server.c:155:9:  [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(pac_ret->data, res, ret_len);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:72: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(client->path, path, strlen(path) + 1);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:79: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(server->path, path, strlen(path) + 1);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:89: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(server->path, path, strlen(path) + 1);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:432: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(temp_request, fcall_str, fcall_len);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:584:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256] = {0};
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.h:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[4096];
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.h:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[4096];
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-server.c:207:23:  [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).
        slow_log_fp = fopen (slow_log_path, "a+");
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-server.c:227: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 ((fp = fopen (slow_log_path, "a+")) == NULL) {
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-server.c:313:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char time_buf[64];
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-server.c:355: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 buf[256];
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-server.c:363: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 buf[512];
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-server.c:374: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 buf[256];
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:488: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[4096];
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fixtures.h:4: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 _path[4096];
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:123:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	cl_assert(MultiByteToWideChar(CP_UTF8,
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:207:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	cl_assert(MultiByteToWideChar(CP_UTF8,
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:214:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	cl_assert(MultiByteToWideChar(CP_UTF8,
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:287:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *argv[5];
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:314:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *argv[4];
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/sandbox.h:1: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 _clar_path[4096];
data/libsearpc-3.2.0-7-g50ff08b/tests/searpc.c:201: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(ret, orig_str, sub_len);
data/libsearpc-3.2.0-7-g50ff08b/tests/searpc.c:271:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-client.c:121: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 (ret == strlen(str))
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-client.c:163:69:  [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 ((json_is_false (json_object_get (member, "equal"))) == (strlen(str)==len)) {
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-packet.h:65:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ( (nread = read(fd, buf, nleft)) < 0) {
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-server.c:33: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).
        return strlen(str);
data/libsearpc-3.2.0-7-g50ff08b/demo/searpc-demo-server.c:47:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (len == strlen(str))
data/libsearpc-3.2.0-7-g50ff08b/demo/test-object.c:45:47:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            g_value_set_boolean (value, self->equal);
data/libsearpc-3.2.0-7-g50ff08b/demo/test-object.h:21:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    gboolean equal;
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-client.c:91: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).
    *len = strlen (data);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:72: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).
    memcpy(client->path, path, strlen(path) + 1);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:79: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).
    memcpy(server->path, path, strlen(path) + 1);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:89: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).
    memcpy(server->path, path, strlen(path) + 1);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:123: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(server->path) > sizeof(saddr.sun_path)-1) {
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:295:69:  [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).
        char *ret_str = searpc_server_call_function (service, body, strlen(body), &ret_len);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:393:28:  [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).
    guint32 len = (guint32)strlen(json_str);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:450:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        g_warning ("Failed to parse request body: %s.\n", strlen(jerror.text) > 0 ? jerror.text : "");
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-named-pipe-transport.c:520:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ( (nread = read(fd, ptr, nleft)) < 0) {
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-server.c:166: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).
    *len=strlen(data);
data/libsearpc-3.2.0-7-g50ff08b/lib/searpc-server.c:182: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).
    *len=strlen(data);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:48:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#		ifndef strncpy
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:49:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#			define strncpy(to, from, to_size) strncpy_s(to, to_size, from, _TRUNCATE)
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:239: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).
		size_t suitelen = strlen(suite->name);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:240:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		matchlen = strlen(filter);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:247: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).
			matchlen = strlen(filter);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:297:13:  [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).
			arglen = strlen(argument);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:303: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).
				suitelen = strlen(_clar_suites[j].name);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:533:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat(buf, " != ", sizeof(buf) - offset);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar.c:548:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat(buf, " != ", sizeof(buf) - offset);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fixtures.h:7:13:  [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).
	root_len = strlen(base);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fixtures.h:8:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(_path, base, sizeof(_path));
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fixtures.h:16:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(_path + root_len,
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:54:22:  [1] (buffer) wcslen:
  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).
	buffer_prefix_len = wcslen(buffer);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:160:26:  [1] (buffer) wcslen:
  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).
	buf_source_prefix_len = wcslen(buf_source);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:164:24:  [1] (buffer) wcslen:
  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).
	buf_dest_prefix_len = wcslen(buf_dest);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/fs.h:292: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).
	source_len = strlen(source);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/sandbox.h:34:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buffer, env, length);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/sandbox.h:41:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(buffer, "/tmp", length);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/sandbox.h:56:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
		strncpy(buffer, ".", length);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/sandbox.h:81:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(_clar_path);
data/libsearpc-3.2.0-7-g50ff08b/tests/clar/sandbox.h:97:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(_clar_path + len, path_tail, sizeof(_clar_path) - len);
data/libsearpc-3.2.0-7-g50ff08b/tests/searpc.c:195: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).
    if (sub_len > strlen(orig_str)) {

ANALYSIS SUMMARY:

Hits = 87
Lines analyzed = 5291 in approximately 0.13 seconds (41518 lines/second)
Physical Source Lines of Code (SLOC) = 4058
Hits@level = [0]  59 [1]  40 [2]  35 [3]   1 [4]  10 [5]   1
Hits@level+ = [0+] 146 [1+]  87 [2+]  47 [3+]  12 [4+]  11 [5+]   1
Hits/KSLOC@level+ = [0+] 35.9783 [1+] 21.4391 [2+] 11.5821 [3+] 2.95712 [4+] 2.71069 [5+] 0.246427
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.