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/libice-1.0.10/src/process.c Examining data/libice-1.0.10/src/getauth.c Examining data/libice-1.0.10/src/setauth.c Examining data/libice-1.0.10/src/iceauth.c Examining data/libice-1.0.10/src/protosetup.c Examining data/libice-1.0.10/src/globals.h Examining data/libice-1.0.10/src/shutdown.c Examining data/libice-1.0.10/src/authutil.c Examining data/libice-1.0.10/src/ICElibint.h Examining data/libice-1.0.10/src/listen.c Examining data/libice-1.0.10/src/connect.c Examining data/libice-1.0.10/src/listenwk.c Examining data/libice-1.0.10/src/icetrans.c Examining data/libice-1.0.10/src/replywait.c Examining data/libice-1.0.10/src/watch.c Examining data/libice-1.0.10/src/ping.c Examining data/libice-1.0.10/src/locking.c Examining data/libice-1.0.10/src/error.c Examining data/libice-1.0.10/src/misc.c Examining data/libice-1.0.10/src/register.c Examining data/libice-1.0.10/src/accept.c Examining data/libice-1.0.10/include/X11/ICE/ICEproto.h Examining data/libice-1.0.10/include/X11/ICE/ICE.h Examining data/libice-1.0.10/include/X11/ICE/ICEmsg.h Examining data/libice-1.0.10/include/X11/ICE/ICElib.h Examining data/libice-1.0.10/include/X11/ICE/ICEutil.h Examining data/libice-1.0.10/include/X11/ICE/ICEconn.h FINAL RESULTS: data/libice-1.0.10/src/authutil.c:347:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (filename, R_OK) != 0) /* checks REAL id */ data/libice-1.0.10/src/getauth.c:146:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (filename, R_OK) != 0) /* checks REAL id */ data/libice-1.0.10/src/listen.c:222:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (list, listenObjs[i]->network_id); data/libice-1.0.10/src/listen.c:235:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (list, listenObjs[i]->network_id); data/libice-1.0.10/src/process.c:82:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = vsnprintf(buf, sizeof(buf), format, ap); data/libice-1.0.10/src/process.c:98:12: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = vsnprintf(*ret, len + 1, format, ap); data/libice-1.0.10/src/authutil.c:81:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((name = getenv ("ICEAUTHORITY"))) data/libice-1.0.10/src/authutil.c:85:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((name = getenv ("XDG_RUNTIME_DIR"))) data/libice-1.0.10/src/authutil.c:89:9: [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. name = getenv ("HOME"); data/libice-1.0.10/src/authutil.c:98:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((ptr1 = getenv("HOMEDRIVE")) && (ptr2 = getenv("HOMEDIR"))) { data/libice-1.0.10/src/authutil.c:98:49: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((ptr1 = getenv("HOMEDRIVE")) && (ptr2 = getenv("HOMEDIR"))) { data/libice-1.0.10/src/authutil.c:101:24: [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. } else if ((ptr2 = getenv("USERNAME"))) { data/libice-1.0.10/src/iceauth.c:74:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (seed); data/libice-1.0.10/include/X11/ICE/ICEmsg.h:184:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_iceConn->outbufptr, _data, _bytes); \ data/libice-1.0.10/include/X11/ICE/ICEmsg.h:217:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _dummy[7] = { 0 }; \ data/libice-1.0.10/include/X11/ICE/ICEmsg.h:286:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _dummy[7]; \ data/libice-1.0.10/src/ICElibint.h:175:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_pBuf, _string, _len); \ data/libice-1.0.10/src/ICElibint.h:214:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_string, _pBuf, _len); \ data/libice-1.0.10/src/authutil.c:78:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir[PATH_MAX]; data/libice-1.0.10/src/authutil.c:147:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char creat_name[1025], link_name[1025]; data/libice-1.0.10/src/authutil.c:219:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char creat_name[1025]; data/libice-1.0.10/src/authutil.c:221:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char link_name[1025]; data/libice-1.0.10/src/authutil.c:350:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(auth_file = fopen (filename, "rb"))) data/libice-1.0.10/src/authutil.c:382:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char file_short[2]; data/libice-1.0.10/src/authutil.c:461:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char file_short[2]; data/libice-1.0.10/src/connect.c:97: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. if ((strptr = (char *) strstr ( data/libice-1.0.10/src/connect.c:484:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char addrbuf[256]; data/libice-1.0.10/src/error.c:286:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mOp[8] = { (char) majorOpcode }; data/libice-1.0.10/src/error.c:336:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char maj[8] = { (char) offendingMajor }; data/libice-1.0.10/src/getauth.c:74:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*authDataRet, entry->auth_data, entry->auth_data_length); data/libice-1.0.10/src/getauth.c:115:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*authDataRet, entry->auth_data, entry->auth_data_length); data/libice-1.0.10/src/getauth.c:149:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(auth_file = fopen (filename, "rb"))) data/libice-1.0.10/src/globals.h:30: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 *_IceConnectionStrings[256]; data/libice-1.0.10/src/listenwk.c:83:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. networkId = (char *)_IceTransGetMyNetworkId (transConns[i]); data/libice-1.0.10/src/misc.c:316:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[512]; data/libice-1.0.10/src/misc.c:435: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 (&iceConn->process_msg_info[ data/libice-1.0.10/src/misc.c:462: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 (iceConn->process_msg_info, oldVec, data/libice-1.0.10/src/process.c:77:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/libice-1.0.10/src/register.c:98:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p->version_recs, versionRecs, data/libice-1.0.10/src/register.c:194:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p->version_recs, versionRecs, data/libice-1.0.10/src/setauth.c:105: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 (_IcePaAuthDataEntries[j].auth_data, data/libice-1.0.10/src/ICElibint.h:92: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). (2 + strlen (_string) + PAD32 (2 + strlen (_string))) data/libice-1.0.10/src/ICElibint.h:92:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (2 + strlen (_string) + PAD32 (2 + strlen (_string))) data/libice-1.0.10/src/ICElibint.h:173: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). CARD16 _len = (CARD16) strlen (_string); \ data/libice-1.0.10/src/authutil.c:99: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). len1 = strlen (ptr1); data/libice-1.0.10/src/authutil.c:100:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len2 = strlen (ptr2); data/libice-1.0.10/src/authutil.c:102: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). len1 = strlen (ptr1 = "/users/"); data/libice-1.0.10/src/authutil.c:103: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). len2 = strlen (ptr2); data/libice-1.0.10/src/authutil.c:118:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen (name) + 1 + strlen (ICEauthority_name) + 1; data/libice-1.0.10/src/authutil.c:118:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen (name) + 1 + strlen (ICEauthority_name) + 1; data/libice-1.0.10/src/authutil.c:152: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). if ((int) strlen (file_name) > 1022) data/libice-1.0.10/src/authutil.c:223: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). if ((int) strlen (file_name) > 1022) data/libice-1.0.10/src/authutil.c:476: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). size_t count = strlen (string); data/libice-1.0.10/src/connect.c:70:6: [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 (errorStringRet, data/libice-1.0.10/src/connect.c:100: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 ch = *(strptr + strlen (_IceConnectionStrings[i])); data/libice-1.0.10/src/connect.c:151:6: [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 (errorStringRet, "Can't malloc", errorLength); data/libice-1.0.10/src/connect.c:167:6: [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 (errorStringRet, "Could not open network socket", errorLength); data/libice-1.0.10/src/connect.c:208:6: [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 (errorStringRet, "Can't malloc", errorLength); data/libice-1.0.10/src/connect.c:220:6: [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 (errorStringRet, "Can't malloc", errorLength); data/libice-1.0.10/src/connect.c:243:6: [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 (errorStringRet, "Can't malloc", errorLength); data/libice-1.0.10/src/connect.c:285:6: [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 (errorStringRet, "IO error occured opening connection", data/libice-1.0.10/src/connect.c:300:6: [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 (errorStringRet, data/libice-1.0.10/src/connect.c:389: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 (errorStringRet, "IO error occured opening connection", data/libice-1.0.10/src/connect.c:403:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (errorStringRet, data/libice-1.0.10/src/connect.c:437:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (errorStringRet, data/libice-1.0.10/src/connect.c:496:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (networkIdsList); data/libice-1.0.10/src/connect.c:518:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (address, ptr, len); data/libice-1.0.10/src/listen.c:60:6: [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 (errorStringRet, data/libice-1.0.10/src/listen.c:98:6: [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 (errorStringRet, data/libice-1.0.10/src/listen.c:112: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 (errorStringRet, "Malloc failed", errorLength); data/libice-1.0.10/src/listen.c:127:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (errorStringRet, "Malloc failed", errorLength); data/libice-1.0.10/src/listen.c:206: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 (listenObjs[i]->network_id) + 1); data/libice-1.0.10/src/listen.c:225:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (list, ","); data/libice-1.0.10/src/listen.c:238:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (list, ","); data/libice-1.0.10/src/listenwk.c:62:13: [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 (errorStringRet, data/libice-1.0.10/src/listenwk.c:99:13: [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 (errorStringRet, data/libice-1.0.10/src/listenwk.c:113: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 (errorStringRet, "Malloc failed", errorLength); data/libice-1.0.10/src/listenwk.c:128:11: [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 (errorStringRet, "Malloc failed", errorLength); data/libice-1.0.10/src/protosetup.c:75:6: [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 (errorStringRet, "myOpcode out of range", errorLength); data/libice-1.0.10/src/protosetup.c:86:6: [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 (errorStringRet, data/libice-1.0.10/src/protosetup.c:208: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 (errorStringRet, data/libice-1.0.10/src/protosetup.c:223:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (errorStringRet, data/libice-1.0.10/src/protosetup.c:245:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (errorStringRet, reply.protocol_error.error_message, data/libice-1.0.10/src/register.c:75:2: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (protocolName) == 0) data/libice-1.0.10/src/register.c:171:2: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (protocolName) == 0) ANALYSIS SUMMARY: Hits = 85 Lines analyzed = 9259 in approximately 0.33 seconds (28111 lines/second) Physical Source Lines of Code (SLOC) = 6003 Hits@level = [0] 26 [1] 44 [2] 28 [3] 7 [4] 6 [5] 0 Hits@level+ = [0+] 111 [1+] 85 [2+] 41 [3+] 13 [4+] 6 [5+] 0 Hits/KSLOC@level+ = [0+] 18.4908 [1+] 14.1596 [2+] 6.82992 [3+] 2.16558 [4+] 0.9995 [5+] 0 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.