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/libgadu-1.12.2/examples/conn-async.c
Examining data/libgadu-1.12.2/examples/httphash.c
Examining data/libgadu-1.12.2/examples/register.c
Examining data/libgadu-1.12.2/examples/remind.c
Examining data/libgadu-1.12.2/examples/send.c
Examining data/libgadu-1.12.2/examples/status.c
Examining data/libgadu-1.12.2/examples/token.c
Examining data/libgadu-1.12.2/include/debug.h
Examining data/libgadu-1.12.2/include/deflate.h
Examining data/libgadu-1.12.2/include/encoding.h
Examining data/libgadu-1.12.2/include/fileio.h
Examining data/libgadu-1.12.2/include/internal.h
Examining data/libgadu-1.12.2/include/message.h
Examining data/libgadu-1.12.2/include/network.h
Examining data/libgadu-1.12.2/include/protobuf-c.h
Examining data/libgadu-1.12.2/include/protobuf.h
Examining data/libgadu-1.12.2/include/protocol.h
Examining data/libgadu-1.12.2/include/resolver.h
Examining data/libgadu-1.12.2/include/session.h
Examining data/libgadu-1.12.2/include/strman.h
Examining data/libgadu-1.12.2/include/tvbuff.h
Examining data/libgadu-1.12.2/include/tvbuilder.h
Examining data/libgadu-1.12.2/src/common.c
Examining data/libgadu-1.12.2/src/dcc7.c
Examining data/libgadu-1.12.2/src/debug.c
Examining data/libgadu-1.12.2/src/deflate.c
Examining data/libgadu-1.12.2/src/encoding.c
Examining data/libgadu-1.12.2/src/endian.c
Examining data/libgadu-1.12.2/src/handlers.c
Examining data/libgadu-1.12.2/src/http.c
Examining data/libgadu-1.12.2/src/libgadu.c
Examining data/libgadu-1.12.2/src/message.c
Examining data/libgadu-1.12.2/src/network.c
Examining data/libgadu-1.12.2/src/obsolete.c
Examining data/libgadu-1.12.2/src/protobuf-c.c
Examining data/libgadu-1.12.2/src/protobuf.c
Examining data/libgadu-1.12.2/src/pubdir.c
Examining data/libgadu-1.12.2/src/pubdir50.c
Examining data/libgadu-1.12.2/src/resolver.c
Examining data/libgadu-1.12.2/src/sha1.c
Examining data/libgadu-1.12.2/src/tvbuff.c
Examining data/libgadu-1.12.2/src/tvbuilder.c
Examining data/libgadu-1.12.2/src/events.c
Examining data/libgadu-1.12.2/src/dcc.c
Examining data/libgadu-1.12.2/test/automatic/connect.c
Examining data/libgadu-1.12.2/test/automatic/convert.c
Examining data/libgadu-1.12.2/test/automatic/endian1.c
Examining data/libgadu-1.12.2/test/automatic/hash.c
Examining data/libgadu-1.12.2/test/automatic/message1.c
Examining data/libgadu-1.12.2/test/automatic/message2.c
Examining data/libgadu-1.12.2/test/automatic/packet.c
Examining data/libgadu-1.12.2/test/automatic/protocol.c
Examining data/libgadu-1.12.2/test/automatic/resolver.c
Examining data/libgadu-1.12.2/test/automatic/script/script.h
Examining data/libgadu-1.12.2/test/manual/client.c
Examining data/libgadu-1.12.2/test/manual/dcc7.c
Examining data/libgadu-1.12.2/test/manual/lib/base64.c
Examining data/libgadu-1.12.2/test/manual/lib/base64.h
Examining data/libgadu-1.12.2/test/manual/lib/hmac.c
Examining data/libgadu-1.12.2/test/manual/lib/hmac.h
Examining data/libgadu-1.12.2/test/manual/lib/http.c
Examining data/libgadu-1.12.2/test/manual/lib/http.h
Examining data/libgadu-1.12.2/test/manual/lib/oauth.c
Examining data/libgadu-1.12.2/test/manual/lib/oauth.h
Examining data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c
Examining data/libgadu-1.12.2/test/manual/lib/oauth_parameter.h
Examining data/libgadu-1.12.2/test/manual/lib/sha1.c
Examining data/libgadu-1.12.2/test/manual/lib/sha1.h
Examining data/libgadu-1.12.2/test/manual/lib/urlencode.c
Examining data/libgadu-1.12.2/test/manual/lib/urlencode.h
Examining data/libgadu-1.12.2/test/manual/lib/xml.c
Examining data/libgadu-1.12.2/test/manual/lib/xml.h
Examining data/libgadu-1.12.2/test/manual/search.c
Examining data/libgadu-1.12.2/test/manual/userconfig.c
Examining data/libgadu-1.12.2/test/manual/userlist.c
Examining data/libgadu-1.12.2/test/manual/voice7.c
Examining data/libgadu-1.12.2/test/manual/userconfig.h

FINAL RESULTS:

data/libgadu-1.12.2/examples/token.c:52:17:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
	return (strcmp(mktemp(path), "") != 0);
data/libgadu-1.12.2/include/strman.h:34:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define snprintf(str, size, format, ...) _snprintf_s(str, size, _TRUNCATE, format, __VA_ARGS__)
data/libgadu-1.12.2/include/strman.h:35:11:  [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(str, size, format, ap) vsnprintf_s(str, size, _TRUNCATE, format, ap)
data/libgadu-1.12.2/src/common.c:97:10:  [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.
			res = vsnprintf(buf, size, format, aq);
data/libgadu-1.12.2/src/common.c:112:10:  [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.
		size = vsnprintf(tmp, sizeof(tmp), format, aq) + 1;
data/libgadu-1.12.2/src/common.c:119:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, size, format, ap);
data/libgadu-1.12.2/src/debug.c:111:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf((gg_debug_file) ? gg_debug_file : stderr, format, ap);
data/libgadu-1.12.2/src/events.c:715:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(list, inet_ntoa(addrs[i]));
data/libgadu-1.12.2/src/libgadu.c:2170:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf + buflen, filename);
data/libgadu-1.12.2/src/message.c:493:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
							sprintf(&dst[len], span_fmt, color[0], color[1], color[2]);
data/libgadu-1.12.2/src/message.c:513:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					sprintf(&dst[len], img_fmt,
data/libgadu-1.12.2/src/message.c:548:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				sprintf(&dst[len], span_fmt, default_color[0], default_color[1], default_color[2]);
data/libgadu-1.12.2/src/pubdir.c:772:19:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (!h->body || sscanf(h->body, "%d %d %d\r\n%s\r\n%s", &width, &height, &length, tokenid, url) != 5) {
data/libgadu-1.12.2/src/pubdir50.c:272:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(p, req->entries[i].field);
data/libgadu-1.12.2/src/pubdir50.c:275:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(p, req->entries[i].value);
data/libgadu-1.12.2/src/pubdir50.c:288:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(p, tmp);
data/libgadu-1.12.2/src/pubdir50.c:301:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(p, tmp);
data/libgadu-1.12.2/test/automatic/connect.c:216:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, ap);
data/libgadu-1.12.2/test/automatic/connect.c:221: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.
		ret = vsnprintf(buf, sizeof(buf), format, ap);
data/libgadu-1.12.2/test/automatic/connect.c:244:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(log_buffer + len, buf);
data/libgadu-1.12.2/test/automatic/connect.c:363: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(storage->name, name);
data/libgadu-1.12.2/test/automatic/connect.c:1239: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(cert_file_path + srcdir_len + 1, CERT_FILE);
data/libgadu-1.12.2/test/automatic/connect.c:1240: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(key_file_path + srcdir_len + 1, KEY_FILE);
data/libgadu-1.12.2/test/automatic/hash.c:47:13:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
	if (strcmp(mktemp(path), "") == 0)
data/libgadu-1.12.2/test/automatic/protocol.c:49:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, ap);
data/libgadu-1.12.2/test/automatic/protocol.c:72:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, ap);
data/libgadu-1.12.2/test/manual/dcc7.c:54:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, ap);
data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c:115: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(out, p->key);
data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c:129:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(out++, (header) ? "," : "&");
data/libgadu-1.12.2/test/manual/userlist.c:161:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(content + len, buf);
data/libgadu-1.12.2/test/manual/voice7.c:90:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, ap);
data/libgadu-1.12.2/src/resolver.c:713:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&data->mutex);
data/libgadu-1.12.2/src/resolver.c:787:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(mutex);
data/libgadu-1.12.2/src/resolver.c:846:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&data->mutex);
data/libgadu-1.12.2/test/automatic/connect.c:157:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(mutex);
data/libgadu-1.12.2/test/automatic/connect.c:1220:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&log_mutex);
data/libgadu-1.12.2/test/automatic/connect.c:1221:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&server_mutex);
data/libgadu-1.12.2/test/automatic/connect.c:1224:11:  [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.
	srcdir = getenv("srcdir");
data/libgadu-1.12.2/test/manual/client.c:99:15:  [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 ((ch = getopt(argc, argv, "DShHLs:p:l:y")) != -1) {
data/libgadu-1.12.2/test/manual/userlist.c:65:16:  [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 ((opt = getopt(argc, argv, "cv:gpf:hdr")) != -1) {
data/libgadu-1.12.2/examples/httphash.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/libgadu-1.12.2/examples/httphash.c:31: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).
		uint32_t val = atoi(argv[2]);
data/libgadu-1.12.2/examples/httphash.c:34: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 *args[7] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL };
data/libgadu-1.12.2/examples/remind.c:58: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).
	uin = atoi(argv[1]);
data/libgadu-1.12.2/examples/send.c:49: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).
	p.uin = atoi(argv[2]);
data/libgadu-1.12.2/examples/send.c:68:42:  [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 (gg_send_message(sess, GG_CLASS_MSG, atoi(argv[3]), (unsigned char*) argv[4]) == -1) {
data/libgadu-1.12.2/examples/status.c:47:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	glp.uin = atoi(argv[1]);
data/libgadu-1.12.2/examples/token.c:50:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	return (mkstemp(path) != -1);
data/libgadu-1.12.2/examples/token.c:129:6:  [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).
	f = fopen(path, "w");
data/libgadu-1.12.2/include/fileio.h:41:10:  [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).
#  undef open
data/libgadu-1.12.2/include/fileio.h:42:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#  define open _open
data/libgadu-1.12.2/include/internal.h:132:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1910];
data/libgadu-1.12.2/include/internal.h:249: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(&trap[2], &addr, sizeof(addr));
data/libgadu-1.12.2/include/internal.h:252: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(&trap[1], &addr, sizeof(addr));
data/libgadu-1.12.2/include/internal.h:259: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(data->trap, trap, sizeof(trap));
data/libgadu-1.12.2/include/internal.h:260: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(data->original, orig_func, sizeof(trap));
data/libgadu-1.12.2/include/internal.h:262: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(orig_func, trap, sizeof(trap));
data/libgadu-1.12.2/include/internal.h:280: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(data->fnc, src, sizeof(data->trap));
data/libgadu-1.12.2/src/common.c:108: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[2];
data/libgadu-1.12.2/src/common.c:419:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[16];
data/libgadu-1.12.2/src/common.c:715:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[11];
data/libgadu-1.12.2/src/common.c:723: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(buff, str, len);
data/libgadu-1.12.2/src/common.c:798: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(chat->participants, participants,
data/libgadu-1.12.2/src/dcc.c:94: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(tmp_ft, &tmp, sizeof(tmp));
data/libgadu-1.12.2/src/dcc.c:142:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((d->file_fd = open(local_filename, O_RDONLY)) == -1) {
data/libgadu-1.12.2/src/dcc.c:653:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024], ack[] = "UDAG";
data/libgadu-1.12.2/src/dcc.c:1085: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(&file_info_packet.file_info, &h->file_info, sizeof(h->file_info));
data/libgadu-1.12.2/src/dcc7.c:443: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(dcc->hash, hash, GG_DCC7_HASH_LEN);
data/libgadu-1.12.2/src/dcc7.c:473:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hash_buf[GG_DCC7_HASH_LEN];
data/libgadu-1.12.2/src/dcc7.c:489:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(filename, O_RDONLY)) == -1) {
data/libgadu-1.12.2/src/dcc7.c:672: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((char*)s.filename, (char*)tmp->filename, sizeof(s.filename));
data/libgadu-1.12.2/src/dcc7.c:765:61:  [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 (!(tmp = strchr(p->info, ' ')) || !(dcc->remote_port = atoi(tmp + 1))) {
data/libgadu-1.12.2/src/dcc7.c:966: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(dcc->hash, p->hash, GG_DCC7_HASH_LEN);
data/libgadu-1.12.2/src/dcc7.c:1314:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[1024];
data/libgadu-1.12.2/src/dcc7.c:1377:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[1024];
data/libgadu-1.12.2/src/dcc7.c:1523:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[256];
data/libgadu-1.12.2/src/debug.c:166:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[80];
data/libgadu-1.12.2/src/debug.c:172: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(line, "%.4x: ", i);
data/libgadu-1.12.2/src/debug.c:177:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(line + ofs, " %02x", (unsigned char) buf[i + j]);
data/libgadu-1.12.2/src/debug.c:179:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(line + ofs, "   ");
data/libgadu-1.12.2/src/debug.c:184: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(line + ofs, "  ");
data/libgadu-1.12.2/src/events.c:312:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/libgadu-1.12.2/src/events.c:317: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 rdata[1024];
data/libgadu-1.12.2/src/events.c:621:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libgadu-1.12.2/src/events.c:654: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(sess->recv_buf + sess->recv_done, buf, res);
data/libgadu-1.12.2/src/events.c:713:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(list, ", ");
data/libgadu-1.12.2/src/events.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 buf[1024], *tmp, host[129];
data/libgadu-1.12.2/src/events.c:1042: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(sess->recv_buf + sess->recv_done, buf, res);
data/libgadu-1.12.2/src/events.c:1121: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).
		port = atoi(tmp + 1);
data/libgadu-1.12.2/src/events.c:1335:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[256];
data/libgadu-1.12.2/src/events.c:1408:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[256];
data/libgadu-1.12.2/src/events.c:1433:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/libgadu-1.12.2/src/events.c:1503:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libgadu-1.12.2/src/events.c:1537: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(sess->recv_buf + sess->recv_done, buf, res);
data/libgadu-1.12.2/src/events.c:1630:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/libgadu-1.12.2/src/handlers.c:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char client_str[1000];
data/libgadu-1.12.2/src/handlers.c:246: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(hash_buf, &hash, sizeof(hash));
data/libgadu-1.12.2/src/handlers.c:254: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 tmp[41];
data/libgadu-1.12.2/src/handlers.c:551: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(ge->event.xml_event.data, ptr, len);
data/libgadu-1.12.2/src/handlers.c:653: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(gs->userlist_reply + reply_len, ptr + 1, len - 1);
data/libgadu-1.12.2/src/handlers.c:822: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(q->image + q->done, p, len);
data/libgadu-1.12.2/src/handlers.c:910: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(e->event.msg.recipients, p, count * sizeof(uin_t));
data/libgadu-1.12.2/src/handlers.c:933: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(&len, p + 1, sizeof(uint16_t));
data/libgadu-1.12.2/src/handlers.c:962: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(buf, p, len);
data/libgadu-1.12.2/src/handlers.c:1473: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(ev->formats, msg->data.data, msg->data.len);
data/libgadu-1.12.2/src/handlers.c:1490: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(ev->recipients, chat->participants,
data/libgadu-1.12.2/src/handlers.c:1604: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(&t, ptr + len - 4, sizeof(uint32_t));
data/libgadu-1.12.2/src/handlers.c:1638: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(ge->event.notify_descr.notify, ptr, sizeof(*n));
data/libgadu-1.12.2/src/handlers.c:1665: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(ge->event.notify, ptr, len);
data/libgadu-1.12.2/src/handlers.c:2106: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(key, p, key_size);
data/libgadu-1.12.2/src/handlers.c:2144: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(value, p, value_size);
data/libgadu-1.12.2/src/handlers.c:2191: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(&uin, &n->uin, sizeof(uin_t));
data/libgadu-1.12.2/src/handlers.c:2274: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(sessions[i].name, p, name_size);
data/libgadu-1.12.2/src/handlers.c:2852: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(tmp, ptr, len);
data/libgadu-1.12.2/src/http.c:306:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024], *tmp;
data/libgadu-1.12.2/src/http.c:349: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(h->header + h->header_size, buf, res);
data/libgadu-1.12.2/src/http.c:390: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).
					h->body_size = atoi(line + 16);
data/libgadu-1.12.2/src/http.c:426: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(h->body, tmp + sep_len, left);
data/libgadu-1.12.2/src/http.c:441:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/libgadu-1.12.2/src/http.c:506: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(h->body + h->body_done, buf, res);
data/libgadu-1.12.2/src/libgadu.c:485: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(sess->send_buf + sess->send_left, buf + res, length - res);
data/libgadu-1.12.2/src/libgadu.c:744: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(tmp + tmp_length, payload, payload_length);
data/libgadu-1.12.2/src/libgadu.c:918:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			port = atoi(colon + 1);
data/libgadu-1.12.2/src/libgadu.c:939: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(&sess_private->socket_manager,
data/libgadu-1.12.2/src/libgadu.c:1648: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(generated_format + 1, &fixed_fmt_len, sizeof(fixed_fmt_len));
data/libgadu-1.12.2/src/libgadu.c:2118:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1910];
data/libgadu-1.12.2/src/libgadu.c:2176:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + buflen, image, chunklen);
data/libgadu-1.12.2/src/libgadu.c:2190: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(&it->msg_hdr, &s, sizeof(s));
data/libgadu-1.12.2/src/libgadu.c:2191: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(it->buf, buf, buflen + chunklen);
data/libgadu-1.12.2/src/libgadu.c:2647: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.uin, &uin, sizeof(uin_t));
data/libgadu-1.12.2/src/message.c:140: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(tmp, recipients, recipient_count * sizeof(uin_t));
data/libgadu-1.12.2/src/message.c:373: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[*pos], src, len);
data/libgadu-1.12.2/src/message.c:652: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(*format, color, color_size);
data/libgadu-1.12.2/src/message.c:664: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(old_color, color, color_size);
data/libgadu-1.12.2/src/message.c:690: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 color[3] = { 0 }, old_color[3] = { 0 };
data/libgadu-1.12.2/src/message.c:750: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 img_attr[13];
data/libgadu-1.12.2/src/message.c:753: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.
							char buf[3] = { 0 };
data/libgadu-1.12.2/src/message.c:768: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.
							memcpy(format, img_attr, sizeof(img_attr));
data/libgadu-1.12.2/src/message.c:837: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.
							char buf[3] = { 0 };
data/libgadu-1.12.2/src/protobuf-c.c:206:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_data, simp->data, simp->len);
data/libgadu-1.12.2/src/protobuf-c.c:214: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(simp->data + simp->len, data, len);
data/libgadu-1.12.2/src/protobuf-c.c:596:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			size_t len = strlen(((char **) array)[i]);
data/libgadu-1.12.2/src/protobuf-c.c:838: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(out, &value, 4);
data/libgadu-1.12.2/src/protobuf-c.c:869: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(out, &value, 8);
data/libgadu-1.12.2/src/protobuf-c.c:921: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(out + rv, str, len);
data/libgadu-1.12.2/src/protobuf-c.c:942: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(out + rv, bd->data, len);
data/libgadu-1.12.2/src/protobuf-c.c:1179: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(out, in, n * 4);
data/libgadu-1.12.2/src/protobuf-c.c:1202: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(out, in, n * 8);
data/libgadu-1.12.2/src/protobuf-c.c:1363: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(out + rv, field->data, field->len);
data/libgadu-1.12.2/src/protobuf-c.c:2056: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(new_field, *p_earlier,
data/libgadu-1.12.2/src/protobuf-c.c:2058: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(new_field +
data/libgadu-1.12.2/src/protobuf-c.c:2172: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(latter_elem, earlier_elem, el_size);
data/libgadu-1.12.2/src/protobuf-c.c:2284: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(&t, data, 4);
data/libgadu-1.12.2/src/protobuf-c.c:2328: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(&t, data, 8);
data/libgadu-1.12.2/src/protobuf-c.c:2416: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(*pstr, data + pref_len, len - pref_len);
data/libgadu-1.12.2/src/protobuf-c.c:2439: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(bd->data, data + pref_len, len - pref_len);
data/libgadu-1.12.2/src/protobuf-c.c:2709: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(array, at, count * siz);
data/libgadu-1.12.2/src/protobuf-c.c:2742: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(ufield->data, scanned_member->data, ufield->len);
data/libgadu-1.12.2/src/protobuf-c.c:2807: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(field, dv, 4);
data/libgadu-1.12.2/src/protobuf-c.c:2815: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(field, dv, 8);
data/libgadu-1.12.2/src/protobuf-c.c:2818: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(field, dv, sizeof(protobuf_c_boolean));
data/libgadu-1.12.2/src/protobuf-c.c:2821: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(field, dv, sizeof(ProtobufCBinaryData));
data/libgadu-1.12.2/src/protobuf-c.c:2893: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 required_fields_bitmap_stack[16];
data/libgadu-1.12.2/src/protobuf-c.c:3198:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
						do_free(allocator, ((char **) arr)[i]);
data/libgadu-1.12.2/src/protobuf.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[GG_PROTOBUFF_UIN_MAXLEN + 1 + 2];
data/libgadu-1.12.2/src/pubdir.c:832: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(h, h2, sizeof(struct gg_http));
data/libgadu-1.12.2/src/pubdir50.c:419: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).
			res->next = value ? atoi(value) : 0;
data/libgadu-1.12.2/src/resolver.c:190: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(&((*result)[i]), he_ptr->h_addr_list[i], sizeof(struct in_addr));
data/libgadu-1.12.2/src/resolver.c:261: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(&((*result)[i]), he->h_addr_list[i], sizeof(struct in_addr));
data/libgadu-1.12.2/src/sha1.c:75: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 buffer[64];
data/libgadu-1.12.2/src/sha1.c:78:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 SHA1_Transform(uint32_t state[5], const unsigned char buffer[64]);
data/libgadu-1.12.2/src/sha1.c:81:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int SHA1_Final(unsigned char digest[20], SHA_CTX* context);
data/libgadu-1.12.2/src/sha1.c:108:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 SHA1_Transform(uint32_t state[5], const unsigned char buffer[64])
data/libgadu-1.12.2/src/sha1.c:112: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 c[64];
data/libgadu-1.12.2/src/sha1.c:187:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&context->buffer[j], data, (i = 64-j));
data/libgadu-1.12.2/src/sha1.c:195: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(&context->buffer[j], &data[i], len - i);
data/libgadu-1.12.2/src/sha1.c:203:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int SHA1_Final(unsigned char digest[20], SHA_CTX* context)
data/libgadu-1.12.2/src/sha1.c:206:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char finalcount[8];
data/libgadu-1.12.2/src/sha1.c:285: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/libgadu-1.12.2/src/tvbuff.c:256: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(&val, tvb->buffer + tvb->offset, 4);
data/libgadu-1.12.2/src/tvbuff.c:282: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(&val, tvb->buffer + tvb->offset, 8);
data/libgadu-1.12.2/src/tvbuff.c:402: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(buffer, tvb->buffer + tvb->offset, length);
data/libgadu-1.12.2/src/tvbuilder.c:386: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(buff, buffer, length);
data/libgadu-1.12.2/src/tvbuilder.c:418:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char uin_str[16];
data/libgadu-1.12.2/test/automatic/connect.c:218:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[4096], *tmp;
data/libgadu-1.12.2/test/automatic/connect.c:291:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_list[2];
data/libgadu-1.12.2/test/automatic/connect.c:292:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1];
data/libgadu-1.12.2/test/automatic/connect.c:308:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[256];
data/libgadu-1.12.2/test/automatic/connect.c:420: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(&sin, address, address_len);
data/libgadu-1.12.2/test/automatic/connect.c:742:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/libgadu-1.12.2/test/automatic/connect.c:1209:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cert_file_path[2000], key_file_path[2000];
data/libgadu-1.12.2/test/automatic/connect.c:1277:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		test_from = atoi(argv[1]);
data/libgadu-1.12.2/test/automatic/connect.c:1278: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).
		test_to = atoi(argv[2]);
data/libgadu-1.12.2/test/automatic/hash.c:37:8:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	ret = mkstemp(path);
data/libgadu-1.12.2/test/automatic/hash.c:51:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ret = open(path, O_EXCL | O_RDWR | O_CREAT, file_mask);
data/libgadu-1.12.2/test/automatic/hash.c:60:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char str[41];
data/libgadu-1.12.2/test/automatic/hash.c:64: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(str + i * 2, "%02x", sha1[i]);
data/libgadu-1.12.2/test/automatic/hash.c:131:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/libgadu-1.12.2/test/automatic/hash.c:134:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(name, "hashdata.XXXXXX");
data/libgadu-1.12.2/test/automatic/message2.c:309: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(result, xmls, strlen(xmls));
data/libgadu-1.12.2/test/automatic/message2.c:312: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(result, "<html>", strlen("<html>"));
data/libgadu-1.12.2/test/automatic/message2.c:314:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(result, "</html>");
data/libgadu-1.12.2/test/automatic/message2.c:319: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(tmp, "<x/>", 4);
data/libgadu-1.12.2/test/automatic/message2.c:324: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(tmp + 1, "xx", 2);
data/libgadu-1.12.2/test/automatic/packet.c:129: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(buf, input[state].data + offset, len);
data/libgadu-1.12.2/test/automatic/packet.c:133: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(buf, input[state].data + offset, result - offset);
data/libgadu-1.12.2/test/automatic/protocol.c:37: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 outbuf[4096];
data/libgadu-1.12.2/test/automatic/protocol.c:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char inbuf[4096];
data/libgadu-1.12.2/test/automatic/protocol.c:200: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(outbuf + outbuflen, script[state].data, script[state].data_len);
data/libgadu-1.12.2/test/automatic/protocol.c:219: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(outbuf + outbuflen,
data/libgadu-1.12.2/test/automatic/resolver.c:44:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char *addr_list[2];
data/libgadu-1.12.2/test/automatic/resolver.c:45:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char sname[128];
data/libgadu-1.12.2/test/automatic/resolver.c:86: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(ret, tmp, sizeof(struct hostent));
data/libgadu-1.12.2/test/manual/client.c:72: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(*host, arg, len);
data/libgadu-1.12.2/test/manual/client.c:76:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*port = atoi(colon + 1);
data/libgadu-1.12.2/test/manual/client.c:128:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				glp.last_sysmsg = atoi(optarg);
data/libgadu-1.12.2/test/manual/client.c:146: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).
		config_uin = atoi(argv[optind]);
data/libgadu-1.12.2/test/manual/dcc7.c:78: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, address, address_len);
data/libgadu-1.12.2/test/manual/dcc7.c:102:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (argc != 2 || atoi(argv[1]) >= TEST_MODE_LAST) {
data/libgadu-1.12.2/test/manual/dcc7.c:114:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	test_mode = atoi(argv[1]);
data/libgadu-1.12.2/test/manual/dcc7.c:308:22:  [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).
							gd->file_fd = open((char*) gd->filename,
data/libgadu-1.12.2/test/manual/dcc7.c:314:22:  [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).
							gd->file_fd = open("/dev/null", O_WRONLY);
data/libgadu-1.12.2/test/manual/dcc7.c:393:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[4096];
data/libgadu-1.12.2/test/manual/lib/base64.c:51: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, bptr->data, bptr->length - 1);
data/libgadu-1.12.2/test/manual/lib/hmac.c:34: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(digest, res, len);
data/libgadu-1.12.2/test/manual/lib/hmac.c:45: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 k_ipad[64];    /* inner padding -
data/libgadu-1.12.2/test/manual/lib/hmac.c:48: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 k_opad[64];    /* outer padding -
data/libgadu-1.12.2/test/manual/lib/hmac.c:51: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 tk[20];
data/libgadu-1.12.2/test/manual/lib/hmac.c:80:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( k_ipad, key, key_len);
data/libgadu-1.12.2/test/manual/lib/hmac.c:81:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( k_opad, key, key_len);
data/libgadu-1.12.2/test/manual/lib/http.c:52: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(new_text + text_len, ptr, bytes);
data/libgadu-1.12.2/test/manual/lib/oauth.c:129: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 digest[20];
data/libgadu-1.12.2/test/manual/lib/oauth.c:159:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[80], timestamp[16];
data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c:110:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(out, "Authorization: OAuth ");
data/libgadu-1.12.2/test/manual/lib/sha1.c:54: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 buffer[64];
data/libgadu-1.12.2/test/manual/lib/sha1.c:57:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 SHA1_Transform(uint32_t state[5], const unsigned char buffer[64]);
data/libgadu-1.12.2/test/manual/lib/sha1.c:60:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void SHA1_Final(unsigned char digest[20], SHA_CTX* context);
data/libgadu-1.12.2/test/manual/lib/sha1.c:87:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 SHA1_Transform(uint32_t state[5], const unsigned char buffer[64])
data/libgadu-1.12.2/test/manual/lib/sha1.c:91: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 c[64];
data/libgadu-1.12.2/test/manual/lib/sha1.c:164:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&context->buffer[j], data, (i = 64-j));
data/libgadu-1.12.2/test/manual/lib/sha1.c:172: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(&context->buffer[j], &data[i], len - i);
data/libgadu-1.12.2/test/manual/lib/sha1.c:178:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void SHA1_Final(unsigned char digest[20], SHA_CTX* context)
data/libgadu-1.12.2/test/manual/lib/sha1.c:181:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char finalcount[8];
data/libgadu-1.12.2/test/manual/lib/sha1.h:35: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 buffer[64];
data/libgadu-1.12.2/test/manual/lib/sha1.h:40:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void SHA1_Final(unsigned char digest[20], SHA_CTX* context);
data/libgadu-1.12.2/test/manual/lib/xml.c:95:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp, str, len);
data/libgadu-1.12.2/test/manual/lib/xml.c:100: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).
			state->status = atoi(tmp);
data/libgadu-1.12.2/test/manual/lib/xml.c:112:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			state->token_expires_in = atoi(tmp);
data/libgadu-1.12.2/test/manual/search.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libgadu-1.12.2/test/manual/search.c:42:12:  [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 (!(f = fopen("config", "r"))) {
data/libgadu-1.12.2/test/manual/search.c:43: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 (!(f = fopen("../config", "r")))
data/libgadu-1.12.2/test/manual/userconfig.c:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libgadu-1.12.2/test/manual/userconfig.c:44:12:  [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 (!(f = fopen("config", "r"))) {
data/libgadu-1.12.2/test/manual/userconfig.c:45: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 (!(f = fopen("../config", "r")))
data/libgadu-1.12.2/test/manual/userconfig.c:54: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).
			config_uin = atoi(buf + 4);
data/libgadu-1.12.2/test/manual/userconfig.c:62: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).
			config_peer = atoi(buf + 5);
data/libgadu-1.12.2/test/manual/userconfig.c:75: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).
			config_size = atoi(buf + 5);
data/libgadu-1.12.2/test/manual/userconfig.c:81: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).
			config_port = atoi(buf + 5);
data/libgadu-1.12.2/test/manual/userlist.c:68:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				version = atoi(optarg);
data/libgadu-1.12.2/test/manual/userlist.c:99:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					format = atoi(optarg);
data/libgadu-1.12.2/test/manual/userlist.c:143:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/libgadu-1.12.2/test/manual/voice7.c:138:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((voice_fd = open(pathname, O_RDWR)) == -1)
data/libgadu-1.12.2/test/manual/voice7.c:342:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (atoi(argv[1]) >= TEST_MODE_LAST)
data/libgadu-1.12.2/test/manual/voice7.c:345:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	test_mode = atoi(argv[1]);
data/libgadu-1.12.2/test/manual/voice7.c:616:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[GG_DCC_VOICE_FRAME_LENGTH];	/* dłuższy z buforów */
data/libgadu-1.12.2/examples/httphash.c:55:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(buf, "");
data/libgadu-1.12.2/examples/httphash.c:58:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(buf, "s");
data/libgadu-1.12.2/examples/httphash.c:79:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(buf, "");
data/libgadu-1.12.2/examples/httphash.c:82:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(buf, "s");
data/libgadu-1.12.2/include/fileio.h:43:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  undef read
data/libgadu-1.12.2/include/fileio.h:44:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  define read _read
data/libgadu-1.12.2/src/common.c:173:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*ptr += strlen(*ptr);
data/libgadu-1.12.2/src/common.c:179:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(res);
data/libgadu-1.12.2/src/common.c:330:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/libgadu-1.12.2/src/common.c:417:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (j = 0; j < strlen(format); j++) {
data/libgadu-1.12.2/src/common.c:461: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).
	unsigned int i = 0, j = 0, k = 0, len = strlen(buf);
data/libgadu-1.12.2/src/common.c:526: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).
	save = res = calloc(1, (strlen(buf) / 4 + 1) * 3 + 2);
data/libgadu-1.12.2/src/common.c:531: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).
	end = buf + strlen(buf);
data/libgadu-1.12.2/src/common.c:583: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).
	tmp_size = strlen(gg_proxy_username) + strlen(gg_proxy_password) + 2;
data/libgadu-1.12.2/src/common.c:583:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tmp_size = strlen(gg_proxy_username) + strlen(gg_proxy_password) + 2;
data/libgadu-1.12.2/src/common.c:598:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	out = malloc(strlen(enc) + 40);
data/libgadu-1.12.2/src/common.c:604:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	snprintf(out, strlen(enc) + 40,  "Proxy-Authorization: Basic %s\r\n", enc);
data/libgadu-1.12.2/src/common.c:720:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(str);
data/libgadu-1.12.2/src/dcc.c:181:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ext = name + strlen(name);
data/libgadu-1.12.2/src/dcc.c:191: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(ext) > 0) {
data/libgadu-1.12.2/src/dcc.c:220:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char*) d->file_info.filename, name, sizeof(d->file_info.filename) - 1);
data/libgadu-1.12.2/src/dcc.c:1198:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				size = read(h->file_fd, buf, utmp);
data/libgadu-1.12.2/src/dcc7.c:440:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char*) dcc->filename, filename1250, GG_DCC7_FILENAME_LEN);
data/libgadu-1.12.2/src/dcc7.c:964:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy((char*) dcc->filename, (char*) p->filename, GG_DCC7_FILENAME_LEN);
data/libgadu-1.12.2/src/dcc7.c:1341:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ((res = read(dcc->file_fd, buf, chunk)) < 1) {
data/libgadu-1.12.2/src/deflate.c:62:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strm.avail_in = strlen(in);
data/libgadu-1.12.2/src/encoding.c:244:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		src_length = strlen(src);
data/libgadu-1.12.2/src/encoding.c:259:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(result, src, len);
data/libgadu-1.12.2/src/events.c:701:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen(inet_ntoa(addrs[i]));
data/libgadu-1.12.2/src/events.c:958: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).
	req_len = strlen(req);
data/libgadu-1.12.2/src/events.c:1085:8:  [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(body, "%d %*d %128s", &reply, host);
data/libgadu-1.12.2/src/events.c:1169: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).
		host_len = strlen(sess->connect_host);
data/libgadu-1.12.2/src/events.c:1175:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			white_len = strlen(white);
data/libgadu-1.12.2/src/events.c:1248: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).
	req_len = strlen(req);
data/libgadu-1.12.2/src/handlers.c:287: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).
		memset(gs->password, 0, strlen(gs->password));
data/libgadu-1.12.2/src/handlers.c:322: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).
		client_name_len = strlen(GG8_VERSION);
data/libgadu-1.12.2/src/handlers.c:326: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).
	version_len = gg_fix32(client_name_len + strlen(version));
data/libgadu-1.12.2/src/handlers.c:329: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).
	descr_len = (gs->initial_descr != NULL) ? gg_fix32(strlen(gs->initial_descr)) : 0;
data/libgadu-1.12.2/src/handlers.c:336:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			version, strlen(version),
data/libgadu-1.12.2/src/handlers.c:338:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			descr, strlen(descr),
data/libgadu-1.12.2/src/handlers.c:632:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		unsigned int reply_len = (gs->userlist_reply != NULL) ? strlen(gs->userlist_reply) : 0;
data/libgadu-1.12.2/src/handlers.c:807:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len -= strlen(p) + 1;
data/libgadu-1.12.2/src/handlers.c:808: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).
		p += strlen(p) + 1;
data/libgadu-1.12.2/src/http.c:266: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).
		res = send(h->fd, h->query, strlen(h->query), 0);
data/libgadu-1.12.2/src/http.c:271:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(h->query), res, errno);
data/libgadu-1.12.2/src/http.c:282:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((size_t) res < strlen(h->query)) {
data/libgadu-1.12.2/src/http.c:285:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(h->query), res);
data/libgadu-1.12.2/src/http.c:287: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).
			memmove(h->query, h->query + res, strlen(h->query) - res + 1);
data/libgadu-1.12.2/src/http.c:293:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				GG_SIZE_FMT ")\n", strlen(h->query));
data/libgadu-1.12.2/src/http.c:368:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(h->header) < 16 || strncmp(h->header + 9, "200", 3)) {
data/libgadu-1.12.2/src/libgadu.c:1008: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(sess->initial_descr) > GG_STATUS_DESCR_MAXSIZE)
data/libgadu-1.12.2/src/libgadu.c:1345:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		descr_len = strlen(descr);
data/libgadu-1.12.2/src/libgadu.c:1729:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s80.offset_plain = gg_fix32(sizeof(s80) + strlen(utf_html_msg) + 1);
data/libgadu-1.12.2/src/libgadu.c:1730: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).
	s80.offset_attr = gg_fix32(sizeof(s80) + strlen(utf_html_msg) + 1 + strlen(cp_msg) + 1);
data/libgadu-1.12.2/src/libgadu.c:1730:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s80.offset_attr = gg_fix32(sizeof(s80) + strlen(utf_html_msg) + 1 + strlen(cp_msg) + 1);
data/libgadu-1.12.2/src/libgadu.c:1759:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(utf_html_msg) + 1, cp_msg,
data/libgadu-1.12.2/src/libgadu.c:1760:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(cp_msg) + 1, &r, sizeof(r), recps,
data/libgadu-1.12.2/src/libgadu.c:1773:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			utf_html_msg, strlen(utf_html_msg) + 1, cp_msg,
data/libgadu-1.12.2/src/libgadu.c:1774:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(cp_msg) + 1, format, formatlen, NULL) == -1)
data/libgadu-1.12.2/src/libgadu.c:2145: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(filename) < 1 || strlen(filename) > 1024) {
data/libgadu-1.12.2/src/libgadu.c:2145: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 (strlen(filename) < 1 || strlen(filename) > 1024) {
data/libgadu-1.12.2/src/libgadu.c:2171: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).
			buflen += strlen(filename) + 1;
data/libgadu-1.12.2/src/libgadu.c:2543:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(request);
data/libgadu-1.12.2/src/message.c:953: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).
		text_len = strlen(text);
data/libgadu-1.12.2/src/protobuf-c.c:447:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = str ? strlen(str) : 0;
data/libgadu-1.12.2/src/protobuf-c.c:596: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).
			size_t len = strlen(((char **) array)[i]);
data/libgadu-1.12.2/src/protobuf-c.c:919:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = strlen(str);
data/libgadu-1.12.2/src/protobuf-c.c:1488: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 sublen = str ? strlen(str) : 0;
data/libgadu-1.12.2/src/pubdir.c:100: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).
		(int) strlen(form), form);
data/libgadu-1.12.2/src/pubdir.c:238: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).
		(int) strlen(form), form);
data/libgadu-1.12.2/src/pubdir.c:383: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).
		(int) strlen(form), form);
data/libgadu-1.12.2/src/pubdir.c:515: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).
		(int) strlen(form), form);
data/libgadu-1.12.2/src/pubdir.c:764: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).
		results_len = h->body ? strlen(h->body) : 0;
data/libgadu-1.12.2/src/pubdir50.c:226: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(req->entries[i].field) + 1;
data/libgadu-1.12.2/src/pubdir50.c:227: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(req->entries[i].value) + 1;
data/libgadu-1.12.2/src/pubdir50.c:237: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(tmp) + 1;
data/libgadu-1.12.2/src/pubdir50.c:247: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(tmp) + 1;
data/libgadu-1.12.2/src/pubdir50.c:273: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).
			p += strlen(p) + 1;
data/libgadu-1.12.2/src/pubdir50.c:276: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).
			p += strlen(p) + 1;
data/libgadu-1.12.2/src/pubdir50.c:289: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).
			p += strlen(tmp) + 1;
data/libgadu-1.12.2/src/pubdir50.c:302: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).
			p += strlen(tmp) + 1;
data/libgadu-1.12.2/src/resolver.c:1187:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(fd, buf, len);
data/libgadu-1.12.2/src/sha1.c:255: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 (!SHA1_Update(&ctx, (const unsigned char*) password, strlen(password)))
data/libgadu-1.12.2/src/sha1.c:300:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = read(fd, buf, chunk_len);
data/libgadu-1.12.2/src/tvbuilder.c:404: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).
		length = strlen(buffer);
data/libgadu-1.12.2/test/automatic/connect.c:238: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).
		len = (log_buffer != NULL) ? strlen(log_buffer) : 0;
data/libgadu-1.12.2/test/automatic/connect.c:240: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).
		tmp = realloc(log_buffer, len + strlen(buf) + 1);
data/libgadu-1.12.2/test/automatic/connect.c:328:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (buflen < sizeof(*storage) + strlen(name))
data/libgadu-1.12.2/test/automatic/connect.c:910: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).
								strlen(hub_reply), 0) !=
data/libgadu-1.12.2/test/automatic/connect.c:911:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
								(ssize_t)strlen(hub_reply))
data/libgadu-1.12.2/test/automatic/connect.c:918: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).
								strlen(hub_ssl_reply), 0) !=
data/libgadu-1.12.2/test/automatic/connect.c:919:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
								(ssize_t)strlen(hub_ssl_reply))
data/libgadu-1.12.2/test/automatic/connect.c:968:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							strlen("GET http://" GG_APPMSG_HOST)) == 0)
data/libgadu-1.12.2/test/automatic/connect.c:974:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
										strlen(hub_reply), 0) !=
data/libgadu-1.12.2/test/automatic/connect.c:975:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
										(ssize_t)strlen(hub_reply))
data/libgadu-1.12.2/test/automatic/connect.c:983:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
										strlen(hub_ssl_reply), 0) !=
data/libgadu-1.12.2/test/automatic/connect.c:984:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
										(ssize_t)strlen(hub_ssl_reply))
data/libgadu-1.12.2/test/automatic/connect.c:993:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen(proxy_error), 0) !=
data/libgadu-1.12.2/test/automatic/connect.c:994: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).
									(ssize_t)strlen(proxy_error))
data/libgadu-1.12.2/test/automatic/connect.c:1007:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							strlen("CONNECT " HOST_LOCAL ":443 ")) == 0)
data/libgadu-1.12.2/test/automatic/connect.c:1013:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen(proxy_reply), 0) !=
data/libgadu-1.12.2/test/automatic/connect.c:1014: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).
									(ssize_t)strlen(proxy_reply))
data/libgadu-1.12.2/test/automatic/connect.c:1066:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
									strlen(proxy_error), 0) !=
data/libgadu-1.12.2/test/automatic/connect.c:1067: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).
									(ssize_t)strlen(proxy_error))
data/libgadu-1.12.2/test/automatic/connect.c:1077: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).
								strlen(proxy_error), 0) !=
data/libgadu-1.12.2/test/automatic/connect.c:1078:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
								(ssize_t)strlen(proxy_error))
data/libgadu-1.12.2/test/automatic/connect.c:1228:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	srcdir_len = strlen(srcdir);
data/libgadu-1.12.2/test/automatic/connect.c:1235:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(cert_file_path, srcdir, srcdir_len);
data/libgadu-1.12.2/test/automatic/connect.c:1236:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(key_file_path, srcdir, srcdir_len);
data/libgadu-1.12.2/test/automatic/connect.c:1321:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(10000); /* 10ms */
data/libgadu-1.12.2/test/automatic/hash.c:35:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	old_umask = umask(file_mask);
data/libgadu-1.12.2/test/automatic/hash.c:40:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (_mktemp_s(path, strlen(path) + 1) != 0)
data/libgadu-1.12.2/test/automatic/hash.c:53:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(old_umask);
data/libgadu-1.12.2/test/automatic/message2.c:291: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).
		tmp = realloc(result, strlen(result) +
data/libgadu-1.12.2/test/automatic/message2.c:292:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen("<?xml version=\"1.0\" "
data/libgadu-1.12.2/test/automatic/message2.c:295: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).
		tmp = realloc(result, strlen(result) + strlen("<html></html>") + 1);
data/libgadu-1.12.2/test/automatic/message2.c:295: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).
		tmp = realloc(result, strlen(result) + strlen("<html></html>") + 1);
data/libgadu-1.12.2/test/automatic/message2.c:308:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memmove(result + strlen(xmls), result, strlen(result) + 1);
data/libgadu-1.12.2/test/automatic/message2.c:308: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).
		memmove(result + strlen(xmls), result, strlen(result) + 1);
data/libgadu-1.12.2/test/automatic/message2.c:309:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memcpy(result, xmls, strlen(xmls));
data/libgadu-1.12.2/test/automatic/message2.c:311:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memmove(result + strlen("<html>"), result, strlen(result) + 1);
data/libgadu-1.12.2/test/automatic/message2.c:311: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).
		memmove(result + strlen("<html>"), result, strlen(result) + 1);
data/libgadu-1.12.2/test/automatic/message2.c:312: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).
		memcpy(result, "<html>", strlen("<html>"));
data/libgadu-1.12.2/test/automatic/message2.c:338: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).
	doc = xmlCtxtReadMemory(ctxt, result, strlen(result), "", NULL, 0);
data/libgadu-1.12.2/test/automatic/resolver.c:55:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sname, name, sizeof(sname) - 1);
data/libgadu-1.12.2/test/manual/lib/base64.c:41:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(input);
data/libgadu-1.12.2/test/manual/lib/base64.c:85:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(buf);
data/libgadu-1.12.2/test/manual/lib/base64.c:150: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).
	save = res = calloc(1, (strlen(buf) / 4 + 1) * 3 + 2);
data/libgadu-1.12.2/test/manual/lib/base64.c:155: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).
	end = buf + strlen(buf);
data/libgadu-1.12.2/test/manual/lib/http.c:42: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).
		text_len = strlen(*text_ptr);
data/libgadu-1.12.2/test/manual/lib/oauth.c:142: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).
	gg_hmac_sha1((unsigned char*) text, strlen(text), (unsigned char*) key, strlen(key), digest);
data/libgadu-1.12.2/test/manual/lib/oauth.c:142: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).
	gg_hmac_sha1((unsigned char*) text, strlen(text), (unsigned char*) key, strlen(key), digest);
data/libgadu-1.12.2/test/manual/lib/oauth.c:165:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(nonce, gg_oauth_static_nonce, sizeof(nonce) - 1);
data/libgadu-1.12.2/test/manual/lib/oauth.c:172:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(timestamp, gg_oauth_static_timestamp, sizeof(timestamp) - 1);
data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c:87:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len += strlen("Authorization: OAuth ");
data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c:90:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len += strlen(p->key);
data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c:111:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		out += strlen(out);
data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c:116: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).
		out += strlen(p->key);
data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c:118:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(out++, "=");
data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c:121:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(out++, "\"");
data/libgadu-1.12.2/test/manual/lib/oauth_parameter.c:126:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(out++, "\"");
data/libgadu-1.12.2/test/manual/lib/xml.c:143:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!XML_Parse(parser, reply, strlen(reply), 1)) {
data/libgadu-1.12.2/test/manual/lib/xml.c:186:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (parse_token_reply(test, strlen(test), &token, &token_secret) == -1) {
data/libgadu-1.12.2/test/manual/search.c:48: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).
		while (strlen(buf) > 0 && isspace(buf[strlen(buf) - 1]))
data/libgadu-1.12.2/test/manual/search.c:48:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		while (strlen(buf) > 0 && isspace(buf[strlen(buf) - 1]))
data/libgadu-1.12.2/test/manual/search.c:49: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).
			buf[strlen(buf) - 1] = 0;
data/libgadu-1.12.2/test/manual/userconfig.c:50: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).
		while (strlen(buf) > 0 && isspace(buf[strlen(buf) - 1]))
data/libgadu-1.12.2/test/manual/userconfig.c:50:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		while (strlen(buf) > 0 && isspace(buf[strlen(buf) - 1]))
data/libgadu-1.12.2/test/manual/userconfig.c:51: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).
			buf[strlen(buf) - 1] = 0;
data/libgadu-1.12.2/test/manual/userlist.c:149:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = (content == NULL) ? 0 : strlen(content);
data/libgadu-1.12.2/test/manual/userlist.c:151: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).
			tmp = realloc(content, len + strlen(buf) + 1);
data/libgadu-1.12.2/test/manual/voice7.c:159:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(voice_fd, &tmp, sizeof(tmp)) != sizeof(tmp))
data/libgadu-1.12.2/test/manual/voice7.c:221:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			return read(voice_fd, input, 320);
data/libgadu-1.12.2/test/manual/voice7.c:225:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(voice_fd, input, 320) != 320)
data/libgadu-1.12.2/test/manual/voice7.c:239:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(voice_fd, input, 320) != 320)

ANALYSIS SUMMARY:

Hits = 420
Lines analyzed = 33550 in approximately 0.93 seconds (36022 lines/second)
Physical Source Lines of Code (SLOC) = 21749
Hits@level = [0] 287 [1] 155 [2] 225 [3]   9 [4]  31 [5]   0
Hits@level+ = [0+] 707 [1+] 420 [2+] 265 [3+]  40 [4+]  31 [5+]   0
Hits/KSLOC@level+ = [0+] 32.5072 [1+] 19.3112 [2+] 12.1845 [3+] 1.83917 [4+] 1.42535 [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.