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/pupnp-1.8-1.8.4/build/msvc/inttypes.h
Examining data/pupnp-1.8-1.8.4/build/msvc/stdint.h
Examining data/pupnp-1.8-1.8.4/ixml/inc/ixml.h
Examining data/pupnp-1.8-1.8.4/ixml/inc/ixmldebug.h
Examining data/pupnp-1.8-1.8.4/ixml/src/attr.c
Examining data/pupnp-1.8-1.8.4/ixml/src/document.c
Examining data/pupnp-1.8-1.8.4/ixml/src/element.c
Examining data/pupnp-1.8-1.8.4/ixml/src/inc/ixmlmembuf.h
Examining data/pupnp-1.8-1.8.4/ixml/src/inc/ixmlparser.h
Examining data/pupnp-1.8-1.8.4/ixml/src/ixml.c
Examining data/pupnp-1.8-1.8.4/ixml/src/ixmldebug.c
Examining data/pupnp-1.8-1.8.4/ixml/src/ixmlmembuf.c
Examining data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c
Examining data/pupnp-1.8-1.8.4/ixml/src/namedNodeMap.c
Examining data/pupnp-1.8-1.8.4/ixml/src/node.c
Examining data/pupnp-1.8-1.8.4/ixml/src/nodeList.c
Examining data/pupnp-1.8-1.8.4/ixml/test/test_document.c
Examining data/pupnp-1.8-1.8.4/upnp/inc/ActionComplete.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/ActionRequest.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/Callback.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/Discovery.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/Event.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/EventSubscribe.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/FileInfo.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/StateVarComplete.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/StateVarRequest.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/SubscriptionRequest.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/TemplateInclude.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/TemplateSource.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/TemplateUndef.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/UpnpGlobal.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/UpnpInet.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/UpnpIntTypes.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/UpnpStdInt.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/UpnpString.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/UpnpUniStd.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/ithread.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/list.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/poison.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/upnp.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/upnpdebug.h
Examining data/pupnp-1.8-1.8.4/upnp/inc/upnptools.h
Examining data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.c
Examining data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.h
Examining data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c
Examining data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h
Examining data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c
Examining data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.h
Examining data/pupnp-1.8-1.8.4/upnp/sample/linux/tv_combo_main.c
Examining data/pupnp-1.8-1.8.4/upnp/sample/linux/tv_ctrlpt_main.c
Examining data/pupnp-1.8-1.8.4/upnp/sample/linux/tv_device_main.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/ActionComplete.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/ActionRequest.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/Discovery.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/Event.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/EventSubscribe.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/FileInfo.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/StateVarComplete.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/StateVarRequest.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/SubscriptionRequest.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/UpnpString.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/upnpdebug.c
Examining data/pupnp-1.8-1.8.4/upnp/src/api/upnptools.c
Examining data/pupnp-1.8-1.8.4/upnp/src/gena/gena_callback2.c
Examining data/pupnp-1.8-1.8.4/upnp/src/gena/gena_ctrlpt.c
Examining data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/client_table/ClientSubscription.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/client_table/client_table.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpparser.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/parsetools.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/statcodes.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/net/sock.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/service_table/service_table.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/util/membuffer.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/util/strintmap.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/util/upnp_timeout.c
Examining data/pupnp-1.8-1.8.4/upnp/src/genlib/util/util.c
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/ClientSubscription.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/VirtualDir.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/client_table.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/config.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/gena.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/gena_ctrlpt.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/gena_device.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/global.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/gmtdate.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/httpparser.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/httpreadwrite.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/inet_pton.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/md5.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/membuffer.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/miniserver.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/netall.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/parsetools.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/server.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/service_table.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/soaplib.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/sock.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/ssdplib.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/statcodes.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/statuscodes.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/strintmap.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/sysdep.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/unixutil.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/upnp_timeout.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/upnputil.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/uri.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/urlconfig.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/uuid.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inc/webserver.h
Examining data/pupnp-1.8-1.8.4/upnp/src/inet_pton.c
Examining data/pupnp-1.8-1.8.4/upnp/src/soap/soap_common.c
Examining data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c
Examining data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c
Examining data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ResultData.c
Examining data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ResultData.h
Examining data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c
Examining data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c
Examining data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c
Examining data/pupnp-1.8-1.8.4/upnp/src/threadutil/FreeList.c
Examining data/pupnp-1.8-1.8.4/upnp/src/threadutil/FreeList.h
Examining data/pupnp-1.8-1.8.4/upnp/src/threadutil/LinkedList.c
Examining data/pupnp-1.8-1.8.4/upnp/src/threadutil/LinkedList.h
Examining data/pupnp-1.8-1.8.4/upnp/src/threadutil/ThreadPool.c
Examining data/pupnp-1.8-1.8.4/upnp/src/threadutil/ThreadPool.h
Examining data/pupnp-1.8-1.8.4/upnp/src/threadutil/TimerThread.c
Examining data/pupnp-1.8-1.8.4/upnp/src/threadutil/TimerThread.h
Examining data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c
Examining data/pupnp-1.8-1.8.4/upnp/src/uuid/md5.c
Examining data/pupnp-1.8-1.8.4/upnp/src/uuid/sysdep.c
Examining data/pupnp-1.8-1.8.4/upnp/src/uuid/uuid.c
Examining data/pupnp-1.8-1.8.4/upnp/src/win_dll.c
Examining data/pupnp-1.8-1.8.4/upnp/test/test_init.c
Examining data/pupnp-1.8-1.8.4/upnp/test/test_url.c
Examining data/pupnp-1.8-1.8.4/upnp/unittest/main.c
Examining data/pupnp-1.8-1.8.4/upnp/unittest/templates/FirstObject.c
Examining data/pupnp-1.8-1.8.4/upnp/unittest/templates/FirstObject.h
Examining data/pupnp-1.8-1.8.4/upnp/unittest/templates/SecondObject.c
Examining data/pupnp-1.8-1.8.4/upnp/unittest/templates/SecondObject.h
Examining data/pupnp-1.8-1.8.4/upnp/unittest/templates/TheStruct.h
Examining data/pupnp-1.8-1.8.4/upnp/unittest/templates/templates.c
Examining data/pupnp-1.8-1.8.4/upnp/unittest/templates/templates.h
Examining data/pupnp-1.8-1.8.4/debian/tests/pupnp-test.c

FINAL RESULTS:

data/pupnp-1.8-1.8.4/ixml/src/ixmldebug.c:33: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(fp, FmtStr, ArgList);
data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.c:645: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.
	rc = vsnprintf(buf, MAX_BUF, fmt, ap);
data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.c:671: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(stdout, format, argList);
data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.h:262:10:  [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 snprintf	_snprintf
data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.h:262:19:  [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 snprintf	_snprintf
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:737:4:  [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(deviceNode->device.UDN, UDN);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:738:4:  [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(deviceNode->device.DescDocURL, location);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:739:4:  [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(deviceNode->device.FriendlyName, friendlyName);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:740:4:  [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(deviceNode->device.PresURL, presURL);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:748:5:  [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(deviceNode->device.TvService[service].
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:750:5:  [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(deviceNode->device.TvService[service].
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:752:5:  [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(deviceNode->device.TvService[service].
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:754:5:  [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(deviceNode->device.TvService[service].
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:756:5:  [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(deviceNode->device.TvService[service].
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:849:8:  [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(State[j], tmpstate);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:947:5:  [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(tmpdevnode->device.TvService[service].
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:1489:14:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	validargs = sscanf(cmdline, "%s %d %d", cmd, &arg1, &arg2);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:1540:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		validargs = sscanf(cmdline, "%s %d %s", cmd, &arg1, strarg);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:1549:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		validargs = sscanf(cmdline, "%s %d %s", cmd, &arg1, strarg);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:1558:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		validargs = sscanf(cmdline, "%s %d %s", cmd, &arg1, strarg);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:1566:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		validargs = sscanf(cmdline, "%s %d %s", cmd, &arg1, strarg);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:126: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(out->UDN, UDN);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:127: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(out->ServiceId, serviceId);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:128: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(out->ServiceType, serviceTypeS);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:140:4:  [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(tv_service_table[TV_SERVICE_CONTROL].
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:153:4:  [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(tv_service_table[TV_SERVICE_PICTURE].
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:482: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(tv_service_table[service].VariableStrVal[variable], value);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1402:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		sscanf(cmdline, "%s", cmd);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpdebug.c:141: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(stdout, FmtStr, ArgList);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpdebug.c:147: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(ErrFileHnd, FmtStr, ArgList);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpdebug.c:153: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(InfoFileHnd, FmtStr, ArgList);
data/pupnp-1.8-1.8.4/upnp/src/api/upnptools.c:60:10:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/api/upnptools.c:60:19:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/api/upnptools.c:158:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(AbsURL, tempRel);
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_ctrlpt.c:57:10:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_ctrlpt.c:57:19:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:56:10:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:56:19:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:128: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(buffer, XML_PROPERTYSET_HEADER);
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:131:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(&buffer[strlen(buffer)],
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:62:10:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:62:19:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1542:9:  [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.
			rc = snprintf(tempbuf, sizeof(tempbuf), "%" PRIzu, num);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1549:9:  [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.
			rc = snprintf(tempbuf, sizeof(tempbuf), "%" PRId64,
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:68:11:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:68:20:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:757:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	sscanf(Tok, "%" SCNd64 "%" SCNd64, &F, &L);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:48:10:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:48:19:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/inet_pton.c:66:9:  [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).
	return strcpy(dst, tmp);
data/pupnp-1.8-1.8.4/upnp/src/inet_pton.c:153:9:  [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).
	return strcpy(dst, tmp);
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:56:10:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:56:19:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:61:9:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:61:18:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:375: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(RqstBuf, command);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:394:2:  [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(RqstBuf, TempBuf);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:398:2:  [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(RqstBuf, man);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:406: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(RqstBuf, TempBuf);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:415: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(RqstBuf, TempBuf);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:448: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(RqstBuf, command);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:466:2:  [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(RqstBuf, TempBuf);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:470:2:  [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(RqstBuf, man);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:478: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(RqstBuf, TempBuf);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:486: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(RqstBuf, TempBuf);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:60:10:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:60:19:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:44:10:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:44:19:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:53:10:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:53:19:  [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 snprintf _snprintf
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:350:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned int)time(NULL));
data/pupnp-1.8-1.8.4/upnp/src/threadutil/ThreadPool.c:419:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned int)t.tv_usec + (unsigned int)ithread_get_current_thread_id().p);
data/pupnp-1.8-1.8.4/upnp/src/threadutil/ThreadPool.c:421:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned int)t.tv_usec + (unsigned int)ithread_get_current_thread_id());
data/pupnp-1.8-1.8.4/upnp/src/threadutil/ThreadPool.c:423:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand((unsigned int)t.tv_usec + (unsigned int)ithread_get_current_thread_id());
data/pupnp-1.8-1.8.4/upnp/src/threadutil/ThreadPool.c:432:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand((unsigned int)t.millitm + idu.i);
data/pupnp-1.8-1.8.4/upnp/src/uuid/uuid.c:213:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand((unsigned int)(((time_now >> 32) ^ time_now) &
data/pupnp-1.8-1.8.4/ixml/src/ixmlmembuf.c:151: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(m->buf, buf, buf_len);
data/pupnp-1.8-1.8.4/ixml/src/ixmlmembuf.c:212: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(m->buf + index, buf, buf_len);
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:94: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.
typedef char utf8char[8];
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:2557:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        xmlFilePtr = fopen( xmlFileName, "rb" );
data/pupnp-1.8-1.8.4/upnp/inc/upnp.h:445: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.
typedef char Upnp_SID[44];
data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.c:638: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[MAX_BUF];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:67:7:  [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 *TvVarName[TV_SERVICE_SERVCOUNT][TV_MAXVARS] = {
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:71: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 TvVarCount[TV_SERVICE_SERVCOUNT] =
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:411: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 param_val_a[50];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:414:2:  [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(param_val_a, "%d", paramValue);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:550: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 spacer[15];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:592: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(spacer, "    |    ");
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:594: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(spacer, "         ");
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:651: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 presURL[200];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:655: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 *serviceId[TV_SERVICE_SERVCOUNT] = { NULL, NULL };
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:656: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 *eventURL[TV_SERVICE_SERVCOUNT] = { NULL, NULL };
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.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 *controlURL[TV_SERVICE_SERVCOUNT] = { NULL, NULL };
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:1460: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 cmdline[100];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:1476: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 cmd[100];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:1477: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 strarg[100];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:86: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 *TvVarName[TV_SERVICE_SERVCOUNT][TV_MAXVARS];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:90: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 ServiceId[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:91: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 ServiceType[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:92: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 *VariableStrVal[TV_MAXVARS];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:93: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 EventURL[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:94: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 ControlURL[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:95: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 SID[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:101: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 UDN[250];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:102: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 DescDocURL[250];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:103: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 FriendlyName[250];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.h:104: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 PresURL[250];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:56: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 tvc_varval[TV_CONTROL_VARCOUNT][TV_MAX_VAL_LEN];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:63: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 tvp_varval[TV_PICTURE_VARCOUNT][TV_MAX_VAL_LEN];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:333:20:  [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 **)
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:335:20:  [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 **)
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:513: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 value[TV_MAX_VAL_LEN];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:523:2:  [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(value, "%d", on);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:587:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	channel = atoi(value);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:622: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 value[TV_MAX_VAL_LEN];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:632:6:  [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).
	    atoi(tv_service_table[TV_SERVICE_CONTROL].VariableStrVal
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:645:2:  [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(value, "%d", newchannel);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:688: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).
	volume = atoi(value);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:732: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 value[TV_MAX_VAL_LEN];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:742:6:  [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).
	    atoi(tv_service_table[TV_SERVICE_CONTROL].VariableStrVal
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:754:2:  [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(value, "%d", newvolume);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:797: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).
	color = atoi(value);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:841: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 value[TV_MAX_VAL_LEN];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:851:6:  [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).
	    atoi(tv_service_table[TV_SERVICE_PICTURE].VariableStrVal
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:862:2:  [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(value, "%d", newcolor);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:904:9:  [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).
	tint = atoi(value);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:951: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 value[TV_MAX_VAL_LEN];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:961:6:  [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).
	    atoi(tv_service_table[TV_SERVICE_PICTURE].VariableStrVal
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:972:2:  [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(value, "%d", newtint);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1056:13:  [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).
	contrast = atoi(value);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1102: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 value[TV_MAX_VAL_LEN];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1112:6:  [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).
	    atoi(tv_service_table[TV_SERVICE_PICTURE].VariableStrVal
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1124:2:  [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(value, "%d", newcontrast);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1167:15:  [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).
	brightness = atoi(value);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1212: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 value[TV_MAX_VAL_LEN];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1222:6:  [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).
	    atoi(tv_service_table[TV_SERVICE_PICTURE].VariableStrVal
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1234:2:  [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(value, "%d", newbrightness);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1306: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 desc_doc_url[DESC_URL_SIZE];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1391: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 cmdline[100];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1392: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 cmd[100];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.h:156: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 UDN[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.h:158: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 ServiceId[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.h: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 ServiceType[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.h:162: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 *VariableName[TV_MAXVARS]; 
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.h:164: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 *VariableStrVal[TV_MAXVARS];
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.h:166: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 *ActionNames[TV_MAXACTIONS];
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:134: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 gIF_NAME[LINE_SIZE] = { '\0' };
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:137: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 gIF_IPV4[INET_ADDRSTRLEN] = { '\0' };
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:140: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 gIF_IPV6[INET6_ADDRSTRLEN] = { '\0' };
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:143: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 gIF_IPV6_ULA_GUA[INET6_ADDRSTRLEN] = { '\0' };
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:972: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 descURL[LINE_SIZE]);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1528: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 *description,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1532: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 descURL[LINE_SIZE])
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1536: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 aliasStr[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1565:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(description, "rb");
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1648: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 *description,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1652: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 descURL[LINE_SIZE])
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3247: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 content_type[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3388: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 tmpIfName[LINE_SIZE] = { 0 };
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3536: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 szBuffer[MAX_INTERFACES * sizeof(struct ifreq)];
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3544: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 addr6[8][5];
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3545: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[INET6_ADDRSTRLEN];
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3633:17:  [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).
	inet6_procfd = fopen("/proc/net/if_inet6", "r");
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3956: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 tempstr[INET_ADDRSTRLEN];
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3968: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(&LocalAddr.sin_addr, h->h_addr_list[0], 4);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4026: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 szBuffer[MAX_INTERFACES * sizeof (struct ifreq)];
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4082: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(&LocalAddr, &pifReq->ifr_addr,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4145: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 dirName[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/api/upnpdebug.c:73: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 ((ErrFileHnd = fopen(errFileName, "a")) == NULL) {
data/pupnp-1.8-1.8.4/upnp/src/api/upnpdebug.c:77:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((InfoFileHnd = fopen(infoFileName, "a")) == NULL) {
data/pupnp-1.8-1.8.4/upnp/src/api/upnpdebug.c:178: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 timebuf[26];
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_ctrlpt.c:285: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 timeout_str[25];
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:130:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buffer, "<e:property>\n");
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:137:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(buffer, "</e:propertyset>\n\n");
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:983: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 timeout_str[100];
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:1083: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( out->URLs, URLS->buff, URLS->size );
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:1334: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( sid, temp_hdr.buf, temp_hdr.length );
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:1442: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( sid, temp_hdr.buf, temp_hdr.length );
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:305: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:336: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 requestBuf[256];
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:337: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_ntop[INET6_ADDRSTRLEN];
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:375: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:514: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:809: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:970: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:974: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] = "ShutDown";
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:295: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:356: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[2 * 1024];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:446: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 Chunk_Header[CHUNK_HEADER_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:485:30:  [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).
				Fp = (virtualDirCallback.open)(filename, UPNP_READ, Instr->Cookie);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:487:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				Fp = fopen(filename, "rb");
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:539: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(file_buf + num_read, "\r\n", (size_t)2);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:551: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(file_buf - strlen(Chunk_Header),
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:791: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(content_type, ctype.buf, copy_len);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:953: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[2 * 1024];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1213: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(tempbuf, "%zx\r\n", *size);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1215: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(tempbuf + tempSize, buf, *size);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1216: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(tempbuf + tempSize + *size, "\r\n", 2);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1321: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 tempbuf[2 * 1024];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1400: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, &handle->response.msg.msg.buf[handle->response.entity_start_position],
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1494: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 tempbuf[200];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/statcodes.c:49: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.
static const char *Http1xxCodes[NUM_1XX_CODES];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/statcodes.c:53: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.
static const char *Http2xxCodes[NUM_2XX_CODES];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/statcodes.c:62: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.
static const char *Http3xxCodes[NUM_3XX_CODES];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/statcodes.c:71: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.
static const char *Http4xxCodes[NUM_4XX_CODES];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/statcodes.c:92: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.
static const char *Http5xxCodes[NUM_5XX_CODES];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:392: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(alias, &gAliasDoc, sizeof(struct xml_alias_t));
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:531: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 buffer[ASCTIME_R_BUFFER_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:544:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename, "r");
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:940: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(TmpBuf, header->value.buf, header->value.length);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:957:32:  [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).
				RespInstr->RecvWriteSize = atoi(TmpBuf);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:970: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(RespInstr->AcceptLanguageHeader, TmpBuf, length);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:973: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(RespInstr->AcceptLanguageHeader, TmpBuf,
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:1088: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(request_doc, url->pathquery.buff, url->pathquery.size);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:1366: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/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:1376:28:  [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).
		Fp = (virtualDirCallback.open) (filename, UPNP_WRITE, Instr->Cookie);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:1381:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		Fp = fopen(filename, "wb");
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:1449: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,
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/sock.c: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:228: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(out->URLs, in->URLs, len);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:242: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( &out->parsedURLs[i].hostport.IPaddress,
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:331: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 workbuf[256];
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:396: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(&out->IPaddress,
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:418: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).
		port = (unsigned short int)atoi(srvport);
data/pupnp-1.8-1.8.4/upnp/src/genlib/service_table/service_table.c:67: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( out->sid, in->sid, SID_SIZE );
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/membuffer.c:57: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(s, str, str_len);
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/membuffer.c:187: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(m->buf, buf, buf_len);
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/membuffer.c:232: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(m->buf + index, buf, buf_len);
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/util.c:46:15:  [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.
void linecopy(char dest[LINE_SIZE], const char *src)
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/util.c:53:15:  [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.
void namecopy(char dest[NAME_SIZE], const char *src)
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/util.c:60:18:  [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.
void linecopylen(char dest[LINE_SIZE], const char *src, size_t srclen)
data/pupnp-1.8-1.8.4/upnp/src/inc/VirtualDir.h:20: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).
	VDCallback_Open open;
data/pupnp-1.8-1.8.4/upnp/src/inc/VirtualDir.h:65: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 dirName[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/ssdplib.h:112: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 UDN[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/ssdplib.h:113: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 DeviceType[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/ssdplib.h:115: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 ServiceType[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/ssdplib.h:116: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 Location[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/ssdplib.h:117: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 HostAddr[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/ssdplib.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 Os[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/ssdplib.h:119: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 Ext[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/ssdplib.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 Date[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/sysdep.h:57: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 nodeID[6];
data/pupnp-1.8-1.8.4/upnp/src/inc/sysdep.h:62:31:  [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.
void get_random_info(unsigned char seed[16]);
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h: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  DescURL[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:90: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  LowerDescURL[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h: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  DescXML[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:212: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 gIF_NAME[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:213: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 gIF_IPV4[INET_ADDRSTRLEN];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:214: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 gIF_IPV6[INET6_ADDRSTRLEN];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:216: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 gIF_IPV6_ULA_GUA[INET6_ADDRSTRLEN];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:254: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 VarName[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:255: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 NewVal[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:256: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 DevType[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:257: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 DevId[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:258: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 ServiceType[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:259: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 ServiceVer[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnpapi.h:260: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 Url[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/upnputil.h:79: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 dest[LINE_SIZE],
data/pupnp-1.8-1.8.4/upnp/src/inc/upnputil.h:89: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 dest[NAME_SIZE],
data/pupnp-1.8-1.8.4/upnp/src/inc/upnputil.h:103: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 dest[LINE_SIZE],
data/pupnp-1.8-1.8.4/upnp/src/inc/uri.h:413: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 buff[SOCKET_BUFFER_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/inc/urlconfig.h:72: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.
	OUT char docURL[LINE_SIZE]);
data/pupnp-1.8-1.8.4/upnp/src/inc/webserver.h:50: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 RangeHeader[200];
data/pupnp-1.8-1.8.4/upnp/src/inc/webserver.h:51: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 AcceptLanguageHeader[200];
data/pupnp-1.8-1.8.4/upnp/src/inet_pton.c:38: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[sizeof ("255.255.255.255") + 1] = "\0";
data/pupnp-1.8-1.8.4/upnp/src/inet_pton.c:82: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[sizeof ("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")], *tp;
data/pupnp-1.8-1.8.4/upnp/src/inet_pton.c:193: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(dst, tmp, 4);
data/pupnp-1.8-1.8.4/upnp/src/inet_pton.c:285: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(dst, tmp, 16);
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:384: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 *names[5];
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:457:22:  [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).
		*upnp_error_code = atoi(temp_str);
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:85: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 dev_udn[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:86: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 service_type[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.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 service_id[NAME_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:133: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 err_code_str[30];
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:461: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 *)control_url)[request->uri.pathquery.size] = '\0';
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:480: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 *)control_url)[request->uri.pathquery.size] = save_char;
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:368: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 TempBuf[COMMAND_LEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:419:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(RqstBuf, "\r\n");
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:441: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 TempBuf[COMMAND_LEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:490:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(RqstBuf, "\r\n");
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:547: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:550: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 ReqBufv4[BUFSIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:552: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 ReqBufv6[BUFSIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:553: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 ReqBufv6UlaGua[BUFSIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:184: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:194: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_ntop[INET6_ADDRSTRLEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:303: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 address[INET6_ADDRSTRLEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:503: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 Mil_Usn[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:504: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 *msgs[3];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:584: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 *msgs[2];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:586: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 Mil_Usn[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:647: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 *szReq[3], Mil_Nt[LINE_SIZE], Mil_Usn[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:710: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 Mil_Usn[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:711: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 *szReq[1];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:761: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 Mil_Usn[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:762: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 *szReq[1];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:787: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 Mil_Usn[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:788: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 *szReq[1];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:841: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 *msgs[3];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:842: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 Mil_Usn[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.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 UDNstr[100];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:103: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 devType[100];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:104: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 servType[100];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:264: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).
						if (atoi(strrchr(DeviceType, ':') + 1)
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:265:13:  [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).
						    < atoi(&devType[strlen(devType) - (size_t)1])) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:277: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).
						} else if (atoi(strrchr(DeviceType, ':') + 1)
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:278: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).
							   == atoi(&devType[strlen(devType) - (size_t)1])) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:389:13:  [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 (atoi(strrchr(ServiceType, ':') + 1) <
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:390:13:  [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).
								    atoi(&servType[strlen(servType) - (size_t)1])) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:402:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
								} else if (atoi(strrchr (ServiceType, ':') + 1) ==
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:403:13:  [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).
									   atoi(&servType[strlen(servType) - (size_t)1])) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:449: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 TempBuf[COMMAND_LEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.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 staticBuf[BUFSIZE];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:703: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 ntop_buf[INET6_ADDRSTRLEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:766: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->dest_addr, &__ss, sizeof(__ss));
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:786: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:899: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:925: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:1033: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:1142: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 errorBuffer[ERROR_BUFFER_LEN];
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:85: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_ntop[INET6_ADDRSTRLEN];
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:176:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	IN const char *ipPortStr,
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:177:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	IN const char *alias,
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:178: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.
	OUT char descURL[LINE_SIZE])
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:376:29:  [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.
                   IN const char *alias,
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:378: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.
                   OUT char docURL[LINE_SIZE] )
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:384: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 ipaddr_port[LINE_SIZE];
data/pupnp-1.8-1.8.4/upnp/src/uuid/md5.c:86: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(ctx->buffer + have, input, need);
data/pupnp-1.8-1.8.4/upnp/src/uuid/md5.c:103: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(ctx->buffer + have, input, len);
data/pupnp-1.8-1.8.4/upnp/src/uuid/md5.c:111:19:  [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.
MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *ctx)
data/pupnp-1.8-1.8.4/upnp/src/uuid/sysdep.c:40:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char seed[16];
data/pupnp-1.8-1.8.4/upnp/src/uuid/sysdep.c:47: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(&saved_node, seed, sizeof(uuid_node_t));
data/pupnp-1.8-1.8.4/upnp/src/uuid/sysdep.c:79:31:  [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.
void get_random_info(unsigned char seed[16])
data/pupnp-1.8-1.8.4/upnp/src/uuid/sysdep.c:89: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 hostname[MAX_COMPUTERNAME_LENGTH + 1];
data/pupnp-1.8-1.8.4/upnp/src/uuid/sysdep.c:129:31:  [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.
void get_random_info(unsigned char seed[16])
data/pupnp-1.8-1.8.4/upnp/src/uuid/sysdep.c:135: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 hostname[257];
data/pupnp-1.8-1.8.4/upnp/src/uuid/uuid.c:46:53:  [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 void format_uuid_v3(uuid_upnp *uid, unsigned char hash[16]);
data/pupnp-1.8-1.8.4/upnp/src/uuid/uuid.c:87:2:  [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(out,
data/pupnp-1.8-1.8.4/upnp/src/uuid/uuid.c:114: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(&uid->node, &node, sizeof uid->node);
data/pupnp-1.8-1.8.4/upnp/src/uuid/uuid.c:236:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char hash[16];
data/pupnp-1.8-1.8.4/upnp/src/uuid/uuid.c:256:46:  [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.
void format_uuid_v3(uuid_upnp *uid, unsigned char hash[16])
data/pupnp-1.8-1.8.4/upnp/src/uuid/uuid.c:260: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(uid, hash, sizeof(uuid_upnp));
data/pupnp-1.8-1.8.4/ixml/src/ixml.c:62: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).
	plen = strlen(p);
data/pupnp-1.8-1.8.4/ixml/src/ixmlmembuf.c:165:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return ixml_membuf_assign(m, c_str, strlen(c_str));
data/pupnp-1.8-1.8.4/ixml/src/ixmlmembuf.c:183:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return ixml_membuf_insert(m, c_str, strlen(c_str), m->length);
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:396:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       strlen( strSkipKey ) ) != 0 ) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:403: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).
    *pstrSrc = *pstrSrc + strlen( strSkipKey );
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:461: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).
        *pstrSrc = pStrFound + strlen( END_COMMENT );
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:481:70:  [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( strncasecmp( xmlParser->curPtr, ( char * )BEGIN_COMMENT, strlen( BEGIN_COMMENT ) ) == 0 ) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:485: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).
        } else if (strncasecmp(xmlParser->curPtr, (char *)XMLDECL , strlen(XMLDECL )) == 0 ||
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:486: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).
                   strncasecmp(xmlParser->curPtr, (char *)XMLDECL2, strlen(XMLDECL2)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:489: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).
        } else if (strncasecmp(xmlParser->curPtr, (char *)BEGIN_PI, strlen(BEGIN_PI)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:518:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( strncmp( xmlParser->curPtr, ( char * )XMLDECL, strlen( XMLDECL ) ) == 0 ) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:528:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncmp( xmlParser->curPtr, ( char * )BEGIN_DOCTYPE, strlen( BEGIN_DOCTYPE ) ) == 0 ) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:769:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (strncasecmp(src, QUOT, strlen(QUOT)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:770: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).
		*cLen = (int)strlen(QUOT);
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:773:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (strncasecmp(src, LT, strlen(LT)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:774: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).
		*cLen = (int)strlen(LT);
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:777:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (strncasecmp(src, GT, strlen(GT)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:778: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).
		*cLen = (int)strlen(GT);
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:781:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (strncasecmp(src, APOS, strlen(APOS)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:782: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).
		*cLen = (int)strlen(APOS);
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:785:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (strncasecmp(src, AMP, strlen(AMP)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:786: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).
		*cLen = (int)strlen(AMP);
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:789:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (strncasecmp(src, ESC_HEX, strlen(ESC_HEX)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:791: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).
		pnum = src + strlen( ESC_HEX );
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:811:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (strncasecmp(src, ESC_DEC, strlen(ESC_DEC)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:813: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).
		pnum = src + strlen(ESC_DEC);
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1191: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).
    if ((strncasecmp(*pSrc, (char *)XMLDECL , strlen(XMLDECL )) == 0) ||
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1192: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).
        (strncasecmp(*pSrc, (char *)XMLDECL2, strlen(XMLDECL2)) == 0)) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1197: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).
    if (strncasecmp(*pSrc, (char *)BEGIN_PI, strlen(BEGIN_PI)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1200: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).
            *pSrc = pEnd + strlen( BEGIN_PI );
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1229: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).
    pCDataStart = *pSrc + strlen( CDSTART );
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1232:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if( strncmp( pEnd, CDEND, strlen( CDEND ) ) == 0 ) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1245:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(node->nodeValue, pCDataStart, tokenLength);
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1256:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *pSrc = pEnd + strlen( CDEND );
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1292:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(pEndContent, (char *)CDSTART, strlen(CDSTART)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1300:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if(strncmp(pEndContent, (char *)BEGIN_COMMENT, strlen(BEGIN_COMMENT)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1308: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).
		} else if(strncmp(pEndContent, (char *)BEGIN_PI, strlen(BEGIN_PI)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1326: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).
		       ( strncmp(pEndContent, (const char *)notAllowed, strlen(notAllowed)) != 0) &&
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1331:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(pEndContent, (const char *)notAllowed, strlen(notAllowed)) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:1573:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (strncmp(newNode->nodeName, "xmlns:", strlen("xmlns:")) == 0) {
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:2485: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).
	nameLen = strlen(name);
data/pupnp-1.8-1.8.4/ixml/src/ixmlparser.c:2689:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(node->prefix, node->nodeName, (size_t)nPrefix);
data/pupnp-1.8-1.8.4/ixml/test/test_document.c:119: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).
		p = s + strlen(s)-1;
data/pupnp-1.8-1.8.4/upnp/inc/ithread.h:931:25:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	#define imillisleep(x) usleep(1000*x)
data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.c:596: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).
				*controlURL = malloc(strlen(base) + strlen(relcontrolURL) + 1);
data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.c:596:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				*controlURL = malloc(strlen(base) + strlen(relcontrolURL) + 1);
data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.c:603:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				*eventURL = malloc(strlen(base) + strlen(releventURL) + 1);
data/pupnp-1.8-1.8.4/upnp/sample/common/sample_util.c:603:39:  [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).
				*eventURL = malloc(strlen(base) + strlen(releventURL) + 1);
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:725:7:  [1] (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 character.
						strcpy(eventSID[service], "");
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_ctrlpt.c:763:6:  [1] (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 character.
					strcpy(deviceNode->device.
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:477: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).
	    strlen(value) >= TV_MAX_VAL_LEN)
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1395:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		sprintf(cmdline, " ");
data/pupnp-1.8-1.8.4/upnp/sample/common/tv_device.c:1396:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		sprintf(cmd, " ");
data/pupnp-1.8-1.8.4/upnp/src/api/UpnpString.c:56:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(newstr, __string, strsize);
data/pupnp-1.8-1.8.4/upnp/src/api/UpnpString.c:169: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).
	((struct SUpnpString *)p)->m_length = strlen(q);
data/pupnp-1.8-1.8.4/upnp/src/api/UpnpString.c:181: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).
	((struct SUpnpString *)p)->m_length = strlen(q);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:485:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(gIF_IPV4, HostIP, sizeof(gIF_IPV4) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:841: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).
	    strlen(DescUrl) == (size_t)0) {
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:865:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(HInfo->DescURL, DescUrl, sizeof(HInfo->DescURL) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:866:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(HInfo->LowerDescURL, DescUrl, sizeof(HInfo->LowerDescURL) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1033:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(HInfo->LowerDescURL, HInfo->DescURL,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1158: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).
	    strlen(DescUrl) == (size_t)0 ||
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1179:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(HInfo->DescURL, DescUrl, sizeof(HInfo->DescURL) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1181:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(HInfo->LowerDescURL, DescUrl,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1184:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(HInfo->LowerDescURL, LowerDescUrl,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1600:4:  [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(aliasStr, "description.xml",
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1609: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(temp_str) > (LINE_SIZE - 1)) {
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1613:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(aliasStr, temp_str, sizeof(aliasStr) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1631: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(description) > LINE_SIZE - 1) {
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1635:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(descURL, description, LINE_SIZE - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1665: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(description) > LINE_SIZE - (size_t)1) {
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1668:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(descURL, description, LINE_SIZE - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:1995:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( Param->Url, EvtUrl, sizeof( Param->Url ) - 1 );
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:2073:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(SubsId, UpnpString_get_String(SubsIdTmp), sizeof(Upnp_SID) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:2185:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( Param->SubsId, SubsId, sizeof( Param->SubsId ) - 1 );
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:2311:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( Param->SubsId, SubsId, sizeof( Param->SubsId ) - 1 );
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:2771:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( Param->Url, ActionURL, sizeof ( Param->Url ) - 1 );
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:2772:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( Param->ServiceType, ServiceType,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:2876:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( Param->Url, ActionURL, sizeof( Param->Url ) - 1 );
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:2877:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( Param->ServiceType, ServiceType,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:2974:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( Param->Url, ActionURL, sizeof( Param->Url ) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:2975:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( Param->VarName, VarName, sizeof( Param->VarName ) - 1 );
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3260: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).
	if (strncasecmp(content_type, "text/xml", strlen("text/xml"))) {
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3349: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(IfName) > sizeof(gIF_NAME))
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3353:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(gIF_NAME, IfName, sizeof(gIF_NAME) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3375:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(gIF_NAME, adapts_item->FriendlyName,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3462: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(IfName) > sizeof(gIF_NAME))
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3466:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(gIF_NAME, IfName, sizeof(gIF_NAME) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3487:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(gIF_NAME, ifa->ifa_name, sizeof(gIF_NAME) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3551: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(IfName) > sizeof(gIF_NAME))
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3555:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(gIF_NAME, IfName, sizeof(gIF_NAME) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3581:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifReq.ifr_name, pifReq->ifr_name,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3598:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(gIF_NAME, pifReq->ifr_name, sizeof(gIF_NAME) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3611:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(gIF_NAME, pifReq->ifr_name, sizeof(gIF_NAME) - 1);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3635:10:  [1] (buffer) fscanf:
  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.
		while (fscanf(inet6_procfd,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3652:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						strncpy(gIF_IPV6_ULA_GUA, buf,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3656: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).
						   && strlen(gIF_IPV6_ULA_GUA)
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3661:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						strncpy(gIF_IPV6_ULA_GUA, buf,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3666: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).
						&& strlen(gIF_IPV6) == (size_t)0) {
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3670:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						strncpy(gIF_IPV6, buf,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:3971:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(out, p, out_len);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4011:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(out, p, out_len);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4066:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifReq.ifr_name, pifReq->ifr_name,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4098:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(out, p, out_len);
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4129:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( ( rootDir == NULL ) || ( strlen( rootDir ) == 0 ) ) {
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4153:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( ( newDirName == NULL ) || ( strlen( newDirName ) == ( size_t ) 0 ) ) {
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4158: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(newDirName) > sizeof(dirName) - 2)
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4161:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( dirName + 1, newDirName, sizeof( dirName ) - 2 );
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4163: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(newDirName) > sizeof(dirName) - 1)
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4165:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( dirName, newDirName, sizeof( dirName ) - 1 );
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4191:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( pNewVirtualDir->dirName, dirName,
data/pupnp-1.8-1.8.4/upnp/src/api/upnpapi.c:4193:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *( pNewVirtualDir->dirName + strlen( dirName ) ) = 0;
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_ctrlpt.c:299: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(timeout_str, "infinite", sizeof(timeout_str) - 1);
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_ctrlpt.c:338:54:  [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).
				(IN6_IS_ADDR_LINKLOCAL(&DestAddr6->sin6_addr) || strlen(gIF_IPV6_ULA_GUA) == 0) ?
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:111: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).
	size += strlen(XML_PROPERTYSET_HEADER);
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:112: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).
	size += strlen("</e:propertyset>\n\n");
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:114: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).
		size += strlen( "<e:property>\n</e:property>\n" );
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:115: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).
		size += 2 * strlen(names[counter]) +
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:116:4:  [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(values[counter]) +
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:117:4:  [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("<></>\n");
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:131: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).
		sprintf(&buffer[strlen(buffer)],
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:220: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).
		propertySet, strlen(propertySet),
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:221: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).
		CRLF, strlen(CRLF));
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:423:3:  [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(HEADER_LINE_1 ) +
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:424:3:  [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(HEADER_LINE_2A) + MAX_CONTENT_LENGTH +
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:425:3:  [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(HEADER_LINE_2B) +
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:426:3:  [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(HEADER_LINE_3 ) +
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:427:3:  [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(HEADER_LINE_4 ) + 1;
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:436:3:  [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(propertySet) + 2,
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:575:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(thread_struct->sid, sid,
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:826:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(thread_struct->sid, finger->sid,
data/pupnp-1.8-1.8.4/upnp/src/gena/gena_device.c:995:9:  [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( timeout_str, "TIMEOUT: Second-infinite",
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:943:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(50u * 1000u);
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:975: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).
	size_t bufLen = strlen(buf);
data/pupnp-1.8-1.8.4/upnp/src/genlib/miniserver/miniserver.c:998:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1000u);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:183: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).
	char *urlPath = alloca(strlen(url_str) + 1);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:185: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).
	memset(urlPath, 0, strlen(url_str) + 1);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:186:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(urlPath, url_str, strlen(url_str));
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:186: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).
	strncpy(urlPath, url_str, strlen(url_str));
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:195: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).
	*hostlen = strlen(*hoststr);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:510:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						nr = virtualDirCallback.read(Fp, file_buf, n, Instr->Cookie);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:528: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).
							       strlen(str),
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:551:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					memcpy(file_buf - strlen(Chunk_Header),
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:553: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).
					       strlen(Chunk_Header));
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:558: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).
						file_buf - strlen(Chunk_Header),
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:559: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).
						num_read + strlen(Chunk_Header) + (size_t)2,
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:562: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).
					if (nw <= 0 || num_written != num_read + strlen(Chunk_Header) + (size_t)2)
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:730: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).
	char *urlPath = alloca(strlen(url_str) + (size_t)1);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:735:45:  [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).
	ret_code = http_FixStrUrl((char *)url_str, strlen(url_str), &url);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:740: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).
	memset(urlPath, 0, strlen(url_str) + (size_t)1);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:741:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(urlPath, url_str, strlen(url_str));
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:741: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).
	strncpy(urlPath, url_str, strlen(url_str));
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:749: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).
		hostlen = strlen(hoststr);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:752: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).
		hostlen = strlen(hoststr);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:863:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret_code = http_FixStrUrl(url_str, strlen(url_str), url);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1114:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret_code = http_FixStrUrl(url_str, strlen(url_str), &url);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1214: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).
			tempSize = strlen(tempbuf);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1251: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).
		retc = sock_write(&handle->sock_info, zcrlf, strlen(zcrlf), &timeout);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1509: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).
			if (membuffer_append(buf, s, strlen(s)))
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1514:5:  [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("Transfer-Encoding: chunked\r\n")))
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1524:5:  [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(RespInstr->RangeHeader)))
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1544:36:  [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).
				membuffer_append(buf, tempbuf, strlen(tempbuf)))
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1552:36:  [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).
				membuffer_append(buf, tempbuf, strlen(tempbuf)))
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1578:36:  [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).
				membuffer_append(buf, tempbuf, strlen(tempbuf)))
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1629: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).
			if (membuffer_append(buf, s, strlen(s)) != 0)
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1654: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).
			bignum = (off_t)strlen(tempbuf);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1773: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).
					      strlen(url_str),
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1779: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).
		urlPath = alloca(strlen(url_str) + (size_t)1);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1784: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).
		memset(urlPath, 0, strlen(url_str) + (size_t)1);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1785:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(urlPath, url_str, strlen(url_str));
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1785: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).
		strncpy(urlPath, url_str, strlen(url_str));
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/httpreadwrite.c:1798: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).
		hostlen = strlen(hoststr);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/statcodes.c:137: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).
        s += strlen( s ) + (size_t)1;   /* next entry */
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:252: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).
		s += strlen(s) + 1;
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:258: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).
		s += strlen(s) + 1;
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:339: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).
	length = strlen(type) + strlen("/") + strlen(subtype) + 1;
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:339: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).
	length = strlen(type) + strlen("/") + strlen(subtype) + 1;
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:339: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).
	length = strlen(type) + strlen("/") + strlen(subtype) + 1;
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:625: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).
		webDirLen = strlen(pCurVirtualDir->dirName);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:721: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).
			*Src = TmpPtr + strlen(Del);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:760:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for (i = 0; i < (int)strlen(Tok); i++) {
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:948: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(TmpBuf) > strlen("gzip")) {
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/http/webserver.c:948: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).
				if (strlen(TmpBuf) > strlen("gzip")) {
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:216: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).
    size_t len = strlen(in->URLs) + (size_t)1;
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:291: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).
	size_t in2_length = strlen(in2);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:301: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).
	size_t in2_length = strlen(in2);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:347:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(workbuf, in, sizeof(workbuf) - 1);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:605: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).
    size_t len_rel = strlen(rel_url);
data/pupnp-1.8-1.8.4/upnp/src/genlib/net/uri/uri.c:611:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len_base = strlen(base_url);
data/pupnp-1.8-1.8.4/upnp/src/genlib/service_table/service_table.c:306: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).
                     strlen( eventURLPath ),
data/pupnp-1.8-1.8.4/upnp/src/genlib/service_table/service_table.c:313: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).
                      ( finger->eventURL, strlen( finger->eventURL ),
data/pupnp-1.8-1.8.4/upnp/src/genlib/service_table/service_table.c:358: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).
          ( controlURLPath, strlen( controlURLPath ),
data/pupnp-1.8-1.8.4/upnp/src/genlib/service_table/service_table.c:364:45:  [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).
                      ( finger->controlURL, strlen( finger->controlURL ),
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/membuffer.c:69:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (cmp == 0 && m->length < strlen(s)) {
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/membuffer.c:83:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (cmp == 0 && m->length < strlen(s)) {
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/membuffer.c:197:36:  [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 membuffer_assign(m, c_str, strlen(c_str));
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/membuffer.c:209:36:  [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 membuffer_insert(m, c_str, strlen(c_str), m->length);
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/util.c:48:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, src, LINE_SIZE - (size_t)1);
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/util.c:55:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, src, NAME_SIZE - (size_t)1);
data/pupnp-1.8-1.8.4/upnp/src/genlib/util/util.c:65:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, src, len);
data/pupnp-1.8-1.8.4/upnp/src/inc/VirtualDir.h:31:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	VDCallback_Read read;
data/pupnp-1.8-1.8.4/upnp/src/inc/upnputil.h:132:11:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		#define usleep(a)		Sleep((a)/1000)
data/pupnp-1.8-1.8.4/upnp/src/inet_pton.c:61: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).
	if ((socklen_t)strlen(tmp)>size) {
data/pupnp-1.8-1.8.4/upnp/src/inet_pton.c:138: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).
			tp += strlen(tp);
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:85:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	else if (matchstr((char *)node_name, strlen(node_name),
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:223:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( parse_uri( ctrl_url, strlen( ctrl_url ), url ) != HTTP_SUCCESS ) {
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:258: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).
        matchstr( action, strlen( action ), " <%s:%s", &dummy, name );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:285:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (membuffer_insert(headers, man_hdr, strlen(man_hdr), n))
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:569:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( http_FixStrUrl( action_url, strlen( action_url ), &url ) != 0 ) {
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:581: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).
    xml_start_len = strlen( xml_start );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:582: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).
    xml_end_len = strlen( xml_end );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:583: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).
    action_str_len = strlen( action_str );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:724:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( http_FixStrUrl( action_url, strlen( action_url ), &url ) != 0 ) {
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:736: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).
    xml_start_len = strlen( xml_start );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:737: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).
    xml_body_start_len = strlen( xml_body_start );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:738: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).
    xml_end_len = strlen( xml_end );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:739: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).
    action_str_len = strlen( action_str );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:741: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).
    xml_header_start_len = strlen( xml_header_start );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:742: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).
    xml_header_end_len = strlen( xml_header_end );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:743: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).
    xml_header_str_len = strlen( xml_header_str );
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:855: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).
    content_length = (off_t)(strlen(xml_start) + strlen(var_name) +
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:855: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).
    content_length = (off_t)(strlen(xml_start) + strlen(var_name) +
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_ctrlpt.c:856:2:  [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(xml_end));
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:139: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).
	content_length = (off_t) (strlen(start_body) + strlen(err_code_str) +
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:139:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	content_length = (off_t) (strlen(start_body) + strlen(err_code_str) +
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:140: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).
				  strlen(mid_body) + strlen(err_msg) +
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:140: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).
				  strlen(mid_body) + strlen(err_msg) +
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:141: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).
				  strlen(end_body));
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:194: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).
	content_length = (off_t) (strlen(start_body) + strlen(var_value) +
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:194:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	content_length = (off_t) (strlen(start_body) + strlen(var_value) +
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:195: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).
				  strlen(end_body));
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:251: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).
	content_length = (off_t)(strlen(start_body) + strlen(xml_response) +
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:251: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).
	content_length = (off_t)(strlen(start_body) + strlen(xml_response) +
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:252:3:  [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(end_body));
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:266: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).
		start_body, strlen(start_body),
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:267: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).
		xml_response, strlen(xml_response),
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:268: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).
		end_body, strlen(end_body));
data/pupnp-1.8-1.8.4/upnp/src/soap/soap_device.c:406: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(err_str) <= 0) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:294: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).
							       strlen
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:303: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).
							       strlen
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:373: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).
	if (RqstBufSize <= strlen(command))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:392: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).
	if (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:392:39:  [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 (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:396: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).
	if (RqstBufSize <= strlen(RqstBuf) + strlen(man))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:396:39:  [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 (RqstBufSize <= strlen(RqstBuf) + strlen(man))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:404: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).
		if (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:404: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).
		if (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:413: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).
		if (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:413: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).
		if (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:417: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).
	if (RqstBufSize <= strlen(RqstBuf) + strlen("\r\n"))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:417:39:  [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 (RqstBufSize <= strlen(RqstBuf) + strlen("\r\n"))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:446: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).
	if (RqstBufSize <= strlen(command))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:464: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).
	if (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:464:39:  [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 (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:468: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).
	if (RqstBufSize <= strlen(RqstBuf) + strlen(man))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:468:39:  [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 (RqstBufSize <= strlen(RqstBuf) + strlen(man))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:476: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).
		if (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:476: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).
		if (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:484: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).
		if (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:484: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).
		if (RqstBufSize <= strlen(RqstBuf) + strlen(TempBuf))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:488: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).
	if (RqstBufSize <= strlen(RqstBuf) + strlen("\r\n"))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:488:39:  [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 (RqstBufSize <= strlen(RqstBuf) + strlen("\r\n"))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:674: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).
			       ReqBufv6UlaGua, strlen(ReqBufv6UlaGua), 0,
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:687: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).
			       ReqBufv6, strlen(ReqBufv6), 0,
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_ctrlpt.c:703: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).
			       ReqBufv4, strlen(ReqBufv4), 0,
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:241: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(*(RqPacket + Index)), 0, DestAddr, socklen);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_device.c:658: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(Mil_Nt, "upnp:rootdevice", sizeof(Mil_Nt) - 1);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:167:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(devType, tmpStr, sizeof(devType) - 1);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:202:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(UDNstr, tmpStr, sizeof(UDNstr) - 1);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:245:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (DeviceUDN && strlen(DeviceUDN) != (size_t)0) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:263: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).
					if (!strncasecmp(DeviceType, devType, strlen(DeviceType) - (size_t)2)) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:265: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).
						    < atoi(&devType[strlen(devType) - (size_t)1])) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:278: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).
							   == atoi(&devType[strlen(devType) - (size_t)1])) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:355:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(servType, tmpStr, sizeof(servType) - 1);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:388: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).
							if (!strncasecmp(ServiceType, servType, strlen(ServiceType) - (size_t)2)) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:390: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).
								    atoi(&servType[strlen(servType) - (size_t)1])) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:403: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).
									   atoi(&servType[strlen(servType) - (size_t)1])) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:469: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("uuid:") + strlen(ptr3 + 1) >= sizeof Evt->UDN)
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:469: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).
			if (strlen("uuid:") + strlen(ptr3 + 1) >= sizeof Evt->UDN)
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:479:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(TempBuf, ptr1, n);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:481: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("urn") + strlen(TempBuf) >= sizeof(Evt->DeviceType))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:481:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen("urn") + strlen(TempBuf) >= sizeof(Evt->DeviceType))
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:493:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(Evt->UDN, TempPtr, n);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:497:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(Evt->UDN, TempPtr, sizeof Evt->UDN - 1);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:504:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(Evt->ServiceType, TempPtr,
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:512:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(Evt->DeviceType, TempPtr,
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:522:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(Evt->UDN, cmd, n);
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:753:4:  [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(ntop_buf, "<Invalid address family>",
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:1173: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(gIF_IPV4) > (size_t)0) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:1183: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(gIF_IPV6) > (size_t)0) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:1196: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(gIF_IPV4) > (size_t)0) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:1209: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(gIF_IPV6) > (size_t)0) {
data/pupnp-1.8-1.8.4/upnp/src/ssdp/ssdp_server.c:1221: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(gIF_IPV6_ULA_GUA) > (size_t)0) {
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:136: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(rootPath);
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:146: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).
	new_alias_len = root_len + strlen(temp_str) + strlen(aliasPtr) + (size_t)1;
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:146: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).
	new_alias_len = root_len + strlen(temp_str) + strlen(aliasPtr) + (size_t)1;
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:183: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).
	assert(ipPortStr != NULL && strlen(ipPortStr) > 0);
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:184: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).
	assert(alias != NULL && strlen(alias) > 0);
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:186: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(http_scheme) + strlen(ipPortStr) + strlen(alias) + (size_t)1;
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:186: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).
	len = strlen(http_scheme) + strlen(ipPortStr) + strlen(alias) + (size_t)1;
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:186: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).
	len = strlen(http_scheme) + strlen(ipPortStr) + strlen(alias) + (size_t)1;
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:291: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).
		len = parse_uri(domStr, strlen(domStr), &uri);
data/pupnp-1.8-1.8.4/upnp/src/urlconfig/urlconfig.c:419:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        web_server_set_alias( new_alias, xml_str, strlen( xml_str ),

ANALYSIS SUMMARY:

Hits = 646
Lines analyzed = 55245 in approximately 1.48 seconds (37385 lines/second)
Physical Source Lines of Code (SLOC) = 31589
Hits@level = [0] 141 [1] 303 [2] 266 [3]   6 [4]  71 [5]   0
Hits@level+ = [0+] 787 [1+] 646 [2+] 343 [3+]  77 [4+]  71 [5+]   0
Hits/KSLOC@level+ = [0+] 24.9137 [1+] 20.4502 [2+] 10.8582 [3+] 2.43756 [4+] 2.24762 [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.