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/paho.mqtt.c-1.3.5/src/Base64.c
Examining data/paho.mqtt.c-1.3.5/src/Base64.h
Examining data/paho.mqtt.c-1.3.5/src/Clients.c
Examining data/paho.mqtt.c-1.3.5/src/Clients.h
Examining data/paho.mqtt.c-1.3.5/src/Heap.c
Examining data/paho.mqtt.c-1.3.5/src/Heap.h
Examining data/paho.mqtt.c-1.3.5/src/LinkedList.c
Examining data/paho.mqtt.c-1.3.5/src/LinkedList.h
Examining data/paho.mqtt.c-1.3.5/src/Log.c
Examining data/paho.mqtt.c-1.3.5/src/Log.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTAsync.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTAsync.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTClient.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTClient.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTClientPersistence.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTExportDeclarations.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTPacket.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTPacket.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTPacketOut.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTPacketOut.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTPersistence.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTProperties.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTProperties.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTProtocol.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTProtocolClient.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTProtocolClient.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTProtocolOut.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTProtocolOut.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTReasonCodes.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTReasonCodes.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTSubscribeOpts.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTTime.c
Examining data/paho.mqtt.c-1.3.5/src/MQTTTime.h
Examining data/paho.mqtt.c-1.3.5/src/MQTTVersion.c
Examining data/paho.mqtt.c-1.3.5/src/Messages.c
Examining data/paho.mqtt.c-1.3.5/src/Messages.h
Examining data/paho.mqtt.c-1.3.5/src/OsWrapper.c
Examining data/paho.mqtt.c-1.3.5/src/OsWrapper.h
Examining data/paho.mqtt.c-1.3.5/src/SHA1.c
Examining data/paho.mqtt.c-1.3.5/src/SHA1.h
Examining data/paho.mqtt.c-1.3.5/src/SSLSocket.c
Examining data/paho.mqtt.c-1.3.5/src/SSLSocket.h
Examining data/paho.mqtt.c-1.3.5/src/Socket.c
Examining data/paho.mqtt.c-1.3.5/src/Socket.h
Examining data/paho.mqtt.c-1.3.5/src/SocketBuffer.c
Examining data/paho.mqtt.c-1.3.5/src/SocketBuffer.h
Examining data/paho.mqtt.c-1.3.5/src/StackTrace.c
Examining data/paho.mqtt.c-1.3.5/src/StackTrace.h
Examining data/paho.mqtt.c-1.3.5/src/Thread.c
Examining data/paho.mqtt.c-1.3.5/src/Thread.h
Examining data/paho.mqtt.c-1.3.5/src/Tree.c
Examining data/paho.mqtt.c-1.3.5/src/Tree.h
Examining data/paho.mqtt.c-1.3.5/src/WebSocket.c
Examining data/paho.mqtt.c-1.3.5/src/WebSocket.h
Examining data/paho.mqtt.c-1.3.5/src/mutex_type.h
Examining data/paho.mqtt.c-1.3.5/src/samples/MQTTAsync_publish.c
Examining data/paho.mqtt.c-1.3.5/src/samples/MQTTAsync_subscribe.c
Examining data/paho.mqtt.c-1.3.5/src/samples/MQTTClient_publish.c
Examining data/paho.mqtt.c-1.3.5/src/samples/MQTTClient_publish_async.c
Examining data/paho.mqtt.c-1.3.5/src/samples/MQTTClient_subscribe.c
Examining data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c
Examining data/paho.mqtt.c-1.3.5/src/samples/paho_c_sub.c
Examining data/paho.mqtt.c-1.3.5/src/samples/paho_cs_pub.c
Examining data/paho.mqtt.c-1.3.5/src/samples/paho_cs_sub.c
Examining data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.c
Examining data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.h
Examining data/paho.mqtt.c-1.3.5/src/utf-8.c
Examining data/paho.mqtt.c-1.3.5/src/utf-8.h
Examining data/paho.mqtt.c-1.3.5/test/openssl/applink.c
Examining data/paho.mqtt.c-1.3.5/test/python/mqttasync_module.c
Examining data/paho.mqtt.c-1.3.5/test/python/mqttclient_module.c
Examining data/paho.mqtt.c-1.3.5/test/sync_client_test.c
Examining data/paho.mqtt.c-1.3.5/test/test1.c
Examining data/paho.mqtt.c-1.3.5/test/test10.c
Examining data/paho.mqtt.c-1.3.5/test/test11.c
Examining data/paho.mqtt.c-1.3.5/test/test15.c
Examining data/paho.mqtt.c-1.3.5/test/test2.c
Examining data/paho.mqtt.c-1.3.5/test/test3.c
Examining data/paho.mqtt.c-1.3.5/test/test4.c
Examining data/paho.mqtt.c-1.3.5/test/test45.c
Examining data/paho.mqtt.c-1.3.5/test/test5.c
Examining data/paho.mqtt.c-1.3.5/test/test6.c
Examining data/paho.mqtt.c-1.3.5/test/test8.c
Examining data/paho.mqtt.c-1.3.5/test/test9.c
Examining data/paho.mqtt.c-1.3.5/test/test95.c
Examining data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c
Examining data/paho.mqtt.c-1.3.5/test/test_issue373.c
Examining data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c
Examining data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c
Examining data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c
Examining data/paho.mqtt.c-1.3.5/test/thread.c
Examining data/paho.mqtt.c-1.3.5/test_package/test_package.c

FINAL RESULTS:

data/paho.mqtt.c-1.3.5/src/Heap.c:184: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(s->file, file);
data/paho.mqtt.c-1.3.5/src/Heap.c:351: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(s->file, file);
data/paho.mqtt.c-1.3.5/src/Log.c:46: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/paho.mqtt.c-1.3.5/src/Log.c:46: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/paho.mqtt.c-1.3.5/src/Log.c:155: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(trace_destination_name, envval);
data/paho.mqtt.c-1.3.5/src/Log.c:162:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(trace_destination_backup_name, "%s.0", trace_destination_name);
data/paho.mqtt.c-1.3.5/src/Log.c:338:4:  [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.
			snprintf(&msg_buf[buf_pos], sizeof(msg_buf)-buf_pos, format, cur_entry->thread_id,
data/paho.mqtt.c-1.3.5/src/Log.c:341:4:  [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.
			snprintf(&msg_buf[buf_pos], sizeof(msg_buf)-buf_pos, format, cur_entry->thread_id,
data/paho.mqtt.c-1.3.5/src/Log.c:430:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(msg_buf, sizeof(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/src/Log.c:466: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(cur_entry->name, name);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:772:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%u", PERSISTENCE_V5_COMMAND_KEY, qcmd->seqno);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:774:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%u", PERSISTENCE_COMMAND_KEY, qcmd->seqno);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:928:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%u", PERSISTENCE_V5_COMMAND_KEY, aclient->command_seqno);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:931:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%u", PERSISTENCE_COMMAND_KEY, aclient->command_seqno);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1016: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(command->details.sub.topics[i], ptr);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1065: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(command->details.unsub.topics[i], ptr);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1078: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(command->details.pub.destinationName, ptr);
data/paho.mqtt.c-1.3.5/src/MQTTClientPersistence.h:223:19:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	Persistence_open popen;
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:71: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(per->context, pcontext);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:118:24:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		rc = c->persistence->popen(&(c->phandle), c->clientID, serverURI, c->persistence->context);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:273:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf(key, "%s%d", PERSISTENCE_V5_PUBREL, publish->msgId);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:275:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf(key, "%s%d", PERSISTENCE_PUBREL, publish->msgId);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:302:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf(key, "%s%d", PERSISTENCE_V5_PUBLISH_SENT, pubrel->msgId);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:304:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf(key, "%s%d", PERSISTENCE_PUBLISH_SENT, pubrel->msgId);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:470:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(key, "%s%d", key_id, msgId);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:478:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(key, "%s%d", key_id, msgId);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:520:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(key, "%s%d", PERSISTENCE_V5_PUBLISH_SENT, msgId) ;
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:522:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(key, "%s%d", PERSISTENCE_V5_PUBREL, msgId) ;
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:524:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(key, "%s%d", PERSISTENCE_PUBLISH_SENT, msgId) ;
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:526:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(key, "%s%d", PERSISTENCE_PUBREL, msgId) ;
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:532:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(key, "%s%d", PERSISTENCE_V5_PUBLISH_RECEIVED, msgId);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:534:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(key, "%s%d", PERSISTENCE_PUBLISH_RECEIVED, msgId);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:599:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%u", PERSISTENCE_V5_QUEUE_KEY, qe->seqno);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:601:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%u", PERSISTENCE_QUEUE_KEY, qe->seqno);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:668:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%u", PERSISTENCE_V5_QUEUE_KEY, aclient->qentry_seqno);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:671:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%u", PERSISTENCE_QUEUE_KEY, aclient->qentry_seqno);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:743: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(qe->topicName, ptr);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:82: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(perserverURI, serverURI);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:94:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientDir, "%s/%s-%s", dataDir, clientID, perserverURI);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:117: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( pTokDirName, clientDir );
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:124: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( pCrtDirName + 1, pToken );
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:129: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( pCrtDirName, pToken );
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:138: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( pCrtDirName, pToken );
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:211:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(file, "%s/%s%s", clientDir, key, MESSAGE_FILENAME_EXTENSION);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:267:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filename, "%s/%s%s", clientDir, key, MESSAGE_FILENAME_EXTENSION);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:320:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(file, "%s/%s%s", clientDir, key, MESSAGE_FILENAME_EXTENSION);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:413:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dir, "%s/*", dirname);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:427: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(filekey, FileData.cFileName);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:471:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(filename, "%s/%s", dirname, dir_entry->d_name);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:481: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(filekey, dir_entry->d_name);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:539:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dir, "%s/*", dirname);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:554:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(file, "%s/%s", dirname, FileData.cFileName);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:647:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dir, "%s/*", dirname);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:694: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(fkeys[i], FileData.cFileName);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:746:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(temp, "%s/%s", dirname, dir_entry->d_name);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:781:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(temp, "%s/%s", dirname, dir_entry->d_name);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:791:6:  [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(fkeys[i], dir_entry->d_name);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:860:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%d", stem, msgId);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:879:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%d", stem, nm[i]);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:889:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%d", stem, nm[i]);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:906:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(key, "%s%d", stem, nm[i]);
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:203:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(namebuf, "cyg%s-1.dll", libraries[i]);
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:205:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(namebuf, "%s.dll", libraries[i]);
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:207:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(namebuf, "lib%s.1.dylib", libraries[i]);
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:209:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(namebuf, "lib%s.so.1", libraries[i]);
data/paho.mqtt.c-1.3.5/src/StackTrace.c:29: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/paho.mqtt.c-1.3.5/src/StackTrace.c:29: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/paho.mqtt.c-1.3.5/src/StackTrace.c:196:16:  [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.
					curpos += snprintf(&buf[curpos], bufsize - curpos -1, /* lgtm [cpp/overflowing-snprintf] */
data/paho.mqtt.c-1.3.5/src/Thread.c:529:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/src/WebSocket.c:83:13:  [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/paho.mqtt.c-1.3.5/src/WebSocket.c:83:22:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#    define snprintf _snprintf
data/paho.mqtt.c-1.3.5/src/WebSocket.c:446:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			headers_buf_cur += sprintf(headers_buf_cur, "%s: %s\r\n", headers->name, headers->value);
data/paho.mqtt.c-1.3.5/src/WebSocket.c:551: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( &buf0[sizeof(uint16_t)], reason );
data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c:391:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(url, "%s:%s", opts.host, opts.port);
data/paho.mqtt.c-1.3.5/src/samples/paho_c_sub.c:230:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(url, "%s:%s", opts.host, opts.port);
data/paho.mqtt.c-1.3.5/src/samples/paho_cs_pub.c:164:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(url, "%s:%s", opts.host, opts.port);
data/paho.mqtt.c-1.3.5/src/samples/paho_cs_sub.c:164:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(url, "%s:%s", opts.host, opts.port);
data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.c:479:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		  printf(intformat, name, props->array[i].value.byte);
data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.c:482:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		  printf(intformat, name, props->array[i].value.integer2);
data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.c:485:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		  printf(intformat, name, props->array[i].value.integer4);
data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.c:488:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		  printf(intformat, name, props->array[i].value.integer4);
data/paho.mqtt.c-1.3.5/test/openssl/applink.c:98:49:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        OPENSSL_ApplinkTable[APPLINK_FPRINTF] = fprintf;
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:226:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:250:11:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		count = vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:987:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dollartopic, "$%s", topics[1]);
data/paho.mqtt.c-1.3.5/test/test1.c:102:6:  [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(options.haconnections[options.hacount], tok);
data/paho.mqtt.c-1.3.5/test/test1.c:167:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test1.c:268:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test1.c:271:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test10.c:116:6:  [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(options.haconnections[options.hacount], tok);
data/paho.mqtt.c-1.3.5/test/test10.c:186:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test10.c:287:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test10.c:290:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test11.c:143:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test11.c:242:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test11.c:245:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test15.c:104:6:  [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(options.haconnections[options.hacount], tok);
data/paho.mqtt.c-1.3.5/test/test15.c:173:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test15.c:274:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test15.c:277:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test2.c:100:6:  [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(options.haconnections[options.hacount], tok);
data/paho.mqtt.c-1.3.5/test/test2.c:158:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test2.c:259:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test2.c:262:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test3.c:31: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/paho.mqtt.c-1.3.5/test/test3.c:31: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/paho.mqtt.c-1.3.5/test/test3.c:163:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.connection, "%s://%s:18883", prefix, argv[count]);
data/paho.mqtt.c-1.3.5/test/test3.c:165:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.mutual_auth_connection, "%s://%s:18884", prefix, argv[count]);
data/paho.mqtt.c-1.3.5/test/test3.c:167:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.nocert_mutual_auth_connection, "%s://%s:18887", prefix, argv[count]);
data/paho.mqtt.c-1.3.5/test/test3.c:170:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.server_auth_connection, "%s://%s:18885", prefix, argv[count]);
data/paho.mqtt.c-1.3.5/test/test3.c:172:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.anon_connection, "%s://%s:18886", prefix, argv[count]);
data/paho.mqtt.c-1.3.5/test/test3.c:174:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.psk_connection, "%s://%s:18888", prefix, argv[count]);
data/paho.mqtt.c-1.3.5/test/test3.c:190:6:  [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(options.haconnections[options.hacount], tok);
data/paho.mqtt.c-1.3.5/test/test3.c:203:19:  [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(ckeytmp, getenv("HOME"));
data/paho.mqtt.c-1.3.5/test/test3.c:204:19:  [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(ckeytmp, argv[count]);
data/paho.mqtt.c-1.3.5/test/test3.c:218:19:  [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(ckeytmp, getenv("HOME"));
data/paho.mqtt.c-1.3.5/test/test3.c:219:19:  [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(ckeytmp, argv[count]);
data/paho.mqtt.c-1.3.5/test/test3.c:240:19:  [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(skeytmp, getenv("HOME"));
data/paho.mqtt.c-1.3.5/test/test3.c:241:19:  [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(skeytmp, argv[count]);
data/paho.mqtt.c-1.3.5/test/test3.c:263: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(persistenceStore, getenv("HOME"));
data/paho.mqtt.c-1.3.5/test/test3.c:286:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test3.c:388:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test3.c:391:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test4.c:142:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test4.c:241:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test4.c:244:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test45.c:147:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test45.c:253:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test45.c:256:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test5.c:32: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/paho.mqtt.c-1.3.5/test/test5.c:32: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/paho.mqtt.c-1.3.5/test/test5.c:165:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.connection, "%s://%s:%d", prefix, argv[count],
data/paho.mqtt.c-1.3.5/test/test5.c:168:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.mutual_auth_connection, "%s://%s:%d", prefix, argv[count],
data/paho.mqtt.c-1.3.5/test/test5.c:171:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.nocert_mutual_auth_connection, "%s://%s:%d", prefix,
data/paho.mqtt.c-1.3.5/test/test5.c:175:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.server_auth_connection, "%s://%s:%d", prefix, argv[count],
data/paho.mqtt.c-1.3.5/test/test5.c:178:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.anon_connection, "%s://%s:%d", prefix, argv[count],
data/paho.mqtt.c-1.3.5/test/test5.c:181:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(options.psk_connection, "%s://%s:%d", prefix, argv[count],
data/paho.mqtt.c-1.3.5/test/test5.c:250:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test5.c:353:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test5.c:356:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test5.c:781:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tc.clientid, "%s", testname);
data/paho.mqtt.c-1.3.5/test/test5.c:1208:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tc.clientid, "%s", testname);
data/paho.mqtt.c-1.3.5/test/test5.c:1318:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tc.clientid, "%s", testname);
data/paho.mqtt.c-1.3.5/test/test5.c:1540:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tc.clientid, "%s", testname);
data/paho.mqtt.c-1.3.5/test/test5.c:1654:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tc.clientid, "%s", testname);
data/paho.mqtt.c-1.3.5/test/test5.c:1787:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tc.clientid, "%s", testname);
data/paho.mqtt.c-1.3.5/test/test5.c:2279:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tc.clientid, "%s", testname);
data/paho.mqtt.c-1.3.5/test/test5.c:2397:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tc.clientid, "%s", testname);
data/paho.mqtt.c-1.3.5/test/test5.c:2494:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tc.clientid, "%s", testname);
data/paho.mqtt.c-1.3.5/test/test5.c:2615:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tc.clientid, "%s", testname);
data/paho.mqtt.c-1.3.5/test/test6.c:126:6:  [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(opts.connections[opts.connection_count], tok);
data/paho.mqtt.c-1.3.5/test/test6.c:193:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(&msg_buf[strlen(msg_buf)], "%s ", opts.clientid);
data/paho.mqtt.c-1.3.5/test/test6.c:196:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test6.c:334:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s: %s", opts.clientid, message);
data/paho.mqtt.c-1.3.5/test/test6.c:353:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "waiting for: %s", message);
data/paho.mqtt.c-1.3.5/test/test6.c:768:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sub_topic, "%s/send", opts.control_topic);
data/paho.mqtt.c-1.3.5/test/test6.c:769:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(pub_topic, "%s/receive", opts.control_topic);
data/paho.mqtt.c-1.3.5/test/test6.c:939:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sub_topic, "%s/send", opts.control_topic);
data/paho.mqtt.c-1.3.5/test/test6.c:940:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(pub_topic, "%s/receive", opts.control_topic);
data/paho.mqtt.c-1.3.5/test/test6.c:979:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(topic_buf, "%s_%d", opts.topic, opts.slot_no);
data/paho.mqtt.c-1.3.5/test/test6.c:982:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientid, "%s_%d", opts.clientid, opts.slot_no);
data/paho.mqtt.c-1.3.5/test/test8.c:118:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test8.c:206:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test9.c:122:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test9.c:230:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test9.c:233:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test9.c:433:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test9-1-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:434:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-1-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:435:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test9-1-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:436:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test9-1-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:694:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test9-2-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:695:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-2-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:696:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test9-2-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:697:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test9-2-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:963:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test9-3-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:964:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-3-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:965:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test9-3-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:966:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test9-3-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1222:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test9-4-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1223:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-4-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1224:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test9-4-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1225:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test9-4-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1478:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test9-5-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1479:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-5-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1480:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test9-5-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1481:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test9-5-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1639:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test9-6-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1640:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-6-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1641:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test9-6-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1642:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test9-6-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1899:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test9-7-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1900:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-7-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1901:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test9-7-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:1902:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "longer paho-test9-7-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2136:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test9-8-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2137:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-8-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2138:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test9-8-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2139:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test9-8-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2325:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test9-9-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2326:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-9-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2327:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test9-9-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2499:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test9-10-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2500:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-10-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2501:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test9-10-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test9.c:2502:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test9-10-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:123:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test95.c:231:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test95.c:234:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test95.c:494:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test95-1-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:495:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test95-1-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:496:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test95-1-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:497:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test95-1-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:819:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test95-2-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:820:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test95-2-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:821:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test95-2-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:822:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test95-2-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1090:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test95-3-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1091:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test95-3-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1092:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test95-3-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1093:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test95-3-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1359:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test95-4-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1360:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test95-4-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1361:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test95-4-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1362:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test95-4-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1624:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test95-5-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1625:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test95-5-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1626:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test95-5-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1627:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test95-5-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1794:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test95-6-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1795:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test95-6-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1796:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test95-6-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:1797:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "paho-test95-6-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:2062:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(willTopic, "paho-test95-7-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:2063:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidc, "paho-test9-7-c-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:2064:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientidd, "paho-test9-7-d-%s", unique);
data/paho.mqtt.c-1.3.5/test/test95.c:2065:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_topic, "longer paho-test9-7-test topic %s", unique);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:99:6:  [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(options.haconnections[options.hacount], tok);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:157:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:264:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:267:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/test_issue373.c:126:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test_issue373.c:168:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test_issue373.c:241:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(topic,"%s/test373/item_%03d",unique,id);
data/paho.mqtt.c-1.3.5/test/test_issue373.c:272:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(clientid, "paho-test373-%s", unique);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:112:6:  [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(options.haconnections[options.hacount], tok);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:160:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:262:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:265:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n", 
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:112:6:  [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(options.haconnections[options.hacount], tok);
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:160:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:261:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:264:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n", 
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:111:21:  [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(options.haconnections[options.hacount], tok);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:211:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:312:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:315:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/test/thread.c:107:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/thread.c:205:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/paho.mqtt.c-1.3.5/test/thread.c:210:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		cur_output += sprintf(cur_output, "<failure type=\"%s\">file %s, line %d </failure>\n",
data/paho.mqtt.c-1.3.5/src/Log.c:144:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((envval = getenv("MQTT_C_CLIENT_TRACE")) != NULL && strlen(envval) > 0)
data/paho.mqtt.c-1.3.5/src/Log.c:165:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((envval = getenv("MQTT_C_CLIENT_TRACE_MAX_LINES")) != NULL && strlen(envval) > 0)
data/paho.mqtt.c-1.3.5/src/Log.c:171:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((envval = getenv("MQTT_C_CLIENT_TRACE_LEVEL")) != NULL && strlen(envval) > 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:95: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(now);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:101: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(now.tv_nsec);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:107: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(now.tv_usec);
data/paho.mqtt.c-1.3.5/src/MQTTProtocolOut.c:164:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((p0 = getenv("http_proxy")))
data/paho.mqtt.c-1.3.5/src/MQTTProtocolOut.c:199:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((p0 = getenv("https_proxy"))) {
data/paho.mqtt.c-1.3.5/src/Tree.c:617: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(time(NULL));
data/paho.mqtt.c-1.3.5/src/WebSocket.c:119: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(time(NULL));
data/paho.mqtt.c-1.3.5/test/test3.c:203:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        		        strcat(ckeytmp, getenv("HOME"));
data/paho.mqtt.c-1.3.5/test/test3.c:218:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        		        strcat(ckeytmp, getenv("HOME"));
data/paho.mqtt.c-1.3.5/test/test3.c:240:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		                strcat(skeytmp, getenv("HOME"));
data/paho.mqtt.c-1.3.5/test/test3.c:263:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	strcpy(persistenceStore, getenv("HOME"));
data/paho.mqtt.c-1.3.5/test/test4.c:814: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(33);
data/paho.mqtt.c-1.3.5/test/test45.c:995: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(33);
data/paho.mqtt.c-1.3.5/test/test5.c:2213: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(33);
data/paho.mqtt.c-1.3.5/test/test8.c:780: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(33);
data/paho.mqtt.c-1.3.5/test/test9.c:2675: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) time(&randtime));
data/paho.mqtt.c-1.3.5/test/test95.c:2231: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) time(&randtime));
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:314: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(0));
data/paho.mqtt.c-1.3.5/src/Base64.c:130:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 c[4];
data/paho.mqtt.c-1.3.5/src/Base64.c:313: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 out[512u];
data/paho.mqtt.c-1.3.5/src/Base64.c:332: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 out[512u];
data/paho.mqtt.c-1.3.5/src/Log.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 name[MAX_FUNCTION_NAME_LENGTH + 1];
data/paho.mqtt.c-1.3.5/src/Log.c:122:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char msg_buf[512];
data/paho.mqtt.c-1.3.5/src/Log.c:146:57:  [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 (strcmp(envval, "ON") == 0 || (trace_destination = fopen(envval, "w")) == NULL)
data/paho.mqtt.c-1.3.5/src/Log.c:167:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		max_lines_per_file = atoi(envval);
data/paho.mqtt.c-1.3.5/src/Log.c:200:16:  [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 ((vfile = fopen("/proc/version", "r")) != NULL)
data/paho.mqtt.c-1.3.5/src/Log.c:204:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(msg_buf, "/proc/version: ");
data/paho.mqtt.c-1.3.5/src/Log.c:284: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(new_trace_queue, trace_queue, min(trace_queue_size, trace_settings.max_trace_entries) * sizeof(traceEntry));
data/paho.mqtt.c-1.3.5/src/Log.c:323: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(&msg_buf[22], ".%.3lu ", cur_entry->ts.tv_usec / 1000L);
data/paho.mqtt.c-1.3.5/src/Log.c:325: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(&msg_buf[22], ".%.3hu ", cur_entry->ts.millitm);
data/paho.mqtt.c-1.3.5/src/Log.c:329: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(msg_buf, "(%.4d)", cur_entry->sametime_count);
data/paho.mqtt.c-1.3.5/src/Log.c:360:24:  [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).
			trace_destination = fopen(trace_destination_name, "w"); /* open new trace file */
data/paho.mqtt.c-1.3.5/src/Log.c:397: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(&(cur_entry->ts), &now_ts, sizeof(now_ts));
data/paho.mqtt.c-1.3.5/src/Log.c:461: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(&(cur_entry->ts), &now_ts, sizeof(now_ts));
data/paho.mqtt.c-1.3.5/src/Log.c:494:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			file = fopen(dest, "ab");
data/paho.mqtt.c-1.3.5/src/Log.c:496:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			file = fopen(dest, "wb");
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:699: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->createOptions, options, sizeof(MQTTAsync_createOptions));
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:768: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 key[PERSISTENCE_MAX_KEY_LENGTH + 1];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:790: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 key[PERSISTENCE_MAX_KEY_LENGTH + 1];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1091: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(command->details.pub.payload, ptr, data_size);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1174:19:  [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).
					cmd->seqno = atoi(strchr(msgkeys[i], '-')+1); /* key format is tag'-'seqno */
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:3106: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(mm, &initialized, sizeof(MQTTAsync_message));
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:3115: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(mm->payload, publish->payload, publish->payloadlen);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:3356: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(m->c->will->payload, source, m->c->will->payloadlen);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:3457: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((void*)m->c->password, options->binarypwd.data, m->c->passwordlen);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4012: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(pub->command.details.pub.payload, payload, payloadlen);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4637:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[30];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4678:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf, "Unknown error code %d", code);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.h:220: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.h:465:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.h:518: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 struct_id[4];    	/**< The eyecatcher for this structure.  Will be MQSD. */
data/paho.mqtt.c-1.3.5/src/MQTTAsync.h:626: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.h:869: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.h:922: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.h: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.h:1073: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTAsync.h:1286: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1121: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(mm, &initialized, sizeof(MQTTClient_message));
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1136: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(mm->payload, publish->payload, publish->payloadlen);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1512: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(m->c->will->payload, source, m->c->will->payloadlen);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1607: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((void*)m->c->password, options->binarypwd.data, m->c->passwordlen);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:2305:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p->payload, payload, payloadlen);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:2898:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[30];
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:2933:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf, "Unknown error code %d", code);
data/paho.mqtt.c-1.3.5/src/MQTTClient.h:227: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTClient.h:269: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTClient.h:538: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTClient.h:613: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTClient.h:661: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTClient.h: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTPacket.c:392: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(string, *pptr, *len);
data/paho.mqtt.c-1.3.5/src/MQTTPacket.c:468: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(*pptr, string, len);
data/paho.mqtt.c-1.3.5/src/MQTTPacket.c:482: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(*pptr, data, datalen);
data/paho.mqtt.c-1.3.5/src/MQTTPacket.c:957: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(*pptr, lenstring.data, lenstring.len);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:595:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key[PERSISTENCE_MAX_KEY_LENGTH + 1];
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:614: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 key[PERSISTENCE_MAX_KEY_LENGTH + 1];
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:719: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(qe->msg->payload, ptr, data_size);
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:810: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).
					qe->seqno = atoi(strchr(msgkeys[i], '-')+1); /* key format is tag'-'seqno */
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.h:73: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:213: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(file, "wb");
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:268: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, "rb");
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:408: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 dir[MAX_PATH+1];
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:534: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 dir[MAX_PATH+1];
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:639: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 dir[MAX_PATH+1];
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:846: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 *bufs[NBUFS] = {"m0", "mm1", "mmm2" , "mmmm3"};  /* message content */
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:892: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(buff, buffer, buflen);
data/paho.mqtt.c-1.3.5/src/MQTTProperties.c:68: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(temp, str->data, str->len);
data/paho.mqtt.c-1.3.5/src/MQTTProtocolClient.c:181: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((*mm)->publish->mask, p.mask, sizeof((*mm)->publish->mask));
data/paho.mqtt.c-1.3.5/src/MQTTProtocolClient.c:223: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(m->publish->payload, temp, m->publish->payloadlen);
data/paho.mqtt.c-1.3.5/src/MQTTProtocolClient.c:391: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(m->publish->payload, temp, m->publish->payloadlen);
data/paho.mqtt.c-1.3.5/src/MQTTProtocolOut.c:70: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).
		*port = atoi(colon_pos + 1);
data/paho.mqtt.c-1.3.5/src/MQTTProtocolOut.c:113: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 hex[3];
data/paho.mqtt.c-1.3.5/src/MQTTSubscribeOpts.h:24: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 struct_id[4];
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:76: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 value[100];
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:80:16:  [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 ((infile = fopen(filename, "rb")) != NULL)
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:196: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 namebuf[60];
data/paho.mqtt.c-1.3.5/src/SHA1.c:66:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char pad[64] = {
data/paho.mqtt.c-1.3.5/src/SHA1.c:166: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( md, &ctx->h[0], SHA1_DIGEST_LENGTH );
data/paho.mqtt.c-1.3.5/src/SHA1.c:181: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 + ctx->size, data, n);
data/paho.mqtt.c-1.3.5/src/SHA1.c:228:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 sha_out[SHA1_DIGEST_LENGTH];
data/paho.mqtt.c-1.3.5/src/SHA1.c:229: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 out[SHA1_DIGEST_LENGTH * 2 + 1];
data/paho.mqtt.c-1.3.5/src/SSLSocket.c:111:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[120];
data/paho.mqtt.c-1.3.5/src/SSLSocket.c:256: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[20];
data/paho.mqtt.c-1.3.5/src/SSLSocket.c:287:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%i", version);
data/paho.mqtt.c-1.3.5/src/SSLSocket.c:958: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(ptr, buf0, buf0len);
data/paho.mqtt.c-1.3.5/src/SSLSocket.c:964: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(ptr, bufs.buffers[i], bufs.buflens[i]);
data/paho.mqtt.c-1.3.5/src/Socket.c:143: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((void*)&(mod_s.rset_saved), (void*)&(mod_s.rset), sizeof(mod_s.rset_saved));
data/paho.mqtt.c-1.3.5/src/Socket.c:271: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((void*)&(mod_s.rset), (void*)&(mod_s.rset_saved), sizeof(mod_s.rset));
data/paho.mqtt.c-1.3.5/src/Socket.c:272: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((void*)&(pwset), (void*)&(mod_s.pending_wset), sizeof(pwset));
data/paho.mqtt.c-1.3.5/src/Socket.c:290: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((void*)&wset, (void*)&(mod_s.rset_saved), sizeof(wset));
data/paho.mqtt.c-1.3.5/src/Socket.c:704: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( addr_mem, addr, addr_len );
data/paho.mqtt.c-1.3.5/src/Socket.c:1033: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 addr_string[ADDRLEN + PORTLEN];
data/paho.mqtt.c-1.3.5/src/Socket.c:1037:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t buf[ADDRLEN*2];
data/paho.mqtt.c-1.3.5/src/Socket.c:1047: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(&addr_string[strlen(addr_string)], ":%d", ntohs(sin->sin_port));
data/paho.mqtt.c-1.3.5/src/SocketBuffer.c:201: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(newmem, queue->buf, queue->datalen);
data/paho.mqtt.c-1.3.5/src/SocketBuffer.h:42: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 fixed_header[5];	/**< header plus up to 4 length bytes */
data/paho.mqtt.c-1.3.5/src/StackTrace.c:49: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 name[MAX_FUNCTION_NAME_LENGTH];
data/paho.mqtt.c-1.3.5/src/WebSocket.c:104: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.
typedef unsigned char uuid_t[16];
data/paho.mqtt.c-1.3.5/src/WebSocket.c:138:10:  [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.
		out += sprintf( out, "%02x", uu[i] );
data/paho.mqtt.c-1.3.5/src/WebSocket.c:264: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(&rc.wsbuf0[ws_header_size], *pbuf0, *pbuf0len);
data/paho.mqtt.c-1.3.5/src/WebSocket.c:306: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( &rc.wsbuf0[buf_len], &len, 2u );
data/paho.mqtt.c-1.3.5/src/WebSocket.c:313: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( &rc.wsbuf0[buf_len], &len, 8 );
data/paho.mqtt.c-1.3.5/src/WebSocket.c:327: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( &rc.wsbuf0[buf_len], &bufs->mask, sizeof(uint32_t));
data/paho.mqtt.c-1.3.5/src/WebSocket.c:547: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(buf0, &status_code_be, sizeof(uint16_t));
data/paho.mqtt.c-1.3.5/src/WebSocket.c:831: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(frame_buffer, rv, *actual_len);
data/paho.mqtt.c-1.3.5/src/WebSocket.c:840: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(frame_buffer + frame_buffer_data_len, rv, *actual_len);
data/paho.mqtt.c-1.3.5/src/WebSocket.c:849: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(frame_buffer + frame_buffer_data_len, rv, *actual_len);
data/paho.mqtt.c-1.3.5/src/WebSocket.c:1127: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( &mask[0], b, sizeof(uint32_t));
data/paho.mqtt.c-1.3.5/src/WebSocket.c:1177: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( (unsigned char *)res + sizeof(struct ws_frame) + cur_len, b, len );
data/paho.mqtt.c-1.3.5/src/WebSocket.c:1316: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 ws_key[62u] = { 0 };
data/paho.mqtt.c-1.3.5/src/WebSocket.c:1317:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 sha_hash[SHA1_DIGEST_LENGTH];
data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.c:205:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				opts->maxdatalen = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.c:221:23:  [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).
				opts->keepalive = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.c:249: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).
				opts->will_qos = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.c:379:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					opts->message_expiry = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/src/samples/pubsub_opts.c:434: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).
	FILE* infile = fopen(opts->filename, "rb");
data/paho.mqtt.c-1.3.5/src/utf-8.c:177:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[20];
data/paho.mqtt.c-1.3.5/test/openssl/applink.c:106:47:  [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).
        OPENSSL_ApplinkTable[APPLINK_FOPEN] = fopen;
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:148:27:  [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).
				options.MQTTVersion = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:158:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:210: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:223: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:983: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 dollartopic[20];
data/paho.mqtt.c-1.3.5/test/test1.c:78:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test1.c:121:27:  [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).
				options.MQTTVersion = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test1.c:130:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test1.c:151: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test1.c:164: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test1.c:239: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test1.c:681: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[100];
data/paho.mqtt.c-1.3.5/test/test1.c:723:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "Message sequence no %d", i);
data/paho.mqtt.c-1.3.5/test/test1.c:844: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[100];
data/paho.mqtt.c-1.3.5/test/test1.c:878:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "Message sequence no %d", i);
data/paho.mqtt.c-1.3.5/test/test1.c:1158: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).
	xml = fopen("TEST-test1.xml", "w");
data/paho.mqtt.c-1.3.5/test/test10.c:92:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test10.c:135:27:  [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).
				options.MQTTVersion = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test10.c:144:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test10.c:165: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test10.c:183: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test10.c:258: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test10.c:1821: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).
	xml = fopen("TEST-test1.xml", "w");
data/paho.mqtt.c-1.3.5/test/test11.c:75:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test11.c:82: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).
				options.size = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test11.c:97:27:  [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).
				options.MQTTVersion = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test11.c:106:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test11.c:127: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test11.c:140: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test11.c:215: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test11.c:1477: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 myTopicName[100];
data/paho.mqtt.c-1.3.5/test/test11.c:1510: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(myTopicName, response_topic_prop->value.data.data, response_topic_prop->value.data.len);
data/paho.mqtt.c-1.3.5/test/test11.c:1927:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[100];
data/paho.mqtt.c-1.3.5/test/test11.c:1930:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "shared subscriptions sequence number %d", i);
data/paho.mqtt.c-1.3.5/test/test11.c:2096: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).
	xml = fopen("TEST-test4.xml", "w");
data/paho.mqtt.c-1.3.5/test/test15.c:80:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test15.c:123:27:  [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).
				options.MQTTVersion = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test15.c:132:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test15.c:153: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test15.c:170: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test15.c:245: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test15.c:818: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[100];
data/paho.mqtt.c-1.3.5/test/test15.c:909:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "Message sequence no %d", i);
data/paho.mqtt.c-1.3.5/test/test15.c:1066: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[100];
data/paho.mqtt.c-1.3.5/test/test15.c:1111:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buffer, "Message sequence no %d", i);
data/paho.mqtt.c-1.3.5/test/test15.c:1407: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).
	xml = fopen("TEST-test1.xml", "w");
data/paho.mqtt.c-1.3.5/test/test2.c:76:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test2.c:112:27:  [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).
				options.MQTTVersion = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test2.c:121:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test2.c:142: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test2.c:155: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test2.c:230: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test2.c:674: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).
	xml = fopen("TEST-test2.xml", "w");
data/paho.mqtt.c-1.3.5/test/test3.c:41: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 skeytmp[1024];
data/paho.mqtt.c-1.3.5/test/test3.c:42: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 ckeytmp[1024];
data/paho.mqtt.c-1.3.5/test/test3.c:43: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 persistenceStore[1024];
data/paho.mqtt.c-1.3.5/test/test3.c:74: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 connection[100];
data/paho.mqtt.c-1.3.5/test/test3.c:75: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 mutual_auth_connection[100];   /**< connection to system under test. */
data/paho.mqtt.c-1.3.5/test/test3.c:76: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 nocert_mutual_auth_connection[100];
data/paho.mqtt.c-1.3.5/test/test3.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char server_auth_connection[100];
data/paho.mqtt.c-1.3.5/test/test3.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char anon_connection[100];
data/paho.mqtt.c-1.3.5/test/test3.c: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 psk_connection[100];
data/paho.mqtt.c-1.3.5/test/test3.c:151:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test3.c:264: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(persistenceStore, "/Library/Caches");
data/paho.mqtt.c-1.3.5/test/test3.c:270: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test3.c:283: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test3.c:359: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test3.c:1590: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(psk, test_psk, sizeof(test_psk));
data/paho.mqtt.c-1.3.5/test/test3.c:1699: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).
	xml = fopen("TEST-test3.xml", "w");
data/paho.mqtt.c-1.3.5/test/test4.c:74:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test4.c:81: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).
				options.size = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test4.c:96:27:  [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).
				options.MQTTVersion = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test4.c:105:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test4.c:126: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test4.c:139: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test4.c:214: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test4.c:520: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 clientid[24];
data/paho.mqtt.c-1.3.5/test/test4.c:521: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 test_topic[100];
data/paho.mqtt.c-1.3.5/test/test4.c:673:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(clientdata[i].clientid, "async_test3_num_%d", i);
data/paho.mqtt.c-1.3.5/test/test4.c:674:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(clientdata[i].test_topic, "async test3 topic num %d", i);
data/paho.mqtt.c-1.3.5/test/test4.c:1751: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).
	xml = fopen("TEST-test4.xml", "w");
data/paho.mqtt.c-1.3.5/test/test45.c:75:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test45.c:82: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).
				options.size = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test45.c:97:27:  [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).
				options.MQTTVersion = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test45.c:106:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test45.c:127: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test45.c:144: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test45.c:226: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test45.c:685: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 clientid[24];
data/paho.mqtt.c-1.3.5/test/test45.c:686: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 test_topic[100];
data/paho.mqtt.c-1.3.5/test/test45.c:839:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(clientdata[i].clientid, "async_test3_num_%d", i);
data/paho.mqtt.c-1.3.5/test/test45.c:840:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(clientdata[i].test_topic, "async test3 topic num %d", i);
data/paho.mqtt.c-1.3.5/test/test45.c:1596:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[100];
data/paho.mqtt.c-1.3.5/test/test45.c:1597:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%d a much longer message that we can shorten to the extent that we need", i);
data/paho.mqtt.c-1.3.5/test/test45.c:2048: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).
	xml = fopen("TEST-test4.xml", "w");
data/paho.mqtt.c-1.3.5/test/test5.c: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 connection[100]; /**< connection to system under test. */
data/paho.mqtt.c-1.3.5/test/test5.c:58: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 mutual_auth_connection[100];   /**< connection to system under test. */
data/paho.mqtt.c-1.3.5/test/test5.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nocert_mutual_auth_connection[100];
data/paho.mqtt.c-1.3.5/test/test5.c:60: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 server_auth_connection[100];
data/paho.mqtt.c-1.3.5/test/test5.c:61: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 anon_connection[100];
data/paho.mqtt.c-1.3.5/test/test5.c:62: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 psk_connection[100];
data/paho.mqtt.c-1.3.5/test/test5.c:98: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 clientid[24];
data/paho.mqtt.c-1.3.5/test/test5.c:99: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 topic[100];
data/paho.mqtt.c-1.3.5/test/test5.c:122:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test5.c:197: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).
				options.size = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test5.c:206:26:  [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).
				options.start_port = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test5.c:215:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				options.message_count = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test5.c:234: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test5.c:247: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test5.c:323: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test5.c:782: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(tc.topic, "C client SSL test2a");
data/paho.mqtt.c-1.3.5/test/test5.c:1209: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(tc.topic, "C client SSL test2e");
data/paho.mqtt.c-1.3.5/test/test5.c:1319: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(tc.topic, "C client SSL test3a");
data/paho.mqtt.c-1.3.5/test/test5.c:1541: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(tc.topic, "C client SSL test4");
data/paho.mqtt.c-1.3.5/test/test5.c:1655: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(tc.topic, "C client SSL test5a");
data/paho.mqtt.c-1.3.5/test/test5.c:1788: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(tc.topic, "C client SSL test5b");
data/paho.mqtt.c-1.3.5/test/test5.c:2011:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tc[i].clientid, "sslasync_test6_num_%d", i);
data/paho.mqtt.c-1.3.5/test/test5.c:2012:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tc[i].topic, "sslasync test6 topic num %d", i);
data/paho.mqtt.c-1.3.5/test/test5.c:2280: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(tc.topic, "C client SSL test7");
data/paho.mqtt.c-1.3.5/test/test5.c:2369: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(psk, test_psk, sizeof(test_psk));
data/paho.mqtt.c-1.3.5/test/test5.c:2398: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(tc.topic, "C client SSL test8");
data/paho.mqtt.c-1.3.5/test/test5.c:2495: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(tc.topic, "C client SSL test9");
data/paho.mqtt.c-1.3.5/test/test5.c:2616: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(tc.topic, "C client SSL test10");
data/paho.mqtt.c-1.3.5/test/test5.c:2689: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).
	xml = fopen("TEST-test5.xml", "w");
data/paho.mqtt.c-1.3.5/test/test6.c:43:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char pub_topic[200];
data/paho.mqtt.c-1.3.5/test/test6.c:44:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char sub_topic[200];
data/paho.mqtt.c-1.3.5/test/test6.c:105: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).
				opts.slot_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test6.c:178: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test6.c:191: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test6.c:330:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[156];
data/paho.mqtt.c-1.3.5/test/test6.c:348: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[120];
data/paho.mqtt.c-1.3.5/test/test6.c:403: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).
		seqno = atoi(token);
data/paho.mqtt.c-1.3.5/test/test6.c:651: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 payload[128];
data/paho.mqtt.c-1.3.5/test/test6.c:653:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(payload, "message number %d", i);
data/paho.mqtt.c-1.3.5/test/test6.c:707: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 payload[128];
data/paho.mqtt.c-1.3.5/test/test6.c:711:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(payload, "message number %d", seqno);
data/paho.mqtt.c-1.3.5/test/test6.c:962: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 topic_buf[200];
data/paho.mqtt.c-1.3.5/test/test6.c:963: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 clientid[40];
data/paho.mqtt.c-1.3.5/test/test8.c:67:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test8.c:74: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).
				options.size = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test8.c:102: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test8.c:115: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test8.c:488:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char clientid[24];
data/paho.mqtt.c-1.3.5/test/test8.c:489: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 test_topic[100];
data/paho.mqtt.c-1.3.5/test/test8.c:640:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(clientdata[i].clientid, "async_test3_num_%d", i);
data/paho.mqtt.c-1.3.5/test/test8.c:641:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(clientdata[i].test_topic, "async test3 topic num %d", i);
data/paho.mqtt.c-1.3.5/test/test9.c:41: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 unique[50]; // unique suffix/prefix to add to clientid/topic etc
data/paho.mqtt.c-1.3.5/test/test9.c:74:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test9.c:106: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test9.c:119: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test9.c:200: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test9.c:379: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 willTopic[100];
data/paho.mqtt.c-1.3.5/test/test9.c:380: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 test_topic[50];
data/paho.mqtt.c-1.3.5/test/test9.c:429: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test9.c:430: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test9.c:525:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:529: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test9.c:639: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 willTopic[100];
data/paho.mqtt.c-1.3.5/test/test9.c:640: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 test_topic[50];
data/paho.mqtt.c-1.3.5/test/test9.c:689: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test9.c:690: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test9.c:692: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 *URIs[2] = {"rubbish", options.proxy_connection};
data/paho.mqtt.c-1.3.5/test/test9.c:791:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:795: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test9.c:909: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 willTopic[100];
data/paho.mqtt.c-1.3.5/test/test9.c:910: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 test_topic[50];
data/paho.mqtt.c-1.3.5/test/test9.c:959: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test9.c:960: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1056:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1060: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test9.c:1167: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 willTopic[100];
data/paho.mqtt.c-1.3.5/test/test9.c:1168: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 test_topic[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1217: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1218: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1220: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 *URIs[2] = {"rubbish", options.proxy_connection};
data/paho.mqtt.c-1.3.5/test/test9.c:1315:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1319: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test9.c:1426: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 willTopic[100];
data/paho.mqtt.c-1.3.5/test/test9.c:1427: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 test_topic[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1474: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1475: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1571:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1575: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test9.c:1629: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1630: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1733:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1737: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test9.c:1889: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1890: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test9.c:1994: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[5000000];
data/paho.mqtt.c-1.3.5/test/test9.c:2001: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(buf, "QoS %d message", pubmsg.qos);
data/paho.mqtt.c-1.3.5/test/test9.c:2132: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test9.c:2133: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test9.c:2162:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:2166: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test9.c:2223:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:2227: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test9.c:2320: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test9.c:2350:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:2354: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test9.c:2426: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).
	int sequence_no = atoi(message->payload);
data/paho.mqtt.c-1.3.5/test/test9.c:2495: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test9.c:2496: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test9.c:2557:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:2562: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(buf, "%d message no, QoS %d", i, pubmsg.qos);
data/paho.mqtt.c-1.3.5/test/test9.c:2606:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test9.c:2611: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(buf, "%d message no, QoS %d", i, pubmsg.qos);
data/paho.mqtt.c-1.3.5/test/test9.c:2676: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(unique, "%u", rand());
data/paho.mqtt.c-1.3.5/test/test9.c:2679: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).
	xml = fopen("TEST-test9.xml", "w");
data/paho.mqtt.c-1.3.5/test/test95.c:42: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 unique[50]; // unique suffix/prefix to add to clientid/topic etc
data/paho.mqtt.c-1.3.5/test/test95.c:75:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test95.c:107: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test95.c:120: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test95.c:201: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test95.c:436: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 willTopic[100];
data/paho.mqtt.c-1.3.5/test/test95.c:437: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 test_topic[50];
data/paho.mqtt.c-1.3.5/test/test95.c:487: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test95.c:488:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char clientidd[50];
data/paho.mqtt.c-1.3.5/test/test95.c:602:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[50];
data/paho.mqtt.c-1.3.5/test/test95.c:608:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test95.c:761: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 willTopic[100];
data/paho.mqtt.c-1.3.5/test/test95.c:762: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 test_topic[50];
data/paho.mqtt.c-1.3.5/test/test95.c:812: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test95.c:813: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test95.c:815: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 *URIs[2] = {"rubbish", options.proxy_connection};
data/paho.mqtt.c-1.3.5/test/test95.c:919:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test95.c:923: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test95.c:1033: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 willTopic[100];
data/paho.mqtt.c-1.3.5/test/test95.c:1034: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 test_topic[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1084: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1085: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1189:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1193: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test95.c:1301: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 willTopic[100];
data/paho.mqtt.c-1.3.5/test/test95.c:1302: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 test_topic[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1352: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1353: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1355: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 *URIs[2] = {"rubbish", options.proxy_connection};
data/paho.mqtt.c-1.3.5/test/test95.c:1458:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1462: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test95.c:1569: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 willTopic[100];
data/paho.mqtt.c-1.3.5/test/test95.c:1570: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 test_topic[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1618: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1619: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1724:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1728: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test95.c:1782: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1783: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1895:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[50];
data/paho.mqtt.c-1.3.5/test/test95.c:1899: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(buf, "QoS %d message", i);
data/paho.mqtt.c-1.3.5/test/test95.c:2052: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 clientidc[50];
data/paho.mqtt.c-1.3.5/test/test95.c:2053: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 clientidd[50];
data/paho.mqtt.c-1.3.5/test/test95.c:2161: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[5000000];
data/paho.mqtt.c-1.3.5/test/test95.c:2168: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(buf, "QoS %d message", pubmsg.qos);
data/paho.mqtt.c-1.3.5/test/test95.c:2232: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(unique, "%u", rand());
data/paho.mqtt.c-1.3.5/test/test95.c:2235: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).
	xml = fopen("TEST-test9.xml", "w");
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:75:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:111:27:  [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).
				options.MQTTVersion = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:120:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:141: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:154: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:235: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:376: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).
	xml = fopen("TEST-test2.xml", "w");
data/paho.mqtt.c-1.3.5/test/test_issue373.c:41: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 unique[50]; // unique suffix/prefix to add to clientid/topic etc
data/paho.mqtt.c-1.3.5/test/test_issue373.c:78:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_issue373.c:110: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test_issue373.c:123: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test_issue373.c:189: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 MqttVersion[40];
data/paho.mqtt.c-1.3.5/test/test_issue373.c:193:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(MqttVersion," MQTT version 3.1");
data/paho.mqtt.c-1.3.5/test/test_issue373.c:196:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(MqttVersion, " MQTT version 3.1.1");
data/paho.mqtt.c-1.3.5/test/test_issue373.c:199:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(MqttVersion, " MQTT version %d",response->alt.connect.MQTTVersion);
data/paho.mqtt.c-1.3.5/test/test_issue373.c:239: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 topic[ sizeof(unique) + 40];
data/paho.mqtt.c-1.3.5/test/test_issue373.c:268: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 clientid[30 + sizeof(unique)];
data/paho.mqtt.c-1.3.5/test/test_issue373.c:375: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(unique, "%u", rand());
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:88:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:123:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:144: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:157: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:232: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:601: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).
	xml = fopen("TEST-MQTT4sync.xml", "w");
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:88:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:123:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:144: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:157: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:232: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:471: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).
	xml = fopen("TEST-MQTT4sync.xml", "w");
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:87:35:  [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).
                options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:158:39:  [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).
                options.MQTTVersion = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:167:38:  [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).
                options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:174:44:  [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).
                options.reconnect_period = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:195:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:208: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:283: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 output[3000];
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:458:11:  [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).
    xml = fopen("TEST-test1.xml", "w");
data/paho.mqtt.c-1.3.5/test/thread.c:67:23:  [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).
				options.test_no = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/thread.c:74:26:  [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).
				options.iterations = atoi(argv[count]);
data/paho.mqtt.c-1.3.5/test/thread.c:91: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 msg_buf[256];
data/paho.mqtt.c-1.3.5/test/thread.c:104: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/thread.c:178: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 output[3000];
data/paho.mqtt.c-1.3.5/test/thread.c:494: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).
	xml = fopen("TEST-thread.xml", "w");
data/paho.mqtt.c-1.3.5/src/Base64.c:314:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		r = Base64_decode( out, sizeof(out), test_data[i].out, strlen(test_data[i].out) );
data/paho.mqtt.c-1.3.5/src/Base64.c:315: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).
		TEST_EXPECT( i, r == strlen(test_data[i].in) && strncmp(out, test_data[i].in, strlen(test_data[i].in)) == 0 );
data/paho.mqtt.c-1.3.5/src/Base64.c:315:81:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		TEST_EXPECT( i, r == strlen(test_data[i].in) && strncmp(out, test_data[i].in, strlen(test_data[i].in)) == 0 );
data/paho.mqtt.c-1.3.5/src/Base64.c:323: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).
		TEST_EXPECT( i, Base64_decodeLength(test_data[i].out, strlen(test_data[i].out)) == strlen(test_data[i].in));
data/paho.mqtt.c-1.3.5/src/Base64.c:323:86:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		TEST_EXPECT( i, Base64_decodeLength(test_data[i].out, strlen(test_data[i].out)) == strlen(test_data[i].in));
data/paho.mqtt.c-1.3.5/src/Base64.c:333: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).
		r = Base64_encode( out, sizeof(out), test_data[i].in, strlen(test_data[i].in) );
data/paho.mqtt.c-1.3.5/src/Base64.c:334: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).
		TEST_EXPECT( i, r == strlen(test_data[i].out) && strncmp(out, test_data[i].out, strlen(test_data[i].out)) == 0 );
data/paho.mqtt.c-1.3.5/src/Base64.c:334:83:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		TEST_EXPECT( i, r == strlen(test_data[i].out) && strncmp(out, test_data[i].out, strlen(test_data[i].out)) == 0 );
data/paho.mqtt.c-1.3.5/src/Base64.c:342: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).
		TEST_EXPECT( i, Base64_encodeLength(test_data[i].in, strlen(test_data[i].in)) == strlen(test_data[i].out) );
data/paho.mqtt.c-1.3.5/src/Base64.c:342:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		TEST_EXPECT( i, Base64_encodeLength(test_data[i].in, strlen(test_data[i].in)) == strlen(test_data[i].out) );
data/paho.mqtt.c-1.3.5/src/Heap.c:162: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 filenamelen = strlen(file)+1;
data/paho.mqtt.c-1.3.5/src/Heap.c:332: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).
		size_t filenamelen = strlen(file)+1;
data/paho.mqtt.c-1.3.5/src/Heap.c:348: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).
		space -= strlen(s->file);
data/paho.mqtt.c-1.3.5/src/Heap.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).
	size_t len = str ? strlen(str) + 1 : 0; /* include the trailing null */
data/paho.mqtt.c-1.3.5/src/Log.c:144:58:  [1] (buffer) strlen:
  Does not handle 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 ((envval = getenv("MQTT_C_CLIENT_TRACE")) != NULL && strlen(envval) > 0)
data/paho.mqtt.c-1.3.5/src/Log.c:150: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 ((trace_destination_name = malloc(strlen(envval) + 1)) == NULL)
data/paho.mqtt.c-1.3.5/src/Log.c:156: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 ((trace_destination_backup_name = malloc(strlen(envval) + 3)) == NULL)
data/paho.mqtt.c-1.3.5/src/Log.c:165:68:  [1] (buffer) strlen:
  Does not handle 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 ((envval = getenv("MQTT_C_CLIENT_TRACE_MAX_LINES")) != NULL && strlen(envval) > 0)
data/paho.mqtt.c-1.3.5/src/Log.c:171:64:  [1] (buffer) strlen:
  Does not handle 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 ((envval = getenv("MQTT_C_CLIENT_TRACE_LEVEL")) != NULL && strlen(envval) > 0)
data/paho.mqtt.c-1.3.5/src/Log.c:205:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(msg_buf);
data/paho.mqtt.c-1.3.5/src/Log.c:333:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(&msg_buf[buf_pos], cur_entry->name, sizeof(msg_buf)-buf_pos);
data/paho.mqtt.c-1.3.5/src/Log.c:401:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(cur_entry->name, buf, sizeof(cur_entry->name));
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:485:2:  [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(milliseconds*1000);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:601: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(URI_TCP, serverURI, strlen(URI_TCP)) != 0
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:602: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).
		 && strncmp(URI_WS, serverURI, strlen(URI_WS)) != 0
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:604: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).
            && strncmp(URI_SSL, serverURI, strlen(URI_SSL)) != 0
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:605: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).
		 && strncmp(URI_WSS, serverURI, strlen(URI_WSS)) != 0
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:644: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 (strncmp(URI_TCP, serverURI, strlen(URI_TCP)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:645: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).
		serverURI += strlen(URI_TCP);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:646: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).
	else if (strncmp(URI_WS, serverURI, strlen(URI_WS)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:648: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).
		serverURI += strlen(URI_WS);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:652: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 (strncmp(URI_SSL, serverURI, strlen(URI_SSL)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:654: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).
		serverURI += strlen(URI_SSL);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:657: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 (strncmp(URI_WSS, serverURI, strlen(URI_WSS)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:659: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).
		serverURI += strlen(URI_WSS);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:819: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).
				lens[bufindex++] = (int)strlen(command->details.sub.topics[i]) + 1;
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:865: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).
				lens[bufindex++] = (int)strlen(command->details.unsub.topics[i]) + 1;
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:886: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).
			lens[bufindex++] = (int)strlen(command->details.pub.destinationName) + 1;
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1008: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).
				data_size = strlen(ptr) + 1;
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1057: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).
				data_size = strlen(ptr) + 1;
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1071: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).
			data_size = strlen(ptr) + 1;
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1159:53:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_COMMAND_KEY, strlen(PERSISTENCE_COMMAND_KEY)) != 0 &&
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1160:53:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_V5_COMMAND_KEY, strlen(PERSISTENCE_V5_COMMAND_KEY)) != 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1167:55:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_V5_COMMAND_KEY, strlen(PERSISTENCE_V5_COMMAND_KEY)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1209:53:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_COMMAND_KEY, strlen(PERSISTENCE_COMMAND_KEY)) == 0 ||
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1210:53:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_V5_COMMAND_KEY, strlen(PERSISTENCE_V5_COMMAND_KEY)) == 0 ||
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1211: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).
				strncmp(msgkeys[i], PERSISTENCE_QUEUE_KEY, strlen(PERSISTENCE_QUEUE_KEY)) == 0 ||
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1212: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).
				strncmp(msgkeys[i], PERSISTENCE_V5_QUEUE_KEY, strlen(PERSISTENCE_V5_QUEUE_KEY)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1245: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(msgkeys[i], PERSISTENCE_PUBLISH_SENT, strlen(PERSISTENCE_PUBLISH_SENT)) == 0 ||
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1246: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).
				strncmp(msgkeys[i], PERSISTENCE_V5_PUBLISH_SENT, strlen(PERSISTENCE_V5_PUBLISH_SENT)) == 0 ||
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1247: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).
				strncmp(msgkeys[i], PERSISTENCE_PUBREL, strlen(PERSISTENCE_PUBREL)) == 0 ||
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1248: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).
				strncmp(msgkeys[i], PERSISTENCE_V5_PUBREL, strlen(PERSISTENCE_V5_PUBREL)) == 0 ||
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1249:55:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_PUBLISH_RECEIVED, strlen(PERSISTENCE_PUBLISH_RECEIVED)) == 0 ||
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1250:58:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_V5_PUBLISH_RECEIVED, strlen(PERSISTENCE_V5_PUBLISH_RECEIVED)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1763: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).
					if (strncmp(URI_TCP, serverURI, strlen(URI_TCP)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1764: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).
						serverURI += strlen(URI_TCP);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1765:42:  [1] (buffer) strlen:
  Does not handle 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(URI_WS, serverURI, strlen(URI_WS)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1767: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).
						serverURI += strlen(URI_WS);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1771: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).
					else if (strncmp(URI_SSL, serverURI, strlen(URI_SSL)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1773: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).
						serverURI += strlen(URI_SSL);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1776: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).
					else if (strncmp(URI_WSS, serverURI, strlen(URI_WSS)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1778: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).
						serverURI += strlen(URI_WSS);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1836:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ListAppend(topics, command->command.details.sub.topics[i], strlen(command->command.details.sub.topics[i]));
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:1860:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ListAppend(topics, command->command.details.unsub.topics[i], strlen(command->command.details.unsub.topics[i]));
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:2514: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(qe->topicName) == topicLen)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:3154:83:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ListAppend(client->messageQueue, qe, sizeof(qe) + sizeof(mm) + mm->payloadlen + strlen(qe->topicName)+1);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:3226: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).
		} else if (strlen(options->will->topicName) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:3348: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).
				m->c->will->payloadlen = (int)strlen(options->will->message);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:3447: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).
		m->c->passwordlen = (int)strlen(options->password);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4085: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(URI_TCP, serverURI, strlen(URI_TCP)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4086: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).
			serverURI += strlen(URI_TCP);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4087: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 (strncmp(URI_WS, serverURI, strlen(URI_WS)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4089: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).
			serverURI += strlen(URI_WS);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4093: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).
		else if (strncmp(URI_SSL, serverURI, strlen(URI_SSL)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4095: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).
			serverURI += strlen(URI_SSL);
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4098: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).
		else if (strncmp(URI_WSS, serverURI, strlen(URI_WSS)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTAsync.c:4100: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).
			serverURI += strlen(URI_WSS);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:396: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(URI_TCP, serverURI, strlen(URI_TCP)) != 0
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:397: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).
		 && strncmp(URI_WS, serverURI, strlen(URI_WS)) != 0
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:399: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).
            && strncmp(URI_SSL, serverURI, strlen(URI_SSL)) != 0
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:400: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).
		 && strncmp(URI_WSS, serverURI, strlen(URI_WSS)) != 0
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:438: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 (strncmp(URI_TCP, serverURI, strlen(URI_TCP)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:439: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).
		serverURI += strlen(URI_TCP);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:440: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).
	else if (strncmp(URI_WS, serverURI, strlen(URI_WS)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:442: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).
		serverURI += strlen(URI_WS);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:445: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 (strncmp(URI_SSL, serverURI, strlen(URI_SSL)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:448: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).
		serverURI += strlen(URI_SSL);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:455: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 (strncmp(URI_WSS, serverURI, strlen(URI_WSS)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:458: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).
		serverURI += strlen(URI_WSS);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:640: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(*topicName) != *topicLen)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:848: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(qe->topicName) == topicLen)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1152:82:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ListAppend(client->messageQueue, qe, sizeof(qe) + sizeof(mm) + mm->payloadlen + strlen(qe->topicName)+1);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1503: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).
				m->c->will->payloadlen = (int)strlen(options->will->message);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1597: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).
		m->c->passwordlen = (int)strlen(options->password);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1720: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).
		} else if (strlen(options->will->topicName) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1784: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).
			if (strncmp(URI_TCP, serverURI, strlen(URI_TCP)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1785: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).
				serverURI += strlen(URI_TCP);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1786: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).
			else if (strncmp(URI_WS, serverURI, strlen(URI_WS)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1788: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).
				serverURI += strlen(URI_WS);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1792: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).
			else if (strncmp(URI_SSL, serverURI, strlen(URI_SSL)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1794: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).
				serverURI += strlen(URI_SSL);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1797: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).
			else if (strncmp(URI_WSS, serverURI, strlen(URI_WSS)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1799: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).
				serverURI += strlen(URI_WSS);
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:1988: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).
		ListAppend(topics, topic[i], strlen(topic[i]));
data/paho.mqtt.c-1.3.5/src/MQTTClient.c:2151: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).
		ListAppend(topics, topic[i], strlen(topic[i]));
data/paho.mqtt.c-1.3.5/src/MQTTPacket.c:466: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_t len = strlen(string);
data/paho.mqtt.c-1.3.5/src/MQTTPacket.c:855: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).
		size_t lens[4] = {2, strlen(pack->topic), buflen, pack->payloadlen};
data/paho.mqtt.c-1.3.5/src/MQTTPacket.c:878: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).
		size_t lens[3] = {2, strlen(pack->topic), pack->payloadlen};
data/paho.mqtt.c-1.3.5/src/MQTTPacketOut.c:59:60:  [1] (buffer) strlen:
  Does not handle 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 = ((MQTTVersion == MQTTVERSION_3_1) ? 12 : 10) + (int)strlen(client->clientID)+2;
data/paho.mqtt.c-1.3.5/src/MQTTPacketOut.c:61: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).
		len += (int)strlen(client->will->topic)+2 + client->will->payloadlen+2;
data/paho.mqtt.c-1.3.5/src/MQTTPacketOut.c:63: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).
		len += (int)strlen(client->username)+2;
data/paho.mqtt.c-1.3.5/src/MQTTPacketOut.c:245: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).
		datalen += (int)strlen((char*)(elem->content));
data/paho.mqtt.c-1.3.5/src/MQTTPacketOut.c:375: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).
		datalen += (int)strlen((char*)(elem->content));
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:65: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).
				if ((per->context = malloc(strlen(pcontext) + 1)) == NULL)
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:195:53:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_COMMAND_KEY, strlen(PERSISTENCE_COMMAND_KEY)) == 0 ||
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:196:53:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_V5_COMMAND_KEY, strlen(PERSISTENCE_V5_COMMAND_KEY)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:200: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).
			else if (strncmp(msgkeys[i], PERSISTENCE_QUEUE_KEY, strlen(PERSISTENCE_QUEUE_KEY)) == 0 ||
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:201:53:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_V5_QUEUE_KEY, strlen(PERSISTENCE_V5_QUEUE_KEY)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:212: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(PERSISTENCE_V5_PUBLISH_RECEIVED)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:218: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(PERSISTENCE_V5_PUBLISH_SENT)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:224: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(PERSISTENCE_V5_PUBREL)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:240:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							      strlen(PERSISTENCE_PUBLISH_RECEIVED)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:260: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(PERSISTENCE_PUBLISH_SENT)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:289: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(cur_key, PERSISTENCE_PUBREL, strlen(PERSISTENCE_PUBREL)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:639: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).
	lens[bufindex++] = (int)strlen(qe->topicName) + 1;
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:734: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).
	data_size = (int)strlen(ptr) + 1;	
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:796: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).
			if (strncmp(msgkeys[i], PERSISTENCE_QUEUE_KEY, strlen(PERSISTENCE_QUEUE_KEY)) != 0 &&
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:797: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).
				strncmp(msgkeys[i], PERSISTENCE_V5_QUEUE_KEY, strlen(PERSISTENCE_V5_QUEUE_KEY)) != 0)
data/paho.mqtt.c-1.3.5/src/MQTTPersistence.c:804:53:  [1] (buffer) strlen:
  Does not handle 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(msgkeys[i], PERSISTENCE_V5_QUEUE_KEY, strlen(PERSISTENCE_V5_QUEUE_KEY)) == 0)
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:77: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).
	if ((perserverURI = malloc(strlen(serverURI) + 1)) == NULL)
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:87: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).
	clientDir = malloc(strlen(dataDir) + strlen(clientID) + strlen(perserverURI) + 3);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:87: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).
	clientDir = malloc(strlen(dataDir) + strlen(clientID) + strlen(perserverURI) + 3);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:87:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	clientDir = malloc(strlen(dataDir) + strlen(clientID) + strlen(perserverURI) + 3);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:102: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 ((pCrtDirName = (char*)malloc(strlen(clientDir) + 1)) == NULL)
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:109: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).
	if ((pTokDirName = (char*)malloc( strlen(clientDir) + 1 )) == NULL)
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:137:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat( pCrtDirName, "/" );
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:205: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).
	file = malloc(strlen(clientDir) + strlen(key) + strlen(MESSAGE_FILENAME_EXTENSION) + 2 );
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:205: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).
	file = malloc(strlen(clientDir) + strlen(key) + strlen(MESSAGE_FILENAME_EXTENSION) + 2 );
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:205: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).
	file = malloc(strlen(clientDir) + strlen(key) + strlen(MESSAGE_FILENAME_EXTENSION) + 2 );
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:261: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).
	filename = malloc(strlen(clientDir) + strlen(key) + strlen(MESSAGE_FILENAME_EXTENSION) + 2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:261: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).
	filename = malloc(strlen(clientDir) + strlen(key) + strlen(MESSAGE_FILENAME_EXTENSION) + 2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:261: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).
	filename = malloc(strlen(clientDir) + strlen(key) + strlen(MESSAGE_FILENAME_EXTENSION) + 2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:314: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).
	file = malloc(strlen(clientDir) + strlen(key) + strlen(MESSAGE_FILENAME_EXTENSION) + 2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:314: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).
	file = malloc(strlen(clientDir) + strlen(key) + strlen(MESSAGE_FILENAME_EXTENSION) + 2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:314: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).
	file = malloc(strlen(clientDir) + strlen(key) + strlen(MESSAGE_FILENAME_EXTENSION) + 2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:422: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).
				if ((filekey = malloc(strlen(FileData.cFileName) + 1)) == NULL)
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:464: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).
			char* filename = malloc(strlen(dirname) + strlen(dir_entry->d_name) + 2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:464: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).
			char* filename = malloc(strlen(dirname) + strlen(dir_entry->d_name) + 2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:476: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).
				if ((filekey = malloc(strlen(dir_entry->d_name) + 1)) == NULL)
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:548: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).
				file = malloc(strlen(dirname) + strlen(FileData.cFileName) + 2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:548: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).
				file = malloc(strlen(dirname) + strlen(FileData.cFileName) + 2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:689: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).
				if ((fkeys[i] = malloc(strlen(FileData.cFileName) + 1)) == NULL)
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:739: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).
			char* temp = malloc(strlen(dirname)+strlen(dir_entry->d_name)+2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:739: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).
			char* temp = malloc(strlen(dirname)+strlen(dir_entry->d_name)+2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:773: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* temp = malloc(strlen(dirname)+strlen(dir_entry->d_name)+2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:773: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).
				char* temp = malloc(strlen(dirname)+strlen(dir_entry->d_name)+2);
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:784: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).
					if ((fkeys[i] = malloc(strlen(dir_entry->d_name) + 1)) == NULL)
data/paho.mqtt.c-1.3.5/src/MQTTPersistenceDefault.c:849: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).
		buflens[i]=strlen(bufs[i]);
data/paho.mqtt.c-1.3.5/src/MQTTProtocolClient.c:260: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).
	*len = (int)strlen(publish->topic)+1;
data/paho.mqtt.c-1.3.5/src/MQTTProtocolClient.c:906:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (dest_size < strlen(src))
data/paho.mqtt.c-1.3.5/src/MQTTProtocolClient.c:927: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).
	size_t mlen = strlen(src) + 1;
data/paho.mqtt.c-1.3.5/src/MQTTProtocolOut.c:74:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(buf);
data/paho.mqtt.c-1.3.5/src/MQTTTime.c:33:2:  [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((useconds_t)(milliseconds*1000));
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:82: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).
		size_t buflen = strlen(eyecatcher);
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:87:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int c = fgetc(infile);
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:96:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					c = fgetc(infile); /* skip space */
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:97:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					c = fgetc(infile);
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:101:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						c = fgetc(infile);
data/paho.mqtt.c-1.3.5/src/MQTTVersion.c:110:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c = fgetc(infile);
data/paho.mqtt.c-1.3.5/src/OsWrapper.c:21:6:  [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.
void usleep(useconds_t useconds)
data/paho.mqtt.c-1.3.5/src/OsWrapper.h:27:6:  [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.
void usleep(useconds_t useconds);
data/paho.mqtt.c-1.3.5/src/SHA1.c:233: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).
		r[1] = SHA1_Update( &c, test_data[i].in, strlen(test_data[i].in));
data/paho.mqtt.c-1.3.5/src/SHA1.c:238:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		TEST_EXPECT( i, r[0] == 1 && r[1] == 1 && r[2] == 1 && strncmp(out, test_data[i].out, strlen(test_data[i].out)) == 0 );
data/paho.mqtt.c-1.3.5/src/SSLSocket.c:334:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, (char*)(userdata), size);
data/paho.mqtt.c-1.3.5/src/SSLSocket.c:336: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).
		rc = (int)strlen(buf);
data/paho.mqtt.c-1.3.5/src/SSLSocket.c:784:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(ip_addr, hostname, hostname_len);
data/paho.mqtt.c-1.3.5/src/Socket.c:1047: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).
	sprintf(&addr_string[strlen(addr_string)], ":%d", ntohs(sin->sin_port));
data/paho.mqtt.c-1.3.5/src/StackTrace.c:113:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(my_thread->callstack[my_thread->current_depth].name, name, sizeof(my_thread->callstack[0].name)-1);
data/paho.mqtt.c-1.3.5/src/Thread.c:266:4:  [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(interval); /* microseconds - .1 of a second */
data/paho.mqtt.c-1.3.5/src/WebSocket.c:431: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).
			headers_buf_len += (int)(strlen(headers->name) + strlen(headers->value) + 4);
data/paho.mqtt.c-1.3.5/src/WebSocket.c:431:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			headers_buf_len += (int)(strlen(headers->name) + strlen(headers->value) + 4);
data/paho.mqtt.c-1.3.5/src/WebSocket.c:539: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).
			buf0len += strlen(reason);
data/paho.mqtt.c-1.3.5/src/WebSocket.c:1242: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).
		const size_t str_len = strlen( str );
data/paho.mqtt.c-1.3.5/src/WebSocket.c:1324: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).
		SHA1_Update( &ctx, ws_key, strlen(ws_key));
data/paho.mqtt.c-1.3.5/src/WebSocket.c:1529:4:  [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(250000);
data/paho.mqtt.c-1.3.5/src/samples/MQTTAsync_publish.c:126: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).
	pubmsg.payloadlen = (int)strlen(PAYLOAD);
data/paho.mqtt.c-1.3.5/src/samples/MQTTAsync_publish.c:178:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/src/samples/MQTTAsync_subscribe.c:166:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/src/samples/MQTTAsync_subscribe.c:174:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = getchar();
data/paho.mqtt.c-1.3.5/src/samples/MQTTAsync_subscribe.c:190:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/src/samples/MQTTClient_publish.c:53: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).
    pubmsg.payloadlen = (int)strlen(PAYLOAD);
data/paho.mqtt.c-1.3.5/src/samples/MQTTClient_publish_async.c:92: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).
    pubmsg.payloadlen = (int)strlen(PAYLOAD);
data/paho.mqtt.c-1.3.5/src/samples/MQTTClient_publish_async.c:111:5:  [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(10000L);
data/paho.mqtt.c-1.3.5/src/samples/MQTTClient_subscribe.c:95:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        	ch = getchar();
data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c:62: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(ms * 1000);
data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c:127:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		rc = mypublish(client, (int)strlen(opts.message), opts.message);
data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c:156:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		rc = mypublish(client, (int)strlen(opts.message), opts.message);
data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c:248: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).
	psk_len = (int)strlen(opts->psk) / 2;
data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c:260:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(identity, opts->psk_identity, max_identity_len);
data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c:448: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).
			property.value.data.len = (int)strlen(opts.user_property.name);
data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c:450: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).
			property.value.value.len = (int)strlen(opts.user_property.value);
data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c:472: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).
			delim_len = (int)strlen(opts.delimiter);
data/paho.mqtt.c-1.3.5/src/samples/paho_c_pub.c:475:26:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				buffer[data_len++] = getchar();
data/paho.mqtt.c-1.3.5/src/samples/paho_c_sub.c:52: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(ms * 1000);
data/paho.mqtt.c-1.3.5/src/samples/paho_c_sub.c:81: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).
		delimlen = strlen(opts.delimiter);
data/paho.mqtt.c-1.3.5/src/samples/paho_cs_pub.c:223: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).
			property.value.data.len = (int)strlen(opts.user_property.name);
data/paho.mqtt.c-1.3.5/src/samples/paho_cs_pub.c:225: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).
			property.value.value.len = (int)strlen(opts.user_property.value);
data/paho.mqtt.c-1.3.5/src/samples/paho_cs_pub.c:239:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			delim_len = (int)strlen(opts.delimiter);
data/paho.mqtt.c-1.3.5/src/samples/paho_cs_pub.c:242:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int c = getchar();
data/paho.mqtt.c-1.3.5/src/samples/paho_cs_pub.c:257: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).
			data_len = (int)strlen(opts.message);
data/paho.mqtt.c-1.3.5/src/samples/paho_cs_sub.c:230: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).
				delimlen = strlen(opts.delimiter);
data/paho.mqtt.c-1.3.5/src/utf-8.c:163: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).
		rc = UTF8_validate((int)strlen(string), string);
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:192:19:  [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 msleep(A) usleep(A*1000)
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:223: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:226: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:226: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/sync_client_test.c:778: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).
	rc = MQTTClient_publish(aclient, topics[3], strlen("overlapping topic filters") + 1, 
data/paho.mqtt.c-1.3.5/test/test1.c:101: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).
					options.haconnections[options.hacount] = malloc(strlen(tok) + 1);
data/paho.mqtt.c-1.3.5/test/test1.c:164: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test1.c:167: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test1.c:167: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test1.c:482:4:  [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(100000L);
data/paho.mqtt.c-1.3.5/test/test1.c:492:5:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test1.c:511:5:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test1.c:543: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).
	opts.binarypwd.len = (int)strlen(opts.binarypwd.data);
data/paho.mqtt.c-1.3.5/test/test1.c:1002: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).
	rc = MQTTClient_publish(test6_c1, mqttsas_topic, (int)strlen("TERMINATE"), "TERMINATE", 0, 0, NULL);
data/paho.mqtt.c-1.3.5/test/test1.c:1064: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).
	opts.will->payload.len = (int)strlen(test6_will_message) + 1;
data/paho.mqtt.c-1.3.5/test/test1.c:1110: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).
	rc = MQTTClient_publish(test6_c1, mqttsas_topic, (int)strlen("TERMINATE"), "TERMINATE", 0, 0, NULL);
data/paho.mqtt.c-1.3.5/test/test10.c:115: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).
					options.haconnections[options.hacount] = malloc(strlen(tok) + 1);
data/paho.mqtt.c-1.3.5/test/test10.c:174:2:  [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(msg_buf, "");
data/paho.mqtt.c-1.3.5/test/test10.c:183: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test10.c:186: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test10.c:186: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test10.c:458: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:504: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:520: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:547: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:567: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:579: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:722: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:864: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:991: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:1066: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test10.c:1068: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test10.c:1204: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test10.c:1206: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test10.c:1218: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:1240: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:1261: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:1428: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test10.c:1433: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test10.c:1445: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:1454: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test10.c:1466: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:1616: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(1000000L);
data/paho.mqtt.c-1.3.5/test/test10.c:1783:4:  [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(100000L);
data/paho.mqtt.c-1.3.5/test/test11.c:140: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test11.c:143: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test11.c:143: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test11.c:496: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test11.c:498: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test11.c:514:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test11.c:527:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test11.c:705:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test11.c:885:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test11.c:1047:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test11.c:1129: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1131: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1165: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1167: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1221:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test11.c:1294: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1296: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1332: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1334: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1373: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1375: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1426:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test11.c:1507: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).
		property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1581: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1586: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test11.c:1663:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test11.c:1850:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test11.c:1932: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).
		pubmsg.payloadlen = (int)strlen(buf);
data/paho.mqtt.c-1.3.5/test/test11.c:2050:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test11.c:2057: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(10000L);
data/paho.mqtt.c-1.3.5/test/test15.c:103: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).
					options.haconnections[options.hacount] = malloc(strlen(tok) + 1);
data/paho.mqtt.c-1.3.5/test/test15.c:170: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test15.c:173: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test15.c:173: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test15.c:311: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test15.c:313: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test15.c:456: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test15.c:458: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test15.c:498: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test15.c:500: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test15.c:604:4:  [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(100000L);
data/paho.mqtt.c-1.3.5/test/test15.c:614:5:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test15.c:633:5:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test15.c:672: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).
	opts.binarypwd.len = (int)strlen(opts.binarypwd.data);
data/paho.mqtt.c-1.3.5/test/test15.c:901: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).
		property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test15.c:903: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).
		property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test15.c:1243:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	response = MQTTClient_publish5(test6_c1, mqttsas_topic, (int)strlen("TERMINATE"), "TERMINATE", 0, 0, NULL, NULL);
data/paho.mqtt.c-1.3.5/test/test15.c:1307: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).
	opts.will->payload.len = (int)strlen(test6_will_message) + 1;
data/paho.mqtt.c-1.3.5/test/test15.c:1359:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	response = MQTTClient_publish5(test6_c1, mqttsas_topic, (int)strlen("TERMINATE"), "TERMINATE", 0, 0, NULL, NULL);
data/paho.mqtt.c-1.3.5/test/test2.c:99: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).
					options.haconnections[options.hacount] = malloc(strlen(tok) + 1);
data/paho.mqtt.c-1.3.5/test/test2.c:155: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test2.c:158: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test2.c:158: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test2.c:374:4:  [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(100000L);
data/paho.mqtt.c-1.3.5/test/test2.c:384:5:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test2.c:472:4:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test2.c:566:4:  [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(100000L);
data/paho.mqtt.c-1.3.5/test/test2.c:576:5:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test2.c:595:5:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test3.c:189: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).
					options.haconnections[options.hacount] = malloc(strlen(tok) + 1);
data/paho.mqtt.c-1.3.5/test/test3.c:283: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test3.c:286: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test3.c:286: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test3.c:526:4:  [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(100000L);
data/paho.mqtt.c-1.3.5/test/test3.c:536:5:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test3.c:555:5:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test3.c:1589:2:  [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(identity, "id", max_identity_len);
data/paho.mqtt.c-1.3.5/test/test4.c:139: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test4.c:142: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test4.c:142: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test4.c:406:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:476: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).
	opts.binarypwd.len = (int)strlen(opts.binarypwd.data);
data/paho.mqtt.c-1.3.5/test/test4.c:500:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:711:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:900:4:  [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(1000L);
data/paho.mqtt.c-1.3.5/test/test4.c:983:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1088:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1109:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1122:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1304:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1321:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1358:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1407: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(5000000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1428:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1584:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1612:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1640:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1668:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1710: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(10000L);
data/paho.mqtt.c-1.3.5/test/test4.c:1722: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(10000L);
data/paho.mqtt.c-1.3.5/test/test45.c:144: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test45.c:147: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test45.c:147: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test45.c:161:2:  [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(milliseconds*1000);
data/paho.mqtt.c-1.3.5/test/test45.c:394: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).
		property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test45.c:396: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).
		property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test45.c:416: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).
		property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test45.c:418: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).
		property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test45.c:453: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test45.c:455: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test45.c:559: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test45.c:561: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test45.c:646: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).
	opts.binarypwd.len = (int)strlen(opts.binarypwd.data);
data/paho.mqtt.c-1.3.5/test/test45.c:959: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).
		property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test45.c:961: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).
		property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test5.c:247: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test5.c:250: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test5.c:250: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test5.c:430: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(100000L);
data/paho.mqtt.c-1.3.5/test/test5.c:441:4:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test5.c:462:4:  [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(1000000L);
data/paho.mqtt.c-1.3.5/test/test5.c:723: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:829: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:839: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:936: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1034: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1143:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1258: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1268: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1362: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1391: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1485: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1583: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1593: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1697: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1726: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1830: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1859: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:1951: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:2058: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:2322: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(1000L);
data/paho.mqtt.c-1.3.5/test/test5.c:2333: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(1000L);
data/paho.mqtt.c-1.3.5/test/test5.c:2368:2:  [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(identity, "id", max_identity_len);
data/paho.mqtt.c-1.3.5/test/test5.c:2431: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:2441: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:2542: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:2552: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(10000L);
data/paho.mqtt.c-1.3.5/test/test5.c:2663: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(10000L);
data/paho.mqtt.c-1.3.5/test/test6.c:125:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					opts.connections[opts.connection_count] = malloc(strlen(tok)+1);
data/paho.mqtt.c-1.3.5/test/test6.c:191: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test6.c:193: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(&msg_buf[strlen(msg_buf)], "%s ", opts.clientid);
data/paho.mqtt.c-1.3.5/test/test6.c:196: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test6.c:196: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test6.c:208:2:  [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(milliseconds*1000);
data/paho.mqtt.c-1.3.5/test/test6.c:308: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).
																					 strlen(wait_message)) == 0)
data/paho.mqtt.c-1.3.5/test/test6.c:315: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).
																						strlen(wait_message2)) == 0)
data/paho.mqtt.c-1.3.5/test/test6.c:336: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).
	rc = MQTTAsync_send(control_client, pub_topic, (int)strlen(buf),
data/paho.mqtt.c-1.3.5/test/test6.c:655: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).
		rc = MQTTAsync_send(client, opts.topic, (int)(strlen(payload)+1), payload,
data/paho.mqtt.c-1.3.5/test/test6.c:664: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).
			rc = MQTTAsync_send(client, opts.topic, (int)(strlen(payload)+1), payload,
data/paho.mqtt.c-1.3.5/test/test6.c:712: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).
		rc = MQTTAsync_send(client, opts.topic, (int)(strlen(payload)+1), payload,
data/paho.mqtt.c-1.3.5/test/test6.c:722: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).
			rc = MQTTAsync_send(client, opts.topic, (int)(strlen(payload)+1), payload,
data/paho.mqtt.c-1.3.5/test/test8.c:115: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test8.c:118: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test8.c:118: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test8.c:378:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test8.c:468:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test8.c:677:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test8.c:864:4:  [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(1000L);
data/paho.mqtt.c-1.3.5/test/test8.c:947:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test8.c:1009:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test8.c:1071:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test9.c:119: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test9.c:122: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test9.c:122: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test9.c:135:2:  [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(milliseconds*1000);
data/paho.mqtt.c-1.3.5/test/test9.c:370: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test9.c:531: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).
	  pubmsg.payloadlen = (int)strlen(pubmsg.payload) + 1;
data/paho.mqtt.c-1.3.5/test/test9.c:630: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test9.c:797: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test9.c:900: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test9.c:1062: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test9.c:1158: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test9.c:1321: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test9.c:1417: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test9.c:1577: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test9.c:1702: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).
	opts.will->payload.len = (int)strlen(opts.will->payload.data) + 1;
data/paho.mqtt.c-1.3.5/test/test9.c:1739: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test9.c:1836: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test9.c:1961: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).
	opts.will->payload.len = (int)strlen(opts.will->payload.data) + 1;
data/paho.mqtt.c-1.3.5/test/test9.c:2168: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test9.c:2229: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test9.c:2356: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test9.c:2564: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test9.c:2613: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test95.c:120: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test95.c:123: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test95.c:123: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test95.c:136:2:  [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(milliseconds*1000);
data/paho.mqtt.c-1.3.5/test/test95.c:425: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).
		pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test95.c:564: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).
	property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test95.c:566: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).
	property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test95.c:610: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).
		pubmsg.payloadlen = (int)strlen(pubmsg.payload) + 1;
data/paho.mqtt.c-1.3.5/test/test95.c:617: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).
		property.value.data.len = (int)strlen(property.value.data.data);
data/paho.mqtt.c-1.3.5/test/test95.c:619: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).
		property.value.value.len = (int)strlen(property.value.value.data);
data/paho.mqtt.c-1.3.5/test/test95.c:752: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test95.c:925: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test95.c:1024: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test95.c:1195: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test95.c:1292: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test95.c:1464: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test95.c:1560: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test95.c:1730: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test95.c:1861: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).
	opts.will->payload.len = (int)strlen(opts.will->payload.data) + 1;
data/paho.mqtt.c-1.3.5/test/test95.c:1901: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).
	  pubmsg.payloadlen = (int)(strlen(pubmsg.payload) + 1);
data/paho.mqtt.c-1.3.5/test/test95.c:1998: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).
	pubmsg.payloadlen = (int)strlen(pubmsg.payload);
data/paho.mqtt.c-1.3.5/test/test95.c:2128: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).
	opts.will->payload.len = (int)strlen(opts.will->payload.data) + 1;
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:98: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).
					options.haconnections[options.hacount] = malloc(strlen(tok) + 1);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:154: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:157: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:157: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_connect_destroy.c:170:2:  [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(milliseconds*1000);
data/paho.mqtt.c-1.3.5/test/test_issue373.c:123: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test_issue373.c:126: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test_issue373.c:126: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf),
data/paho.mqtt.c-1.3.5/test/test_issue373.c:139:2:  [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(milliseconds*1000);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:111: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).
					options.haconnections[options.hacount] = malloc(strlen(tok) + 1);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:157: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:160: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:160: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:446:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test_mqtt4async.c:580:4:  [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(10000L);
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:111: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).
					options.haconnections[options.hacount] = malloc(strlen(tok) + 1);
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:157: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:160: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_mqtt4sync.c:160: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:110: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).
                    options.haconnections[options.hacount] = malloc(strlen(tok) + 1);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:208: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).
    sprintf(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:211: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).
    vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/test_sync_session_present.c:211:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/thread.c:104: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(&msg_buf[strlen(msg_buf)], ".%.3hu ", ts.millitm);
data/paho.mqtt.c-1.3.5/test/thread.c:107: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);
data/paho.mqtt.c-1.3.5/test/thread.c:107: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).
	vsnprintf(&msg_buf[strlen(msg_buf)], sizeof(msg_buf) - strlen(msg_buf), format, args);

ANALYSIS SUMMARY:

Hits = 1189
Lines analyzed = 59914 in approximately 1.66 seconds (36040 lines/second)
Physical Source Lines of Code (SLOC) = 42746
Hits@level = [0] 651 [1] 488 [2] 421 [3]  21 [4] 259 [5]   0
Hits@level+ = [0+] 1840 [1+] 1189 [2+] 701 [3+] 280 [4+] 259 [5+]   0
Hits/KSLOC@level+ = [0+] 43.045 [1+] 27.8155 [2+] 16.3992 [3+] 6.55032 [4+] 6.05905 [5+]   0
Dot directories skipped = 3 (--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.