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/libxslt-1.1.34/doc/tutorial2/libxslt_pipes.c
Examining data/libxslt-1.1.34/doc/tutorial/libxslt_tutorial.c
Examining data/libxslt-1.1.34/tests/plugins/testplugin.c
Examining data/libxslt-1.1.34/tests/fuzz/testTargets.c
Examining data/libxslt-1.1.34/tests/fuzz/xpath.c
Examining data/libxslt-1.1.34/tests/fuzz/xslt.c
Examining data/libxslt-1.1.34/tests/fuzz/fuzz.h
Examining data/libxslt-1.1.34/tests/fuzz/fuzz.c
Examining data/libxslt-1.1.34/examples/xsltICUSort.c
Examining data/libxslt-1.1.34/libexslt/crypto.c
Examining data/libxslt-1.1.34/libexslt/sets.c
Examining data/libxslt-1.1.34/libexslt/math.c
Examining data/libxslt-1.1.34/libexslt/exslt.c
Examining data/libxslt-1.1.34/libexslt/saxon.c
Examining data/libxslt-1.1.34/libexslt/strings.c
Examining data/libxslt-1.1.34/libexslt/dynamic.c
Examining data/libxslt-1.1.34/libexslt/common.c
Examining data/libxslt-1.1.34/libexslt/libexslt.h
Examining data/libxslt-1.1.34/libexslt/date.c
Examining data/libxslt-1.1.34/libexslt/exslt.h
Examining data/libxslt-1.1.34/libexslt/functions.c
Examining data/libxslt-1.1.34/libexslt/exsltexports.h
Examining data/libxslt-1.1.34/xsltproc/testThreads.c
Examining data/libxslt-1.1.34/xsltproc/xsltproc.c
Examining data/libxslt-1.1.34/python/libxslt.c
Examining data/libxslt-1.1.34/python/libxslt_wrap.h
Examining data/libxslt-1.1.34/python/libxml_wrap.h
Examining data/libxslt-1.1.34/python/types.c
Examining data/libxslt-1.1.34/libxslt/xsltlocale.c
Examining data/libxslt-1.1.34/libxslt/attributes.c
Examining data/libxslt-1.1.34/libxslt/numbersInternals.h
Examining data/libxslt-1.1.34/libxslt/variables.h
Examining data/libxslt-1.1.34/libxslt/extensions.h
Examining data/libxslt-1.1.34/libxslt/templates.h
Examining data/libxslt-1.1.34/libxslt/imports.h
Examining data/libxslt-1.1.34/libxslt/win32config.h
Examining data/libxslt-1.1.34/libxslt/xslt.h
Examining data/libxslt-1.1.34/libxslt/xsltutils.c
Examining data/libxslt-1.1.34/libxslt/transform.h
Examining data/libxslt-1.1.34/libxslt/preproc.c
Examining data/libxslt-1.1.34/libxslt/attributes.h
Examining data/libxslt-1.1.34/libxslt/pattern.c
Examining data/libxslt-1.1.34/libxslt/keys.c
Examining data/libxslt-1.1.34/libxslt/xsltexports.h
Examining data/libxslt-1.1.34/libxslt/templates.c
Examining data/libxslt-1.1.34/libxslt/xslt.c
Examining data/libxslt-1.1.34/libxslt/security.c
Examining data/libxslt-1.1.34/libxslt/xsltutils.h
Examining data/libxslt-1.1.34/libxslt/documents.c
Examining data/libxslt-1.1.34/libxslt/imports.c
Examining data/libxslt-1.1.34/libxslt/extra.c
Examining data/libxslt-1.1.34/libxslt/preproc.h
Examining data/libxslt-1.1.34/libxslt/trio.h
Examining data/libxslt-1.1.34/libxslt/namespaces.c
Examining data/libxslt-1.1.34/libxslt/attrvt.c
Examining data/libxslt-1.1.34/libxslt/triodef.h
Examining data/libxslt-1.1.34/libxslt/pattern.h
Examining data/libxslt-1.1.34/libxslt/security.h
Examining data/libxslt-1.1.34/libxslt/libxslt.h
Examining data/libxslt-1.1.34/libxslt/documents.h
Examining data/libxslt-1.1.34/libxslt/numbers.c
Examining data/libxslt-1.1.34/libxslt/xsltlocale.h
Examining data/libxslt-1.1.34/libxslt/extra.h
Examining data/libxslt-1.1.34/libxslt/variables.c
Examining data/libxslt-1.1.34/libxslt/keys.h
Examining data/libxslt-1.1.34/libxslt/extensions.c
Examining data/libxslt-1.1.34/libxslt/namespaces.h
Examining data/libxslt-1.1.34/libxslt/functions.c
Examining data/libxslt-1.1.34/libxslt/functions.h
Examining data/libxslt-1.1.34/libxslt/transform.c
Examining data/libxslt-1.1.34/libxslt/xsltInternals.h

FINAL RESULTS:

data/libxslt-1.1.34/doc/tutorial2/libxslt_pipes.c:78: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(argument, argv[arg_indx]);
data/libxslt-1.1.34/libxslt/transform.c:5686:17:  [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.
    const char *system;
data/libxslt-1.1.34/libxslt/transform.c:5732:53:  [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.
		*systemID = (const xmlChar *) xsltHTMLVersions[i].system;
data/libxslt-1.1.34/libxslt/trio.h:158:10:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define printf trio_printf
data/libxslt-1.1.34/libxslt/trio.h:161:10:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define vprintf trio_vprintf
data/libxslt-1.1.34/libxslt/trio.h:164:10:  [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 fprintf trio_fprintf
data/libxslt-1.1.34/libxslt/trio.h:167:10:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define vfprintf trio_vfprintf
data/libxslt-1.1.34/libxslt/trio.h:170:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
# define sprintf trio_sprintf
data/libxslt-1.1.34/libxslt/trio.h:173:10:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
# define vsprintf trio_vsprintf
data/libxslt-1.1.34/libxslt/trio.h:176:10:  [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 trio_snprintf
data/libxslt-1.1.34/libxslt/trio.h:179:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define vsnprintf trio_vsnprintf
data/libxslt-1.1.34/libxslt/trio.h:182:10:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
# define scanf trio_scanf
data/libxslt-1.1.34/libxslt/trio.h:185:10:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
# define vscanf trio_vscanf
data/libxslt-1.1.34/libxslt/trio.h:188:10:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
# define fscanf trio_fscanf
data/libxslt-1.1.34/libxslt/trio.h:191:10:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
# define vfscanf trio_vfscanf
data/libxslt-1.1.34/libxslt/trio.h:194:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
# define sscanf trio_sscanf
data/libxslt-1.1.34/libxslt/trio.h:197:10:  [4] (buffer) vsscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
# define vsscanf trio_vsscanf
data/libxslt-1.1.34/libxslt/win32config.h:87:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf c99_snprintf
data/libxslt-1.1.34/libxslt/win32config.h:88:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf c99_vsnprintf
data/libxslt-1.1.34/libxslt/xsltlocale.c:190: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((char *) localeName + llen + 1, (char *) region);
data/libxslt-1.1.34/libxslt/xsltutils.c:491:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	chars = vsnprintf(str, size, msg, ap);			\
data/libxslt-1.1.34/libxslt/xsltutils.c:522:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf((FILE *)xsltGenericErrorContext, msg, args);
data/libxslt-1.1.34/libxslt/xsltutils.c:568:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf((FILE *)xsltGenericDebugContext, msg, args);
data/libxslt-1.1.34/python/libxslt.c:33:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf c99_vsnprintf
data/libxslt-1.1.34/python/libxslt.c:51:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf trio_vsnprintf
data/libxslt-1.1.34/python/libxslt.c:902:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(stderr, msg, ap);
data/libxslt-1.1.34/python/libxslt.c:913:21:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            chars = vsnprintf(str, size, msg, ap);
data/libxslt-1.1.34/tests/fuzz/fuzz.c:79:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path, "%s/%s", dir, filename);
data/libxslt-1.1.34/tests/fuzz/fuzz.c:89: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(path, filename);
data/libxslt-1.1.34/xsltproc/xsltproc.c:163:3:  [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 \
data/libxslt-1.1.34/xsltproc/xsltproc.c:185:7:  [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 \
data/libxslt-1.1.34/xsltproc/xsltproc.c:266:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr,format,ap);
data/libxslt-1.1.34/xsltproc/xsltproc.c:298:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr,format,ap);
data/libxslt-1.1.34/xsltproc/xsltproc.c:319:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr,format,ap);
data/libxslt-1.1.34/libexslt/date.c:769:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    source_date_epoch = getenv("SOURCE_DATE_EPOCH");
data/libxslt-1.1.34/libxslt/extensions.c:392:33:  [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.
    ext_directory = (xmlChar *) getenv("LIBXSLT_PLUGINS_PATH");
data/libxslt-1.1.34/xsltproc/xsltproc.c:560:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/libxslt-1.1.34/xsltproc/xsltproc.c:679:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            catalogs = getenv("SGML_CATALOG_FILES");
data/libxslt-1.1.34/xsltproc/xsltproc.c:780:21:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                    srand(value);
data/libxslt-1.1.34/doc/tutorial/libxslt_tutorial.c:37:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *params[16 + 1];
data/libxslt-1.1.34/doc/tutorial2/libxslt_pipes.c:29: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.
    const char *params[16 + 1];
data/libxslt-1.1.34/doc/tutorial2/libxslt_pipes.c:64:27:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            output_file = fopen(argv[arg_indx], "w");
data/libxslt-1.1.34/doc/tutorial2/libxslt_pipes.c:77:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            (char *) malloc(sizeof(char) * (strlen(argv[arg_indx]) + 1));
data/libxslt-1.1.34/libexslt/crypto.c:186:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			  ALG_ID algorithm, const char *msg,
data/libxslt-1.1.34/libexslt/crypto.c:188:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			  char dest[HASH_DIGEST_LENGTH]) {
data/libxslt-1.1.34/libexslt/crypto.c:217:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hash[HASH_DIGEST_LENGTH];
data/libxslt-1.1.34/libexslt/crypto.c:244: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 (dest, msg, msglen);
data/libxslt-1.1.34/libexslt/crypto.c:268: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 hash[HASH_DIGEST_LENGTH];
data/libxslt-1.1.34/libexslt/crypto.c:295: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 (dest, msg, msglen);
data/libxslt-1.1.34/libexslt/crypto.c:368:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 algorithm, const char *msg,
data/libxslt-1.1.34/libexslt/crypto.c:370:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		       char dest[HASH_DIGEST_LENGTH]) {
data/libxslt-1.1.34/libexslt/crypto.c:500:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hash[HASH_DIGEST_LENGTH];
data/libxslt-1.1.34/libexslt/crypto.c:501:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hex[MD5_DIGEST_LENGTH * 2 + 1];
data/libxslt-1.1.34/libexslt/crypto.c:530:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hash[HASH_DIGEST_LENGTH];
data/libxslt-1.1.34/libexslt/crypto.c:531:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hex[MD5_DIGEST_LENGTH * 2 + 1];
data/libxslt-1.1.34/libexslt/crypto.c:560:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hash[HASH_DIGEST_LENGTH];
data/libxslt-1.1.34/libexslt/crypto.c:561:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hex[SHA1_DIGEST_LENGTH * 2 + 1];
data/libxslt-1.1.34/libexslt/crypto.c:636: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 (padkey, key, key_len);
data/libxslt-1.1.34/libexslt/crypto.c:732: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 (padkey, key, key_len);
data/libxslt-1.1.34/libexslt/functions.c:118:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(func, data, sizeof(exsltFuncFunctionData));
data/libxslt-1.1.34/libxslt/extensions.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 module_filename[PATH_MAX];
data/libxslt-1.1.34/libxslt/numbers.c:195:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(pointer, temp_char, len);
data/libxslt-1.1.34/libxslt/numbers.c:212:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char temp_string[sizeof(double) * CHAR_BIT * sizeof(xmlChar) + 1];
data/libxslt-1.1.34/libxslt/transform.c:859:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&(target->content[ctxt->lasttuse]), string, len);
data/libxslt-1.1.34/libxslt/transform.c:3862:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen((const char *) filename, "ab");
data/libxslt-1.1.34/libxslt/xslt.c:2804:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ret->items, first->items,
data/libxslt-1.1.34/libxslt/xslt.c:2807:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(ret->items + first->number, second->items,
data/libxslt-1.1.34/libxslt/xslt.c:2810:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ret->items, (void *) second->items,
data/libxslt-1.1.34/libxslt/xsltlocale.c:90: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 localeName[XSLTMAX_LANGTAGLEN+6]; /* 6 chars for ".utf8\0" */
data/libxslt-1.1.34/libxslt/xsltlocale.c:120: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(q, ".utf8", 6);
data/libxslt-1.1.34/libxslt/xsltlocale.c:132: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(q, ".utf8", 6);
data/libxslt-1.1.34/libxslt/xsltlocale.c:150: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(q, ".utf8", 6);
data/libxslt-1.1.34/libxslt/xsltlocale.c:385:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    xstrlen = MultiByteToWideChar(CP_UTF8, 0, (char *) string, -1, NULL, 0);
data/libxslt-1.1.34/libxslt/xsltlocale.c:395:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    r = MultiByteToWideChar(CP_UTF8, 0, (char *) string, -1, xstr, xstrlen);
data/libxslt-1.1.34/libxslt/xsltlocale.c:491:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(q, iso639lang, k);
data/libxslt-1.1.34/libxslt/xsltlocale.c:494:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(q, iso3136ctry, l);
data/libxslt-1.1.34/libxslt/xsltutils.c:1941:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char dst[1001];
data/libxslt-1.1.34/libxslt/xsltutils.c:2089: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 ix_str[20], timep_str[20], times_str[20], timec_str[20], called_str[20];
data/libxslt-1.1.34/libxslt/xsltutils.c:2197: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[100];
data/libxslt-1.1.34/python/libxslt.c:748: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.
		    xmlFree((char *)params[i]);
data/libxslt-1.1.34/python/libxslt.c:823: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.
		    xmlFree((char *)params[i]);
data/libxslt-1.1.34/tests/fuzz/fuzz.c:87: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(path, argv0, dirLen);
data/libxslt-1.1.34/tests/fuzz/fuzz.c:209: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(xpathExpr, data, size);
data/libxslt-1.1.34/xsltproc/xsltproc.c:93:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *params[MAX_PARAMETERS + 1];
data/libxslt-1.1.34/xsltproc/xsltproc.c:598: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.
	    output = (char *) xmlCanonicPath((xmlChar *) argv[i]);
data/libxslt-1.1.34/xsltproc/xsltproc.c:601:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		output = (char *) xmlStrdup((xmlChar *) argv[i]);
data/libxslt-1.1.34/xsltproc/xsltproc.c:856:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    style = xmlReadFile((const char *) argv[i], NULL, options);
data/libxslt-1.1.34/doc/tutorial2/libxslt_pipes.c:77: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).
            (char *) malloc(sizeof(char) * (strlen(argv[arg_indx]) + 1));
data/libxslt-1.1.34/libxslt/xslt.c:2509:7:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	goto mismatch;
data/libxslt-1.1.34/libxslt/xslt.c:2514:7:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	goto mismatch;
data/libxslt-1.1.34/libxslt/xslt.c:2528:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/libxslt-1.1.34/tests/fuzz/fuzz.c:78: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).
        path = malloc(strlen(dir) + 1 + strlen(filename) + 1);
data/libxslt-1.1.34/tests/fuzz/fuzz.c:78: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).
        path = malloc(strlen(dir) + 1 + strlen(filename) + 1);
data/libxslt-1.1.34/tests/fuzz/fuzz.c:86:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path = malloc(dirLen + strlen(filename) + 1);
data/libxslt-1.1.34/xsltproc/testThreads.c:105:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    input = xmlReadMemory(doc, strlen(doc), "doc.xml", NULL, 0);
data/libxslt-1.1.34/xsltproc/testThreads.c:110: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).
    style = xmlReadMemory(stylesheet, strlen(stylesheet), "doc.xsl", NULL, 0);
data/libxslt-1.1.34/xsltproc/testThreads.c:153:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    input = xmlReadMemory(doc, strlen(doc), "doc.xml", NULL, 0);
data/libxslt-1.1.34/xsltproc/testThreads.c:232: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).
        style = xmlReadMemory(stylesheet, strlen(stylesheet), "doc.xsl",

ANALYSIS SUMMARY:

Hits = 98
Lines analyzed = 52970 in approximately 1.21 seconds (43797 lines/second)
Physical Source Lines of Code (SLOC) = 34696
Hits@level = [0] 223 [1]  11 [2]  48 [3]   5 [4]  34 [5]   0
Hits@level+ = [0+] 321 [1+]  98 [2+]  87 [3+]  39 [4+]  34 [5+]   0
Hits/KSLOC@level+ = [0+] 9.25179 [1+] 2.82453 [2+] 2.50749 [3+] 1.12405 [4+] 0.97994 [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.