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/belle-sip-4.4.0+dfsg/build/android/config.h
Examining data/belle-sip-4.4.0+dfsg/build/wp8/belle-sip-tester-wp8/belle-sip-tester-native/belle-sip-tester-native.cpp
Examining data/belle-sip-4.4.0+dfsg/build/wp8/belle-sip-tester-wp8/belle-sip-tester-native/belle-sip-tester-native.h
Examining data/belle-sip-4.4.0+dfsg/include/MSVC/inttypes.h
Examining data/belle-sip-4.4.0+dfsg/include/MSVC/stdint.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/auth-helper.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/belle-sdp.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/belle-sip.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/bodyhandler.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/defs.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/dialog.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/dict.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/generic-uri.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/headers.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/http-listener.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/http-message.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/http-provider.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/list.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/listener.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/listeningpoint.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/mainloop.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/mdns_register.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/message.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/object.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/parameters.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/provider.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/refresher.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/resolver.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/sip-uri.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/sipstack.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/transaction.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/types.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/utils.h
Examining data/belle-sip-4.4.0+dfsg/include/belle-sip/wakelock.h
Examining data/belle-sip-4.4.0+dfsg/src/auth_event.c
Examining data/belle-sip-4.4.0+dfsg/src/auth_helper.c
Examining data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c
Examining data/belle-sip-4.4.0+dfsg/src/belle_sip_dict.c
Examining data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c
Examining data/belle-sip-4.4.0+dfsg/src/belle_sip_internal.h
Examining data/belle-sip-4.4.0+dfsg/src/belle_sip_loop.c
Examining data/belle-sip-4.4.0+dfsg/src/belle_sip_mdns_register.c
Examining data/belle-sip-4.4.0+dfsg/src/belle_sip_object.c
Examining data/belle-sip-4.4.0+dfsg/src/belle_sip_parameters.c
Examining data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c
Examining data/belle-sip-4.4.0+dfsg/src/belle_sip_uri_impl.c
Examining data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c
Examining data/belle-sip-4.4.0+dfsg/src/bodyhandler.c
Examining data/belle-sip-4.4.0+dfsg/src/channel.c
Examining data/belle-sip-4.4.0+dfsg/src/channel.h
Examining data/belle-sip-4.4.0+dfsg/src/clock_gettime.c
Examining data/belle-sip-4.4.0+dfsg/src/clock_gettime.h
Examining data/belle-sip-4.4.0+dfsg/src/cpp_utils.cc
Examining data/belle-sip-4.4.0+dfsg/src/dialog.c
Examining data/belle-sip-4.4.0+dfsg/src/dns.c
Examining data/belle-sip-4.4.0+dfsg/src/dns.h
Examining data/belle-sip-4.4.0+dfsg/src/generic-uri.c
Examining data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpLexer.c
Examining data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpLexer.h
Examining data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c
Examining data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.h
Examining data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageLexer.c
Examining data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageLexer.h
Examining data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c
Examining data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.h
Examining data/belle-sip-4.4.0+dfsg/src/http-listener.c
Examining data/belle-sip-4.4.0+dfsg/src/http-message.c
Examining data/belle-sip-4.4.0+dfsg/src/http-provider.c
Examining data/belle-sip-4.4.0+dfsg/src/ict.c
Examining data/belle-sip-4.4.0+dfsg/src/ist.c
Examining data/belle-sip-4.4.0+dfsg/src/listeningpoint.c
Examining data/belle-sip-4.4.0+dfsg/src/listeningpoint_internal.h
Examining data/belle-sip-4.4.0+dfsg/src/md5.c
Examining data/belle-sip-4.4.0+dfsg/src/md5.h
Examining data/belle-sip-4.4.0+dfsg/src/message.c
Examining data/belle-sip-4.4.0+dfsg/src/nict.c
Examining data/belle-sip-4.4.0+dfsg/src/nist.c
Examining data/belle-sip-4.4.0+dfsg/src/object++.cc
Examining data/belle-sip-4.4.0+dfsg/src/parserutils.h
Examining data/belle-sip-4.4.0+dfsg/src/port.c
Examining data/belle-sip-4.4.0+dfsg/src/port.h
Examining data/belle-sip-4.4.0+dfsg/src/provider.c
Examining data/belle-sip-4.4.0+dfsg/src/refresher.c
Examining data/belle-sip-4.4.0+dfsg/src/siplistener.c
Examining data/belle-sip-4.4.0+dfsg/src/sipstack.c
Examining data/belle-sip-4.4.0+dfsg/src/transaction.c
Examining data/belle-sip-4.4.0+dfsg/src/transports/stream_channel.c
Examining data/belle-sip-4.4.0+dfsg/src/transports/stream_channel.h
Examining data/belle-sip-4.4.0+dfsg/src/transports/stream_listeningpoint.c
Examining data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c
Examining data/belle-sip-4.4.0+dfsg/src/transports/tls_listeningpoint.c
Examining data/belle-sip-4.4.0+dfsg/src/transports/tunnel_channel.c
Examining data/belle-sip-4.4.0+dfsg/src/transports/tunnel_listeningpoint.c
Examining data/belle-sip-4.4.0+dfsg/src/transports/tunnel_wrapper.cc
Examining data/belle-sip-4.4.0+dfsg/src/transports/udp_channel.c
Examining data/belle-sip-4.4.0+dfsg/src/transports/udp_listeningpoint.c
Examining data/belle-sip-4.4.0+dfsg/src/wakelock.c
Examining data/belle-sip-4.4.0+dfsg/src/wakelock_internal.h
Examining data/belle-sip-4.4.0+dfsg/tester/auth_helper_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_generic_uri_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_http_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sdp_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_base_uri_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_core_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_dialog_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_fast_uri_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_headers_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_refresher_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_resolver_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester.h
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.cpp
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.h
Examining data/belle-sip-4.4.0+dfsg/tester/belle_sip_uri_tester.c
Examining data/belle-sip-4.4.0+dfsg/tester/cast_test.c
Examining data/belle-sip-4.4.0+dfsg/tester/describe.c
Examining data/belle-sip-4.4.0+dfsg/tester/get.c
Examining data/belle-sip-4.4.0+dfsg/tester/object_tester.cc
Examining data/belle-sip-4.4.0+dfsg/tester/parse.c
Examining data/belle-sip-4.4.0+dfsg/tester/register_tester.h
Examining data/belle-sip-4.4.0+dfsg/tester/resolve.c
Examining data/belle-sip-4.4.0+dfsg/tools/carddav_http_query.c

FINAL RESULTS:

data/belle-sip-4.4.0+dfsg/build/wp8/belle-sip-tester-wp8/belle-sip-tester-native/belle-sip-tester-native.cpp:21: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((char *)str.c_str(), MAX_TRACE_SIZE, fmt, args);
data/belle-sip-4.4.0+dfsg/include/belle-sip/utils.h:67:64:  [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.
#define BELLE_SIP_CHECK_FORMAT_ARGS(m,n) __attribute__((format(printf,m,n)))
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:1790:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(out,BELLE_SIP_REPLACES ": ");
data/belle-sip-4.4.0+dfsg/src/belle_sip_internal.h:411:3:  [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(l_str_value,16,FORMAT_(type),value);\
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:51:8:  [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.
	ret = vsnprintf(buff + *offset, buff_size - *offset, fmt, args);
data/belle-sip-4.4.0+dfsg/src/channel.c:1156: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(logbuf+limit,truncate_msg);
data/belle-sip-4.4.0+dfsg/src/dns.c:282:26:  [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.
	do { if (DNS_DEBUG > 0) fprintf(stderr, fmt "%.1s", __func__, __LINE__, __VA_ARGS__); } while (0)
data/belle-sip-4.4.0+dfsg/src/dns.c:9094:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/belle-sip-4.4.0+dfsg/src/port.h:60: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/belle-sip-4.4.0+dfsg/src/port.h:60: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/belle-sip-4.4.0+dfsg/src/port.h:61:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf
data/belle-sip-4.4.0+dfsg/src/provider.c:431:3:  [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(branchid,sizeof(branchid)-1,BELLE_SIP_BRANCH_MAGIC_COOKIE ".%s",token);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_headers_tester.c:997:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(format, "name" "(" "#actual" ", " "#expected" ") - " "Expected %s but was %s.\n", cexpected, cactual);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:428:37:  [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).
		channel->input_stream.write_ptr = strcpy(channel->input_stream.write_ptr,prelude);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:433:36:  [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).
	channel->input_stream.write_ptr = strcpy(channel->input_stream.write_ptr,raw_message);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:775:2:  [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(raw_message,sizeof(raw_message),raw_message_base,branch);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:1017:36:  [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).
	channel->input_stream.write_ptr = strcpy(channel->input_stream.write_ptr,raw_message);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:1080:36:  [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).
	channel->input_stream.write_ptr = strcpy(channel->input_stream.write_ptr,raw_message);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester.c:76:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(lev == BELLE_SIP_LOG_ERROR ? stderr : stdout, fmt, args);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester.c:81:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(lev == BELLE_SIP_LOG_ERROR ? stderr : stdout, fmt, cap);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.cpp:44: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((char *)str.c_str(), MAX_TRACE_SIZE, fmt, args);
data/belle-sip-4.4.0+dfsg/src/dns.c:482:20:  [3] (random) random:
  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.
#define DNS_RANDOM	random
data/belle-sip-4.4.0+dfsg/src/dns.c:10043:21:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while (-1 != (ch = getopt(argc, argv, "q:t:c:n:l:z:s:vVh"))) {
data/belle-sip-4.4.0+dfsg/tester/belle_sip_headers_tester.c:1176:7:  [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.
	tz = getenv("TZ");
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester.c:224:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *env_domain=getenv("TEST_DOMAIN");
data/belle-sip-4.4.0+dfsg/build/wp8/belle-sip-tester-wp8/belle-sip-tester-native/belle-sip-tester-native.cpp:18:3:  [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 wstr[MAX_TRACE_SIZE];
data/belle-sip-4.4.0+dfsg/build/wp8/belle-sip-tester-wp8/belle-sip-tester-native/belle-sip-tester-native.cpp:54: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 csuitename[MAX_SUITE_NAME_SIZE] = { 0 };
data/belle-sip-4.4.0+dfsg/build/wp8/belle-sip-tester-wp8/belle-sip-tester-native/belle-sip-tester-native.cpp:55: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 ccasename[MAX_SUITE_NAME_SIZE] = { 0 };
data/belle-sip-4.4.0+dfsg/build/wp8/belle-sip-tester-wp8/belle-sip-tester-native/belle-sip-tester-native.cpp: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 cname[MAX_SUITE_NAME_SIZE] = { 0 };
data/belle-sip-4.4.0+dfsg/build/wp8/belle-sip-tester-wp8/belle-sip-tester-native/belle-sip-tester-native.cpp:87: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 wcname[MAX_SUITE_NAME_SIZE];
data/belle-sip-4.4.0+dfsg/build/wp8/belle-sip-tester-wp8/belle-sip-tester-native/belle-sip-tester-native.cpp:95: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 csuitename[MAX_SUITE_NAME_SIZE] = { 0 };
data/belle-sip-4.4.0+dfsg/build/wp8/belle-sip-tester-wp8/belle-sip-tester-native/belle-sip-tester-native.cpp:98: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 wcname[MAX_SUITE_NAME_SIZE];
data/belle-sip-4.4.0+dfsg/include/belle-sip/auth-helper.h:95:114:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
BELLESIP_EXPORT int belle_sip_auth_helper_compute_ha1(const char* userid,const char* realm,const char* password, char ha1[33]);
data/belle-sip-4.4.0+dfsg/include/belle-sip/auth-helper.h:107:91:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
BELLESIP_EXPORT int belle_sip_auth_helper_compute_ha2(const char* method,const char* uri, char ha2[33]);
data/belle-sip-4.4.0+dfsg/include/belle-sip/auth-helper.h:120:112:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
BELLESIP_EXPORT int belle_sip_auth_helper_compute_response(const char* ha1,const char* nonce, const char* ha2, char response[33]);
data/belle-sip-4.4.0+dfsg/include/belle-sip/auth-helper.h:139: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.
													, char response[33]);
data/belle-sip-4.4.0+dfsg/include/belle-sip/headers.h:488:132:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
BELLESIP_EXPORT int belle_sip_header_authorization_get_nonce_count_as_string(const belle_sip_header_authorization_t* authorization,char nounce_count[9]);
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:121: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(ha1 + di * 2, "%02x", out[di]);
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:127:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_ha1(const char *userid, const char *realm, const char *password, char ha1[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:127:65:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_ha1(const char *userid, const char *realm, const char *password, char ha1[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:127:84:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_ha1(const char *userid, const char *realm, const char *password, char ha1[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:127:100:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_ha1(const char *userid, const char *realm, const char *password, char ha1[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:149: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(ha2 + di * 2, "%02x", out[di]);
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:154:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_ha2(const char *method, const char *uri, char ha2[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:154:65:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_ha2(const char *method, const char *uri, char ha2[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:154:76:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_ha2(const char *method, const char *uri, char ha2[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:176: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(response + di * 2, "%02x", out[di]);
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:182:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_response(const char *ha1, const char *nonce, const char *ha2, char response[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:182:67:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_response(const char *ha1, const char *nonce, const char *ha2, char response[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:182:86:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_response(const char *ha1, const char *nonce, const char *ha2, char response[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:182:97:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_auth_helper_compute_response(const char *ha1, const char *nonce, const char *ha2, char response[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:205: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 nounce_count_as_string[9];
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:216: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(response + di * 2, "%02x", out[di]);
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:226:72:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                                    , const char* ha2, char response[33]) {
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:242: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 ha2[MAX_RESPONSE_SIZE];
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:243: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 response[MAX_RESPONSE_SIZE];
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:244: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 cnonce[BELLE_SIP_CNONCE_LENGTH + 1];
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:918:62:  [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).
			belle_sdp_mime_parameter_set_channel_count(mime_parameter,atoi(chans));
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:920:52:  [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).
		belle_sdp_mime_parameter_set_rate(mime_parameter,atoi(p));
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:973:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	ptime?ptime_as_int=atoi(ptime):-1;
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:975: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).
	max_ptime?max_ptime_as_int=atoi(max_ptime):-1;
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:1008: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 atribute_value [MAX_FMTP_LENGTH];
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:1016:17:  [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).
		current_ptime=atoi(belle_sdp_media_description_get_attribute_value(media_description,"ptime"));
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:1021:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		current_max_ptime=atoi(belle_sdp_media_description_get_attribute_value(media_description,"maxptime"));
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:1058: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  ptime[12];
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:1067: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  max_ptime[12];
data/belle-sip-4.4.0+dfsg/src/belle_sip_dict.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[30];
data/belle-sip-4.4.0+dfsg/src/belle_sip_dict.c:63:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		}else ret=atoi(str);
data/belle-sip-4.4.0+dfsg/src/belle_sip_dict.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[30];
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:382:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char pad[2];
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:528:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[BELLE_SIP_TAG_LENGTH];
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:592:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[8];
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:656:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[8];
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:1118:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char pad[3];
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:1389: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 nonce_count[10];
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:1448:116:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int belle_sip_header_authorization_get_nonce_count_as_string(const belle_sip_header_authorization_t* authorization,char nounce_count[9]) {
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:1799:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[BELLE_SIP_MAX_TO_STRING_SIZE];
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:1856: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 tmp1[4] ={0};
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:1857: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 tmp2[17] ={0};
data/belle-sip-4.4.0+dfsg/src/belle_sip_internal.h:389: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).
#define ATO_int(value) atoi(value)
data/belle-sip-4.4.0+dfsg/src/belle_sip_internal.h:406: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 l_str_value[16];\
data/belle-sip-4.4.0+dfsg/src/belle_sip_internal.h:793: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 to_tag[8];
data/belle-sip-4.4.0+dfsg/src/belle_sip_loop.c:550:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/belle-sip-4.4.0+dfsg/src/belle_sip_mdns_register.c:138: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 number[10];
data/belle-sip-4.4.0+dfsg/src/belle_sip_object.c:548: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+initial_offset,p+initial_offset,*offset-initial_offset);
data/belle-sip-4.4.0+dfsg/src/belle_sip_object.c:606: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 buff[BELLE_SIP_MAX_TO_STRING_SIZE];
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:378: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 ip[64];
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:379: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 serv[10];
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:608: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 host[NI_MAXHOST + 1];
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:678:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char host[NI_MAXHOST + 1];
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:729: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 serv[10];
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:923: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(prio_value, prio_buf, prio_size);
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:924: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(weight_value, weight_buf, weight_size);
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:925: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(ttl_value, ttl_buf, ttl_size);
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:931: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).
			prio = atoi(prio_value);
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:932:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			weight = atoi(weight_value);
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:933:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ttl = atoi(ttl_value);
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:1002: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 fullname[512];
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:1661: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(src,res->ai_addr,MIN((size_t)*srclen,res->ai_addrlen));
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:202:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char rand_buffer[4];
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:554: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 output_buff[BELLE_SIP_MAX_TO_STRING_SIZE];
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:575: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 szDirPath[1024];
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:577: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 wszDirPath[1024];
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:596: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 szFilePath[1024];
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:598: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 filename[512];
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:210: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(obj->buffer,orig->buffer,orig->base.expected_size);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:219: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(obj->buffer+offset,buf,size);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:227: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(buf,obj->buffer+offset,to_send);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:428: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(obj->buffer,buffer,bufsize);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:451: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(dst->data, src->data, src->size);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:487: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(*output, buffer->data, bufferized_size);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:488: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(*output+bufferized_size, input, *size-bufferized_size);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:494: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(buffer->data, next_buffer_input, buffer->index);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:500: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(buffer->data+buffer->index, input, *size);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:909: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(obj_multipart->buffer + offset, buffer, size);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:949: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(buffer+offsetSize, current_part->headerStringBuffer, headersSize);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:968: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(buffer + *size, "\r\n--", 4);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:969: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(buffer + *size + 4, obj_multipart->boundary, boundary_len);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:970: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(buffer + *size + 4 + boundary_len, "--\r\n", 4);
data/belle-sip-4.4.0+dfsg/src/channel.c:169: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 received[NI_MAXHOST];
data/belle-sip-4.4.0+dfsg/src/channel.c:170: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 rport[NI_MAXSERV];
data/belle-sip-4.4.0+dfsg/src/channel.c:198: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).
			int rport_int=atoi(rport);
data/belle-sip-4.4.0+dfsg/src/channel.c:199:60:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if (rport_int!=port) belle_sip_header_via_set_rport(via,atoi(rport));
data/belle-sip-4.4.0+dfsg/src/channel.c:238: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 method[17]={0};
data/belle-sip-4.4.0+dfsg/src/channel.c:240: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 sip_version[10]={0};
data/belle-sip-4.4.0+dfsg/src/channel.c:782: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 remoteip[64];
data/belle-sip-4.4.0+dfsg/src/channel.c:1097: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(obj->ewouldblock_buffer,buffer,size);
data/belle-sip-4.4.0+dfsg/src/channel.c:1129: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 truncate_msg[128]={0};
data/belle-sip-4.4.0+dfsg/src/channel.c:1271: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[belle_sip_send_network_buffer_size];
data/belle-sip-4.4.0+dfsg/src/channel.c:1441: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[NI_MAXHOST];
data/belle-sip-4.4.0+dfsg/src/channel.c:1442: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 serv[NI_MAXSERV];
data/belle-sip-4.4.0+dfsg/src/channel.c:1456: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).
			obj->local_port=atoi(serv);
data/belle-sip-4.4.0+dfsg/src/channel.c:1568: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 ip[64];
data/belle-sip-4.4.0+dfsg/src/channel.h: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 buff[belle_sip_network_buffer_size];
data/belle-sip-4.4.0+dfsg/src/dialog.c:472: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 header[50];
data/belle-sip-4.4.0+dfsg/src/dns.c:264:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define dns_static_assert(cond, msg) extern char DNS_PP_XPASTE(dns_assert_, __LINE__)[sizeof (int[1 - 2*!(cond)])]
data/belle-sip-4.4.0+dfsg/src/dns.c:536: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(tea->key, key, sizeof tea->key);
data/belle-sip-4.4.0+dfsg/src/dns.c:699:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char sbox[256] =
data/belle-sip-4.4.0+dfsg/src/dns.c:795: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(dst, src, n);
data/belle-sip-4.4.0+dfsg/src/dns.c:934: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 a_path[DNS_SUNPATHMAX + 1], b_path[sizeof a_path];
data/belle-sip-4.4.0+dfsg/src/dns.c:1236: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 mode_cloexec[32];
data/belle-sip-4.4.0+dfsg/src/dns.c:1248:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(fp = fopen(path, mode_cloexec)))
data/belle-sip-4.4.0+dfsg/src/dns.c:1253:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(fp = fopen(path, mode_cloexec))) {
data/belle-sip-4.4.0+dfsg/src/dns.c:1256:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (!(fp = fopen(path, mode)))
data/belle-sip-4.4.0+dfsg/src/dns.c:1364: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(b->p, src, n);
data/belle-sip-4.4.0+dfsg/src/dns.c:1679:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(P->data, P0->data, P->end);
data/belle-sip-4.4.0+dfsg/src/dns.c:1899: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 pretty[sizeof any * 2];
data/belle-sip-4.4.0+dfsg/src/dns.c:2051: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 qname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:2091: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(dst, &data[src], DNS_PP_MIN(lim, len));
data/belle-sip-4.4.0+dfsg/src/dns.c:2196:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			((char *)dst)[DNS_PP_MIN(len, lim - 1)]	= '\0';
data/belle-sip-4.4.0+dfsg/src/dns.c:2209:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	if (((const char *)src)[len - 1] != '.') {
data/belle-sip-4.4.0+dfsg/src/dns.c:2211:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			((char *)dst)[len]	= '.';
data/belle-sip-4.4.0+dfsg/src/dns.c:2216:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		((char *)dst)[DNS_PP_MIN(lim - 1, len)]	= '\0';
data/belle-sip-4.4.0+dfsg/src/dns.c:2241:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		((char *)dst)[DNS_PP_MIN(lim - 1, len)]	= '\0';
data/belle-sip-4.4.0+dfsg/src/dns.c:2293:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		struct { unsigned char label[DNS_D_MAXLABEL + 1]; size_t len; unsigned short p, x, y; } a, b;
data/belle-sip-4.4.0+dfsg/src/dns.c:2390: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.
						((unsigned char *)dst)[dstp]	= '.';
data/belle-sip-4.4.0+dfsg/src/dns.c:2397: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.
					((unsigned char *)dst)[DNS_PP_MIN(dstp, lim - 1)]	= '\0';
data/belle-sip-4.4.0+dfsg/src/dns.c:2408: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 *)dst)[dstp], &P->data[src], DNS_PP_MIN(len, lim - dstp));
data/belle-sip-4.4.0+dfsg/src/dns.c:2408:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				memcpy(&((unsigned char *)dst)[dstp], &P->data[src], DNS_PP_MIN(len, lim - dstp));
data/belle-sip-4.4.0+dfsg/src/dns.c:2414: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.
				((unsigned char *)dst)[dstp]	= '.';
data/belle-sip-4.4.0+dfsg/src/dns.c:2443:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		((unsigned char *)dst)[DNS_PP_MIN(dstp, lim - 1)]	= '\0';
data/belle-sip-4.4.0+dfsg/src/dns.c:2450:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		((unsigned char *)dst)[DNS_PP_MIN(dstp, lim - 1)]	= '\0';
data/belle-sip-4.4.0+dfsg/src/dns.c:2477: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 host[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:2514:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char dn[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:2669: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 host0[DNS_D_MAXNAME + 1], host1[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:2740: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 dn[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:3070: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 addr[INET_ADDRSTRLEN + 1]	= "0.0.0.0";
data/belle-sip-4.4.0+dfsg/src/dns.c:3082: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(aaaa->addr.s6_addr, &P->data[rr->rd.p], sizeof aaaa->addr.s6_addr);
data/belle-sip-4.4.0+dfsg/src/dns.c:3095:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&P->data[P->end], aaaa->addr.s6_addr, sizeof aaaa->addr.s6_addr);
data/belle-sip-4.4.0+dfsg/src/dns.c:3117:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char hex[16] = "0123456789abcdef";
data/belle-sip-4.4.0+dfsg/src/dns.c:3139: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 addr[INET6_ADDRSTRLEN + 1]	= "::";
data/belle-sip-4.4.0+dfsg/src/dns.c:3746: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(fp->digest.sha1, &P->data[p], sizeof fp->digest.sha1);
data/belle-sip-4.4.0+dfsg/src/dns.c:3772: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->data[p], fp->digest.sha1, sizeof fp->digest.sha1);
data/belle-sip-4.4.0+dfsg/src/dns.c:3807:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char hex[16] = "0123456789abcdef";
data/belle-sip-4.4.0+dfsg/src/dns.c:3869: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(&dst.b[dst.p], &src.b[src.p], n);
data/belle-sip-4.4.0+dfsg/src/dns.c:3912: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(&dst.b[dst.p], &src.b[src.p], n);
data/belle-sip-4.4.0+dfsg/src/dns.c:4026: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(any->rdata.data, &P->data[rr->rd.p], rr->rd.len);
data/belle-sip-4.4.0+dfsg/src/dns.c:4045:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&P->data[P->end], any->rdata.data, any->rdata.len);
data/belle-sip-4.4.0+dfsg/src/dns.c:4106: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 host[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:4107: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 arpa[73 + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:4231: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 word[DNS_PP_MAX(INET6_ADDRSTRLEN, DNS_D_MAXNAME) + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:4282:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						memcpy(p, "0.0.", 4);
data/belle-sip-4.4.0+dfsg/src/dns.c:4323: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 addr[INET6_ADDRSTRLEN + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:4357: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(&ent->addr.a6, addr, sizeof ent->addr.a6);
data/belle-sip-4.4.0+dfsg/src/dns.c:4363: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(&ent->addr.a4, addr, sizeof ent->addr.a4);
data/belle-sip-4.4.0+dfsg/src/dns.c:4396: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 qname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:4662:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	struct { char buf[128], *p; } addr = { "", addr.buf };
data/belle-sip-4.4.0+dfsg/src/dns.c:4700: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(ss, ai->ai_addr, ai->ai_addrlen);
data/belle-sip-4.4.0+dfsg/src/dns.c:4710: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 words[6][DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:4939: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(&resconf->nameserver[i], (struct sockaddr_storage *)&rs->nsaddr_list[i], sizeof(struct sockaddr_in));
data/belle-sip-4.4.0+dfsg/src/dns.c:4970: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(resconf->search[0], pFixedInfo->DomainName, sizeof pFixedInfo->DomainName);
data/belle-sip-4.4.0+dfsg/src/dns.c:4985: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 dns[PROP_VALUE_MAX];
data/belle-sip-4.4.0+dfsg/src/dns.c:4986: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 prop_name[PROP_NAME_MAX];
data/belle-sip-4.4.0+dfsg/src/dns.c:5059:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char ip[32];
data/belle-sip-4.4.0+dfsg/src/dns.c:5068: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(&resconf->nameserver[write_index++],&addresses[i],sizeof(union res_sockaddr_union));
data/belle-sip-4.4.0+dfsg/src/dns.c:5071: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(&resconf->nameserver[write_index++],&addresses[i],sizeof(union res_sockaddr_union));
data/belle-sip-4.4.0+dfsg/src/dns.c:5082: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 *token[16];
data/belle-sip-4.4.0+dfsg/src/dns.c:5084: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[1024], *tp, *cp;
data/belle-sip-4.4.0+dfsg/src/dns.c:5313:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char map[DNS_NSSCONF_LAST] = {
data/belle-sip-4.4.0+dfsg/src/dns.c:5329:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *const map[DNS_NSSCONF_LAST] = {
data/belle-sip-4.4.0+dfsg/src/dns.c:5349: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 lookup[sizeof resconf->lookup] = "", *lp;
data/belle-sip-4.4.0+dfsg/src/dns.c:5656:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		((char *)dst)[DNS_PP_MIN(lim - 1, len)]	= '\0';
data/belle-sip-4.4.0+dfsg/src/dns.c:5667: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 addr[INET6_ADDRSTRLEN + 1]	= "[INVALID]";
data/belle-sip-4.4.0+dfsg/src/dns.c:5733: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 addr[INET6_ADDRSTRLEN + 1]	= "[INVALID]";
data/belle-sip-4.4.0+dfsg/src/dns.c:5750:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char zone[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:5862: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 addr[INET6_ADDRSTRLEN];
data/belle-sip-4.4.0+dfsg/src/dns.c:5949: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(&soa->addrs[i].ss, sa, dns_sa_len(sa));
data/belle-sip-4.4.0+dfsg/src/dns.c:5994: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(&tmp.sin, &resconf->nameserver[i], sizeof tmp.sin);
data/belle-sip-4.4.0+dfsg/src/dns.c:6109: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 zone[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:6180: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(addr, &soa->addrs[i].ss, dns_af_len(af));
data/belle-sip-4.4.0+dfsg/src/dns.c:6189: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 addr[INET6_ADDRSTRLEN];
data/belle-sip-4.4.0+dfsg/src/dns.c:6466: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 qname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:6553: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(&so->local, local, dns_sa_len(local));
data/belle-sip-4.4.0+dfsg/src/dns.c:6663:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	}else memcpy(&so->remote, host, dns_sa_len(host));
data/belle-sip-4.4.0+dfsg/src/dns.c:6689: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 qname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:7119: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 qname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:7396: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 qname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:7490: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 host[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:7491: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 name[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:7762: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 addr[INET_ADDRSTRLEN + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:7785:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char remote_sock[64];
data/belle-sip-4.4.0+dfsg/src/dns.c:8231: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 qname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:8247: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 cname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:8248: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 i_cname[DNS_D_MAXNAME + 1], g_cname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:8432: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(&sin.sin_addr, any, sizeof sin.sin_addr);
data/belle-sip-4.4.0+dfsg/src/dns.c:8441: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(&sin6.sin6_addr, any, sizeof sin6.sin6_addr);
data/belle-sip-4.4.0+dfsg/src/dns.c:8465:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(*ent)->ai_addr		= memcpy((unsigned char *)*ent + sizeof **ent, saddr, dns_sa_len(saddr));
data/belle-sip-4.4.0+dfsg/src/dns.c:8469:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		(*ent)->ai_canonname	= memcpy((unsigned char *)*ent + sizeof **ent + dns_sa_len(saddr), cname, clen + 1);
data/belle-sip-4.4.0+dfsg/src/dns.c:8498: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 qname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:8712: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 addr[DNS_PP_MAX(INET_ADDRSTRLEN, INET6_ADDRSTRLEN) + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:8782: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[16];
data/belle-sip-4.4.0+dfsg/src/dns.c:8817: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 sbuf[128];
data/belle-sip-4.4.0+dfsg/src/dns.c:8838: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[8];
data/belle-sip-4.4.0+dfsg/src/dns.c:8916: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 dns_opcodes[16][16] = {
data/belle-sip-4.4.0+dfsg/src/dns.c:8925:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char _tmp[48] = "";
data/belle-sip-4.4.0+dfsg/src/dns.c:8969: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 dns_rcodes[32][16] = {
data/belle-sip-4.4.0+dfsg/src/dns.c:9037: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.
		const char *path[8];
data/belle-sip-4.4.0+dfsg/src/dns.c:9055:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ln[sizeof tmpl];
data/belle-sip-4.4.0+dfsg/src/dns.c:9064: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(ln, tmpl, sizeof ln);
data/belle-sip-4.4.0+dfsg/src/dns.c:9130:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*dst + osize, src, len);
data/belle-sip-4.4.0+dfsg/src/dns.c:9138:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[1024];
data/belle-sip-4.4.0+dfsg/src/dns.c:9290: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 pretty[sizeof any * 2];
data/belle-sip-4.4.0+dfsg/src/dns.c:9372: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 name[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:9392:8:  [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).
		rp = atoi(argv[1]);
data/belle-sip-4.4.0+dfsg/src/dns.c:9399: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(pkt->data, src, len);
data/belle-sip-4.4.0+dfsg/src/dns.c:9487: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 qname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:9526: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[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:9541:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	hi	= (--argc > 0)? atoi(argv[argc]) : 8;
data/belle-sip-4.4.0+dfsg/src/dns.c:9542:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	lo	= (--argc > 0)? atoi(argv[argc]) : 0;
data/belle-sip-4.4.0+dfsg/src/dns.c:9560:16:  [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).
		n = 0xffff & atoi(argv[argc]);
data/belle-sip-4.4.0+dfsg/src/dns.c:9561:31:  [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).
		r = (--argc > 0)? (unsigned)atoi(argv[argc]) : dns_random();
data/belle-sip-4.4.0+dfsg/src/dns.c:9576:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char b[32];
data/belle-sip-4.4.0+dfsg/src/dns.c:9579: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).
	n	= (argc > 1)? atoi(argv[1]) : 32;
data/belle-sip-4.4.0+dfsg/src/dns.c:9604: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 host[INET6_ADDRSTRLEN + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:9617: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(&ss, &resconf()->nameserver[0], dns_sa_len(&resconf()->nameserver[0]));
data/belle-sip-4.4.0+dfsg/src/dns.c:9665: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 host[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.c:9772: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 pretty[512];
data/belle-sip-4.4.0+dfsg/src/dns.h:413: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 data[1];
data/belle-sip-4.4.0+dfsg/src/dns.h:422:75:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define dns_p_new(n)		(dns_p_init((struct dns_packet *)&(union { unsigned char b[dns_p_calcsize((n))]; struct dns_packet p; }){ { 0 } }, dns_p_calcsize((n))))
data/belle-sip-4.4.0+dfsg/src/dns.h:606: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 host[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.h:625: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 host[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.h:644: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 host[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.h:663: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 mname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.h:664: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 rname[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.h:682: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 host[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.h:706: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 target[DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.h:741:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char data[DNS_OPT_MINDATA];
data/belle-sip-4.4.0+dfsg/src/dns.h:778: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 sha1[20];
data/belle-sip-4.4.0+dfsg/src/dns.h:801:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char data[DNS_TXT_MINDATA];
data/belle-sip-4.4.0+dfsg/src/dns.h:886: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 search[4][DNS_D_MAXNAME + 1];
data/belle-sip-4.4.0+dfsg/src/dns.h:889: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 lookup[4 * (1 + (4 * 2))];
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:13064:111:  [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).
                                                                        belle_sdp_version_set_version(version,atoi((const char*)(v->getText(v))->chars));
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:14946:79:  [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).
                belle_sdp_bandwidth_set_value((SCOPE_TOP(bandwidth))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:15151:78:  [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).
                                         belle_sdp_time_set_start(time_value,atoi((const char*)(STRSTREAM->toStringTT(STRSTREAM, start_time89.start, start_time89.stop))
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:15153:77:  [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).
                                         belle_sdp_time_set_stop(time_value,atoi((const char*)(STRSTREAM->toStringTT(STRSTREAM, stop_time91.start, stop_time91.stop))
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:17857:123:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                		if (val.tree) belle_sdp_rtcp_xr_attribute_set_rcvr_rtt_max_size((SCOPE_TOP(rtcp_xr_attribute))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:18907:98:  [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).
        	            	belle_sdp_rtcp_fb_attribute_set_id((SCOPE_TOP(rtcp_fb_attribute))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:19757:109:  [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).
                		belle_sdp_rtcp_fb_attribute_set_trr_int((SCOPE_TOP(rtcp_fb_attribute))->current,(uint16_t)atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:22018:112:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                		if (val.tree) belle_sdp_rtcp_fb_attribute_set_smaxpr((SCOPE_TOP(rtcp_fb_attribute))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:23206:76:  [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).
                belle_sdp_media_set_media_port((SCOPE_TOP(media))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:23265:85:  [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).
            	            belle_sdp_media_set_port_count((SCOPE_TOP(media))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:23838:145:  [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).
                                                                                          ,(void*)((SCOPE_TOP(fmt))->is_number?(void*)(intptr_t)atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:27698:99:  [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).
            	                 				belle_sdp_connection_set_range((SCOPE_TOP(connection))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:27702:96:  [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).
            	                				belle_sdp_connection_set_ttl((SCOPE_TOP(connection))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sdpParser.c:27706:98:  [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).
            	                				belle_sdp_connection_set_range((SCOPE_TOP(connection))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:245863: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).
                ,atoi((char*)(STRSTREAM->toStringTT(STRSTREAM, status_code14.start, status_code14.stop))
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:246657: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).
                ,atoi((char*)(STRSTREAM->toStringTT(STRSTREAM, status_code20.start, status_code20.stop))
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:251791:107:  [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).
        	                        belle_sip_header_authorization_set_nonce_count(header_authorization_base,atoi((char*)nonce_count40
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:254034:103:  [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).
                belle_sip_header_retry_after_set_retry_after((SCOPE_TOP(header_retry_after))->current,atoi((const char*) 
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:257595:112:  [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).
                belle_sip_header_content_length_set_content_length((SCOPE_TOP(header_content_length))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:258584:88:  [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).
                belle_sip_header_cseq_set_seq_number((SCOPE_TOP(header_cseq))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:259486:91:  [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).
                belle_sip_header_expires_set_expires((SCOPE_TOP(header_expires))->current,atoi((const char *)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:260078:106:  [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).
                belle_sip_header_max_forwards_set_max_forwards((SCOPE_TOP(header_max_forwards))->current,atoi((const char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:268449:108:  [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).
                  belle_sip_header_session_expires_set_delta((SCOPE_TOP(header_session_expires))->current, atoi((const char *)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:270350:140:  [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).
            	                        belle_sip_header_authentication_info_set_nonce_count((SCOPE_TOP(header_authentication_info))->current,atoi((char*)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:281734: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).
                 retval.ret=atoi((const char *)
data/belle-sip-4.4.0+dfsg/src/http-listener.c:83: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(&obj->cbs,callbacks,sizeof(belle_http_request_listener_callbacks_t));
data/belle-sip-4.4.0+dfsg/src/http-provider.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 computed_ha1[65];
data/belle-sip-4.4.0+dfsg/src/md5.c:168: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(xbuf, data, 64);
data/belle-sip-4.4.0+dfsg/src/md5.c:340: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(pms->buf + offset, p, copy);
data/belle-sip-4.4.0+dfsg/src/md5.c:354: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(pms->buf, p, left);
data/belle-sip-4.4.0+dfsg/src/provider.c:318:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[256]={0};
data/belle-sip-4.4.0+dfsg/src/provider.c:428: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 branchid[24];
data/belle-sip-4.4.0+dfsg/src/provider.c:429: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 token[BELLE_SIP_BRANCH_ID_LENGTH];
data/belle-sip-4.4.0+dfsg/src/provider.c:677:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[11];
data/belle-sip-4.4.0+dfsg/src/provider.c:899: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 token[BELLE_SIP_TAG_LENGTH];
data/belle-sip-4.4.0+dfsg/src/provider.c:1019: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 token[BELLE_SIP_BRANCH_ID_LENGTH] = {0};
data/belle-sip-4.4.0+dfsg/src/provider.c:1192: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 computed_ha1[65];
data/belle-sip-4.4.0+dfsg/src/refresher.c:330: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).
					int new_expires=atoi(value);
data/belle-sip-4.4.0+dfsg/src/siplistener.c:146: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(&obj->cbs,callbacks,sizeof(belle_sip_listener_callbacks_t));
data/belle-sip-4.4.0+dfsg/src/transaction.c:672: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 token[BELLE_SIP_BRANCH_ID_LENGTH];
data/belle-sip-4.4.0+dfsg/src/transports/stream_listeningpoint.c:70: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 portnum[10];
data/belle-sip-4.4.0+dfsg/src/transports/stream_listeningpoint.c:119: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(portnum);
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:77: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 tmp[128];
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:93: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 tmp[128];
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:134: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 tmp[128];
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:145: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 tmp[128];
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:211: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 name[500];
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:247: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 pem_buffer[8192];
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.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(name_with_path, path, path_length);
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:275: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(name_with_path+path_length, subject, strlen(subject));
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:276: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(name_with_path+path_length+strlen(subject), ".pem", 5);
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:281:14:  [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 ( (fd = fopen(name_with_path, "w") ) == NULL) {
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:384: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 tmp[256]={0};
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:397: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 tmp[256]={0};
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:487: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 tmp[512]={0};
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:519:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[128];
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:551: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 ip[64];
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:553:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char url_ipport[64];
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:617: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 response[256]={0};
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:816: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 errorstr[512];
data/belle-sip-4.4.0+dfsg/src/transports/udp_listeningpoint.c:72: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 portnum[10];
data/belle-sip-4.4.0+dfsg/src/transports/udp_listeningpoint.c:121: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(portnum);
data/belle-sip-4.4.0+dfsg/src/transports/udp_listeningpoint.c:155:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[4096];
data/belle-sip-4.4.0+dfsg/tester/auth_helper_tester.c:33: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 ha1[33];
data/belle-sip-4.4.0+dfsg/tester/auth_helper_tester.c:48: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 ha1[65];
data/belle-sip-4.4.0+dfsg/tester/auth_helper_tester.c:71: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 ha1[33];
data/belle-sip-4.4.0+dfsg/tester/auth_helper_tester.c:91: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 ha1[33];
data/belle-sip-4.4.0+dfsg/tester/belle_http_tester.c:231: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(buffer,MULTIPART_BEGIN,partlen);
data/belle-sip-4.4.0+dfsg/tester/belle_http_tester.c:311: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).
	FILE *outfile=fopen("download.tar.gz","w");
data/belle-sip-4.4.0+dfsg/tester/belle_sip_base_uri_tester.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 uri[256];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_base_uri_tester.c:440: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 bad_uri[13] = { 'h', 'e', 'l', 'l', 'o', (char)0xa0, (char)0xc8, 'w', 'o', 'r', 'l', 'd', 0x0 };
data/belle-sip-4.4.0+dfsg/tester/belle_sip_dialog_tester.c:317: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  cookie[4];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_headers_tester.c:564: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 header[256];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_headers_tester.c:994: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 format[512];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:769: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 raw_message[2048];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_refresher_tester.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 nonce[32];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_refresher_tester.c:125: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 ha1[MAX_RESPONSE_SIZE],ha2[MAX_RESPONSE_SIZE];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_refresher_tester.c:143: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 ha1[MAX_RESPONSE_SIZE],ha2[MAX_RESPONSE_SIZE];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_refresher_tester.c:230:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char local_resp[MAX_RESPONSE_SIZE];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_refresher_tester.c:262:7:  [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(endpoint->nonce, "%p", authorization); //*change the nonce for next auth*/
data/belle-sip-4.4.0+dfsg/tester/belle_sip_refresher_tester.c:273:6:  [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(endpoint->nonce, "%p", www_authenticate); //*change the nonce for next auth*/
data/belle-sip-4.4.0+dfsg/tester/belle_sip_refresher_tester.c:465: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(endpoint->nonce,"%p",endpoint); /*initial nonce*/
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:275:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *listener_user_data[2] = {NULL, NULL};
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:361: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 identity[256];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:362: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 uri[256];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:698: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 identity[128];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:699: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 uri[128];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:925:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char outbound_uri[256];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:1043: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 ha1[33], ha2[33], response[33];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:1083: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  nonce [NONCE_SIZE];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.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 listening_uri[256];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:1130: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 identity[128];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:1131: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 uri[128];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_resolver_tester.c:431:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void set_custom_resolv_conf(belle_sip_stack_t *stack, const char *ns[3]){
data/belle-sip-4.4.0+dfsg/tester/belle_sip_resolver_tester.c:433:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f=fopen(resolv_file,"w");
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester.c:46: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 localip[128];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.cpp:41:3:  [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 wstr[MAX_TRACE_SIZE];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.cpp:100: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 writable_dir[MAX_WRITABLE_DIR_SIZE] = { 0 };
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.cpp:122: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 csuitename[MAX_SUITE_NAME_SIZE] = { 0 };
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.cpp:123: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 ccasename[MAX_SUITE_NAME_SIZE] = { 0 };
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.cpp:155: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 cname[MAX_SUITE_NAME_SIZE] = { 0 };
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.cpp:163: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 wcname[MAX_SUITE_NAME_SIZE];
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.cpp:171: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 csuitename[MAX_SUITE_NAME_SIZE] = { 0 };
data/belle-sip-4.4.0+dfsg/tester/belle_sip_tester_windows.cpp:174: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 wcname[MAX_SUITE_NAME_SIZE];
data/belle-sip-4.4.0+dfsg/tester/parse.c:69:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd=open(filename,O_RDONLY);
data/belle-sip-4.4.0+dfsg/tester/resolve.c:29: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[NI_MAXHOST];
data/belle-sip-4.4.0+dfsg/tester/resolve.c:30: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 port[NI_MAXSERV];
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:78: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).
		bctbx_md5((const uint8_t *)ask, strlen(ask), out);
data/belle-sip-4.4.0+dfsg/src/auth_helper.c:80: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).
		bctbx_sha256((const uint8_t *)ask, strlen(ask), (uint8_t)size, out);
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:115: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).
	ret += strlen(attribute->name) + 2; /* "a=" + name*/
data/belle-sip-4.4.0+dfsg/src/belle_sdp_impl.c:944: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).
					if (strlen(tmp)>0)
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:166: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).
		ret+=strlen(obj->name)+1; /* name + semicolon*/
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:278:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(value)>2)
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:1785: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).
#define REPLACES_PREF_OFFSET (strlen(BELLE_SIP_REPLACES)+2)
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:1788: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).
	size_t len=strlen(escaped_replace);
data/belle-sip-4.4.0+dfsg/src/belle_sip_headers_impl.c:1867:2:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	sscanf(obj->date,"%3c,%d %16s %d %d:%d:%d",tmp1,&ret.tm_mday,tmp2,
data/belle-sip-4.4.0+dfsg/src/belle_sip_internal.h:440: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).
	input  = ANTLR_STREAM_NEW(object_type,value,strlen(value));\
data/belle-sip-4.4.0+dfsg/src/belle_sip_internal.h:906:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	input  = ANTLR_STREAM_NEW(object_type, value,strlen(value));\
data/belle-sip-4.4.0+dfsg/src/belle_sip_loop.c:553:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		nread = read(read_fd, buffer, sizeof(buffer));
data/belle-sip-4.4.0+dfsg/src/belle_sip_parameters.c:117:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		char *equal;
data/belle-sip-4.4.0+dfsg/src/belle_sip_parameters.c:124: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).
				end_of_param=current+strlen(current);
data/belle-sip-4.4.0+dfsg/src/belle_sip_parameters.c:130:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if (equal && equal<end_of_param){
data/belle-sip-4.4.0+dfsg/src/belle_sip_parameters.c:130:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if (equal && equal<end_of_param){
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:107: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).
	end_pos = strlen(obj->target);
data/belle-sip-4.4.0+dfsg/src/belle_sip_resolver.c:791:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(name);
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:175:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t value_size = strlen(quoted_string);
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:177:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(unquoted_string,quoted_string+1,value_size-2);
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:539: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).
	char *output_buff=belle_sip_malloc(strlen(buff)+1);
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:632: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).
			|| (strncmp(ent->d_name+strlen(ent->d_name)-strlen(file_type), file_type, strlen(file_type))==0) ) {
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:632: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(ent->d_name+strlen(ent->d_name)-strlen(file_type), file_type, strlen(file_type))==0) ) {
data/belle-sip-4.4.0+dfsg/src/belle_sip_utils.c:632:78:  [1] (buffer) strlen:
  Does not handle 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(ent->d_name+strlen(ent->d_name)-strlen(file_type), file_type, strlen(file_type))==0) ) {
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:920: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).
		size_t boundary_len = strlen(obj_multipart->boundary);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:922: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).
		*size -= strlen(obj_multipart->boundary) + 8; /* just in case it will be the end of the message, ask for less characters than possible in order to be able to add the multipart message termination. 8 is for "\r\n--" and "--\r\n" */
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:932: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).
				headersSize = strlen(current_part->headerStringBuffer);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:967: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).
				size_t boundary_len = strlen(obj_multipart->boundary);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:1027: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).
	obj->base.expected_size = strlen(obj->boundary) + 8; /* body's length will be part length(including boundary) + multipart end. 8 is for "\r\n--" and "--\r\n" */
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:1050:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	obj->base.expected_size+=part->expected_size+strlen(obj->boundary) + 4; /* add the separator length to the body length as each part start with a separator. 4 is for "--" and "\r\n" */
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:1094:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp((char *)cursor, dash_boundary, strlen(dash_boundary))) {
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:1099: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).
		cursor += strlen(dash_boundary);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:1121:78:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					memorypart = belle_sip_memory_body_handler_new_copy_from_buffer(cursor, strlen((char *)cursor), NULL, NULL);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:1124: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).
					memorypart = belle_sip_memory_body_handler_new_copy_from_buffer(begin_body_cursor, strlen((char *)begin_body_cursor), NULL, NULL);
data/belle-sip-4.4.0+dfsg/src/bodyhandler.c:1136: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).
				cursor = end_part_cursor + strlen(dash_boundary);
data/belle-sip-4.4.0+dfsg/src/channel.c:259:9:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			res= sscanf(buff+i,"%16s %*s %9s\r\n",method,sip_version)==2
data/belle-sip-4.4.0+dfsg/src/channel.c:261:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					&& (strcmp("SIP/2.0",sip_version)==0 || strncmp("HTTP/1.",sip_version,strlen("HTTP/1."))==0);
data/belle-sip-4.4.0+dfsg/src/channel.c:1151:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size += strlen(truncate_msg);
data/belle-sip-4.4.0+dfsg/src/channel.c:1154:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(logbuf, buffer, size);
data/belle-sip-4.4.0+dfsg/src/channel.c:1254:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			mbh = belle_sip_memory_body_handler_new_from_buffer(marshalled_content, strlen(marshalled_content), NULL, NULL);
data/belle-sip-4.4.0+dfsg/src/dns.c:1376: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).
	return dns_b_put(b, src, strlen(src));
data/belle-sip-4.4.0+dfsg/src/dns.c:2045: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).
	return dns_q_make2(Q, qname, strlen(qname), qtype, qclass, qflags);
data/belle-sip-4.4.0+dfsg/src/dns.c:3179:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((error = dns_d_push(P, mx->host, strlen(mx->host))))
data/belle-sip-4.4.0+dfsg/src/dns.c:3244:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((error = dns_d_push(P, ns->host, strlen(ns->host))))
data/belle-sip-4.4.0+dfsg/src/dns.c:3357:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((error = dns_d_push(P, dn[i], strlen(dn[i]))))
data/belle-sip-4.4.0+dfsg/src/dns.c:3507:78:  [1] (buffer) strlen:
  Does not handle 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 (0 == (len = dns_d_comp(&P->data[P->end], P->size - P->end, srv->target, strlen(srv->target), P, &error)))
data/belle-sip-4.4.0+dfsg/src/dns.c:4246:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while (EOF != (ch = fgetc(fp)) && ch != '\n') {
data/belle-sip-4.4.0+dfsg/src/dns.c:4281: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).
						memmove(p + 4, p, strlen(p));
data/belle-sip-4.4.0+dfsg/src/dns.c:4333: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).
		for (i = strlen(addr); i < INET_ADDRSTRLEN; i++)
data/belle-sip-4.4.0+dfsg/src/dns.c:4353: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).
	dns_d_anchor(ent->host, sizeof ent->host, host, strlen(host));
data/belle-sip-4.4.0+dfsg/src/dns.c:4488: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).
	dns_d_anchor(resconf->search[0], sizeof resconf->search[0], resconf->search[0], strlen(resconf->search[0]));
data/belle-sip-4.4.0+dfsg/src/dns.c:4489: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).
	dns_d_cleave(resconf->search[0], sizeof resconf->search[0], resconf->search[0], strlen(resconf->search[0]));
data/belle-sip-4.4.0+dfsg/src/dns.c:4721:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (EOF != (ch = getc(fp)) && ch != '\n') {
data/belle-sip-4.4.0+dfsg/src/dns.c:4732:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					ch	= getc(fp);
data/belle-sip-4.4.0+dfsg/src/dns.c:4766:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				dns_d_anchor(resconf->search[j], sizeof resconf->search[j], words[i], strlen(words[i]));
data/belle-sip-4.4.0+dfsg/src/dns.c:5179:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = getc(fp);
data/belle-sip-4.4.0+dfsg/src/dns.c:5189:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (EOF != (ch = getc(fp))) {
data/belle-sip-4.4.0+dfsg/src/dns.c:5208:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (EOF != (ch = getc(fp))) {
data/belle-sip-4.4.0+dfsg/src/dns.c:5443:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(resconf->lookup, lookup, sizeof resconf->lookup);
data/belle-sip-4.4.0+dfsg/src/dns.c:6130: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 ((error = dns_p_push(P, DNS_S_AUTHORITY, ".", strlen("."), DNS_T_NS, DNS_C_IN, 0, "hints.local.")))
data/belle-sip-4.4.0+dfsg/src/dns.c:6142: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).
			if ((error = dns_p_push(P, DNS_S_ADDITIONAL, "hints.local.", strlen("hints.local."), rtype, DNS_C_IN, 0, dns_sa_addr(af, sa, NULL))))
data/belle-sip-4.4.0+dfsg/src/dns.c:7410:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((error = dns_p_push(P, DNS_S_QD, qname, strlen(qname), qtype, DNS_C_IN, 0, 0)))
data/belle-sip-4.4.0+dfsg/src/dns.c:8001: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 ((error = dns_p_push(F->answer, DNS_S_QD, R->qname, strlen(R->qname), R->qtype, R->qclass, 0, 0)))
data/belle-sip-4.4.0+dfsg/src/dns.c:8125: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).
	return dns_res_submit2(R, qname, strlen(qname), qtype, qclass);
data/belle-sip-4.4.0+dfsg/src/dns.c:8450: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).
		clen	= strlen(cname);
data/belle-sip-4.4.0+dfsg/src/dns.c:8654:61:  [1] (buffer) strlen:
  Does not handle 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 (!dns_d_cname(ai->cname, sizeof ai->cname, ai->g.name, strlen(ai->g.name), ai->glue, &error))
data/belle-sip-4.4.0+dfsg/src/dns.c:9364: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).
	} while (dns_d_cleave(dn, strlen(dn) + 1, dn, strlen(dn)));
data/belle-sip-4.4.0+dfsg/src/dns.c:9364: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).
	} while (dns_d_cleave(dn, strlen(dn) + 1, dn, strlen(dn)));
data/belle-sip-4.4.0+dfsg/src/dns.c:9374: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).
		dns_d_trim(name, sizeof name, *argv, strlen(*argv), DNS_D_ANCHOR);
data/belle-sip-4.4.0+dfsg/src/dns.c:9530: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).
	while (dns_resconf_search(name, sizeof name, qname, strlen(qname), resconf(), &i))
data/belle-sip-4.4.0+dfsg/src/dns.c:9627: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 ((error = dns_p_push(Q, DNS_S_QD, MAIN.qname, strlen(MAIN.qname), MAIN.qtype, DNS_C_IN, 0, 0)))
data/belle-sip-4.4.0+dfsg/src/dns.c:9700: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).
		if ((error = dns_p_push(query, DNS_S_QUESTION, who, strlen(who), DNS_T_A, DNS_C_IN, 0, 0)))
data/belle-sip-4.4.0+dfsg/src/dns.c:9947: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).
		max = DNS_PP_MAX(max, strlen(type[i].name));
data/belle-sip-4.4.0+dfsg/src/dns.c:10009:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(cmds[i].cmd) > m)
data/belle-sip-4.4.0+dfsg/src/dns.c:10010: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).
			m	= strlen(cmds[i].cmd);
data/belle-sip-4.4.0+dfsg/src/dns.c:10016: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).
		for (n = strlen(cmds[i].cmd); n < m; n++)
data/belle-sip-4.4.0+dfsg/src/dns.h:464: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).
#define dns_d_new2(a, f)	dns_d_new3((a), strlen((a)), (f))
data/belle-sip-4.4.0+dfsg/src/dns.h:465: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).
#define dns_d_new1(a)		dns_d_new3((a), strlen((a)), DNS_D_ANCHOR)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:8448:2:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	equal    (pbelle_sip_messageParser ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:8843:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    ctx->equal	= equal;
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:250301:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            	        equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:251947:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:252167:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:252301:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:252473:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:252647:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:252819:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:253079:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:258233:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:261055:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:261229:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:261343:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:261458:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:261573:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:261745:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:261859:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:270522:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:270635:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:270750:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:270865:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            equal(ctx);
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.c:284285:1:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
equal(pbelle_sip_messageParser ctx)
data/belle-sip-4.4.0+dfsg/src/grammars/belle_sip_messageParser.h:5024:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
     (*equal)	(struct belle_sip_messageParser_Ctx_struct * ctx);
data/belle-sip-4.4.0+dfsg/src/listeningpoint.c:158: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).
	size_t size=strlen(crlfcrlf);
data/belle-sip-4.4.0+dfsg/src/message.c:36: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(name)>1) return name;
data/belle-sip-4.4.0+dfsg/src/message.c:123: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).
	return belle_sip_message_parse_raw(value,strlen(value),&message_length);
data/belle-sip-4.4.0+dfsg/src/object++.cc:112:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buff, tmp.c_str(), buff_size);
data/belle-sip-4.4.0+dfsg/src/parserutils.h:31:77:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		belle_sip_strcasecmp(#token,(const char*)INPUT->toStringTT(INPUT,LT(1),LT(strlen(#token)))->chars)
data/belle-sip-4.4.0+dfsg/src/port.h:165:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define usleep(us) belle_sip_sleep((us)/1000)
data/belle-sip-4.4.0+dfsg/src/provider.c:350: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).
		belle_sip_md5_append(&ctx,(uint8_t*)initial,(int)strlen(initial));
data/belle-sip-4.4.0+dfsg/src/provider.c:354: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).
		belle_sip_md5_append(&ctx,(uint8_t*)tmp,(int)strlen(tmp));
data/belle-sip-4.4.0+dfsg/src/provider.c:357: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).
		belle_sip_md5_append(&ctx,(uint8_t*)from_tag,(int)strlen(from_tag));
data/belle-sip-4.4.0+dfsg/src/provider.c:359: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).
		belle_sip_md5_append(&ctx,(uint8_t*)to_tag,(int)strlen(to_tag));
data/belle-sip-4.4.0+dfsg/src/provider.c:360: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).
	belle_sip_md5_append(&ctx,(uint8_t*)callid,(int)strlen(callid));
data/belle-sip-4.4.0+dfsg/src/provider.c:402: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).
	belle_sip_md5_append(&ctx,(uint8_t*)from_str,(int)strlen(from_str));
data/belle-sip-4.4.0+dfsg/src/provider.c:403: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).
	belle_sip_md5_append(&ctx,(uint8_t*)to_str,(int)strlen(to_str));
data/belle-sip-4.4.0+dfsg/src/provider.c:404: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).
	belle_sip_md5_append(&ctx,(uint8_t*)callid,(int)strlen(callid));
data/belle-sip-4.4.0+dfsg/src/provider.c:410: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).
		belle_sip_md5_append(&ctx,(uint8_t*)v_branch,(int)strlen(v_branch));
data/belle-sip-4.4.0+dfsg/src/provider.c:1026: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(branch,BELLE_SIP_BRANCH_MAGIC_COOKIE,strlen(BELLE_SIP_BRANCH_MAGIC_COOKIE))==0){
data/belle-sip-4.4.0+dfsg/src/sipstack.c:50: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).
			hop->host[strlen(hop->host)-1] = '\0';
data/belle-sip-4.4.0+dfsg/src/transaction.c:350:67:  [1] (buffer) strlen:
  Does not handle 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 (branch==NULL || strncmp(branch,BELLE_SIP_BRANCH_MAGIC_COOKIE,strlen(BELLE_SIP_BRANCH_MAGIC_COOKIE))!=0){
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:70: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(buff) == size) {
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:74:100:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret = bctbx_signing_key_parse(signing_key->key, buff, size, (const unsigned char *)passwd, passwd?strlen(passwd):0);
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:129:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(buff) == size) {
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:270: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).
		name_with_path = (char *)belle_sip_malloc(strlen(path)+257); /* max filename is 256 bytes in dirent structure, +1 for / */
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:271: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).
		path_length = strlen(path);
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:275:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memcpy(name_with_path+path_length, subject, strlen(subject));
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:276: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).
		memcpy(name_with_path+path_length+strlen(subject), ".pem", 5);
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:291:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ( fwrite(pem_buffer, 1, strlen(pem_buffer), fd) != strlen(pem_buffer) ) {
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:291: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).
		if ( fwrite(pem_buffer, 1, strlen(pem_buffer), fd) != strlen(pem_buffer) ) {
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:572: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).
		size_t username_passwd_length = strlen(username_passwd);
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:582: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).
	err = bctbx_send(belle_sip_source_get_socket((belle_sip_source_t*)obj),request,strlen(request),0);
data/belle-sip-4.4.0+dfsg/src/transports/tls_channel.c:836: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).
		err = bctbx_x509_certificate_parse(obj->root_ca, data, strlen(data) + 1);
data/belle-sip-4.4.0+dfsg/tester/auth_helper_tester.c:195:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cert = belle_sip_certificates_chain_parse(belle_sip_tester_client_cert,strlen(belle_sip_tester_client_cert),BELLE_SIP_CERTIFICATE_RAW_FORMAT_PEM);
data/belle-sip-4.4.0+dfsg/tester/auth_helper_tester.c:207: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).
	cert = belle_sip_certificates_chain_parse(belle_sip_tester_fingerprint256_cert,strlen(belle_sip_tester_fingerprint256_cert),BELLE_SIP_CERTIFICATE_RAW_FORMAT_PEM);
data/belle-sip-4.4.0+dfsg/tester/belle_http_tester.c:68:106:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		belle_sip_certificates_chain_t* cert = belle_sip_certificates_chain_parse(belle_sip_tester_client_cert,strlen(belle_sip_tester_client_cert),BELLE_SIP_CERTIFICATE_RAW_FORMAT_PEM);
data/belle-sip-4.4.0+dfsg/tester/belle_http_tester.c:69:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		belle_sip_signing_key_t* key = belle_sip_signing_key_parse(belle_sip_tester_private_key,strlen(belle_sip_tester_private_key),belle_sip_tester_private_key_passwd);
data/belle-sip-4.4.0+dfsg/tester/belle_http_tester.c:242:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char*)buffer,MULTIPART_END,*size);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_core_tester.c:299: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).
		mbh = belle_sip_memory_body_handler_new_copy_from_buffer((void *)parts_content[i], strlen(parts_content[i]), NULL, NULL);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_core_tester.c:309: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).
		BC_ASSERT_EQUAL((unsigned int)strlen(desc), 4688, unsigned int, "%u");
data/belle-sip-4.4.0+dfsg/tester/belle_sip_core_tester.c:312:107:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	belle_sip_multipart_body_handler_t *memory_mpbh = belle_sip_multipart_body_handler_new_from_buffer(desc, strlen(desc), belle_sip_multipart_body_handler_get_boundary(mpbh));
data/belle-sip-4.4.0+dfsg/tester/belle_sip_core_tester.c:317: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).
		BC_ASSERT_EQUAL(belle_sip_body_handler_get_size(part), strlen(parts_content[i]), int, "%i");
data/belle-sip-4.4.0+dfsg/tester/belle_sip_core_tester.c:326:118:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	belle_sip_memory_body_handler_t *mbh = belle_sip_memory_body_handler_new_copy_from_buffer((void *)parts_content[0], strlen(parts_content[0]), NULL, NULL);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_core_tester.c:333:118:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	belle_sip_memory_body_handler_t *mbh = belle_sip_memory_body_handler_new_copy_from_buffer((void *)parts_content[0], strlen(parts_content[0]), NULL, NULL);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_dialog_tester.c:193: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).
		content_length= belle_sip_header_content_length_create(strlen(sdp));
data/belle-sip-4.4.0+dfsg/tester/belle_sip_dialog_tester.c:197: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).
		belle_sip_message_set_body(BELLE_SIP_MESSAGE(ok_response),sdp,strlen(sdp));
data/belle-sip-4.4.0+dfsg/tester/belle_sip_dialog_tester.c:365: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).
	content_length = belle_sip_header_content_length_create(strlen(sdp));
data/belle-sip-4.4.0+dfsg/tester/belle_sip_dialog_tester.c:369: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).
	belle_sip_message_set_body(BELLE_SIP_MESSAGE(req),sdp,strlen(sdp));
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:237: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).
	size_t raw_message_size= strlen(raw_message);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:429: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).
		channel->input_stream.write_ptr+=strlen(prelude);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:434: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).
	channel->input_stream.write_ptr+=strlen(raw_message);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:1018: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).
	channel->input_stream.write_ptr+=strlen(raw_message);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:1081: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).
	channel->input_stream.write_ptr+=strlen(raw_message);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_message_tester.c:1091:103:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	BC_ASSERT_EQUAL((unsigned int)belle_sip_header_content_length_get_content_length(ctlt),(unsigned int)strlen(belle_sip_message_get_body(message)),unsigned int,"%u");
data/belle-sip-4.4.0+dfsg/tester/belle_sip_refresher_tester.c:529: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 body_lenth=strlen(body);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_refresher_tester.c:724: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).
		belle_sip_message_set_body(BELLE_SIP_MESSAGE(req), list, strlen(list));
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:231:107:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		belle_sip_certificates_chain_t *cert = belle_sip_certificates_chain_parse(belle_sip_tester_client_cert, strlen(belle_sip_tester_client_cert), BELLE_SIP_CERTIFICATE_RAW_FORMAT_PEM);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:232:92:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		belle_sip_signing_key_t *key = belle_sip_signing_key_parse(belle_sip_tester_private_key, strlen(belle_sip_tester_private_key), belle_sip_tester_private_key_passwd);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:263:107:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		belle_sip_certificates_chain_t *cert = belle_sip_certificates_chain_parse(belle_sip_tester_client_cert, strlen(belle_sip_tester_client_cert), BELLE_SIP_CERTIFICATE_RAW_FORMAT_PEM);
data/belle-sip-4.4.0+dfsg/tester/belle_sip_register_tester.c:264:92:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		belle_sip_signing_key_t *key = belle_sip_signing_key_parse(belle_sip_tester_private_key, strlen(belle_sip_tester_private_key), belle_sip_tester_private_key_passwd);
data/belle-sip-4.4.0+dfsg/tester/parse.c:75:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd,str,st.st_size)==-1){
data/belle-sip-4.4.0+dfsg/tester/parse.c:102:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				printf("Successfully parsed %s message of %i bytes.\n",protocol,(int)strlen(str));
data/belle-sip-4.4.0+dfsg/tools/carddav_http_query.c:95:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bh = belle_sip_memory_body_handler_new_copy_from_buffer(request->body, strlen(request->body), NULL, NULL);

ANALYSIS SUMMARY:

Hits = 540
Lines analyzed = 386199 in approximately 6.77 seconds (57037 lines/second)
Physical Source Lines of Code (SLOC) = 271353
Hits@level = [0] 160 [1] 162 [2] 353 [3]   4 [4]  21 [5]   0
Hits@level+ = [0+] 700 [1+] 540 [2+] 378 [3+]  25 [4+]  21 [5+]   0
Hits/KSLOC@level+ = [0+] 2.57967 [1+] 1.99003 [2+] 1.39302 [3+] 0.0921309 [4+] 0.07739 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.