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/julia-1.5.3+dfsg/contrib/mac/framework/Julia.h Examining data/julia-1.5.3+dfsg/contrib/mac/frameworkapp/ExecSandbox/ExecSandbox.h Examining data/julia-1.5.3+dfsg/contrib/mac/frameworkapp/ExecSandbox/ExecSandboxProtocol.h Examining data/julia-1.5.3+dfsg/contrib/mac/frameworkapp/JuliaLauncher/AppDelegate.h Examining data/julia-1.5.3+dfsg/contrib/stringreplace.c Examining data/julia-1.5.3+dfsg/deps/SuiteSparse_wrapper.c Examining data/julia-1.5.3+dfsg/deps/gfortblas.c Examining data/julia-1.5.3+dfsg/deps/valgrind/valgrind.h Examining data/julia-1.5.3+dfsg/src/APInt-C.cpp Examining data/julia-1.5.3+dfsg/src/APInt-C.h Examining data/julia-1.5.3+dfsg/src/abi_aarch64.cpp Examining data/julia-1.5.3+dfsg/src/abi_arm.cpp Examining data/julia-1.5.3+dfsg/src/abi_llvm.cpp Examining data/julia-1.5.3+dfsg/src/abi_ppc64le.cpp Examining data/julia-1.5.3+dfsg/src/abi_win32.cpp Examining data/julia-1.5.3+dfsg/src/abi_win64.cpp Examining data/julia-1.5.3+dfsg/src/abi_x86.cpp Examining data/julia-1.5.3+dfsg/src/abi_x86_64.cpp Examining data/julia-1.5.3+dfsg/src/anticodegen.c Examining data/julia-1.5.3+dfsg/src/aotcompile.cpp Examining data/julia-1.5.3+dfsg/src/array.c Examining data/julia-1.5.3+dfsg/src/ast.c Examining data/julia-1.5.3+dfsg/src/atomics.h Examining data/julia-1.5.3+dfsg/src/builtin_proto.h Examining data/julia-1.5.3+dfsg/src/builtins.c Examining data/julia-1.5.3+dfsg/src/ccall.cpp Examining data/julia-1.5.3+dfsg/src/ccalltest.c Examining data/julia-1.5.3+dfsg/src/cgmemmgr.cpp Examining data/julia-1.5.3+dfsg/src/cgutils.cpp Examining data/julia-1.5.3+dfsg/src/clangsa/GCChecker.cpp Examining data/julia-1.5.3+dfsg/src/codegen_shared.h Examining data/julia-1.5.3+dfsg/src/crc32c-tables.c Examining data/julia-1.5.3+dfsg/src/crc32c.c Examining data/julia-1.5.3+dfsg/src/datatype.c Examining data/julia-1.5.3+dfsg/src/debuginfo.h Examining data/julia-1.5.3+dfsg/src/disasm.cpp Examining data/julia-1.5.3+dfsg/src/dlload.c Examining data/julia-1.5.3+dfsg/src/dump.c Examining data/julia-1.5.3+dfsg/src/features_aarch32.h Examining data/julia-1.5.3+dfsg/src/features_aarch64.h Examining data/julia-1.5.3+dfsg/src/features_x86.h Examining data/julia-1.5.3+dfsg/src/file_constants.h Examining data/julia-1.5.3+dfsg/src/flisp/builtins.c Examining data/julia-1.5.3+dfsg/src/flisp/cvalues.c Examining data/julia-1.5.3+dfsg/src/flisp/equal.c Examining data/julia-1.5.3+dfsg/src/flisp/equalhash.c Examining data/julia-1.5.3+dfsg/src/flisp/equalhash.h Examining data/julia-1.5.3+dfsg/src/flisp/flisp.c Examining data/julia-1.5.3+dfsg/src/flisp/flisp.h Examining data/julia-1.5.3+dfsg/src/flisp/flmain.c Examining data/julia-1.5.3+dfsg/src/flisp/iostream.c Examining data/julia-1.5.3+dfsg/src/flisp/julia_charmap.h Examining data/julia-1.5.3+dfsg/src/flisp/julia_extensions.c Examining data/julia-1.5.3+dfsg/src/flisp/julia_opsuffs.h Examining data/julia-1.5.3+dfsg/src/flisp/opcodes.h Examining data/julia-1.5.3+dfsg/src/flisp/print.c Examining data/julia-1.5.3+dfsg/src/flisp/read.c Examining data/julia-1.5.3+dfsg/src/flisp/string.c Examining data/julia-1.5.3+dfsg/src/flisp/table.c Examining data/julia-1.5.3+dfsg/src/flisp/types.c Examining data/julia-1.5.3+dfsg/src/gc-debug.c Examining data/julia-1.5.3+dfsg/src/gc-pages.c Examining data/julia-1.5.3+dfsg/src/gc-stacks.c Examining data/julia-1.5.3+dfsg/src/gc.c Examining data/julia-1.5.3+dfsg/src/gc.h Examining data/julia-1.5.3+dfsg/src/getopt.c Examining data/julia-1.5.3+dfsg/src/getopt.h Examining data/julia-1.5.3+dfsg/src/gf.c Examining data/julia-1.5.3+dfsg/src/iddict.c Examining data/julia-1.5.3+dfsg/src/init.c Examining data/julia-1.5.3+dfsg/src/interpreter.c Examining data/julia-1.5.3+dfsg/src/intrinsics.cpp Examining data/julia-1.5.3+dfsg/src/intrinsics.h Examining data/julia-1.5.3+dfsg/src/jitlayers.cpp Examining data/julia-1.5.3+dfsg/src/jitlayers.h Examining data/julia-1.5.3+dfsg/src/jl_uv.c Examining data/julia-1.5.3+dfsg/src/jlapi.c Examining data/julia-1.5.3+dfsg/src/jloptions.c Examining data/julia-1.5.3+dfsg/src/jltypes.c Examining data/julia-1.5.3+dfsg/src/julia.h Examining data/julia-1.5.3+dfsg/src/julia_assert.h Examining data/julia-1.5.3+dfsg/src/julia_gcext.h Examining data/julia-1.5.3+dfsg/src/julia_internal.h Examining data/julia-1.5.3+dfsg/src/julia_threads.h Examining data/julia-1.5.3+dfsg/src/llvm-alloc-opt.cpp Examining data/julia-1.5.3+dfsg/src/llvm-api.cpp Examining data/julia-1.5.3+dfsg/src/llvm-final-gc-lowering.cpp Examining data/julia-1.5.3+dfsg/src/llvm-gc-invariant-verifier.cpp Examining data/julia-1.5.3+dfsg/src/llvm-late-gc-lowering.cpp Examining data/julia-1.5.3+dfsg/src/llvm-lower-handlers.cpp Examining data/julia-1.5.3+dfsg/src/llvm-muladd.cpp Examining data/julia-1.5.3+dfsg/src/llvm-multiversioning.cpp Examining data/julia-1.5.3+dfsg/src/llvm-pass-helpers.cpp Examining data/julia-1.5.3+dfsg/src/llvm-pass-helpers.h Examining data/julia-1.5.3+dfsg/src/llvm-propagate-addrspaces.cpp Examining data/julia-1.5.3+dfsg/src/llvm-ptls.cpp Examining data/julia-1.5.3+dfsg/src/llvm-remove-addrspaces.cpp Examining data/julia-1.5.3+dfsg/src/llvm-remove-ni.cpp Examining data/julia-1.5.3+dfsg/src/llvm-simdloop.cpp Examining data/julia-1.5.3+dfsg/src/llvm-version.h Examining data/julia-1.5.3+dfsg/src/llvmcalltest.cpp Examining data/julia-1.5.3+dfsg/src/locks.h Examining data/julia-1.5.3+dfsg/src/method.c Examining data/julia-1.5.3+dfsg/src/module.c Examining data/julia-1.5.3+dfsg/src/options.h Examining data/julia-1.5.3+dfsg/src/partr.c Examining data/julia-1.5.3+dfsg/src/precompile.c Examining data/julia-1.5.3+dfsg/src/processor.cpp Examining data/julia-1.5.3+dfsg/src/processor.h Examining data/julia-1.5.3+dfsg/src/processor_arm.cpp Examining data/julia-1.5.3+dfsg/src/processor_fallback.cpp Examining data/julia-1.5.3+dfsg/src/processor_x86.cpp Examining data/julia-1.5.3+dfsg/src/rtutils.c Examining data/julia-1.5.3+dfsg/src/runtime_ccall.cpp Examining data/julia-1.5.3+dfsg/src/runtime_intrinsics.c Examining data/julia-1.5.3+dfsg/src/safepoint.c Examining data/julia-1.5.3+dfsg/src/signal-handling.c Examining data/julia-1.5.3+dfsg/src/signals-mach.c Examining data/julia-1.5.3+dfsg/src/signals-unix.c Examining data/julia-1.5.3+dfsg/src/signals-win.c Examining data/julia-1.5.3+dfsg/src/simplevector.c Examining data/julia-1.5.3+dfsg/src/smallintset.c Examining data/julia-1.5.3+dfsg/src/stackwalk.c Examining data/julia-1.5.3+dfsg/src/staticdata.c Examining data/julia-1.5.3+dfsg/src/subtype.c Examining data/julia-1.5.3+dfsg/src/support/END.h Examining data/julia-1.5.3+dfsg/src/support/ENTRY.amd64.h Examining data/julia-1.5.3+dfsg/src/support/ENTRY.i387.h Examining data/julia-1.5.3+dfsg/src/support/MurmurHash3.c Examining data/julia-1.5.3+dfsg/src/support/MurmurHash3.h Examining data/julia-1.5.3+dfsg/src/support/analyzer_annotations.h Examining data/julia-1.5.3+dfsg/src/support/arraylist.c Examining data/julia-1.5.3+dfsg/src/support/arraylist.h Examining data/julia-1.5.3+dfsg/src/support/asprintf.c Examining data/julia-1.5.3+dfsg/src/support/bitvector.c Examining data/julia-1.5.3+dfsg/src/support/bitvector.h Examining data/julia-1.5.3+dfsg/src/support/dirname.c Examining data/julia-1.5.3+dfsg/src/support/dirpath.h Examining data/julia-1.5.3+dfsg/src/support/dtypes.h Examining data/julia-1.5.3+dfsg/src/support/hashing.c Examining data/julia-1.5.3+dfsg/src/support/hashing.h Examining data/julia-1.5.3+dfsg/src/support/htable.c Examining data/julia-1.5.3+dfsg/src/support/htable.h Examining data/julia-1.5.3+dfsg/src/support/int2str.c Examining data/julia-1.5.3+dfsg/src/support/ios.c Examining data/julia-1.5.3+dfsg/src/support/ios.h Examining data/julia-1.5.3+dfsg/src/support/libsupport.h Examining data/julia-1.5.3+dfsg/src/support/libsupportinit.c Examining data/julia-1.5.3+dfsg/src/support/operators.c Examining data/julia-1.5.3+dfsg/src/support/platform.h Examining data/julia-1.5.3+dfsg/src/support/ptrhash.c Examining data/julia-1.5.3+dfsg/src/support/ptrhash.h Examining data/julia-1.5.3+dfsg/src/support/strptime.c Examining data/julia-1.5.3+dfsg/src/support/strtod.c Examining data/julia-1.5.3+dfsg/src/support/strtod.h Examining data/julia-1.5.3+dfsg/src/support/timefuncs.c Examining data/julia-1.5.3+dfsg/src/support/timefuncs.h Examining data/julia-1.5.3+dfsg/src/support/tzfile.h Examining data/julia-1.5.3+dfsg/src/support/utf8.c Examining data/julia-1.5.3+dfsg/src/support/utf8.h Examining data/julia-1.5.3+dfsg/src/support/utils.h Examining data/julia-1.5.3+dfsg/src/support/win32_ucontext.c Examining data/julia-1.5.3+dfsg/src/support/win32_ucontext.h Examining data/julia-1.5.3+dfsg/src/symbol.c Examining data/julia-1.5.3+dfsg/src/sys.c Examining data/julia-1.5.3+dfsg/src/task.c Examining data/julia-1.5.3+dfsg/src/threading.c Examining data/julia-1.5.3+dfsg/src/threading.h Examining data/julia-1.5.3+dfsg/src/timing.c Examining data/julia-1.5.3+dfsg/src/timing.h Examining data/julia-1.5.3+dfsg/src/tls.h Examining data/julia-1.5.3+dfsg/src/toplevel.c Examining data/julia-1.5.3+dfsg/src/typemap.c Examining data/julia-1.5.3+dfsg/src/uv_constants.h Examining data/julia-1.5.3+dfsg/src/debuginfo.cpp Examining data/julia-1.5.3+dfsg/src/codegen.cpp Examining data/julia-1.5.3+dfsg/test/clangsa/GCPushPop.cpp Examining data/julia-1.5.3+dfsg/test/clangsa/MissingRoots.c Examining data/julia-1.5.3+dfsg/test/embedding/embedding.c Examining data/julia-1.5.3+dfsg/test/gcext/gcext.c Examining data/julia-1.5.3+dfsg/ui/repl.c Examining data/julia-1.5.3+dfsg/debian/shlibdeps.c FINAL RESULTS: data/julia-1.5.3+dfsg/src/ccall.cpp:624:18: [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. int nc = vsnprintf(buf, sizeof(buf), fmt, args); data/julia-1.5.3+dfsg/src/cgutils.cpp:329: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(fullname, prefix); data/julia-1.5.3+dfsg/src/cgutils.cpp:331: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(fullname + len, jl_symbol_name(name)); data/julia-1.5.3+dfsg/src/cgutils.cpp:336: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(fullname + len - part, jl_symbol_name(parent->name)); data/julia-1.5.3+dfsg/src/dump.c:351:13: [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(&prefixed[1], jl_symbol_name(mt->name)); data/julia-1.5.3+dfsg/src/flisp/flisp.c:164:18: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. size_t len = vsnprintf(msgbuf, sizeof(msgbuf), format, args); data/julia-1.5.3+dfsg/src/flisp/flisp.c:244: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(&sym->name[0], str); data/julia-1.5.3+dfsg/src/flisp/flmain.c:48: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(fname_buf, exedir); data/julia-1.5.3+dfsg/src/flisp/flmain.c:49: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(fname_buf, PATHSEPSTRING); data/julia-1.5.3+dfsg/src/gc-debug.c:466:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buff, fmt, name); data/julia-1.5.3+dfsg/src/gc-debug.c:481:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. sscanf(env, "%" SCNd64 ":%" SCNd64 ":%" SCNd64, data/julia-1.5.3+dfsg/src/gf.c:2538: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(&prefixed[1], jl_symbol_name(name)); data/julia-1.5.3+dfsg/src/gf.c:2575:13: [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(&suffixed[0], name); data/julia-1.5.3+dfsg/src/jl_uv.c:608:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, sizeof(buf), fmt, args); data/julia-1.5.3+dfsg/src/julia.h:1868:21: [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. _JL_FORMAT_ATTR(printf, 2, 3); data/julia-1.5.3+dfsg/src/julia.h:1870:21: [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. _JL_FORMAT_ATTR(printf, 2, 0); data/julia-1.5.3+dfsg/src/julia.h:1872:21: [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. _JL_FORMAT_ATTR(printf, 1, 2); data/julia-1.5.3+dfsg/src/support/asprintf.c:66:15: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = vsnprintf(string, INIT_SZ, fmt, ap2); data/julia-1.5.3+dfsg/src/support/asprintf.c:79:31: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = vsnprintf(newstr, len, fmt, ap2); data/julia-1.5.3+dfsg/src/support/dtypes.h:38: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 _snprintf data/julia-1.5.3+dfsg/src/support/dtypes.h:38:61: [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/julia-1.5.3+dfsg/src/support/ios.c:1204:13: [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. c = vsnprintf(start, avail, format, args); data/julia-1.5.3+dfsg/src/support/utf8.c:30: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 _snprintf data/julia-1.5.3+dfsg/src/support/utf8.c:30:18: [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/julia-1.5.3+dfsg/src/support/utf8.c:508:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. cnt = vsnprintf(buf, sz, fmt, ap); data/julia-1.5.3+dfsg/src/support/utf8.c:514: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. vsnprintf(buf, cnt+1, fmt, ap); data/julia-1.5.3+dfsg/src/toplevel.c:942: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(path + sz + 1, fstr); data/julia-1.5.3+dfsg/src/flisp/builtins.c:342:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *val = getenv(name); data/julia-1.5.3+dfsg/src/gc-debug.c:450:14: [3] (random) random: 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. if (num->random[0] && num->interv != 1) { data/julia-1.5.3+dfsg/src/gc-debug.c:453:44: [3] (random) erand48: 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. double randinterv = floor(fabs(log(erand48(num->random))) / scale) + 1; data/julia-1.5.3+dfsg/src/gc-debug.c:453:57: [3] (random) random: 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. double randinterv = floor(fabs(log(erand48(num->random))) / scale) + 1; data/julia-1.5.3+dfsg/src/gc-debug.c:467:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *env = getenv(buff); data/julia-1.5.3+dfsg/src/gc-debug.c:472:9: [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((unsigned)uv_hrtime()); data/julia-1.5.3+dfsg/src/gc-debug.c:474:25: [3] (random) random: 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. while (num->random[i] == 0) { data/julia-1.5.3+dfsg/src/gc-debug.c:475:22: [3] (random) random: 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. num->random[i] = rand(); data/julia-1.5.3+dfsg/src/gc-debug.c:987:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *env = getenv("JULIA_GC_NO_GENERATIONAL"); data/julia-1.5.3+dfsg/src/gc-debug.c:990:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv("JULIA_GC_WAIT_FOR_DEBUGGER"); data/julia-1.5.3+dfsg/src/gc.h:49:20: [3] (random) random: 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. unsigned short random[3]; data/julia-1.5.3+dfsg/src/getopt.c:39:5: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int getopt(int argc, char * const argv[], const char *optstring) data/julia-1.5.3+dfsg/src/getopt.c:136:10: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. return getopt(argc, argv, optstring); data/julia-1.5.3+dfsg/src/getopt.c:139:5: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int getopt_long(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *idx) data/julia-1.5.3+dfsg/src/getopt.h:33:5: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int getopt(int, char * const [], const char *); data/julia-1.5.3+dfsg/src/getopt.h:45:5: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int getopt_long(int, char *const *, const char *, const struct option *, int *); data/julia-1.5.3+dfsg/src/init.c:468:17: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *out = realpath(in + nprefix, NULL); data/julia-1.5.3+dfsg/src/init.c:564:35: [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. jl_options.julia_bindir = getenv("JULIA_BINDIR"); data/julia-1.5.3+dfsg/src/init.c:683: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. const char *jit_profiling = getenv("ENABLE_JITPROFILING"); data/julia-1.5.3+dfsg/src/init.c:690: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. const char *jit_profiling = getenv("ENABLE_JITPROFILING"); data/julia-1.5.3+dfsg/src/init.c:697: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. const char *jit_profiling = getenv("ENABLE_JITPROFILING"); data/julia-1.5.3+dfsg/src/jloptions.c:280:17: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long(argc, argv, shortopts, longopts, 0); data/julia-1.5.3+dfsg/src/task.c:655:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *acs = getenv("JULIA_COPY_STACKS"); data/julia-1.5.3+dfsg/src/threading.c:415:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. else if ((cp = getenv(NUM_THREADS_NAME))) data/julia-1.5.3+dfsg/src/threading.c:445:10: [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. cp = getenv(MACHINE_EXCLUSIVE_NAME); data/julia-1.5.3+dfsg/contrib/stringreplace.c:18: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 * f = fopen( argv[4], "r+" ); data/julia-1.5.3+dfsg/src/APInt-C.cpp:31: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(data_a64, p##s, RoundUpToAlignment(numbits, host_char_bit) / host_char_bit); \ data/julia-1.5.3+dfsg/src/APInt-C.cpp:49: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(p##r, a.getRawData(), RoundUpToAlignment(numbits, host_char_bit) / host_char_bit); \ data/julia-1.5.3+dfsg/src/APInt-C.cpp:327: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(pr, &ia, onumbytes); // TODO: assumes little-endian data/julia-1.5.3+dfsg/src/APInt-C.cpp:331:17: [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(&ia2, pr, onumbytes); data/julia-1.5.3+dfsg/src/APInt-C.cpp:337: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(pr, &ia, onumbytes); // TODO: assumes little-endian data/julia-1.5.3+dfsg/src/APInt-C.cpp:341:17: [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(&ia2, pr, onumbytes); data/julia-1.5.3+dfsg/src/APInt-C.cpp:353: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(pr, parts, onumbytes); data/julia-1.5.3+dfsg/src/APInt-C.cpp:423: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(pr, pa, inumbytes); data/julia-1.5.3+dfsg/src/APInt-C.cpp:440: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(pr, pa, inumbytes); data/julia-1.5.3+dfsg/src/APInt-C.cpp:454: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(pr, pa, onumbytes); data/julia-1.5.3+dfsg/src/APInt-C.cpp:502: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(pr, pa, numbytes); data/julia-1.5.3+dfsg/src/aotcompile.cpp:201: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 hexchars[16] = { data/julia-1.5.3+dfsg/src/aotcompile.cpp:205: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 *const common_names[256] = { data/julia-1.5.3+dfsg/src/array.c:420: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->nrows, dims, ndims * sizeof(size_t)); data/julia-1.5.3+dfsg/src/array.c:453: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->data, str, len); data/julia-1.5.3+dfsg/src/array.c:492:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char*)s + sizeof(size_t), str, len); data/julia-1.5.3+dfsg/src/array.c:719: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(a->data, olddata, nbytes); data/julia-1.5.3+dfsg/src/array.c:879: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(newdata, data, nb1); data/julia-1.5.3+dfsg/src/array.c:881:17: [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(newtypetagdata, typetagdata, idx); data/julia-1.5.3+dfsg/src/array.c:882:30: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (has_gap) memcpy(newtypetagdata + idx + inc, typetagdata + idx, n - idx); data/julia-1.5.3+dfsg/src/array.c:885: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. if (has_gap) memcpy(newdata + nb1 + nbinc, data + nb1, n * elsz - nb1); data/julia-1.5.3+dfsg/src/array.c:976: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(typetagdata, jl_array_typetagdata(a), a->nrows); data/julia-1.5.3+dfsg/src/array.c:984: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(newtypetagdata, typetagdata, a->nrows); data/julia-1.5.3+dfsg/src/array.c:1156: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(new_ary->data, ary->data, len * elsz); data/julia-1.5.3+dfsg/src/array.c:1159: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(jl_array_typetagdata(new_ary), jl_array_typetagdata(ary), len); data/julia-1.5.3+dfsg/src/ast.c:440: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 gsname[16]; data/julia-1.5.3+dfsg/src/ccall.cpp:621: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[1024]; data/julia-1.5.3+dfsg/src/ccall.cpp:1728:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. else if (is_libjulia_func(memcpy) && (rt == (jl_value_t*)jl_nothing_type || jl_is_cpointer_type(rt))) { data/julia-1.5.3+dfsg/src/cgmemmgr.cpp:189:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *tmpf = tmpfile(); data/julia-1.5.3+dfsg/src/cgmemmgr.cpp:199:10: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fd = mkstemp(shm_name); data/julia-1.5.3+dfsg/src/cgmemmgr.cpp:303: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). int fd = open("/proc/self/mem", O_RDWR | O_SYNC | O_CLOEXEC); data/julia-1.5.3+dfsg/src/cgmemmgr.cpp:307: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). int fd = open("/proc/self/mem", O_RDWR | O_SYNC); data/julia-1.5.3+dfsg/src/codegen.cpp:1293: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 line[1024]; data/julia-1.5.3+dfsg/src/datatype.c:681: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(jl_assume_aligned(v, 16), data, 16); data/julia-1.5.3+dfsg/src/datatype.c:683:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. default: memcpy(v, data, nb); data/julia-1.5.3+dfsg/src/datatype.c:693: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(v, &data, sizeof(size_t)); data/julia-1.5.3+dfsg/src/datatype.c:708: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(dest, jl_assume_aligned(bits, 16), 16); data/julia-1.5.3+dfsg/src/datatype.c:710:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. default: memcpy(dest, bits, nb); data/julia-1.5.3+dfsg/src/debuginfo.cpp:155: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(name, fnname.data(), len-1); data/julia-1.5.3+dfsg/src/debuginfo.cpp:504: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(ret, start, end - start); data/julia-1.5.3+dfsg/src/debuginfo.cpp:562: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(&new_frames[n_frames - 1], *frames, sizeof(jl_frame_t)); data/julia-1.5.3+dfsg/src/debuginfo.cpp:630: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(uuid, ((const MachO::uuid_command*)Load.Ptr)->uuid, 16); data/julia-1.5.3+dfsg/src/debuginfo.cpp:844:21: [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(*name, nameref.data(), len); data/julia-1.5.3+dfsg/src/debuginfo.cpp:853: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. static char frame_info_func[ data/julia-1.5.3+dfsg/src/debuginfo.cpp:955: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. char objpathcstr[PATH_MAX]; data/julia-1.5.3+dfsg/src/dlload.c:97:18: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). size_t len = MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0); data/julia-1.5.3+dfsg/src/dlload.c:100:10: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (!MultiByteToWideChar(CP_UTF8, 0, filename, -1, wfilename, len)) return NULL; data/julia-1.5.3+dfsg/src/dlload.c:141: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[PATHBUF]; data/julia-1.5.3+dfsg/src/dlload.c:230: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 reason[256]; data/julia-1.5.3+dfsg/src/dlload.c:268: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 err[256]; data/julia-1.5.3+dfsg/src/dump.c:2761: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(jl_string_data(str) + len, namestr, namelen); data/julia-1.5.3+dfsg/src/flisp/builtins.c:314: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[1024]; data/julia-1.5.3+dfsg/src/flisp/cvalues.c:155: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(cptr(cv), data, sz); data/julia-1.5.3+dfsg/src/flisp/cvalues.c:202: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(cvalue_data(v), str, n); data/julia-1.5.3+dfsg/src/flisp/cvalues.c:225: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(data, cv_data(cv), sz); data/julia-1.5.3+dfsg/src/flisp/cvalues.c:247: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(jl_assume_aligned(dest, sizeof(void*)), &n, \ data/julia-1.5.3+dfsg/src/flisp/cvalues.c:386:21: [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, cv_data(cv), sz); data/julia-1.5.3+dfsg/src/flisp/cvalues.c:551: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(nv, cv, nw*sizeof(value_t)); data/julia-1.5.3+dfsg/src/flisp/cvalues.c:570: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(ncv, cv, nw * sizeof(value_t)); data/julia-1.5.3+dfsg/src/flisp/cvalues.c:576: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(ncv->data, cv_data(cv), len); data/julia-1.5.3+dfsg/src/flisp/cvalues.c:756: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(dest, data + index*sz, sz); data/julia-1.5.3+dfsg/src/flisp/flisp.c:163: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 msgbuf[512]; data/julia-1.5.3+dfsg/src/flisp/flisp.c:974: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(&fl_ctx->Stack[bp+nreq], args, extr*sizeof(value_t)); data/julia-1.5.3+dfsg/src/flisp/flisp.c:1597:17: [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(&vector_elt(fl_apply_v,0), &fl_ctx->Stack[fl_ctx->SP-n], n*sizeof(value_t)); data/julia-1.5.3+dfsg/src/flisp/flisp.c:2041: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(&vector_elt(v,0), &fl_ctx->Stack[bp], sz*sizeof(value_t)); data/julia-1.5.3+dfsg/src/flisp/flisp.c:2411: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 exename[1024]; data/julia-1.5.3+dfsg/src/flisp/flisp.h:257: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 _space[1]; // variable size data/julia-1.5.3+dfsg/src/flisp/flisp.h:265: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 _space[1]; data/julia-1.5.3+dfsg/src/flisp/flisp.h:417: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 readbuf[256]; data/julia-1.5.3+dfsg/src/flisp/flisp.h:481: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 gsname[2][16]; data/julia-1.5.3+dfsg/src/flisp/flmain.c:39: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 fname_buf[1024]; data/julia-1.5.3+dfsg/src/flisp/flmain.c:51:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(fname_buf, "flisp.boot"); data/julia-1.5.3+dfsg/src/flisp/iostream.c:398: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(cvalue_data(str), st->buf, n); data/julia-1.5.3+dfsg/src/flisp/print.c:349: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[64]; data/julia-1.5.3+dfsg/src/flisp/print.c:375: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[64]; data/julia-1.5.3+dfsg/src/flisp/print.c:496: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[512]; data/julia-1.5.3+dfsg/src/flisp/print.c:556: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 seq[8]; data/julia-1.5.3+dfsg/src/flisp/print.c:582: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/julia-1.5.3+dfsg/src/flisp/read.c:456: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 eseq[10]; data/julia-1.5.3+dfsg/src/flisp/read.c:535: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(cvalue_data(s), buf, i); data/julia-1.5.3+dfsg/src/flisp/string.c:106: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(cv_data((cvalue_t*)ptr(ns)), &s[i1], i2-i1); data/julia-1.5.3+dfsg/src/flisp/string.c:134: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 cbuf[8]; data/julia-1.5.3+dfsg/src/flisp/string.c:247: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[128]; data/julia-1.5.3+dfsg/src/gc.c:248: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(b, d, oldsz > sz ? sz : oldsz); data/julia-1.5.3+dfsg/src/gc.c:1625: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(sp->data, data, data_size); data/julia-1.5.3+dfsg/src/gc.c:3407: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(jl_string_data(snew), jl_string_data(s), len); data/julia-1.5.3+dfsg/src/gf.c:165:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char*)jl_svec_data(nc), jl_svec_data(specializations), sizeof(void*) * i); data/julia-1.5.3+dfsg/src/gf.c:168:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char*)jl_svec_data(nc) + sizeof(void*) * (i + ncl - cl), data/julia-1.5.3+dfsg/src/gf.c:2576:13: [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(&suffixed[l], "##kw"); data/julia-1.5.3+dfsg/src/init.c:385:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). nullfd = open("/dev/null", O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH /* 0666 */); data/julia-1.5.3+dfsg/src/init.c:473: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(cpy, in, nprefix); data/julia-1.5.3+dfsg/src/init.c:474: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(cpy + nprefix, out, sz); data/julia-1.5.3+dfsg/src/init.c:483: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(out, in, sz + nprefix); data/julia-1.5.3+dfsg/src/init.c:492: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(out, in, nprefix); data/julia-1.5.3+dfsg/src/init.c:493: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(out + nprefix, path, path_size); data/julia-1.5.3+dfsg/src/init.c:495: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(out + nprefix + path_size + 1, in + nprefix, sz); data/julia-1.5.3+dfsg/src/init.c:509: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(out, in, nprefix); data/julia-1.5.3+dfsg/src/init.c:523: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[PATH_MAX]; data/julia-1.5.3+dfsg/src/init.c:540: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(out + fmt_size, in, sz); // copy over format, including nul data/julia-1.5.3+dfsg/src/init.c:561:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char*)jl_options.julia_bin, free_path, path_size); data/julia-1.5.3+dfsg/src/init.c:684:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (jit_profiling && atoi(jit_profiling)) { data/julia-1.5.3+dfsg/src/init.c:691:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (jit_profiling && atoi(jit_profiling)) { data/julia-1.5.3+dfsg/src/init.c:698:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (jit_profiling && atoi(jit_profiling)) { data/julia-1.5.3+dfsg/src/intrinsics.cpp:182: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(bits, ptr, nb); data/julia-1.5.3+dfsg/src/intrinsics.cpp:225:25: [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(bits, ov, al); data/julia-1.5.3+dfsg/src/intrinsics.cpp:229:25: [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(bits, ov, active_sz); data/julia-1.5.3+dfsg/src/jl_uv.c:524: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(data, str, n); data/julia-1.5.3+dfsg/src/jl_uv.c:547: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[4]; data/julia-1.5.3+dfsg/src/jl_uv.c:598: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 buf[1000]; data/julia-1.5.3+dfsg/src/jl_uv.c:648: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(&addr->v6.sin6_addr, host, 16); data/julia-1.5.3+dfsg/src/jl_uv.c:681: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(host, &(addr4->sin_addr), 4); data/julia-1.5.3+dfsg/src/jl_uv.c:686: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(host, &(addr6->sin6_addr), 16); data/julia-1.5.3+dfsg/src/jl_uv.c:705: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(host, &(addr4->sin_addr), 4); data/julia-1.5.3+dfsg/src/jl_uv.c:710: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(host, &(addr6->sin6_addr), 16); data/julia-1.5.3+dfsg/src/jl_uv.c:804: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(host, &addr->sin6_addr, 16); data/julia-1.5.3+dfsg/src/jloptions.c:24: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 system_image_path[256] = "\0" JL_SYSTEM_IMAGE_PATH; data/julia-1.5.3+dfsg/src/jloptions.c:355: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(arg + 1, optarg, sz); data/julia-1.5.3+dfsg/src/jltypes.c:719: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(jl_svec_data(nc), jl_svec_data(cache), sizeof(void*) * n); data/julia-1.5.3+dfsg/src/julia_internal.h:818: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(*to, from, len); data/julia-1.5.3+dfsg/src/llvm-multiversioning.cpp:916: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(buff, &v, 4); data/julia-1.5.3+dfsg/src/method.c:370: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(&gargs[1], jl_svec_data(sparam_vals), n_sparams * sizeof(void*)); data/julia-1.5.3+dfsg/src/method.c:371: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(&gargs[1 + n_sparams], args, nargs * sizeof(void*)); data/julia-1.5.3+dfsg/src/module.c:622: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(dep_binding_name, dep_message_prefix, prefix_len); data/julia-1.5.3+dfsg/src/module.c:623: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(dep_binding_name + prefix_len, jl_symbol_name(deprecated_binding->name), name_len); data/julia-1.5.3+dfsg/src/processor.cpp:405: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(&res[old_sz], data, sz); data/julia-1.5.3+dfsg/src/processor.cpp:445: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(dest, data, sz); data/julia-1.5.3+dfsg/src/processor_arm.cpp:669: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). int fd = open("/proc/self/auxv", O_RDONLY); data/julia-1.5.3+dfsg/src/rtutils.c:297: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(jl_excstack_raw(dest), jl_excstack_raw(src), sizeof(jl_bt_element_t)*src->top); data/julia-1.5.3+dfsg/src/rtutils.c:323: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(rawstack + s->top, bt_data, sizeof(jl_bt_element_t)*bt_size); data/julia-1.5.3+dfsg/src/rtutils.c:404: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(newstr, bstr, len); data/julia-1.5.3+dfsg/src/rtutils.c:463: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(newstr, bstr, len); data/julia-1.5.3+dfsg/src/runtime_ccall.cpp:134: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 hostname[MAXHOSTNAMELEN + 1]; data/julia-1.5.3+dfsg/src/runtime_intrinsics.c:73: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(pp, x, elsz); data/julia-1.5.3+dfsg/src/runtime_intrinsics.c:345: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(pa2, pa, isize); data/julia-1.5.3+dfsg/src/runtime_intrinsics.c:376: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(jl_data_ptr(newv), &cnt, sizeof(cnt)); data/julia-1.5.3+dfsg/src/runtime_intrinsics.c:553: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(pa2, pa, sz); data/julia-1.5.3+dfsg/src/runtime_intrinsics.c:562: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(pb2, pb, szb); data/julia-1.5.3+dfsg/src/signals-mach.c:415: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(&state, &profiler_uc, sizeof(x86_thread_state64_t)); data/julia-1.5.3+dfsg/src/stackwalk.c:291: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(bt->data, bt_data, bt_size * sizeof(jl_bt_element_t)); data/julia-1.5.3+dfsg/src/staticdata.c:401:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char zeros[16] = {0}; data/julia-1.5.3+dfsg/src/staticdata.c:1264:17: [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(newitems, mod->usings.items, mod->usings.len * sizeof(void*)); data/julia-1.5.3+dfsg/src/support/arraylist.c:48: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(p, a->items, len * sizeof(void*)); data/julia-1.5.3+dfsg/src/support/dtypes.h:298: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(&val, ptr, sizeof(double)); data/julia-1.5.3+dfsg/src/support/dtypes.h:305: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(&val, ptr, sizeof(uint64_t)); data/julia-1.5.3+dfsg/src/support/dtypes.h:312: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(&val, jl_assume_aligned(ptr, sizeof(void*)), sizeof(double)); data/julia-1.5.3+dfsg/src/support/dtypes.h:319: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(&val, jl_assume_aligned(ptr, sizeof(void*)), sizeof(uint64_t)); data/julia-1.5.3+dfsg/src/support/dtypes.h:327: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(&val, ptr, 4); data/julia-1.5.3+dfsg/src/support/dtypes.h:333: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(&val, ptr, 2); data/julia-1.5.3+dfsg/src/support/dtypes.h:339: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(ptr, &val, 8); data/julia-1.5.3+dfsg/src/support/dtypes.h:343: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(ptr, &val, 4); data/julia-1.5.3+dfsg/src/support/dtypes.h:347: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(ptr, &val, 2); data/julia-1.5.3+dfsg/src/support/ios.c:211: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(temp, s->buf, (size_t)s->size); data/julia-1.5.3+dfsg/src/support/ios.c:240:21: [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(&s->buf[s->bpos], data, amt); data/julia-1.5.3+dfsg/src/support/ios.c:249: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(s->buf + s->bpos, data, n); data/julia-1.5.3+dfsg/src/support/ios.c:274: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(dest, s->buf + s->bpos, ncopy); data/julia-1.5.3+dfsg/src/support/ios.c:421: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(s->buf + s->bpos, data, n); data/julia-1.5.3+dfsg/src/support/ios.c:697: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(buf, s->buf, (size_t)s->size); data/julia-1.5.3+dfsg/src/support/ios.c:724: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(buf, s->buf, nvalid); data/julia-1.5.3+dfsg/src/support/ios.c:890: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). int fd = open(path, flags | O_CLOEXEC, mode); data/julia-1.5.3+dfsg/src/support/ios.c:903: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). int fd = open(path, flags, mode); data/julia-1.5.3+dfsg/src/support/ios.c:920:19: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). size_t wlen = MultiByteToWideChar(CP_UTF8, 0, fname, -1, NULL, 0); data/julia-1.5.3+dfsg/src/support/ios.c:923:10: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (!MultiByteToWideChar(CP_UTF8, 0, fname, -1, fname_w, wlen)) goto open_file_err; data/julia-1.5.3+dfsg/src/support/ios.c:957:19: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). size_t wlen = MultiByteToWideChar(CP_UTF8, 0, fname, -1, NULL, 0); data/julia-1.5.3+dfsg/src/support/ios.c:960:10: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (!MultiByteToWideChar(CP_UTF8, 0, fname, -1, fname_w, wlen) || data/julia-1.5.3+dfsg/src/support/ios.c:967:10: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fd = mkstemp(fname); data/julia-1.5.3+dfsg/src/support/ios.c:1104: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[8]; data/julia-1.5.3+dfsg/src/support/ios.c:1165: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[8]; data/julia-1.5.3+dfsg/src/support/ios.h:78:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char local[IOS_INLSIZE]; data/julia-1.5.3+dfsg/src/support/strptime.c:128: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 * const nast[5] = { data/julia-1.5.3+dfsg/src/support/strptime.c:131: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 * const nadt[5] = { data/julia-1.5.3+dfsg/src/support/strptime.c:166:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512], *p; data/julia-1.5.3+dfsg/src/support/strtod.c:234: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(c, digits_pos, decimal_point_pos - digits_pos); data/julia-1.5.3+dfsg/src/support/strtod.c:236: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(c, decimal_point, decimal_point_len); data/julia-1.5.3+dfsg/src/support/strtod.c:238: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(c, decimal_point_pos + 1, data/julia-1.5.3+dfsg/src/support/tzfile.h:42:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_magic[4]; /* TZ_MAGIC */ data/julia-1.5.3+dfsg/src/support/tzfile.h:43:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_version[1]; /* '\0' or '2' or '3' as of 2013 */ data/julia-1.5.3+dfsg/src/support/tzfile.h:44:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_reserved[15]; /* reserved; must be zero */ data/julia-1.5.3+dfsg/src/support/tzfile.h:45:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_ttisgmtcnt[4]; /* coded number of trans. time flags */ data/julia-1.5.3+dfsg/src/support/tzfile.h:46:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_ttisstdcnt[4]; /* coded number of trans. time flags */ data/julia-1.5.3+dfsg/src/support/tzfile.h:47:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_leapcnt[4]; /* coded number of leap seconds */ data/julia-1.5.3+dfsg/src/support/tzfile.h:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_timecnt[4]; /* coded number of transition times */ data/julia-1.5.3+dfsg/src/support/tzfile.h:49:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_typecnt[4]; /* coded number of local time types */ data/julia-1.5.3+dfsg/src/support/tzfile.h:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_charcnt[4]; /* coded number of abbr. chars */ data/julia-1.5.3+dfsg/src/support/utf8.c:49: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 trailingBytesForUTF8[256] = { data/julia-1.5.3+dfsg/src/support/utf8.c:340: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 digs[10]; data/julia-1.5.3+dfsg/src/symbol.c:42: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(jl_symbol_name(sym), str, len); data/julia-1.5.3+dfsg/src/symbol.c:120: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 name[16]; data/julia-1.5.3+dfsg/src/symbol.c:130: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 gs_name[14]; data/julia-1.5.3+dfsg/src/symbol.c:139: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(name + 2, str, len); data/julia-1.5.3+dfsg/src/symbol.c:142: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(name + 3 + len, n, sizeof(gs_name) - (n - gs_name)); data/julia-1.5.3+dfsg/src/sys.c:128: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(statbuf, req.ptr, sizeof(uv_stat_t)); data/julia-1.5.3+dfsg/src/sys.c:140: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(statbuf, req.ptr, sizeof(uv_stat_t)); data/julia-1.5.3+dfsg/src/sys.c:152: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(statbuf, req.ptr, sizeof(uv_stat_t)); data/julia-1.5.3+dfsg/src/sys.c:272: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(jl_array_data(a), s->buf + s->bpos, n - nchomp); data/julia-1.5.3+dfsg/src/task.c:105:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char*)jl_assume_aligned(to, 16), (char*)jl_assume_aligned(from, 16), nb); data/julia-1.5.3+dfsg/src/task.c:975: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(&base_ctx, &ptls->base_ctx, sizeof(ptls->base_ctx)); data/julia-1.5.3+dfsg/src/task.c:1015: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(&t, &ptls->base_ctx, sizeof(ptls->base_ctx)); data/julia-1.5.3+dfsg/src/timing.c:22: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. const char *jl_timing_names[(int)JL_TIMING_LAST] = data/julia-1.5.3+dfsg/src/timing.h:74: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. extern const char *jl_timing_names[(int)JL_TIMING_LAST]; data/julia-1.5.3+dfsg/src/toplevel.c:860:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!open && !jl_is__toplevel__mod(m)) { data/julia-1.5.3+dfsg/src/toplevel.c:932: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[1024]; data/julia-1.5.3+dfsg/test/gcext/gcext.c:412: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(newstk->data, stk->data, sizeof(jl_value_t *) * stk->size); data/julia-1.5.3+dfsg/test/gcext/gcext.c:463: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. volatile char buf[1]; data/julia-1.5.3+dfsg/test/gcext/gcext.c:475: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. volatile char buf[1]; data/julia-1.5.3+dfsg/contrib/stringreplace.c:24: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(replacement) > maxlen ) { data/julia-1.5.3+dfsg/contrib/stringreplace.c:25:91: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). printf( "ERROR: Replacement string length (%lu) is greater than maxlen! (%lu)\n", strlen(replacement), maxlen ); data/julia-1.5.3+dfsg/contrib/stringreplace.c:30: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). fwrite( replacement, strlen(replacement)+1, 1, f ); data/julia-1.5.3+dfsg/src/array.c:512:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return jl_pchar_to_string(str, strlen(str)); data/julia-1.5.3+dfsg/src/ast.c:843:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(fname); data/julia-1.5.3+dfsg/src/builtins.c:412:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return jl_box_long(strlen(jl_symbol_name((jl_sym_t*)x))); data/julia-1.5.3+dfsg/src/cgutils.cpp:143:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). StringRef ctxt(txt.c_str(), strlen(txt.c_str()) + 1); data/julia-1.5.3+dfsg/src/cgutils.cpp:321:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(jl_symbol_name(name)) + strlen(prefix) + 1; data/julia-1.5.3+dfsg/src/cgutils.cpp:321: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). size_t len = strlen(jl_symbol_name(name)) + strlen(prefix) + 1; data/julia-1.5.3+dfsg/src/cgutils.cpp:324:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen(jl_symbol_name(parent->name))+1; data/julia-1.5.3+dfsg/src/cgutils.cpp:330:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len -= strlen(jl_symbol_name(name)) + 1; data/julia-1.5.3+dfsg/src/cgutils.cpp:335: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). size_t part = strlen(jl_symbol_name(parent->name)) + 1; data/julia-1.5.3+dfsg/src/datatype.c:35: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(n) - 1; data/julia-1.5.3+dfsg/src/debuginfo.cpp:484:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *end = name + strlen(name); data/julia-1.5.3+dfsg/src/debuginfo.cpp:948: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). (CFIndex)strlen(fname.data()), FALSE); data/julia-1.5.3+dfsg/src/debuginfo.cpp:1452:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t augmentation_len = strlen(augmentation); data/julia-1.5.3+dfsg/src/dlload.c:38:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(path); data/julia-1.5.3+dfsg/src/dlload.c:42:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t extlen = strlen(ext); data/julia-1.5.3+dfsg/src/dlload.c:185:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(dl_path); data/julia-1.5.3+dfsg/src/dump.c:333: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). size_t dtnl = strlen(dtname); data/julia-1.5.3+dfsg/src/dump.c:347: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). size_t l = strlen(jl_symbol_name(mt->name)); data/julia-1.5.3+dfsg/src/dump.c:642:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t l = strlen(jl_symbol_name((jl_sym_t*)v)); data/julia-1.5.3+dfsg/src/dump.c:1311: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). size_t l = strlen(modname); data/julia-1.5.3+dfsg/src/dump.c:1328:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ios_write(s, JI_MAGIC, strlen(JI_MAGIC)); data/julia-1.5.3+dfsg/src/dump.c:1332:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ios_write(s, JL_BUILD_UNAME, strlen(JL_BUILD_UNAME)+1); data/julia-1.5.3+dfsg/src/dump.c:1333:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ios_write(s, JL_BUILD_ARCH, strlen(JL_BUILD_ARCH)+1); data/julia-1.5.3+dfsg/src/dump.c:1334:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ios_write(s, JULIA_VERSION_STRING, strlen(JULIA_VERSION_STRING)+1); data/julia-1.5.3+dfsg/src/dump.c:1336: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). ios_write(s, branch, strlen(branch)+1); data/julia-1.5.3+dfsg/src/dump.c:1337: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). ios_write(s, commit, strlen(commit)+1); data/julia-1.5.3+dfsg/src/dump.c:1347: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). size_t l = strlen(jl_symbol_name(workmod->name)); data/julia-1.5.3+dfsg/src/dump.c:1363: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). size_t slen = strlen(mname); data/julia-1.5.3+dfsg/src/dump.c:2426: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). size_t i, len = strlen(str); data/julia-1.5.3+dfsg/src/dump.c:2750: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). size_t namelen = strlen(namestr) + 1; data/julia-1.5.3+dfsg/src/dump.c:2759: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). size_t namelen = strlen(namestr) + 1; // include nul-byte data/julia-1.5.3+dfsg/src/dump.c:2798: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). size_t namelen = strlen(namestr); data/julia-1.5.3+dfsg/src/dump.c:2807: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). size_t namelen = strlen(namestr); data/julia-1.5.3+dfsg/src/dump.c:2822: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). size_t namelen = strlen(namestr); data/julia-1.5.3+dfsg/src/flisp/cvalues.c:196: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). return cvalue_static_cstrn(fl_ctx, str, strlen(str)); data/julia-1.5.3+dfsg/src/flisp/cvalues.c:208: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). return string_from_cstrn(fl_ctx, str, strlen(str)); data/julia-1.5.3+dfsg/src/flisp/flisp.c:226:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(str); data/julia-1.5.3+dfsg/src/flisp/julia_extensions.c:251:19: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). char *opnew = strncpy((char*)malloc(i+1), op, i); data/julia-1.5.3+dfsg/src/gc-debug.c:465: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). char *buff = (char*)alloca(strlen(fmt) + strlen(name) + 1); data/julia-1.5.3+dfsg/src/gc-debug.c:465: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). char *buff = (char*)alloca(strlen(fmt) + strlen(name) + 1); data/julia-1.5.3+dfsg/src/gf.c:2534:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t l = strlen(jl_symbol_name(name)); data/julia-1.5.3+dfsg/src/gf.c:2573: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). size_t l = strlen(name); data/julia-1.5.3+dfsg/src/init.c:471:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sz = strlen(out) + 1; data/julia-1.5.3+dfsg/src/init.c:480: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). size_t sz = strlen(in + nprefix) + 1; data/julia-1.5.3+dfsg/src/init.c:527:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sz = strlen(in) + 1; data/julia-1.5.3+dfsg/src/jitlayers.cpp:415: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). if (strncmp(name, atomic_prefix, strlen(atomic_prefix)) != 0) data/julia-1.5.3+dfsg/src/jl_uv.c:612:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (write(STDERR_FILENO, buf, strlen(buf)) < 0) { data/julia-1.5.3+dfsg/src/jlapi.c:111: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). jl_value_t *ast = jl_parse_all(str, strlen(str), data/julia-1.5.3+dfsg/src/jlapi.c:112: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). filename, strlen(filename)); data/julia-1.5.3+dfsg/src/jloptions.c:351:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sz = strlen(optarg) + 1; data/julia-1.5.3+dfsg/src/jloptions.c:478:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t endof = strlen(optarg); data/julia-1.5.3+dfsg/src/julia_internal.h:816:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(from) + 1; data/julia-1.5.3+dfsg/src/module.c:619:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t prefix_len = strlen(dep_message_prefix); data/julia-1.5.3+dfsg/src/module.c:620: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). size_t name_len = strlen(jl_symbol_name(deprecated_binding->name)); data/julia-1.5.3+dfsg/src/processor.cpp:479:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const int prefix_len = strlen(prefix); data/julia-1.5.3+dfsg/src/processor_arm.cpp:674:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read(fd, buff, sizeof(buff)) == sizeof(buff)) { data/julia-1.5.3+dfsg/src/processor_arm.cpp:763: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). flag = line.substr(strlen(prefix)).ltrim("\t :").getAsInteger(0, out); data/julia-1.5.3+dfsg/src/rtutils.c:39:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). jl_value_t *msg = jl_pchar_to_string((char*)str, strlen(str)); data/julia-1.5.3+dfsg/src/rtutils.c:62: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). msg = jl_pchar_to_string(str, strlen(str)); data/julia-1.5.3+dfsg/src/rtutils.c:116: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). ctxt = jl_pchar_to_string((char*)context, strlen(context)); data/julia-1.5.3+dfsg/src/staticdata.c:427: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). size_t l = strlen(jl_symbol_name((jl_sym_t*)v)); data/julia-1.5.3+dfsg/src/support/ios.c:106:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = read((int)fd, buf, n); data/julia-1.5.3+dfsg/src/support/ios.c:962:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). !WideCharToMultiByte(CP_UTF8, 0, fname_w, -1, fname, strlen(fname)+1, data/julia-1.5.3+dfsg/src/support/ios.c:989:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(str); data/julia-1.5.3+dfsg/src/support/ios.h:148: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). #define ios_puts(str, s) ios_write(s, str, strlen(str)) data/julia-1.5.3+dfsg/src/support/strptime.c:812:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(*n1); data/julia-1.5.3+dfsg/src/support/strtod.c:117: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). decimal_point_len = strlen(decimal_point); data/julia-1.5.3+dfsg/src/symbol.c:94:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return _jl_symbol(str, strlen(str)); data/julia-1.5.3+dfsg/src/symbol.c:99:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return symtab_lookup(&symtab, str, strlen(str), NULL); data/julia-1.5.3+dfsg/src/sys.c:420:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return env ? jl_pchar_to_string(env, strlen(env)) : jl_nothing; data/julia-1.5.3+dfsg/src/toplevel.c:939: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(fstr) + sz >= 1024) { ANALYSIS SUMMARY: Hits = 331 Lines analyzed = 109050 in approximately 2.84 seconds (38388 lines/second) Physical Source Lines of Code (SLOC) = 90015 Hits@level = [0] 82 [1] 74 [2] 205 [3] 25 [4] 27 [5] 0 Hits@level+ = [0+] 413 [1+] 331 [2+] 257 [3+] 52 [4+] 27 [5+] 0 Hits/KSLOC@level+ = [0+] 4.58812 [1+] 3.67716 [2+] 2.85508 [3+] 0.577681 [4+] 0.29995 [5+] 0 Dot directories skipped = 3 (--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.