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/libsoup2.4-2.72.0/examples/get.c Examining data/libsoup2.4-2.72.0/examples/simple-httpd.c Examining data/libsoup2.4-2.72.0/examples/simple-proxy.c Examining data/libsoup2.4-2.72.0/libsoup/gconstructor.h Examining data/libsoup2.4-2.72.0/libsoup/soup-address.c Examining data/libsoup2.4-2.72.0/libsoup/soup-address.h Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-basic.c Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-basic.h Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-domain-basic.c Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-domain-basic.h Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-domain-digest.c Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-domain-digest.h Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-domain.c Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-domain.h Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-manager.c Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-manager.h Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-negotiate.c Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-negotiate.h Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c Examining data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.h Examining data/libsoup2.4-2.72.0/libsoup/soup-auth.c Examining data/libsoup2.4-2.72.0/libsoup/soup-auth.h Examining data/libsoup2.4-2.72.0/libsoup/soup-autocleanups.h Examining data/libsoup2.4-2.72.0/libsoup/soup-body-input-stream.c Examining data/libsoup2.4-2.72.0/libsoup/soup-body-input-stream.h Examining data/libsoup2.4-2.72.0/libsoup/soup-body-output-stream.c Examining data/libsoup2.4-2.72.0/libsoup/soup-body-output-stream.h Examining data/libsoup2.4-2.72.0/libsoup/soup-brotli-decompressor.c Examining data/libsoup2.4-2.72.0/libsoup/soup-brotli-decompressor.h Examining data/libsoup2.4-2.72.0/libsoup/soup-cache-client-input-stream.c Examining data/libsoup2.4-2.72.0/libsoup/soup-cache-client-input-stream.h Examining data/libsoup2.4-2.72.0/libsoup/soup-cache-input-stream.c Examining data/libsoup2.4-2.72.0/libsoup/soup-cache-input-stream.h Examining data/libsoup2.4-2.72.0/libsoup/soup-cache-private.h Examining data/libsoup2.4-2.72.0/libsoup/soup-cache.c Examining data/libsoup2.4-2.72.0/libsoup/soup-cache.h Examining data/libsoup2.4-2.72.0/libsoup/soup-client-input-stream.c Examining data/libsoup2.4-2.72.0/libsoup/soup-client-input-stream.h Examining data/libsoup2.4-2.72.0/libsoup/soup-connection-auth.c Examining data/libsoup2.4-2.72.0/libsoup/soup-connection-auth.h Examining data/libsoup2.4-2.72.0/libsoup/soup-connection.c Examining data/libsoup2.4-2.72.0/libsoup/soup-connection.h Examining data/libsoup2.4-2.72.0/libsoup/soup-content-decoder.c Examining data/libsoup2.4-2.72.0/libsoup/soup-content-decoder.h Examining data/libsoup2.4-2.72.0/libsoup/soup-content-processor.c Examining data/libsoup2.4-2.72.0/libsoup/soup-content-processor.h Examining data/libsoup2.4-2.72.0/libsoup/soup-content-sniffer-stream.c Examining data/libsoup2.4-2.72.0/libsoup/soup-content-sniffer-stream.h Examining data/libsoup2.4-2.72.0/libsoup/soup-content-sniffer.c Examining data/libsoup2.4-2.72.0/libsoup/soup-content-sniffer.h Examining data/libsoup2.4-2.72.0/libsoup/soup-converter-wrapper.c Examining data/libsoup2.4-2.72.0/libsoup/soup-converter-wrapper.h Examining data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar-db.c Examining data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar-db.h Examining data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar-sqlite.c Examining data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar-sqlite.h Examining data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar-text.c Examining data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar-text.h Examining data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar.c Examining data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar.h Examining data/libsoup2.4-2.72.0/libsoup/soup-cookie.c Examining data/libsoup2.4-2.72.0/libsoup/soup-cookie.h Examining data/libsoup2.4-2.72.0/libsoup/soup-date.c Examining data/libsoup2.4-2.72.0/libsoup/soup-date.h Examining data/libsoup2.4-2.72.0/libsoup/soup-directory-input-stream.c Examining data/libsoup2.4-2.72.0/libsoup/soup-directory-input-stream.h Examining data/libsoup2.4-2.72.0/libsoup/soup-filter-input-stream.c Examining data/libsoup2.4-2.72.0/libsoup/soup-filter-input-stream.h Examining data/libsoup2.4-2.72.0/libsoup/soup-form.c Examining data/libsoup2.4-2.72.0/libsoup/soup-form.h Examining data/libsoup2.4-2.72.0/libsoup/soup-gnome-features.c Examining data/libsoup2.4-2.72.0/libsoup/soup-gnome-features.h Examining data/libsoup2.4-2.72.0/libsoup/soup-gnome.h Examining data/libsoup2.4-2.72.0/libsoup/soup-headers.c Examining data/libsoup2.4-2.72.0/libsoup/soup-headers.h Examining data/libsoup2.4-2.72.0/libsoup/soup-hsts-enforcer-db.c Examining data/libsoup2.4-2.72.0/libsoup/soup-hsts-enforcer-db.h Examining data/libsoup2.4-2.72.0/libsoup/soup-hsts-enforcer.c Examining data/libsoup2.4-2.72.0/libsoup/soup-hsts-enforcer.h Examining data/libsoup2.4-2.72.0/libsoup/soup-hsts-policy.c Examining data/libsoup2.4-2.72.0/libsoup/soup-hsts-policy.h Examining data/libsoup2.4-2.72.0/libsoup/soup-init.c Examining data/libsoup2.4-2.72.0/libsoup/soup-io-stream.c Examining data/libsoup2.4-2.72.0/libsoup/soup-io-stream.h Examining data/libsoup2.4-2.72.0/libsoup/soup-logger.c Examining data/libsoup2.4-2.72.0/libsoup/soup-logger.h Examining data/libsoup2.4-2.72.0/libsoup/soup-message-body.c Examining data/libsoup2.4-2.72.0/libsoup/soup-message-body.h Examining data/libsoup2.4-2.72.0/libsoup/soup-message-client-io.c Examining data/libsoup2.4-2.72.0/libsoup/soup-message-headers.c Examining data/libsoup2.4-2.72.0/libsoup/soup-message-headers.h Examining data/libsoup2.4-2.72.0/libsoup/soup-message-io.c Examining data/libsoup2.4-2.72.0/libsoup/soup-message-private.h Examining data/libsoup2.4-2.72.0/libsoup/soup-message-queue.c Examining data/libsoup2.4-2.72.0/libsoup/soup-message-queue.h Examining data/libsoup2.4-2.72.0/libsoup/soup-message-server-io.c Examining data/libsoup2.4-2.72.0/libsoup/soup-message.c Examining data/libsoup2.4-2.72.0/libsoup/soup-message.h Examining data/libsoup2.4-2.72.0/libsoup/soup-method.c Examining data/libsoup2.4-2.72.0/libsoup/soup-method.h Examining data/libsoup2.4-2.72.0/libsoup/soup-misc-private.h Examining data/libsoup2.4-2.72.0/libsoup/soup-misc.c Examining data/libsoup2.4-2.72.0/libsoup/soup-misc.h Examining data/libsoup2.4-2.72.0/libsoup/soup-multipart-input-stream.c Examining data/libsoup2.4-2.72.0/libsoup/soup-multipart-input-stream.h Examining data/libsoup2.4-2.72.0/libsoup/soup-multipart.c Examining data/libsoup2.4-2.72.0/libsoup/soup-multipart.h Examining data/libsoup2.4-2.72.0/libsoup/soup-password-manager-gnome.c Examining data/libsoup2.4-2.72.0/libsoup/soup-password-manager-gnome.h Examining data/libsoup2.4-2.72.0/libsoup/soup-password-manager.c Examining data/libsoup2.4-2.72.0/libsoup/soup-password-manager.h Examining data/libsoup2.4-2.72.0/libsoup/soup-path-map.c Examining data/libsoup2.4-2.72.0/libsoup/soup-path-map.h Examining data/libsoup2.4-2.72.0/libsoup/soup-portability.h Examining data/libsoup2.4-2.72.0/libsoup/soup-proxy-resolver-default.c Examining data/libsoup2.4-2.72.0/libsoup/soup-proxy-resolver-default.h Examining data/libsoup2.4-2.72.0/libsoup/soup-proxy-resolver-gnome.c Examining data/libsoup2.4-2.72.0/libsoup/soup-proxy-resolver-gnome.h Examining data/libsoup2.4-2.72.0/libsoup/soup-proxy-resolver-wrapper.c Examining data/libsoup2.4-2.72.0/libsoup/soup-proxy-resolver-wrapper.h Examining data/libsoup2.4-2.72.0/libsoup/soup-proxy-resolver.c Examining data/libsoup2.4-2.72.0/libsoup/soup-proxy-resolver.h Examining data/libsoup2.4-2.72.0/libsoup/soup-proxy-uri-resolver.c Examining data/libsoup2.4-2.72.0/libsoup/soup-proxy-uri-resolver.h Examining data/libsoup2.4-2.72.0/libsoup/soup-request-data.c Examining data/libsoup2.4-2.72.0/libsoup/soup-request-data.h Examining data/libsoup2.4-2.72.0/libsoup/soup-request-file.c Examining data/libsoup2.4-2.72.0/libsoup/soup-request-file.h Examining data/libsoup2.4-2.72.0/libsoup/soup-request-http.c Examining data/libsoup2.4-2.72.0/libsoup/soup-request-http.h Examining data/libsoup2.4-2.72.0/libsoup/soup-request.c Examining data/libsoup2.4-2.72.0/libsoup/soup-request.h Examining data/libsoup2.4-2.72.0/libsoup/soup-requester.c Examining data/libsoup2.4-2.72.0/libsoup/soup-requester.h Examining data/libsoup2.4-2.72.0/libsoup/soup-server.c Examining data/libsoup2.4-2.72.0/libsoup/soup-server.h Examining data/libsoup2.4-2.72.0/libsoup/soup-session-async.c Examining data/libsoup2.4-2.72.0/libsoup/soup-session-async.h Examining data/libsoup2.4-2.72.0/libsoup/soup-session-feature.c Examining data/libsoup2.4-2.72.0/libsoup/soup-session-feature.h Examining data/libsoup2.4-2.72.0/libsoup/soup-session-private.h Examining data/libsoup2.4-2.72.0/libsoup/soup-session-sync.c Examining data/libsoup2.4-2.72.0/libsoup/soup-session-sync.h Examining data/libsoup2.4-2.72.0/libsoup/soup-session.c Examining data/libsoup2.4-2.72.0/libsoup/soup-session.h Examining data/libsoup2.4-2.72.0/libsoup/soup-socket-private.h Examining data/libsoup2.4-2.72.0/libsoup/soup-socket-properties.c Examining data/libsoup2.4-2.72.0/libsoup/soup-socket.c Examining data/libsoup2.4-2.72.0/libsoup/soup-socket.h Examining data/libsoup2.4-2.72.0/libsoup/soup-status.c Examining data/libsoup2.4-2.72.0/libsoup/soup-status.h Examining data/libsoup2.4-2.72.0/libsoup/soup-tld.c Examining data/libsoup2.4-2.72.0/libsoup/soup-tld.h Examining data/libsoup2.4-2.72.0/libsoup/soup-types.h Examining data/libsoup2.4-2.72.0/libsoup/soup-uri.c Examining data/libsoup2.4-2.72.0/libsoup/soup-uri.h Examining data/libsoup2.4-2.72.0/libsoup/soup-value-utils.c Examining data/libsoup2.4-2.72.0/libsoup/soup-value-utils.h Examining data/libsoup2.4-2.72.0/libsoup/soup-version.c Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket-connection.c Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket-connection.h Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket-extension-deflate.c Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket-extension-deflate.h Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket-extension-manager-private.h Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket-extension-manager.c Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket-extension-manager.h Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket-extension.c Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket-extension.h Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket.c Examining data/libsoup2.4-2.72.0/libsoup/soup-websocket.h Examining data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc-old.c Examining data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc-old.h Examining data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc.c Examining data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc.h Examining data/libsoup2.4-2.72.0/libsoup/soup.h Examining data/libsoup2.4-2.72.0/tests/auth-test.c Examining data/libsoup2.4-2.72.0/tests/brotli-decompressor-test.c Examining data/libsoup2.4-2.72.0/tests/cache-test.c Examining data/libsoup2.4-2.72.0/tests/chunk-io-test.c Examining data/libsoup2.4-2.72.0/tests/chunk-test.c Examining data/libsoup2.4-2.72.0/tests/coding-test.c Examining data/libsoup2.4-2.72.0/tests/connection-test.c Examining data/libsoup2.4-2.72.0/tests/context-test.c Examining data/libsoup2.4-2.72.0/tests/continue-test.c Examining data/libsoup2.4-2.72.0/tests/cookies-test.c Examining data/libsoup2.4-2.72.0/tests/date-test.c Examining data/libsoup2.4-2.72.0/tests/forms-test.c Examining data/libsoup2.4-2.72.0/tests/header-parsing-test.c Examining data/libsoup2.4-2.72.0/tests/hsts-db-test.c Examining data/libsoup2.4-2.72.0/tests/hsts-test.c Examining data/libsoup2.4-2.72.0/tests/misc-test.c Examining data/libsoup2.4-2.72.0/tests/multipart-test.c Examining data/libsoup2.4-2.72.0/tests/no-ssl-test.c Examining data/libsoup2.4-2.72.0/tests/ntlm-test-helper.c Examining data/libsoup2.4-2.72.0/tests/ntlm-test.c Examining data/libsoup2.4-2.72.0/tests/proxy-test.c Examining data/libsoup2.4-2.72.0/tests/range-test.c Examining data/libsoup2.4-2.72.0/tests/redirect-test.c Examining data/libsoup2.4-2.72.0/tests/requester-test.c Examining data/libsoup2.4-2.72.0/tests/resource-test.c Examining data/libsoup2.4-2.72.0/tests/samesite-test.c Examining data/libsoup2.4-2.72.0/tests/server-auth-test.c Examining data/libsoup2.4-2.72.0/tests/server-test.c Examining data/libsoup2.4-2.72.0/tests/session-test.c Examining data/libsoup2.4-2.72.0/tests/sniffing-test.c Examining data/libsoup2.4-2.72.0/tests/socket-test.c Examining data/libsoup2.4-2.72.0/tests/streaming-test.c Examining data/libsoup2.4-2.72.0/tests/timeout-test.c Examining data/libsoup2.4-2.72.0/tests/tld-test.c Examining data/libsoup2.4-2.72.0/tests/uri-parsing-test.c Examining data/libsoup2.4-2.72.0/tests/websocket-test.c Examining data/libsoup2.4-2.72.0/tests/xmlrpc-old-server-test.c Examining data/libsoup2.4-2.72.0/tests/xmlrpc-server-test.c Examining data/libsoup2.4-2.72.0/tests/pull-api-test.c Examining data/libsoup2.4-2.72.0/tests/test-utils.h Examining data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c Examining data/libsoup2.4-2.72.0/tests/xmlrpc-test.c Examining data/libsoup2.4-2.72.0/tests/ssl-test.c Examining data/libsoup2.4-2.72.0/tests/test-utils.c FINAL RESULTS: data/libsoup2.4-2.72.0/libsoup/soup-headers.c:707: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 (encoded_string, decoded); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:120:13: [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. username = getenv ("NTLMUSER"); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:794:20: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. client_nonce[0] = g_random_int(); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:795:20: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. client_nonce[1] = g_random_int(); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:874:21: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. client_nonce[i] = g_random_int(); data/libsoup2.4-2.72.0/libsoup/soup-multipart.c:66:12: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. data[0] = g_random_int (); data/libsoup2.4-2.72.0/libsoup/soup-multipart.c:67:12: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. data[1] = g_random_int (); data/libsoup2.4-2.72.0/libsoup/soup-websocket-connection.c:546:17: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. guint32 rnd = g_random_int (); data/libsoup2.4-2.72.0/libsoup/soup-websocket.c:309:11: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. raw[0] = g_random_int (); data/libsoup2.4-2.72.0/libsoup/soup-websocket.c:310:11: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. raw[1] = g_random_int (); data/libsoup2.4-2.72.0/libsoup/soup-websocket.c:311:11: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. raw[2] = g_random_int (); data/libsoup2.4-2.72.0/libsoup/soup-websocket.c:312:11: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. raw[3] = g_random_int (); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:121:9: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. val = g_random_int_range (0, 400) / 4.0; data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:157:9: [3] (random) g_random_boolean: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. val = g_random_boolean (); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:203:26: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. data->data[i] = (char)(g_random_int_range (0, 256)); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:236:32: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date = soup_date_new (1970 + (g_random_int_range (0, 50)), data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:237:14: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. 1 + g_random_int_range (0, 12), data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:238:14: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. 1 + g_random_int_range (0, 28), data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:239:10: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. g_random_int_range (0, 24), data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:240:10: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. g_random_int_range (0, 60), data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:241:10: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. g_random_int_range (0, 60)); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:250:16: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define MAYBE (g_random_int_range (0, 3) != 0) data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:253:24: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->year = 1970 + (g_random_int_range (0, 50)); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:259:21: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->month = 1 + g_random_int_range (0, 12); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:265:19: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->day = 1 + g_random_int_range (0, 28); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:271:16: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->hour = g_random_int_range (0, 24); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:277:18: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->minute = g_random_int_range (0, 60); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:283:18: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->second = g_random_int_range (0, 60); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:96:9: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. val = g_random_int_range (0, 400) / 4.0; data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:132:9: [3] (random) g_random_boolean: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. val = g_random_boolean (); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:176:26: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. data->data[i] = (char)(g_random_int_range (0, 256)); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:212:32: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date = soup_date_new (1970 + (g_random_int_range (0, 50)), data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:213:14: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. 1 + g_random_int_range (0, 12), data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:214:14: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. 1 + g_random_int_range (0, 28), data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:215:10: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. g_random_int_range (0, 24), data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:216:10: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. g_random_int_range (0, 60), data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:217:10: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. g_random_int_range (0, 60)); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:228:16: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define MAYBE (g_random_int_range (0, 3) != 0) data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:231:24: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->year = 1970 + (g_random_int_range (0, 50)); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:237:21: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->month = 1 + g_random_int_range (0, 12); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:243:19: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->day = 1 + g_random_int_range (0, 28); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:249:16: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->hour = g_random_int_range (0, 24); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:255:18: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->minute = g_random_int_range (0, 60); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:261:18: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. date->second = g_random_int_range (0, 60); data/libsoup2.4-2.72.0/examples/get.c:77:18: [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). output_file = fopen (output_file_path, "w"); data/libsoup2.4-2.72.0/examples/simple-httpd.c:173: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/libsoup2.4-2.72.0/libsoup/soup-address.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 (SOUP_ADDRESS_GET_DATA (priv), data, length) data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:24:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex_urp[33]; data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:25:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex_a1[33]; data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:232:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. soup_auth_digest_compute_hex_urp (const char *username, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:233:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *realm, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:234:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *password, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:235:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex_urp[33]) data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:250:40: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. soup_auth_digest_compute_hex_a1 (const char *hex_urp, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:252:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *nonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:253:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *cnonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:254:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex_a1[33]) data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:263: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 (hex_a1, hex_urp, 33); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:329:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. soup_auth_digest_compute_response (const char *method, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:330: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. const char *uri, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:331: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. const char *hex_a1, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:333: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. const char *nonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:334: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. const char *cnonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:336: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 response[33]) data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:338:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex_a2[33]; data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:346: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 (hex_a2, g_checksum_get_string (checksum), sizeof (char) * 33); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:357: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[9]; data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:372: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 (response, g_checksum_get_string (checksum), sizeof (char) * 33); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:413:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char response[33], *token; data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:46:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 soup_auth_digest_compute_hex_urp (const char *username, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:47:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *realm, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:48:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *password, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:49:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex_urp[33]); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:50:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 soup_auth_digest_compute_hex_a1 (const char *hex_urp, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:52:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *nonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:53:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *cnonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:54:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex_a1[33]); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:55:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 soup_auth_digest_compute_response (const char *method, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:56:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *uri, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:57:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *hex_a1, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:59:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *nonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:60:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *cnonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.h:62:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char response[33]); data/libsoup2.4-2.72.0/libsoup/soup-auth-domain-digest.c:196:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex_a1[33], computed_response[33]; data/libsoup2.4-2.72.0/libsoup/soup-auth-domain-digest.c:358:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex_urp[33]; data/libsoup2.4-2.72.0/libsoup/soup-auth-domain-digest.c:373:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex_urp[33]; data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:23:55: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 soup_ntlm_lanmanager_hash (const char *password, data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:25:55: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 soup_ntlm_nt_hash (const char *password, data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:35: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 *soup_ntlm_response (const char *nonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:35:55: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *soup_ntlm_response (const char *nonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:36:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *user, data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:171:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv[9]; data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:221:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:596:51: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 md4sum (const unsigned char *in, data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:598:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[16]); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:617:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. soup_ntlm_lanmanager_hash (const char *password, guchar hash[21]) data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:629: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 (hash, LM_PASSWORD_MAGIC, 21); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:639: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. soup_ntlm_nt_hash (const char *password, guchar hash[21]) data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:779:36: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. calc_ntlm2_session_response (const char *nonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:805: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 (lm_resp, client_nonce, sizeof (client_nonce)); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:850: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 client_nonce[8]; data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:853: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 ntv2_hash[HMAC_MD5_LENGTH]; data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:855: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 nonce_blob_hash[HMAC_MD5_LENGTH]; data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:856: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 nonce_client_nonce[16], nonce_client_nonce_hash[HMAC_MD5_LENGTH]; data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:887:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p_blob, blob_signature, sizeof (blob_signature)); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:888:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p_blob += sizeof (blob_signature), blob_reserved, sizeof (blob_reserved)); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:889:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p_blob += sizeof (blob_reserved), &blob_timestamp, sizeof (blob_timestamp)); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:890:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p_blob += sizeof (blob_timestamp), client_nonce, sizeof (client_nonce)); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:891:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p_blob += sizeof (client_nonce), blob_unknown, sizeof (blob_unknown)); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:892:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p_blob += sizeof (blob_unknown), target_info, target_info_sz); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:896: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 (nonce_blob, nonce, NTLM_CHALLENGE_NONCE_LENGTH); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:897: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 (nonce_blob + NTLM_CHALLENGE_NONCE_LENGTH, blob, blob_sz); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:903: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 (nt_resp, nonce_blob_hash, sizeof (nonce_blob_hash)); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:904: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 (nt_resp + sizeof (nonce_blob_hash), blob, blob_sz); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:911: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 (nonce_client_nonce, nonce, NTLM_CHALLENGE_NONCE_LENGTH); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:912: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 (nonce_client_nonce + NTLM_CHALLENGE_NONCE_LENGTH, client_nonce, sizeof (client_nonce)); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:917: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 (lm_resp, nonce_client_nonce_hash, sizeof (nonce_client_nonce_hash)); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:918: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 (lm_resp + sizeof (nonce_client_nonce_hash), client_nonce, sizeof (client_nonce)); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:921: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 * data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:922:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. soup_ntlm_response (const char *nonce, data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:923:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *user, data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:992: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, "NTLM ", 5); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:1054: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 (results, plaintext, 8); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:1055: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 (results + 8, plaintext, 8); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:1056: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 (results + 16, plaintext, 8); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:1082:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. md4sum (const unsigned char *in, int nbytes, unsigned char digest[16]) data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:1082:55: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. md4sum (const unsigned char *in, int nbytes, unsigned char digest[16]) data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:1091:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (M, in, nbytes); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:1340:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. des (guint32 ks[16][2], unsigned char block[8]) data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:1477: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 pc1m[56]; /* place to modify pc1 into */ data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:1478: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 pcr[56]; /* place to rotate pc1 into */ data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:1481: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 ks[8]; data/libsoup2.4-2.72.0/libsoup/soup-body-input-stream.c:155:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char metabuf[128]; data/libsoup2.4-2.72.0/libsoup/soup-body-output-stream.c:27:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[20]; data/libsoup2.4-2.72.0/libsoup/soup-connection.c:644:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1]; data/libsoup2.4-2.72.0/libsoup/soup-content-sniffer-stream.c:171:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buffer, sniffer->priv->buffer, nread); data/libsoup2.4-2.72.0/libsoup/soup-converter-wrapper.c:197: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 (outbuf, inbuf, inbuf_size); data/libsoup2.4-2.72.0/libsoup/soup-converter-wrapper.c:200: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 (outbuf, inbuf, outbuf_size); data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar-text.c:282: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 (filename, "w"); data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar-text.c:341:9: [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). out = fopen (priv->filename, "a"); data/libsoup2.4-2.72.0/libsoup/soup-date.c:221: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). date->year = atoi (date_string); data/libsoup2.4-2.72.0/libsoup/soup-date.c:222: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). date->month = atoi (date_string + 5); data/libsoup2.4-2.72.0/libsoup/soup-date.c:223: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). date->day = atoi (date_string + 8); data/libsoup2.4-2.72.0/libsoup/soup-date.c:227:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). val = atoi (date_string); data/libsoup2.4-2.72.0/libsoup/soup-date.c:238: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). date->hour = atoi (date_string); data/libsoup2.4-2.72.0/libsoup/soup-date.c:239: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). date->minute = atoi (date_string + 3); data/libsoup2.4-2.72.0/libsoup/soup-date.c:240: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). date->second = atoi (date_string + 6); data/libsoup2.4-2.72.0/libsoup/soup-date.c:579: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 (&utcdate, date, sizeof (SoupDate)); data/libsoup2.4-2.72.0/libsoup/soup-date.c:614: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 zone[8], sign; data/libsoup2.4-2.72.0/libsoup/soup-date.c:919: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 (copy, date, sizeof (SoupDate)); data/libsoup2.4-2.72.0/libsoup/soup-directory-input-stream.c:160: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 ((char *)buffer + total, stream->buffer->data, size); data/libsoup2.4-2.72.0/libsoup/soup-filter-input-stream.c:59: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, buf->data, count); data/libsoup2.4-2.72.0/libsoup/soup-headers.c:67: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 (headers_copy, headers_start, copy_len); data/libsoup2.4-2.72.0/libsoup/soup-headers.c:325:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). code = atoi (code_start); data/libsoup2.4-2.72.0/libsoup/soup-logger.c:494:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (data + priv->max_body_size, "\n[...]"); data/libsoup2.4-2.72.0/libsoup/soup-message-body.c:597:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ptr, chunk->data, chunk->length); data/libsoup2.4-2.72.0/libsoup/soup-message-headers.c:838:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char length[128]; data/libsoup2.4-2.72.0/libsoup/soup-server.c:417:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (*variable)[i] = (char *)g_intern_string (value[i]); data/libsoup2.4-2.72.0/libsoup/soup-session.c:595:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (*variable)[i] = (char *)g_intern_string (value[i]); data/libsoup2.4-2.72.0/libsoup/soup-uri.c:250: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 (&fixed_base, base, sizeof (SoupURI)); data/libsoup2.4-2.72.0/libsoup/soup-websocket-connection.c:549: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 (outer + mask_offset, &rnd, sizeof (rnd)); data/libsoup2.4-2.72.0/libsoup/soup-websocket-connection.c:572:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[128]; data/libsoup2.4-2.72.0/libsoup/soup-websocket-connection.c:777:80: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. g_debug ("received non-UTF8 close data: %d '%.*s' %d", (int)len, (int)len, (char *)data, (int)data[0]); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc-old.c:37:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[128]; data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc-old.c:381:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). g_value_set_int (value, atoi ((char *)content)); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc-old.c:386:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). g_value_set_boolean (value, atoi ((char *)content)); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc.c:111:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[128]; data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc.c:576: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 stack[256] = {0}; data/libsoup2.4-2.72.0/tests/auth-test.c:592: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 (&msg2_bak, msg2, sizeof (SoupMessage)); data/libsoup2.4-2.72.0/tests/auth-test.c:627: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 (msg2, &msg2_bak, sizeof (SoupMessage)); data/libsoup2.4-2.72.0/tests/cache-test.c:151:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/libsoup2.4-2.72.0/tests/connection-test.c:74:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1]; data/libsoup2.4-2.72.0/tests/connection-test.c:420:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[8192]; data/libsoup2.4-2.72.0/tests/connection-test.c:1038: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. char buffer[128]; data/libsoup2.4-2.72.0/tests/continue-test.c:400: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). if (length && atoi (length) > MAX_POST_LENGTH) { data/libsoup2.4-2.72.0/tests/header-parsing-test.c:776:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *acceptable[7]; data/libsoup2.4-2.72.0/tests/header-parsing-test.c:777:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *unacceptable[2]; data/libsoup2.4-2.72.0/tests/multipart-test.c:367:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[READ_BUFFER_SIZE]; data/libsoup2.4-2.72.0/tests/ntlm-test-helper.c:37:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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], *header; data/libsoup2.4-2.72.0/tests/proxy-test.c:341: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 buffer[256]; data/libsoup2.4-2.72.0/tests/range-test.c:55: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 (test_response + start, body, body_len); data/libsoup2.4-2.72.0/tests/requester-test.c:13:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libsoup2.4-2.72.0/tests/requester-test.c:489:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libsoup2.4-2.72.0/tests/requester-test.c:657:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *uri_string, buf[256]; data/libsoup2.4-2.72.0/tests/resource-test.c:12:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/libsoup2.4-2.72.0/tests/resource-test.c:97:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/libsoup2.4-2.72.0/tests/server-test.c:169: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[1024]; data/libsoup2.4-2.72.0/tests/server-test.c:354:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expected_host[128]; data/libsoup2.4-2.72.0/tests/session-test.c:221: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[5]; data/libsoup2.4-2.72.0/tests/socket-test.c:248:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (g_test_get_filename (G_TEST_DIST, "test-cert.pem", NULL), O_RDONLY); data/libsoup2.4-2.72.0/tests/test-utils.c:717:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[8192]; data/libsoup2.4-2.72.0/tests/uri-parsing-test.c:537:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[128]; data/libsoup2.4-2.72.0/tests/websocket-test.c:581:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. g_assert_cmpuint (((char *) g_bytes_get_data (received, NULL))[0], ==, '\0'); data/libsoup2.4-2.72.0/tests/websocket-test.c:593:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. g_assert_cmpuint (((char *) g_bytes_get_data (received, NULL))[0], ==, '\0'); data/libsoup2.4-2.72.0/tests/xmlrpc-old-server-test.c:266:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv[12]; data/libsoup2.4-2.72.0/tests/xmlrpc-old-server-test.c:328: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 *list_argv[4]; data/libsoup2.4-2.72.0/tests/xmlrpc-server-test.c:266:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv[12]; data/libsoup2.4-2.72.0/tests/xmlrpc-server-test.c:328: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 *list_argv[4]; data/libsoup2.4-2.72.0/examples/simple-proxy.c:192: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). error->message, strlen (error->message)); data/libsoup2.4-2.72.0/libsoup/gconstructor.h:60:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). __pragma(section(".CRT$XCU",read)) \ data/libsoup2.4-2.72.0/libsoup/gconstructor.h:68:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). __pragma(section(".CRT$XCU",read)) \ data/libsoup2.4-2.72.0/libsoup/gconstructor.h:80:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). section(".CRT$XCU",read) data/libsoup2.4-2.72.0/libsoup/gconstructor.h:87:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). section(".CRT$XCU",read) data/libsoup2.4-2.72.0/libsoup/soup-auth-basic.c:60: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 (priv->token, 0, strlen (priv->token)); data/libsoup2.4-2.72.0/libsoup/soup-auth-basic.c:97: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). memset (user_pass, 0, strlen (user_pass)); data/libsoup2.4-2.72.0/libsoup/soup-auth-basic.c:101: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 (user_pass); data/libsoup2.4-2.72.0/libsoup/soup-auth-basic.c:104: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 (priv->token, 0, strlen (priv->token)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:240:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)username, strlen (username)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:242:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)realm, strlen (realm)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:244:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)password, strlen (password)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:245:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (hex_urp, g_checksum_get_string (checksum), 33); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:270:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)hex_urp, strlen (hex_urp)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:272:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)nonce, strlen (nonce)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:274:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)cnonce, strlen (cnonce)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:275:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (hex_a1, g_checksum_get_string (checksum), 33); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:306:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). priv->cnonce = g_base64_encode ((guchar *)bgen, strlen (bgen)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:343:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)method, strlen (method)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:345: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). g_checksum_update (checksum, (guchar *)uri, strlen (uri)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:351:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)hex_a1, strlen (hex_a1)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:353:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)nonce, strlen (nonce)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:360:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)tmp, strlen (tmp)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:362:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)cnonce, strlen (cnonce)); data/libsoup2.4-2.72.0/libsoup/soup-auth-digest.c:367:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (checksum, (guchar *)"auth", strlen ("auth")); data/libsoup2.4-2.72.0/libsoup/soup-auth-domain-basic.c:198: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). memset (pw, 0, strlen (pw)); data/libsoup2.4-2.72.0/libsoup/soup-auth-manager.c:318: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). int schemelen = strlen (scheme); data/libsoup2.4-2.72.0/libsoup/soup-auth-negotiate.c:538: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). token.length = strlen (service); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:223:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len_in = strlen (input), len_out = sizeof (buf); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:238:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read (priv->fd_out, tmpbuf, len_out); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:643: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). p = buf = g_malloc (strlen (password) * 2); data/libsoup2.4-2.72.0/libsoup/soup-auth-ntlm.c:863:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). user_uppercase = g_utf8_strup (user, strlen (user)); data/libsoup2.4-2.72.0/libsoup/soup-auth.c:249:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (g_ascii_strncasecmp (auth_header, scheme, strlen (scheme)) != 0) { data/libsoup2.4-2.72.0/libsoup/soup-auth.c:254:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). params = soup_header_parse_param_list (auth_header + strlen (scheme)); data/libsoup2.4-2.72.0/libsoup/soup-auth.c:296:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (g_ascii_strncasecmp (auth_header, scheme, strlen (scheme)) != 0) data/libsoup2.4-2.72.0/libsoup/soup-auth.c:299:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). params = soup_header_parse_param_list (auth_header + strlen (scheme)); data/libsoup2.4-2.72.0/libsoup/soup-body-output-stream.c:150: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 (buf); data/libsoup2.4-2.72.0/libsoup/soup-body-output-stream.c:183:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (buf, "\r\n", sizeof (bostream->priv->buf)); data/libsoup2.4-2.72.0/libsoup/soup-body-output-stream.c:188:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (buf, "\r\n", sizeof (bostream->priv->buf)); data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar-text.c:165: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). line += strlen ("#HttpOnly_"); data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar.c:289: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). alen = ca->path ? strlen (ca->path) : 0; data/libsoup2.4-2.72.0/libsoup/soup-cookie-jar.c:290: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). blen = cb->path ? strlen (cb->path) : 0; data/libsoup2.4-2.72.0/libsoup/soup-cookie.c:209: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). #define MATCH_NAME(name) ((end - start == strlen (name)) && !g_ascii_strncasecmp (start, name, end - start)) data/libsoup2.4-2.72.0/libsoup/soup-cookie.c:1094:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). plen = strlen (cookie->path); data/libsoup2.4-2.72.0/libsoup/soup-date.c:215: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 (date_string) < 15) data/libsoup2.4-2.72.0/libsoup/soup-date.c:235: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 (date_string) >= 8 && data/libsoup2.4-2.72.0/libsoup/soup-date.c:242: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). } else if (strlen (date_string) >= 6) { data/libsoup2.4-2.72.0/libsoup/soup-date.c:629:5: [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 (zone, "Z"); data/libsoup2.4-2.72.0/libsoup/soup-date.c:646:5: [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 (zone, "Z"); data/libsoup2.4-2.72.0/libsoup/soup-directory-input-stream.c:249: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 (init)); data/libsoup2.4-2.72.0/libsoup/soup-form.c:379: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). form_data, strlen (form_data)); data/libsoup2.4-2.72.0/libsoup/soup-headers.c:134: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). memmove (eol + 1, sol, strlen (sol) + 1); data/libsoup2.4-2.72.0/libsoup/soup-headers.c:539:22: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. const char *param, *equal, *value; data/libsoup2.4-2.72.0/libsoup/soup-headers.c:558:9: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!equal || *equal != '=') data/libsoup2.4-2.72.0/libsoup/soup-headers.c:558:19: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!equal || *equal != '=') data/libsoup2.4-2.72.0/libsoup/soup-headers.c:638: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 (token); data/libsoup2.4-2.72.0/libsoup/soup-logger.c:493: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 (data) > priv->max_body_size + 6) data/libsoup2.4-2.72.0/libsoup/soup-multipart-input-stream.c:236: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). priv->boundary_size = strlen (priv->boundary); data/libsoup2.4-2.72.0/libsoup/soup-multipart.c:164: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). boundary_len = strlen (boundary); data/libsoup2.4-2.72.0/libsoup/soup-multipart.c:341:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). body = soup_buffer_new (SOUP_MEMORY_COPY, data, strlen (data)); data/libsoup2.4-2.72.0/libsoup/soup-path-map.c:140: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). mapping.len = strlen (path); data/libsoup2.4-2.72.0/libsoup/soup-request-data.c:110: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). guchar *buf = (guchar *) soup_uri_decoded_copy (start, strlen (start), data/libsoup2.4-2.72.0/libsoup/soup-request-file.c:114:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (path, path + 1, strlen (path)); data/libsoup2.4-2.72.0/libsoup/soup-uri.c:266: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). char *clean = g_malloc (strlen (uri_string) + 1), *d; data/libsoup2.4-2.72.0/libsoup/soup-uri.c:429: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). memmove (p, p + 2, strlen (p + 2) + 1); data/libsoup2.4-2.72.0/libsoup/soup-uri.c:451:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (p, q + 4, strlen (q + 4) + 1); data/libsoup2.4-2.72.0/libsoup/soup-uri.c:466:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (uri->path, uri->path + 3, strlen (uri->path) - 2); data/libsoup2.4-2.72.0/libsoup/soup-uri.c:807:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return soup_uri_decoded_copy (part, strlen (part), NULL); data/libsoup2.4-2.72.0/libsoup/soup-uri.c:907:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return uri_normalized_copy (part, strlen (part), unescape_extra); data/libsoup2.4-2.72.0/libsoup/soup-uri.c:962:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). uri->scheme = soup_uri_parse_scheme (scheme, strlen (scheme)); data/libsoup2.4-2.72.0/libsoup/soup-websocket-connection.c:1999:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen (text); data/libsoup2.4-2.72.0/libsoup/soup-websocket-connection.c:2178: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). (guint8 *) ping_payload, strlen(ping_payload)); data/libsoup2.4-2.72.0/libsoup/soup-websocket.c:173: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 (key) != 24) data/libsoup2.4-2.72.0/libsoup/soup-websocket.c:446: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). end = p ? p : extension + strlen (extension); data/libsoup2.4-2.72.0/libsoup/soup-websocket.c:514: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). end = p ? p : extension + strlen (extension); data/libsoup2.4-2.72.0/libsoup/soup-websocket.c:725: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). RESPONSE_FORBIDDEN, strlen (RESPONSE_FORBIDDEN)); data/libsoup2.4-2.72.0/libsoup/soup-websocket.c:740: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, strlen (text)); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc-old.c:211: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). body, strlen (body)); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc-old.c:319: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). body, strlen (body)); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc-old.c:352: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). body, strlen (body)); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc-old.c:513: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). length == -1 ? strlen (method_call) : length); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc-old.c:630: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). length == -1 ? strlen (method_response) : length); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc.c:356: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). body, strlen (body)); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc.c:516: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). body, strlen (body)); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc.c:548: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). body, strlen (body)); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc.c:1206:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). doc = xmlParseMemory (method_call, length == -1 ? strlen (method_call) : length); data/libsoup2.4-2.72.0/libsoup/soup-xmlrpc.c:1287: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). length == -1 ? strlen (method_response) : length); data/libsoup2.4-2.72.0/tests/auth-test.c:209:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (expected, expected + 1, strlen (expected)); data/libsoup2.4-2.72.0/tests/auth-test.c:1267:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (int)strlen (expected)); data/libsoup2.4-2.72.0/tests/cache-test.c:93: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). g_checksum_update (sum, (guchar *)path, strlen (path)); data/libsoup2.4-2.72.0/tests/cache-test.c:95: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). g_checksum_update (sum, (guchar *)last_modified, strlen (last_modified)); data/libsoup2.4-2.72.0/tests/cache-test.c:97: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). g_checksum_update (sum, (guchar *)etag, strlen (etag)); data/libsoup2.4-2.72.0/tests/cache-test.c:101: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). body, strlen (body) + 1); data/libsoup2.4-2.72.0/tests/chunk-test.c:95:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *buffer = soup_buffer_new_with_owner (g_strdup (text), strlen (text), data/libsoup2.4-2.72.0/tests/chunk-test.c:406: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 ("three\r\ntwo\r\none\r\n")); data/libsoup2.4-2.72.0/tests/coding-test.c:114: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). options, strlen (options)); data/libsoup2.4-2.72.0/tests/connection-test.c:1050:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). request, strlen (request), &bytes, NULL, NULL)); data/libsoup2.4-2.72.0/tests/connection-test.c:1053: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). buffer[strlen (response)] = '\0'; data/libsoup2.4-2.72.0/tests/continue-test.c:74: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). body, strlen (body)); data/libsoup2.4-2.72.0/tests/header-parsing-test.c:887: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 (reqtests[i].request); data/libsoup2.4-2.72.0/tests/header-parsing-test.c:925: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 (resptests[i].response); data/libsoup2.4-2.72.0/tests/misc-test.c:1034:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = g_output_stream_write (ostream, caps, strlen (caps), NULL, &error); data/libsoup2.4-2.72.0/tests/misc-test.c:1036: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). g_assert_cmpint (n, ==, strlen (caps)); data/libsoup2.4-2.72.0/tests/misc-test.c:1161:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = g_output_stream_write (ostream, strings[i], strlen (strings[i]), data/libsoup2.4-2.72.0/tests/misc-test.c:1164: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). g_assert_cmpint (n, ==, strlen (strings[i])); data/libsoup2.4-2.72.0/tests/multipart-test.c:78:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (payload)); data/libsoup2.4-2.72.0/tests/ntlm-test.c:97: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 (NTLM_REQUEST_START))) { data/libsoup2.4-2.72.0/tests/ntlm-test.c:106: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 (NTLM_RESPONSE_START))) { data/libsoup2.4-2.72.0/tests/ntlm-test.c:263: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 ("NTLM " NTLM_REQUEST_START))) data/libsoup2.4-2.72.0/tests/ntlm-test.c:281: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 ("NTLM " NTLM_RESPONSE_START))) data/libsoup2.4-2.72.0/tests/redirect-test.c:179: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 ("post body")); data/libsoup2.4-2.72.0/tests/redirect-test.c:224:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen ("post body")); data/libsoup2.4-2.72.0/tests/requester-test.c:56: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 (AUTH_HTML_BODY)); data/libsoup2.4-2.72.0/tests/requester-test.c:69: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 (REDIRECT_HTML_BODY)); data/libsoup2.4-2.72.0/tests/requester-test.c:858:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (AUTH_HTML_BODY)); data/libsoup2.4-2.72.0/tests/server-test.c:437: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). SOUP_MEMORY_TAKE, uristr, strlen (uristr)); data/libsoup2.4-2.72.0/tests/server-test.c:952: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). md5, strlen (md5)); data/libsoup2.4-2.72.0/tests/server-test.c:1300: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). error->message, strlen (error->message)); data/libsoup2.4-2.72.0/tests/ssl-test.c:343: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 (INTERACTION_TEST_HTTP_RESPONSE), data/libsoup2.4-2.72.0/tests/uri-parsing-test.c:553: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). g_assert_cmpint (nread, ==, strlen (data_tests[i].body)); data/libsoup2.4-2.72.0/tests/websocket-test.c:487: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). g_assert_cmpint (len, ==, strlen (TEST_STRING)); data/libsoup2.4-2.72.0/tests/websocket-test.c:518: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). g_assert_cmpint (len, ==, strlen (TEST_STRING)); data/libsoup2.4-2.72.0/tests/websocket-test.c:1002:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). message = g_bytes_new_static ("another test because", strlen ("another test because")); data/libsoup2.4-2.72.0/tests/websocket-test.c:1169:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zstream->avail_in = strlen (str); data/libsoup2.4-2.72.0/tests/xmlrpc-old-server-test.c:355:64: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). path = g_strdup_printf ("/xmlrpc-old-server/%s", tests[i] + strlen ("/xmlrpc-old/")); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:45: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). body, strlen (body)); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:401: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). end = params + strlen ("<params/>"); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:402:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (params, end, strlen (end) + 1); data/libsoup2.4-2.72.0/tests/xmlrpc-old-test.c:425: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). body, strlen (body)); data/libsoup2.4-2.72.0/tests/xmlrpc-server-test.c:355:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). path = g_strdup_printf ("/xmlrpc-server/%s", tests[i] + strlen ("/xmlrpc/")); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:42: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). body, strlen (body)); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:370: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). end = params + strlen ("<params/>"); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:371:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (params, end, strlen (end) + 1); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:392: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). body, strlen (body)); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:460:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). params = g_strndup (body + strlen (BODY_PREFIX), data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:461:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (body) - strlen (BODY_PREFIX) data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:461: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). strlen (body) - strlen (BODY_PREFIX) data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:462: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). - strlen (BODY_SUFFIX)); data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:553:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). method_name = soup_xmlrpc_parse_request (body, strlen (body), data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:593:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). method_name = soup_xmlrpc_parse_request (body, strlen (body), data/libsoup2.4-2.72.0/tests/xmlrpc-test.c:699: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). reply = soup_xmlrpc_parse_response (body, strlen (body), NULL, &error); ANALYSIS SUMMARY: Hits = 339 Lines analyzed = 85908 in approximately 2.71 seconds (31754 lines/second) Physical Source Lines of Code (SLOC) = 57276 Hits@level = [0] 9 [1] 141 [2] 154 [3] 43 [4] 1 [5] 0 Hits@level+ = [0+] 348 [1+] 339 [2+] 198 [3+] 44 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 6.07584 [1+] 5.91871 [2+] 3.45695 [3+] 0.76821 [4+] 0.0174593 [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.