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/libixp-0.6~20121202+hg148/cmd/ixpc.c
Examining data/libixp-0.6~20121202+hg148/examples/ixpsrv.c
Examining data/libixp-0.6~20121202+hg148/include/ixp_local.h
Examining data/libixp-0.6~20121202+hg148/include/ixp_srvutil.h
Examining data/libixp-0.6~20121202+hg148/include/ixp.h
Examining data/libixp-0.6~20121202+hg148/lib/libixp/client.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/convert.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/error.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/map.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/request.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/rpc.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/server.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/socket.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/srv_util.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/thread.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/timer.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/transport.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/util.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp/message.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp_pthread/thread_pthread.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp_rubythread/thread_ruby.c
Examining data/libixp-0.6~20121202+hg148/lib/libixp_task/thread_task.c
Examining data/libixp-0.6~20121202+hg148/test/client.c

FINAL RESULTS:

data/libixp-0.6~20121202+hg148/lib/libixp/socket.c:104:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(file, S_IRWXU);
data/libixp-0.6~20121202+hg148/lib/libixp/util.c:96:32:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	else if((st.st_mode & 077) && chmod(path, st.st_mode & ~077))
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:36:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define debug(...) if(debuglevel) fprintf(stderr, "ixpsrv: " __VA_ARGS__)
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:103:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(f->name, name);
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:218:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(name, f->name);
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:227:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(name, r->ifcall.twalk.wname[i]);
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:11:9:  [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.
	return vsnprintf(buf, nbuf, fmt, ap);
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:21:6:  [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.
	n = vsnprintf(buf, 0, fmt, al);
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:26:3:  [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.
		vsnprintf(buf, n, fmt, ap);
data/libixp-0.6~20121202+hg148/lib/libixp/util.c:149: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, fmt, ap);
data/libixp-0.6~20121202+hg148/cmd/ixpc.c:329:12:  [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.
	address = getenv("IXP_ADDRESS");
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:450: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.
		mountaddr = getenv("XCPU_PARENT");
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:478:12:  [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.
	address = getenv("IXP_ADDRESS");
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:504:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(!(user = getenv("USER")))
data/libixp-0.6~20121202+hg148/lib/libixp/client.c:190:24:  [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.
	fcall.tattach.uname = getenv("USER");
data/libixp-0.6~20121202+hg148/lib/libixp/util.c:76:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	disp = getenv("DISPLAY");
data/libixp-0.6~20121202+hg148/lib/libixp/util.c:128: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.
		namespace = getenv("NAMESPACE");
data/libixp-0.6~20121202+hg148/cmd/ixpc.c:65:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[16];
data/libixp-0.6~20121202+hg148/cmd/ixpc.c:80:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[32];
data/libixp-0.6~20121202+hg148/cmd/ixpc.c:170: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+nbuf, arg, len);
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:129: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->ofcall.rread.data, buf + r->ifcall.tread.offset, len);
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:157: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((uchar*)buf + offset, r->ifcall.tread.data, count);
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:159: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)[offset+count] = '\0';
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:372:11:  [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).
		f->fd = open(f->name, O_RDONLY);
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:524: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 options[128];
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:527:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(options, "port=%d,noextend", port);
data/libixp-0.6~20121202+hg148/include/ixp.h:453: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	*wname[IXP_MAX_WELEM];
data/libixp-0.6~20121202+hg148/include/ixp.h:604:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	uint		open;
data/libixp-0.6~20121202+hg148/include/ixp.h:659:9:  [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).
	void (*open)(Ixp9Req*);
data/libixp-0.6~20121202+hg148/lib/libixp/client.c:80: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(fcall, ret, sizeof *fcall);
data/libixp-0.6~20121202+hg148/lib/libixp/client.c:525: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+len, fcall.rread.data, fcall.rread.count);
data/libixp-0.6~20121202+hg148/lib/libixp/convert.c:138: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(*s, msg->pos, len);
data/libixp-0.6~20121202+hg148/lib/libixp/convert.c:141: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(msg->pos, *s, len);
data/libixp-0.6~20121202+hg148/lib/libixp/convert.c:204: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(s, msg->pos, len);
data/libixp-0.6~20121202+hg148/lib/libixp/convert.c:236: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(*data, msg->pos, len);
data/libixp-0.6~20121202+hg148/lib/libixp/convert.c:238: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(msg->pos, *data, len);
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:87: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[IXP_ERRMAX];
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:102: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[IXP_ERRMAX];
data/libixp-0.6~20121202+hg148/lib/libixp/request.c:239: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(!p9conn->srv->open) {
data/libixp-0.6~20121202+hg148/lib/libixp/request.c:243:16:  [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).
		p9conn->srv->open(r);
data/libixp-0.6~20121202+hg148/lib/libixp/srv_util.c:95: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, fileid, sizeof *r);
data/libixp-0.6~20121202+hg148/lib/libixp/srv_util.c:135: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(req->ofcall.io.data, buf + req->ifcall.io.offset, len);
data/libixp-0.6~20121202+hg148/lib/libixp/srv_util.c:165: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(p+offset, req->ifcall.io.data, count);
data/libixp-0.6~20121202+hg148/lib/libixp/srv_util.c:336: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(queue->dat, dat, ndat);
data/libixp-0.6~20121202+hg148/lib/libixp/thread.c:10: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 errbuf[IXP_ERRMAX];
data/libixp-0.6~20121202+hg148/lib/libixp/util.c:167: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 sizestr[8];
data/libixp-0.6~20121202+hg148/cmd/ixpc.c:36:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(0, buf, fid->iounit);
data/libixp-0.6~20121202+hg148/cmd/ixpc.c:60:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s, modes[m], 3);
data/libixp-0.6~20121202+hg148/cmd/ixpc.c:83: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).
	buf[strlen(buf) - 1] = '\0';
data/libixp-0.6~20121202+hg148/cmd/ixpc.c:165: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(arg);
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:101: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).
	f = ixp_emallocz(sizeof(*f) + strlen(name) + 1);
data/libixp-0.6~20121202+hg148/examples/ixpsrv.c:226:3:  [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(name, "/");
data/libixp-0.6~20121202+hg148/include/ixp.h:547:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void		(*read)(IxpConn *);
data/libixp-0.6~20121202+hg148/include/ixp.h:660:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void (*read)(Ixp9Req*);
data/libixp-0.6~20121202+hg148/include/ixp.h:718:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t	(*read)(int, void*, size_t);
data/libixp-0.6~20121202+hg148/include/ixp.h:790:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		void (*read)(IxpConn*),
data/libixp-0.6~20121202+hg148/include/ixp_local.h:28: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).
			(_argtmp=strlen(_argv), _argv+=_argtmp, _argv-_argtmp) \
data/libixp-0.6~20121202+hg148/lib/libixp/client.c:264: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).
	p = path + strlen(path) - 1;
data/libixp-0.6~20121202+hg148/lib/libixp/client.c:688:26:  [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 = ixp_write(fid, buf, strlen(buf));
data/libixp-0.6~20121202+hg148/lib/libixp/convert.c:132: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(*s);
data/libixp-0.6~20121202+hg148/lib/libixp/convert.c:200: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(strings[i]);
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:79: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(errbuf, "interrupted", IXP_ERRMAX);
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:81:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(errbuf, strerror(errno), IXP_ERRMAX);
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:89:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp, buf, sizeof tmp);
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:91:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(thread->errbuf(), tmp, IXP_ERRMAX);
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:97:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, ixp_errbuf(), nbuf);
data/libixp-0.6~20121202+hg148/lib/libixp/error.c:108:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(thread->errbuf(), tmp, IXP_ERRMAX);
data/libixp-0.6~20121202+hg148/lib/libixp/message.c:16:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define SString(s) (SWord + strlen(s))
data/libixp-0.6~20121202+hg148/lib/libixp/request.c:254:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(!p9conn->srv->read) {
data/libixp-0.6~20121202+hg148/lib/libixp/request.c:258:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		p9conn->srv->read(r);
data/libixp-0.6~20121202+hg148/lib/libixp/server.c:38:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		void (*read)(IxpConn*),
data/libixp-0.6~20121202+hg148/lib/libixp/server.c:47:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c->read = read;
data/libixp-0.6~20121202+hg148/lib/libixp/server.c:105:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(c->read) {
data/libixp-0.6~20121202+hg148/lib/libixp/server.c:118:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c->read(c);
data/libixp-0.6~20121202+hg148/lib/libixp/socket.c:26: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).
	(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
data/libixp-0.6~20121202+hg148/lib/libixp/socket.c:58:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sa->sun_path, address, sizeof sa->sun_path);
data/libixp-0.6~20121202+hg148/lib/libixp/srv_util.c:362: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).
	res = strlen(dat);
data/libixp-0.6~20121202+hg148/lib/libixp/thread.c:93:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	.read = read,
data/libixp-0.6~20121202+hg148/lib/libixp/transport.c:27:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = thread->read(fd, msg->pos, n);
data/libixp-0.6~20121202+hg148/lib/libixp/util.c:83: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).
	path = &disp[strlen(disp) - 2];
data/libixp-0.6~20121202+hg148/lib/libixp/util.c:152: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(fmt[strlen(fmt)-1] == ':')
data/libixp-0.6~20121202+hg148/lib/libixp/util.c:177: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).
	write(1, name, strlen(name));
data/libixp-0.6~20121202+hg148/lib/libixp/util.c:223: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).
		mfatal("strdup", strlen(str));
data/libixp-0.6~20121202+hg148/lib/libixp_pthread/thread_pthread.c:191:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	.read = read,
data/libixp-0.6~20121202+hg148/lib/libixp_rubythread/thread_ruby.c:164:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, buf, size);

ANALYSIS SUMMARY:

Hits = 85
Lines analyzed = 6811 in approximately 0.17 seconds (39167 lines/second)
Physical Source Lines of Code (SLOC) = 4908
Hits@level = [0]  13 [1]  39 [2]  29 [3]   7 [4]   8 [5]   2
Hits@level+ = [0+]  98 [1+]  85 [2+]  46 [3+]  17 [4+]  10 [5+]   2
Hits/KSLOC@level+ = [0+] 19.9674 [1+] 17.3187 [2+] 9.37245 [3+] 3.46373 [4+] 2.03749 [5+] 0.407498
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.