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/tdom-0.9.1/extensions/tnc/tnc.c Examining data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c Examining data/tdom-0.9.1/extensions/example/example.c Examining data/tdom-0.9.1/win/nmakehlp.c Examining data/tdom-0.9.1/win/config.h Examining data/tdom-0.9.1/generic/domxpath.h Examining data/tdom-0.9.1/generic/tclexpat.c Examining data/tdom-0.9.1/generic/domhtml5.h Examining data/tdom-0.9.1/generic/tcldom.c Examining data/tdom-0.9.1/generic/tdomDecls.h Examining data/tdom-0.9.1/generic/tdomStubInit.c Examining data/tdom-0.9.1/generic/domalloc.c Examining data/tdom-0.9.1/generic/xmlsimple.c Examining data/tdom-0.9.1/generic/tcldom.h Examining data/tdom-0.9.1/generic/domxpath.c Examining data/tdom-0.9.1/generic/domhtml.c Examining data/tdom-0.9.1/generic/tclpull.c Examining data/tdom-0.9.1/generic/dom.h Examining data/tdom-0.9.1/generic/dom.c Examining data/tdom-0.9.1/generic/domxslt.h Examining data/tdom-0.9.1/generic/domalloc.h Examining data/tdom-0.9.1/generic/tdomStubLib.c Examining data/tdom-0.9.1/generic/xmlsimple.h Examining data/tdom-0.9.1/generic/tclpull.h Examining data/tdom-0.9.1/generic/nodecmd.h Examining data/tdom-0.9.1/generic/domjson.c Examining data/tdom-0.9.1/generic/domjson.h Examining data/tdom-0.9.1/generic/win32.h Examining data/tdom-0.9.1/generic/expat_config.h Examining data/tdom-0.9.1/generic/nodecmd.c Examining data/tdom-0.9.1/generic/tdom.h Examining data/tdom-0.9.1/generic/domhtml5.c Examining data/tdom-0.9.1/generic/aolstub.cpp Examining data/tdom-0.9.1/generic/domlock.c Examining data/tdom-0.9.1/generic/domhtml.h Examining data/tdom-0.9.1/generic/domxslt.c Examining data/tdom-0.9.1/generic/tdominit.c Examining data/tdom-0.9.1/generic/tclexpat.h Examining data/tdom-0.9.1/expat/ascii.h Examining data/tdom-0.9.1/expat/nametab.h Examining data/tdom-0.9.1/expat/expat_external.h Examining data/tdom-0.9.1/expat/xmltok_impl.h Examining data/tdom-0.9.1/expat/xmltok_impl.c Examining data/tdom-0.9.1/expat/macconfig.h Examining data/tdom-0.9.1/expat/xmlparse.c Examining data/tdom-0.9.1/expat/asciitab.h Examining data/tdom-0.9.1/expat/xmltok.c Examining data/tdom-0.9.1/expat/loadlibrary.c Examining data/tdom-0.9.1/expat/utf8tab.h Examining data/tdom-0.9.1/expat/xmltok_ns.c Examining data/tdom-0.9.1/expat/xmltok.h Examining data/tdom-0.9.1/expat/expat.h Examining data/tdom-0.9.1/expat/iasciitab.h Examining data/tdom-0.9.1/expat/siphash.h Examining data/tdom-0.9.1/expat/xmlrole.h Examining data/tdom-0.9.1/expat/winconfig.h Examining data/tdom-0.9.1/expat/internal.h Examining data/tdom-0.9.1/expat/latin1tab.h Examining data/tdom-0.9.1/expat/xmlrole.c Examining data/tdom-0.9.1/unix/tclAppInit.c FINAL RESULTS: data/tdom-0.9.1/expat/loadlibrary.c:120:9: [4] (buffer) _tcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _tcscpy(path + _tcslen(path), TEXT("\\")); data/tdom-0.9.1/expat/loadlibrary.c:121:9: [4] (buffer) _tcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _tcscpy(path + _tcslen(path), filename); data/tdom-0.9.1/expat/xmlparse.c:110:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. to the build system, please open a bug. Thank you! data/tdom-0.9.1/extensions/tnc/tnc.c:277:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "Validation error at line %ld, character %ld: %s", data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:38:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:38:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:255:5: [4] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). lstrcat(cmdline, option); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:393:2: [4] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). lstrcat(cmdline, options[i]); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:682:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(szBuffer); data/tdom-0.9.1/generic/aolstub.cpp:82:19: [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). md->modname = strcpy(ns_malloc(strlen(mod)+1), mod); data/tdom-0.9.1/generic/aolstub.cpp:83:19: [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). md->server = strcpy(ns_malloc(strlen(srv)+1), srv); data/tdom-0.9.1/generic/dom.c:71:22: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, \ data/tdom-0.9.1/generic/dom.c:1101:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(feedbackCmd, "%s", "::dom::domParseFeedback"); data/tdom-0.9.1/generic/dom.c:1237:17: [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(attrnode->nodeValue, atPtr[1]); data/tdom-0.9.1/generic/dom.c:1342:9: [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(attrnode->nodeValue, (char *)atPtr[1]); data/tdom-0.9.1/generic/dom.c:2912:9: [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(attr->nodeValue, attributeValue); data/tdom-0.9.1/generic/dom.c:2928:9: [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(attr->nodeValue, attributeValue); data/tdom-0.9.1/generic/dom.c:3044:9: [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(attr->nodeValue, attributeValue); data/tdom-0.9.1/generic/dom.c:3096:9: [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(attr->nodeValue, attributeValue); data/tdom-0.9.1/generic/dom.c:4353:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(attr->nodeValue, nsToAdd->uri); data/tdom-0.9.1/generic/dom.h:69:36: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). # define tdomstrdup(s) (char*)strcpy(MALLOC(strlen((s))+1),(char*)s) data/tdom-0.9.1/generic/domhtml.c:822:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "Unterminated element '%s' (within '%s')", start+2, pn); data/tdom-0.9.1/generic/domxpath.c:85:31: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define TRACE(x) DDBG(fprintf(stderr,(x))) data/tdom-0.9.1/generic/domxpath.c:86:31: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define TRACE1(x,a) DDBG(fprintf(stderr,(x),(a))) data/tdom-0.9.1/generic/domxpath.c:87:31: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define TRACE2(x,a,b) DDBG(fprintf(stderr,(x),(a),(b))) data/tdom-0.9.1/generic/domxpath.c:88:31: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define TRACE3(x,a,b,c) DDBG(fprintf(stderr,(x),(a),(b),(c))) data/tdom-0.9.1/generic/domxpath.c:144:27: [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(*errMsg, __func); \ data/tdom-0.9.1/generic/domxpath.c:145:27: [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(*errMsg, ": Expected " #msg); \ data/tdom-0.9.1/generic/domxpath.c:2320:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s\n%3s%3d %-12s %5ld %09.3f %5d ", data/tdom-0.9.1/generic/domxpath.c:3717:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "Unknown function '%s'!", step->strvalue); data/tdom-0.9.1/generic/domxpath.c:5781:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(step, "/%s", node->nodeName); data/tdom-0.9.1/generic/domxpath.c:5783:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(step, "/%s[%d]", node->nodeName, nodeIndex); data/tdom-0.9.1/generic/domxpath.c:5809:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(step, "/%s", nTest); data/tdom-0.9.1/generic/domxpath.c:5811:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(step, "/%s[%d]", nTest, nodeIndex); data/tdom-0.9.1/generic/domxpath.c:5823:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy( *xpath + *xpathLen, step); data/tdom-0.9.1/generic/domxslt.c:79:33: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define TRACE(x) DBG(fprintf(stderr,(x))) data/tdom-0.9.1/generic/domxslt.c:80:33: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define TRACE1(x,a) DBG(fprintf(stderr,(x),(a))) data/tdom-0.9.1/generic/domxslt.c:81:33: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define TRACE2(x,a,b) DBG(fprintf(stderr,(x),(a),(b))) data/tdom-0.9.1/generic/domxslt.c:82:33: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define TRACE3(x,a,b,c) DBG(fprintf(stderr,(x),(a),(b),(c))) data/tdom-0.9.1/generic/domxslt.c:83:33: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define TRACE4(x,a,b,c,d) DBG(fprintf(stderr,(x),(a),(b),(c),(d))) data/tdom-0.9.1/generic/domxslt.c:84:33: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define TRACE5(x,a,b,c,d,e) DBG(fprintf(stderr,(x),(a),(b),(c),(d),(e))) data/tdom-0.9.1/generic/domxslt.c:1064:30: [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). if (upper) { strcat(tmp, RomanDigit[v].digit); } data/tdom-0.9.1/generic/domxslt.c:1065:30: [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). else { strcat(tmp, RomanDigit[v].ldigit); } data/tdom-0.9.1/generic/tcldom.c:1425:9: [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 (*errMsg, functionName); data/tdom-0.9.1/generic/tcldom.c:1429:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tclxpathFuncName, "::dom::xpathFunc::%s", functionName); data/tdom-0.9.1/generic/tcldom.c:1435:9: [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 (*errMsg, functionName); data/tdom-0.9.1/generic/tcldom.c:1552:17: [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(*errMsg, typeStr); data/tdom-0.9.1/generic/tcldom.c:1554:17: [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(*errMsg, functionName); data/tdom-0.9.1/generic/tcldom.c:1571:9: [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(*errMsg, functionName ); data/tdom-0.9.1/generic/tcldom.c:1573:9: [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(*errMsg, errStr); data/tdom-0.9.1/generic/tcldom.c:4462:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "::dom::domNode::%s::%s", (char*)node->nodeName, data/tdom-0.9.1/generic/tcldom.c:4474:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "::dom::domNode::%s", method); data/tdom-0.9.1/generic/tcldom.c:5563:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "::dom::domDoc::%s", method); data/tdom-0.9.1/generic/tcldom.c:6832:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "::dom::DOMImplementation::%s", method); data/tdom-0.9.1/generic/tcldom.c:7062:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "\n (\"%s %s\" body line %d)", Tcl_GetString(objv[0]), data/tdom-0.9.1/win/nmakehlp.c:38:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/tdom-0.9.1/win/nmakehlp.c:38:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/tdom-0.9.1/win/nmakehlp.c:255:5: [4] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). lstrcat(cmdline, option); data/tdom-0.9.1/win/nmakehlp.c:393:2: [4] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). lstrcat(cmdline, options[i]); data/tdom-0.9.1/win/nmakehlp.c:682:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(szBuffer); data/tdom-0.9.1/expat/loadlibrary.c:101:7: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. LoadLibrary(filename); data/tdom-0.9.1/expat/loadlibrary.c:127:11: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. LoadLibrary(path); data/tdom-0.9.1/expat/xmlparse.c:832:44: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char * const EXPAT_ENTROPY_DEBUG = getenv("EXPAT_ENTROPY_DEBUG"); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:263:10: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. ok = CreateProcess( data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:263:10: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. ok = CreateProcess( data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:397:10: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. ok = CreateProcess( data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:397:10: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. ok = CreateProcess( data/tdom-0.9.1/win/nmakehlp.c:263:10: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. ok = CreateProcess( data/tdom-0.9.1/win/nmakehlp.c:263:10: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. ok = CreateProcess( data/tdom-0.9.1/win/nmakehlp.c:397:10: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. ok = CreateProcess( data/tdom-0.9.1/win/nmakehlp.c:397:10: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. ok = CreateProcess( data/tdom-0.9.1/expat/siphash.h:134:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[8], *p; data/tdom-0.9.1/expat/siphash.h:272:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char vectors[64][8] = { data/tdom-0.9.1/expat/siphash.h:338: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 in[64]; data/tdom-0.9.1/expat/xmlparse.c:110:33: [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). to the build system, please open a bug. Thank you! data/tdom-0.9.1/expat/xmlparse.c:167:24: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define memmove(d,s,l) bcopy((s),(d),(l)) data/tdom-0.9.1/expat/xmlparse.c:280:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). XML_Bool open; data/tdom-0.9.1/expat/xmlparse.c:720:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). const int fd = open("/dev/urandom", O_RDONLY); data/tdom-0.9.1/expat/xmlparse.c:1930:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(parser->m_buffer, end, nLeftOver); data/tdom-0.9.1/expat/xmlparse.c:1946:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buff, s, len); data/tdom-0.9.1/expat/xmlparse.c:2083: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(newBuf, &parser->m_bufferPtr[-keep], parser->m_bufferEnd - parser->m_bufferPtr + keep); data/tdom-0.9.1/expat/xmlparse.c:2095: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(newBuf, parser->m_bufferPtr, parser->m_bufferEnd - parser->m_bufferPtr); data/tdom-0.9.1/expat/xmlparse.c:2518: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(rawNameBuf, tag->rawName, tag->rawNameLength); data/tdom-0.9.1/expat/xmlparse.c:2771:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (entity->open) data/tdom-0.9.1/expat/xmlparse.c:3514: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(uri, binding->uri, binding->uriLen * sizeof(XML_Char)); data/tdom-0.9.1/expat/xmlparse.c:3523: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(uri, localPart, i * sizeof(XML_Char)); data/tdom-0.9.1/expat/xmlparse.c:3528: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(uri + 1, binding->prefix->name, prefixLen * sizeof(XML_Char)); data/tdom-0.9.1/expat/xmlparse.c:3631: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(b->uri, uri, len * sizeof(XML_Char)); data/tdom-0.9.1/expat/xmlparse.c:3910: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 encodingBuf[128]; data/tdom-0.9.1/expat/xmlparse.c:5083:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (entity->open) data/tdom-0.9.1/expat/xmlparse.c:5625:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (entity->open) { data/tdom-0.9.1/expat/xmlparse.c:5742:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (entity->open) { data/tdom-0.9.1/expat/xmlparse.c:6213:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!e->open) data/tdom-0.9.1/expat/xmlparse.c:6953:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pool->blocks->s, pool->start, data/tdom-0.9.1/expat/xmlparse.c:7033:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tem->s, pool->start, data/tdom-0.9.1/expat/xmlparse.c:7193: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(result, s, charsRequired * sizeof(XML_Char)); data/tdom-0.9.1/expat/xmltok.c:210:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char type[256]; data/tdom-0.9.1/expat/xmltok.c:426:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*toP, *fromP, bytesToCopy); data/tdom-0.9.1/expat/xmltok.c:1098: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[1]; data/tdom-0.9.1/expat/xmltok.c:1133:8: [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). char open; data/tdom-0.9.1/expat/xmltok.c:1192:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (c == open) data/tdom-0.9.1/expat/xmltok.c:1400: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 utf8[256][4]; data/tdom-0.9.1/expat/xmltok.c:1445: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[XML_UTF8_ENCODE_MAX]; data/tdom-0.9.1/expat/xmltok.c:1467: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(*toP, utf8, n); data/tdom-0.9.1/expat/xmltok.c:1506: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 *)mem)[i] = ((char *)&latin1_encoding)[i]; data/tdom-0.9.1/expat/xmltok_impl.c:608:13: [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). int open; data/tdom-0.9.1/expat/xmltok_impl.c:618:19: [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). switch (open) { data/tdom-0.9.1/expat/xmltok_impl.c:634:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (t == open) data/tdom-0.9.1/expat/xmltok_impl.c:962:21: [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). PREFIX(scanLit)(int open, const ENCODING *enc, data/tdom-0.9.1/expat/xmltok_impl.c:973:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (t != open) data/tdom-0.9.1/expat/xmltok_impl.c:1535:60: [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). || BYTE_TYPE(enc, ptr + MINBPC(enc)) == open)) data/tdom-0.9.1/expat/xmltok_ns.c:102: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[ENCODING_MAX]; data/tdom-0.9.1/extensions/tnc/tnc.c:273: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 s[1000]; data/tdom-0.9.1/extensions/tnc/tnc.c:317:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "DTDvalidator%d", uniqueCounter++); data/tdom-0.9.1/extensions/tnc/tnc.c:1903:62: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (!TncProbeAttribute (userData, elemAtts, (char *) atPtr[0], data/tdom-0.9.1/extensions/tnc/tnc.c:1904: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. (char *) atPtr[1], &nrOfreq)) data/tdom-0.9.1/extensions/tnc/tnc.c:2833: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 *cmdName, s[20]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:59: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 buffer[STATICBUFFERSIZE]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:74: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 msg[300]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:206: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 msg[300]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:209: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 cmdline[100]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:249:5: [2] (buffer) lstrcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. Risk is low because the source is a constant string. lstrcpy(cmdline, "cl.exe -nologo -c -TC -Zs -X -Fp.\\_junk.pch "); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:261:5: [2] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Risk is low because the source is a constant string. lstrcat(cmdline, " .\\nul"); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:341: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 msg[300]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:345: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 cmdline[255]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:385:5: [2] (buffer) lstrcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. Risk is low because the source is a constant string. lstrcpy(cmdline, "link.exe -nologo "); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:392:2: [2] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Risk is low because the source is a constant string. lstrcat(cmdline, " \""); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:512:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char szBuffer[100]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:514:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename, "rt"); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:545: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(szBuffer, p, q - p); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:620:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char szBuffer[1024], szCopy[1024]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:625:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(filename, "rt"); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:632:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). sp = fopen(substitutions, "rt"); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:679:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(szBuffer, szCopy, sizeof(szCopy)); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:703: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 szCwd[MAX_PATH + 1]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:704: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 szTmp[MAX_PATH + 1]; data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:726: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 path[MAX_PATH+1]; data/tdom-0.9.1/generic/dom.c:948: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/dom.c:984: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/dom.c:1088: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 tagPrefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/dom.c:1089: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/dom.c:1091: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 feedbackCmd[24]; data/tdom-0.9.1/generic/dom.c:1342:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. strcpy(attrnode->nodeValue, (char *)atPtr[1]); data/tdom-0.9.1/generic/dom.c:1802: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[4096], *resultType, *extbase, *xmlstring, *channelId, s[50]; data/tdom-0.9.1/generic/dom.c:1931:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentLineNumber(extparser)); data/tdom-0.9.1/generic/dom.c:1938:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentColumnNumber(extparser)); data/tdom-0.9.1/generic/dom.c:1964:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentColumnNumber(extparser)); data/tdom-0.9.1/generic/dom.c:1985:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentLineNumber(extparser)); data/tdom-0.9.1/generic/dom.c:1992:21: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentColumnNumber(extparser)); data/tdom-0.9.1/generic/dom.c:1998:21: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentColumnNumber(extparser)); data/tdom-0.9.1/generic/dom.c:2113: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[8192]; data/tdom-0.9.1/generic/dom.c:2464: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/dom.c:2960: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/dom.c:3186: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/dom.c:4053: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/dom.c:4513: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/dom.h:133:29: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. #define DOC_CMD(s,doc) sprintf((s), "domDoc%p", (void *)(doc)) data/tdom-0.9.1/generic/dom.h:134:29: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. #define NODE_CMD(s,node) sprintf((s), "domNode%p", (void *)(node)) data/tdom-0.9.1/generic/dom.h:135:29: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. #define XSLT_CMD(s,doc) sprintf((s), "XSLTcmd%p", (void *)(doc)) data/tdom-0.9.1/generic/domhtml.c:637: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 tmp[250], *y = NULL; data/tdom-0.9.1/generic/domhtml5.c:64: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[MAX_TAG_LEN]; data/tdom-0.9.1/generic/domjson.c:152: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 (jparse->buf, &json[savedStart+1], i-savedStart); data/tdom-0.9.1/generic/domjson.c:498:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. *errStr = (char *)JSONParseStateStr[jparse.state]; data/tdom-0.9.1/generic/domxpath.c:269:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int i = 0,l; char tmp[80]; data/tdom-0.9.1/generic/domxpath.c:303:26: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, ((domTextNode*)rs->nodes[i]->firstChild)->nodeValue, l); data/tdom-0.9.1/generic/domxpath.c:312:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, ((domTextNode*)rs->nodes[i])->nodeValue, l); data/tdom-0.9.1/generic/domxpath.c:319:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, "<!--", 4); data/tdom-0.9.1/generic/domxpath.c:321:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tmp[4], ((domTextNode*)rs->nodes[i])->nodeValue, l); data/tdom-0.9.1/generic/domxpath.c:322:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tmp[4+l], "-->", 3); data/tdom-0.9.1/generic/domxpath.c:403:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (nodes, rs->nodes, sizeof(domNode*) * rs->nr_nodes); data/tdom-0.9.1/generic/domxpath.c:680: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 delim, *ps, save, tmpErr[80]; data/tdom-0.9.1/generic/domxpath.c:1092:36: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmpErr, "Unexpected character " data/tdom-0.9.1/generic/domxpath.c:1117:28: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmpErr, "Unexpected character '%c' at " data/tdom-0.9.1/generic/domxpath.c:2275: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 tmp[200]; data/tdom-0.9.1/generic/domxpath.c:2703: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 tmp[80], *pc; data/tdom-0.9.1/generic/domxpath.c:2711:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp, "%ld", rs->intvalue); data/tdom-0.9.1/generic/domxpath.c:2720:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp, "%f", rs->realvalue); data/tdom-0.9.1/generic/domxpath.c:2846: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 *replaceStr, *pfrom, *pto, tmp[80], tmp1[80]; data/tdom-0.9.1/generic/domxpath.c:2863: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 utfBuf[TCL_UTF_MAX]; data/tdom-0.9.1/generic/domxpath.c:3595:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp,"id%p-%d", (void *)node, i); data/tdom-0.9.1/generic/domxpath.c:3597:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp,"id%p", (void *)leftResult.nodes[0]); data/tdom-0.9.1/generic/domxpath.c:5737: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 step[200], *nTest; data/tdom-0.9.1/generic/domxpath.c:5767:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(step, "/*"); data/tdom-0.9.1/generic/domxpath.c:5769:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(step, "/*[%d]", nodeIndex); data/tdom-0.9.1/generic/domxslt.c:468: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 tmp[80]; data/tdom-0.9.1/generic/domxslt.c:487:21: [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( tmp, "..."); data/tdom-0.9.1/generic/domxslt.c:546: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 buffer[1024]; data/tdom-0.9.1/generic/domxslt.c:558:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buffer, " at line %d, column %d:\n", line, column); data/tdom-0.9.1/generic/domxslt.c:935: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 tmp[80], *pt; data/tdom-0.9.1/generic/domxslt.c:955:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "%d", value); data/tdom-0.9.1/generic/domxslt.c:1008:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "%d", value); data/tdom-0.9.1/generic/domxslt.c:1053:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "%d", value); data/tdom-0.9.1/generic/domxslt.c:1058:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "%d", 0); data/tdom-0.9.1/generic/domxslt.c:1073:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "%d", value); data/tdom-0.9.1/generic/domxslt.c:1153: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 stmp[240], ftmp[80], *tstr; data/tdom-0.9.1/generic/domxslt.c:1176:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (stmp, "%f", number); data/tdom-0.9.1/generic/domxslt.c:1384:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ftmp,"%.*f", fZero+fHash, number -i); data/tdom-0.9.1/generic/domxslt.c:1394:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(stmp,"%0*d", nZero, i); data/tdom-0.9.1/generic/domxslt.c:1439:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(stmp,"%0*d", nZero, i); data/tdom-0.9.1/generic/domxslt.c:1765: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 *p, prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:1893: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:2451: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(a, b, size*sizeof(domNode*)); data/tdom-0.9.1/generic/domxslt.c:2452: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(posa, posb, size*sizeof(int)); data/tdom-0.9.1/generic/domxslt.c:2453: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(vs, vstmp, size*sizeof(char*)); data/tdom-0.9.1/generic/domxslt.c:2454: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(vd, vdtmp, size*sizeof(double)); data/tdom-0.9.1/generic/domxslt.c:2512: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:2588: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:2865: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 *prioStr, *str, prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:3025: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 *pc, *aSet, save, *str, prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:3266: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:3721: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 prefix[MAX_PREFIX_LEN], tmpErr[200]; data/tdom-0.9.1/generic/domxslt.c:4005:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (prefix, "ns%d", xs->nsUniqeNr++); data/tdom-0.9.1/generic/domxslt.c:4026:33: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (prefix, "ns%d", xs->nsUniqeNr++); data/tdom-0.9.1/generic/domxslt.c:4632:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmpErr, "Error while executing message callback." data/tdom-0.9.1/generic/domxslt.c:5088: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:5326: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:5423: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 *pc, *start, save, prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:5667: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 *resultType, *extbase, *xmlstring, *channelId, s[20]; data/tdom-0.9.1/generic/domxslt.c:5795:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (s, "%ld", XML_GetCurrentLineNumber (parser)); data/tdom-0.9.1/generic/domxslt.c:5798:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (s, "%ld", XML_GetCurrentColumnNumber (parser)); data/tdom-0.9.1/generic/domxslt.c:5865: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 *select, prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/domxslt.c:6011: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/nodecmd.c:475: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 buf[64]; data/tdom-0.9.1/generic/nodecmd.c:529: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 *nsName, buf[64]; data/tdom-0.9.1/generic/nodecmd.c:622:5: [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(buf, "namespace current"); data/tdom-0.9.1/generic/tcldom.c:486: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 objCmdName[80]; data/tdom-0.9.1/generic/tcldom.c:552: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 objCmdName[80]; data/tdom-0.9.1/generic/tcldom.c:590: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 nodeName[80]; data/tdom-0.9.1/generic/tcldom.c:596: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(objPtr->bytes, nodeName, len+1); data/tdom-0.9.1/generic/tcldom.c:688: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 objCmdName[80]; data/tdom-0.9.1/generic/tcldom.c:731: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 objCmdName[80]; data/tdom-0.9.1/generic/tcldom.c:763: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 objCmdName[80], *objVar; data/tdom-0.9.1/generic/tcldom.c:838: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/tcldom.c:1249: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 s[50]; data/tdom-0.9.1/generic/tcldom.c:1253:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentLineNumber(parser)); data/tdom-0.9.1/generic/tcldom.c:1257:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentColumnNumber(parser)); data/tdom-0.9.1/generic/tcldom.c:1410: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 tclxpathFuncName[200], objCmdName[80]; data/tdom-0.9.1/generic/tcldom.c:1424:9: [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 (*errMsg, "Unreasonable long XPath function name: \""); data/tdom-0.9.1/generic/tcldom.c:1426:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (*errMsg, "\"!"); data/tdom-0.9.1/generic/tcldom.c:1434:9: [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 (*errMsg, "Unknown XPath function: \""); data/tdom-0.9.1/generic/tcldom.c:1436:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (*errMsg, "\"!"); data/tdom-0.9.1/generic/tcldom.c:1551:17: [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(*errMsg, "Unknown type of return value \""); data/tdom-0.9.1/generic/tcldom.c:1553:17: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(*errMsg, "\" from Tcl coded XPath function \""); data/tdom-0.9.1/generic/tcldom.c:1555:17: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(*errMsg, "\"!"); data/tdom-0.9.1/generic/tcldom.c:1570:9: [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(*errMsg, "Tcl error while executing XPath extension function '"); data/tdom-0.9.1/generic/tcldom.c:1572:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(*errMsg, "':\n" ); data/tdom-0.9.1/generic/tcldom.c:2211: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[APESC_BUF_SIZE+80], *b, *bLimit, *pc, *pc1, *pEnd, charRef[10]; data/tdom-0.9.1/generic/tcldom.c:2523:25: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(charRef, "%d", unicode); data/tdom-0.9.1/generic/tcldom.c:2593: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 tag[80], attrName[80]; data/tdom-0.9.1/generic/tcldom.c:2782: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 prefix[MAX_PREFIX_LEN], *start, *p; data/tdom-0.9.1/generic/tcldom.c:3047: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[APESC_BUF_SIZE+80], *b, *bLimit, *pc, *pEnd; data/tdom-0.9.1/generic/tcldom.c:3448: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 *channelId, prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/tcldom.c:4317: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 *errMsg, *objVar, objCmdName[80]; data/tdom-0.9.1/generic/tcldom.c:4365: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 tmp[200], prefix[MAX_PREFIX_LEN], *method, *nodeName, data/tdom-0.9.1/generic/tcldom.c:4754:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp,"attribute with localName %80.80s not found!",localName); data/tdom-0.9.1/generic/tcldom.c:5467: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 * method, *tag, *data, *target, *uri, tmp[100]; data/tdom-0.9.1/generic/tcldom.c:6471: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 s[50]; data/tdom-0.9.1/generic/tcldom.c:6483:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%d", byteIndex); data/tdom-0.9.1/generic/tcldom.c:6507: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 s[50]; data/tdom-0.9.1/generic/tcldom.c:6525:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%d", byteIndex); data/tdom-0.9.1/generic/tcldom.c:6578: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 s[50]; data/tdom-0.9.1/generic/tcldom.c:6589:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentLineNumber(parser)); data/tdom-0.9.1/generic/tcldom.c:6599:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentColumnNumber(parser)); data/tdom-0.9.1/generic/tcldom.c:6631:21: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentColumnNumber(parser)); data/tdom-0.9.1/generic/tcldom.c:6777: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 * method, tmp[300]; data/tdom-0.9.1/generic/tcldom.c:6893: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. char objCmdName[80], *cmdName, *errMsg; data/tdom-0.9.1/generic/tcldom.c:7061: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 msg[64 + TCL_INTEGER_SPACE]; data/tdom-0.9.1/generic/tcldom.c:7196: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 *cmd, *dot, *paren, *arg[MAX_REWRITE_ARGS], *object, *method; data/tdom-0.9.1/generic/tclexpat.c:443: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 s[20]; data/tdom-0.9.1/generic/tclexpat.c:450:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "xmlparser%d", uniqueCounter++); data/tdom-0.9.1/generic/tclexpat.c:897: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 s[255], buf[8*1024]; data/tdom-0.9.1/generic/tclexpat.c:993:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(data, O_BINARY|O_RDONLY); data/tdom-0.9.1/generic/tclexpat.c:1037:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentLineNumber(expat->parser)); data/tdom-0.9.1/generic/tclexpat.c:1041:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentColumnNumber(expat->parser)); data/tdom-0.9.1/generic/tclexpat.c:2197:81: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. Tcl_ListObjAppendElement(expat->interp, atList, Tcl_NewStringObj((char *)atPtr[0], strlen(atPtr[0]))); data/tdom-0.9.1/generic/tclexpat.c:2198:81: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. Tcl_ListObjAppendElement(expat->interp, atList, Tcl_NewStringObj((char *)atPtr[1], strlen(atPtr[1]))); data/tdom-0.9.1/generic/tclexpat.c:3223: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 s[255], buf[8*1024], *dataStr, *resultType, *extbase; data/tdom-0.9.1/generic/tclexpat.c:3399:16: [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(dataStr, O_BINARY|O_RDONLY); data/tdom-0.9.1/generic/tclexpat.c:3446:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentLineNumber(extparser)); data/tdom-0.9.1/generic/tclexpat.c:3451:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentColumnNumber(extparser)); data/tdom-0.9.1/generic/tclpull.c:362: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 s[255]; data/tdom-0.9.1/generic/tclpull.c:365:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentLineNumber(pullInfo->parser)); data/tdom-0.9.1/generic/tclpull.c:370:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "%ld", XML_GetCurrentColumnNumber(pullInfo->parser)); data/tdom-0.9.1/generic/tclpull.c:563:14: [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(Tcl_GetString(objv[2]), O_BINARY|O_RDONLY); data/tdom-0.9.1/generic/xmlsimple.c:366: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 tagPrefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/generic/xmlsimple.c:367: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 prefix[MAX_PREFIX_LEN]; data/tdom-0.9.1/win/nmakehlp.c:59: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 buffer[STATICBUFFERSIZE]; data/tdom-0.9.1/win/nmakehlp.c:74: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 msg[300]; data/tdom-0.9.1/win/nmakehlp.c:206: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 msg[300]; data/tdom-0.9.1/win/nmakehlp.c:209: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 cmdline[100]; data/tdom-0.9.1/win/nmakehlp.c:249:5: [2] (buffer) lstrcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. Risk is low because the source is a constant string. lstrcpy(cmdline, "cl.exe -nologo -c -TC -Zs -X -Fp.\\_junk.pch "); data/tdom-0.9.1/win/nmakehlp.c:261:5: [2] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Risk is low because the source is a constant string. lstrcat(cmdline, " .\\nul"); data/tdom-0.9.1/win/nmakehlp.c:341: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 msg[300]; data/tdom-0.9.1/win/nmakehlp.c:345: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 cmdline[255]; data/tdom-0.9.1/win/nmakehlp.c:385:5: [2] (buffer) lstrcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. Risk is low because the source is a constant string. lstrcpy(cmdline, "link.exe -nologo "); data/tdom-0.9.1/win/nmakehlp.c:392:2: [2] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Risk is low because the source is a constant string. lstrcat(cmdline, " \""); data/tdom-0.9.1/win/nmakehlp.c:512:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char szBuffer[100]; data/tdom-0.9.1/win/nmakehlp.c:514:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename, "rt"); data/tdom-0.9.1/win/nmakehlp.c:545: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(szBuffer, p, q - p); data/tdom-0.9.1/win/nmakehlp.c:620:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char szBuffer[1024], szCopy[1024]; data/tdom-0.9.1/win/nmakehlp.c:625:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(filename, "rt"); data/tdom-0.9.1/win/nmakehlp.c:632:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). sp = fopen(substitutions, "rt"); data/tdom-0.9.1/win/nmakehlp.c:679:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(szBuffer, szCopy, sizeof(szCopy)); data/tdom-0.9.1/win/nmakehlp.c:703: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 szCwd[MAX_PATH + 1]; data/tdom-0.9.1/win/nmakehlp.c:704: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 szTmp[MAX_PATH + 1]; data/tdom-0.9.1/win/nmakehlp.c:726: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 path[MAX_PATH+1]; data/tdom-0.9.1/expat/loadlibrary.c:116:28: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t filenamelen = _tcslen(filename); data/tdom-0.9.1/expat/loadlibrary.c:120:24: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _tcscpy(path + _tcslen(path), TEXT("\\")); data/tdom-0.9.1/expat/loadlibrary.c:121:24: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _tcscpy(path + _tcslen(path), filename); data/tdom-0.9.1/expat/xmlparse.c:729:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const ssize_t bytesWrittenMore = read(fd, currentTarget, bytesToWrite); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:394:2: [1] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Risk is low because the source is a constant character. lstrcat(cmdline, "\""); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:530:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(match); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:676: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). op += strlen(p->key); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:732: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). dirlen = strlen(dir); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:735:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path, dir, dirlen); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:736:5: [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(path+dirlen, "\\*", 3); /* Including terminating \0 */ data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:737: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). keylen = strlen(keypath); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:762: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). sublen = strlen(finfo.cFileName); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:765:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path+dirlen+1, finfo.cFileName, sublen); data/tdom-0.9.1/extensions/tnc/win/nmakehlp.c:767:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path+dirlen+1+sublen+1, keypath, keylen+1); data/tdom-0.9.1/generic/aolstub.cpp:82: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). md->modname = strcpy(ns_malloc(strlen(mod)+1), mod); data/tdom-0.9.1/generic/aolstub.cpp:83: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). md->server = strcpy(ns_malloc(strlen(srv)+1), srv); data/tdom-0.9.1/generic/dom.c:268:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (name) == 3 data/tdom-0.9.1/generic/dom.c:391: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 (str); data/tdom-0.9.1/generic/dom.c:416: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 (str); data/tdom-0.9.1/generic/dom.c:439: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 (str); data/tdom-0.9.1/generic/dom.c:1234: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). len = strlen(atPtr[1]); data/tdom-0.9.1/generic/dom.c:1339:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(atPtr[1]); data/tdom-0.9.1/generic/dom.c:1602: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(s); data/tdom-0.9.1/generic/dom.c:1708: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(target); data/tdom-0.9.1/generic/dom.c:1713: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(data); data/tdom-0.9.1/generic/dom.c:1825: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). Tcl_NewStringObj(base, strlen(base))); data/tdom-0.9.1/generic/dom.c:1838:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_NewStringObj(systemId, strlen(systemId))); data/tdom-0.9.1/generic/dom.c:1846:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_NewStringObj(publicId, strlen(publicId))); data/tdom-0.9.1/generic/dom.c:1881:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (xmlstring); data/tdom-0.9.1/generic/dom.c:1927: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). status = XML_Parse(extparser, xmlstring, strlen (xmlstring), 1); data/tdom-0.9.1/generic/dom.c:2362: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). attr->valueLength = strlen (XML_NAMESPACE); data/tdom-0.9.1/generic/dom.c:2910: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). attr->valueLength = strlen(attributeValue); data/tdom-0.9.1/generic/dom.c:2926: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). attr->valueLength = strlen(attributeValue); data/tdom-0.9.1/generic/dom.c:3042: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). attr->valueLength = strlen(attributeValue); data/tdom-0.9.1/generic/dom.c:3094: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). attr->valueLength = strlen(attributeValue); data/tdom-0.9.1/generic/dom.c:4351: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). attr->valueLength = strlen(nsToAdd->uri); data/tdom-0.9.1/generic/dom.h:69: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). # define tdomstrdup(s) (char*)strcpy(MALLOC(strlen((s))+1),(char*)s) data/tdom-0.9.1/generic/domhtml.c:1013: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). pinode->targetLength = strlen(start); data/tdom-0.9.1/generic/domhtml5.c:86:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&buf[0], data/tdom-0.9.1/generic/domhtml5.c:146:29: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&buf[0], data/tdom-0.9.1/generic/domhtml5.c:193:29: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&buf[0], data/tdom-0.9.1/generic/domhtml5.c:217:29: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&buf[0], data/tdom-0.9.1/generic/domhtml5.c:278: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). strlen(child->v.text.text), data/tdom-0.9.1/generic/domjson.c:356: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). jparse->buf, strlen(jparse->buf), data/tdom-0.9.1/generic/domxpath.c:374:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rs->string_len = strlen(s); data/tdom-0.9.1/generic/domxpath.c:2312: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). len = strlen(*errMsg); data/tdom-0.9.1/generic/domxpath.c:2313: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). newlen = strlen(xpath); data/tdom-0.9.1/generic/domxpath.c:2329: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). len = strlen(*errMsg); data/tdom-0.9.1/generic/domxpath.c:2330: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). newlen = strlen(tmp); data/tdom-0.9.1/generic/domxpath.c:2333: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). slen = strlen(tokens[i].strvalue); data/tdom-0.9.1/generic/domxpath.c:2722:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(tmp); data/tdom-0.9.1/generic/domxpath.c:3289: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). rsSetString (result, pfrom + strlen (rightStr)); data/tdom-0.9.1/generic/domxpath.c:3295: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). i = strlen(rightStr); data/tdom-0.9.1/generic/domxpath.c:3329: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). pto = (char*)REALLOC(pto, 1+len+strlen(leftStr)); data/tdom-0.9.1/generic/domxpath.c:3330:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(pto + len, leftStr, strlen(leftStr)); data/tdom-0.9.1/generic/domxpath.c:3331: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). len += strlen(leftStr); data/tdom-0.9.1/generic/domxpath.c:3716: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). if (strlen(step->strvalue)>50) *(step->strvalue + 50) = '\0'; data/tdom-0.9.1/generic/domxpath.c:5818: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(step); data/tdom-0.9.1/generic/domxslt.c:956: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). fulllen = len = strlen (tmp); data/tdom-0.9.1/generic/domxslt.c:961:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gslen = strlen (groupingSeparator); data/tdom-0.9.1/generic/domxslt.c:1076: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 (tmp); data/tdom-0.9.1/generic/domxslt.c:1395: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). l = strlen (stmp); data/tdom-0.9.1/generic/domxslt.c:1440: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). l = strlen (stmp); data/tdom-0.9.1/generic/domxslt.c:1455: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). l = strlen(ftmp); data/tdom-0.9.1/generic/domxslt.c:1521: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). *resultLen = strlen(*resultStr); data/tdom-0.9.1/generic/domxslt.c:4398: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). domAppendNewTextNode(xs->lastNode, str, strlen(str), data/tdom-0.9.1/generic/domxslt.c:4737: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). xs->resultDoc, str2, strlen(str2), str, len); data/tdom-0.9.1/generic/domxslt.c:4784: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). domAppendNewTextNode(xs->lastNode, str, strlen(str), data/tdom-0.9.1/generic/domxslt.c:5691: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). strlen(baseURI))); data/tdom-0.9.1/generic/domxslt.c:5697: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). Tcl_NewStringObj (href, strlen (href)) data/tdom-0.9.1/generic/domxslt.c:5786: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 (xmlstring), xmlstring);) data/tdom-0.9.1/generic/nodecmd.c:477: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). Tcl_SetObjResult(interp, Tcl_NewStringObj(buf, strlen(buf))); data/tdom-0.9.1/generic/tcldom.c:594: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(nodeName); data/tdom-0.9.1/generic/tcldom.c:1422:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(functionName) > 199) { data/tdom-0.9.1/generic/tcldom.c:1423: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). *errMsg = (char*)MALLOC (80 + strlen (functionName)); data/tdom-0.9.1/generic/tcldom.c:1433: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). *errMsg = (char*)MALLOC (80 + strlen (functionName)); data/tdom-0.9.1/generic/tcldom.c:1549: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). *errMsg = (char*)MALLOC (80 + strlen (typeStr) data/tdom-0.9.1/generic/tcldom.c:1550: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). + strlen (functionName)); data/tdom-0.9.1/generic/tcldom.c:1569:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *errMsg = (char*)MALLOC(120+strlen(functionName) + errStrLen); data/tdom-0.9.1/generic/tcldom.c:2524: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). for (i = 0; i < (int)strlen(charRef); i++) { data/tdom-0.9.1/generic/tcldom.c:6828: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). if ((strlen(method)-1) >= 270) { data/tdom-0.9.1/generic/tclexpat.c:1012:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read(fd, fbuf, TDOM_EXPAT_READ_SIZE); data/tdom-0.9.1/generic/tclexpat.c:2197:98: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, atList, Tcl_NewStringObj((char *)atPtr[0], strlen(atPtr[0]))); data/tdom-0.9.1/generic/tclexpat.c:2198:98: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, atList, Tcl_NewStringObj((char *)atPtr[1], strlen(atPtr[1]))); data/tdom-0.9.1/generic/tclexpat.c:2812:88: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)target, strlen(target))); data/tdom-0.9.1/generic/tclexpat.c:2813:86: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)data, strlen(data))); data/tdom-0.9.1/generic/tclexpat.c:2990:92: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)entityname, strlen(entityname))); data/tdom-0.9.1/generic/tclexpat.c:3002:90: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)base, strlen(base))); data/tdom-0.9.1/generic/tclexpat.c:3007:94: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)systemId, strlen(systemId))); data/tdom-0.9.1/generic/tclexpat.c:3012:94: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)publicId, strlen(publicId))); data/tdom-0.9.1/generic/tclexpat.c:3017:98: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)notationName, strlen(notationName))); data/tdom-0.9.1/generic/tclexpat.c:3106:94: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)notationName, strlen(notationName))); data/tdom-0.9.1/generic/tclexpat.c:3107:86: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)base, strlen(base))); data/tdom-0.9.1/generic/tclexpat.c:3111:94: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)systemId, strlen(systemId))); data/tdom-0.9.1/generic/tclexpat.c:3116:94: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_ListObjAppendElement(expat->interp, cmdPtr, Tcl_NewStringObj((char *)publicId, strlen(publicId))); data/tdom-0.9.1/generic/tclexpat.c:3259: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). Tcl_NewStringObj((char *)base, strlen(base))); data/tdom-0.9.1/generic/tclexpat.c:3267: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). Tcl_NewStringObj((char *)systemId, strlen(systemId))); data/tdom-0.9.1/generic/tclexpat.c:3275: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). Tcl_NewStringObj((char *)publicId, strlen(publicId))); data/tdom-0.9.1/generic/tclexpat.c:3423:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read(fd, fbuf, TDOM_EXPAT_READ_SIZE); data/tdom-0.9.1/generic/tclexpat.c:3569:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_NewStringObj((char *)data, strlen(data))); data/tdom-0.9.1/generic/tclexpat.c:3960:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_NewStringObj((char *)name, strlen(name))); data/tdom-0.9.1/generic/tclexpat.c:4053:65: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_NewStringObj((char *)elname, strlen (elname))); data/tdom-0.9.1/generic/tclexpat.c:4055:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_NewStringObj((char *)name, strlen (name))); data/tdom-0.9.1/generic/tclexpat.c:4057:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_NewStringObj((char *)type, strlen (type))); data/tdom-0.9.1/generic/tclexpat.c:4064:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Tcl_NewStringObj ((char*)dflt, strlen (dflt))); data/tdom-0.9.1/generic/tclexpat.c:4154: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). Tcl_NewStringObj((char *)doctypeName, strlen(doctypeName))); data/tdom-0.9.1/generic/tclexpat.c:4157: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). Tcl_NewStringObj((char *)sysid, strlen(sysid))); data/tdom-0.9.1/generic/tclexpat.c:4164: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). Tcl_NewStringObj((char *)pubid, strlen(sysid))); data/tdom-0.9.1/generic/tclpull.c:433:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read (pullInfo->inputfd, fbuf, data/tdom-0.9.1/generic/tclpull.c:612:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(pullInfo->inputfd, fbuf, data/tdom-0.9.1/generic/xmlsimple.c:677: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). pinode->targetLength = strlen(start); data/tdom-0.9.1/win/nmakehlp.c:394:2: [1] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Risk is low because the source is a constant character. lstrcat(cmdline, "\""); data/tdom-0.9.1/win/nmakehlp.c:530:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(match); data/tdom-0.9.1/win/nmakehlp.c:676: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). op += strlen(p->key); data/tdom-0.9.1/win/nmakehlp.c:732: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). dirlen = strlen(dir); data/tdom-0.9.1/win/nmakehlp.c:735:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path, dir, dirlen); data/tdom-0.9.1/win/nmakehlp.c:736:5: [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(path+dirlen, "\\*", 3); /* Including terminating \0 */ data/tdom-0.9.1/win/nmakehlp.c:737: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). keylen = strlen(keypath); data/tdom-0.9.1/win/nmakehlp.c:762: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). sublen = strlen(finfo.cFileName); data/tdom-0.9.1/win/nmakehlp.c:765:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path+dirlen+1, finfo.cFileName, sublen); data/tdom-0.9.1/win/nmakehlp.c:767:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path+dirlen+1+sublen+1, keypath, keylen+1); ANALYSIS SUMMARY: Hits = 427 Lines analyzed = 59292 in approximately 1.55 seconds (38205 lines/second) Physical Source Lines of Code (SLOC) = 46637 Hits@level = [0] 360 [1] 121 [2] 235 [3] 11 [4] 60 [5] 0 Hits@level+ = [0+] 787 [1+] 427 [2+] 306 [3+] 71 [4+] 60 [5+] 0 Hits/KSLOC@level+ = [0+] 16.875 [1+] 9.15582 [2+] 6.56131 [3+] 1.5224 [4+] 1.28653 [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.