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/octave-5.2.0/config.in.h Examining data/octave-5.2.0/examples/code/addtwomatrices.cc Examining data/octave-5.2.0/examples/code/celldemo.cc Examining data/octave-5.2.0/examples/code/embedded.cc Examining data/octave-5.2.0/examples/code/fortrandemo.cc Examining data/octave-5.2.0/examples/code/funcdemo.cc Examining data/octave-5.2.0/examples/code/globaldemo.cc Examining data/octave-5.2.0/examples/code/helloworld.cc Examining data/octave-5.2.0/examples/code/make_int.cc Examining data/octave-5.2.0/examples/code/mex_demo.c Examining data/octave-5.2.0/examples/code/mycell.c Examining data/octave-5.2.0/examples/code/myfeval.c Examining data/octave-5.2.0/examples/code/myfunc.c Examining data/octave-5.2.0/examples/code/myhello.c Examining data/octave-5.2.0/examples/code/mypow2.c Examining data/octave-5.2.0/examples/code/myprop.c Examining data/octave-5.2.0/examples/code/myset.c Examining data/octave-5.2.0/examples/code/mysparse.c Examining data/octave-5.2.0/examples/code/mystring.c Examining data/octave-5.2.0/examples/code/mystruct.c Examining data/octave-5.2.0/examples/code/oct_demo.cc Examining data/octave-5.2.0/examples/code/oregonator.cc Examining data/octave-5.2.0/examples/code/paramdemo.cc Examining data/octave-5.2.0/examples/code/standalone.cc Examining data/octave-5.2.0/examples/code/standalonebuiltin.cc Examining data/octave-5.2.0/examples/code/stringdemo.cc Examining data/octave-5.2.0/examples/code/structdemo.cc Examining data/octave-5.2.0/examples/code/unwinddemo.cc Examining data/octave-5.2.0/libgnu/_Noreturn.h Examining data/octave-5.2.0/libgnu/af_alg.c Examining data/octave-5.2.0/libgnu/af_alg.h Examining data/octave-5.2.0/libgnu/alloca.c Examining data/octave-5.2.0/libgnu/alloca.in.h Examining data/octave-5.2.0/libgnu/allocator.c Examining data/octave-5.2.0/libgnu/allocator.h Examining data/octave-5.2.0/libgnu/areadlink-with-size.c Examining data/octave-5.2.0/libgnu/areadlink.c Examining data/octave-5.2.0/libgnu/areadlink.h Examining data/octave-5.2.0/libgnu/arg-nonnull.h Examining data/octave-5.2.0/libgnu/array-mergesort.h Examining data/octave-5.2.0/libgnu/asnprintf.c Examining data/octave-5.2.0/libgnu/asprintf.c Examining data/octave-5.2.0/libgnu/assure.h Examining data/octave-5.2.0/libgnu/at-func.c Examining data/octave-5.2.0/libgnu/base64.c Examining data/octave-5.2.0/libgnu/base64.h Examining data/octave-5.2.0/libgnu/basename-lgpl.c Examining data/octave-5.2.0/libgnu/basename.c Examining data/octave-5.2.0/libgnu/bitrotate.c Examining data/octave-5.2.0/libgnu/bitrotate.h Examining data/octave-5.2.0/libgnu/byteswap.in.h Examining data/octave-5.2.0/libgnu/c++defs.h Examining data/octave-5.2.0/libgnu/c-ctype.c Examining data/octave-5.2.0/libgnu/c-ctype.h Examining data/octave-5.2.0/libgnu/c-strcase.h Examining data/octave-5.2.0/libgnu/c-strcasecmp.c Examining data/octave-5.2.0/libgnu/c-strcaseeq.h Examining data/octave-5.2.0/libgnu/c-strncasecmp.c Examining data/octave-5.2.0/libgnu/canonicalize.c Examining data/octave-5.2.0/libgnu/canonicalize.h Examining data/octave-5.2.0/libgnu/careadlinkat.c Examining data/octave-5.2.0/libgnu/careadlinkat.h Examining data/octave-5.2.0/libgnu/cdefs.h Examining data/octave-5.2.0/libgnu/chdir-long.c Examining data/octave-5.2.0/libgnu/chdir-long.h Examining data/octave-5.2.0/libgnu/cloexec.c Examining data/octave-5.2.0/libgnu/cloexec.h Examining data/octave-5.2.0/libgnu/close.c Examining data/octave-5.2.0/libgnu/closedir.c Examining data/octave-5.2.0/libgnu/dirent-private.h Examining data/octave-5.2.0/libgnu/dirent.in.h Examining data/octave-5.2.0/libgnu/dirfd.c Examining data/octave-5.2.0/libgnu/dirname-lgpl.c Examining data/octave-5.2.0/libgnu/dirname.c Examining data/octave-5.2.0/libgnu/dirname.h Examining data/octave-5.2.0/libgnu/dosname.h Examining data/octave-5.2.0/libgnu/dup-safer-flag.c Examining data/octave-5.2.0/libgnu/dup-safer.c Examining data/octave-5.2.0/libgnu/dup.c Examining data/octave-5.2.0/libgnu/dup2.c Examining data/octave-5.2.0/libgnu/errno.in.h Examining data/octave-5.2.0/libgnu/error.c Examining data/octave-5.2.0/libgnu/error.h Examining data/octave-5.2.0/libgnu/exitfail.c Examining data/octave-5.2.0/libgnu/exitfail.h Examining data/octave-5.2.0/libgnu/fchdir.c Examining data/octave-5.2.0/libgnu/fcntl.c Examining data/octave-5.2.0/libgnu/fcntl.in.h Examining data/octave-5.2.0/libgnu/fd-hook.c Examining data/octave-5.2.0/libgnu/fd-hook.h Examining data/octave-5.2.0/libgnu/fd-safer-flag.c Examining data/octave-5.2.0/libgnu/fd-safer.c Examining data/octave-5.2.0/libgnu/fdopendir.c Examining data/octave-5.2.0/libgnu/fflush.c Examining data/octave-5.2.0/libgnu/file-set.c Examining data/octave-5.2.0/libgnu/file-set.h Examining data/octave-5.2.0/libgnu/filemode.c Examining data/octave-5.2.0/libgnu/filemode.h Examining data/octave-5.2.0/libgnu/filename.h Examining data/octave-5.2.0/libgnu/filenamecat-lgpl.c Examining data/octave-5.2.0/libgnu/filenamecat.h Examining data/octave-5.2.0/libgnu/flexmember.h Examining data/octave-5.2.0/libgnu/float+.h Examining data/octave-5.2.0/libgnu/float.c Examining data/octave-5.2.0/libgnu/float.in.h Examining data/octave-5.2.0/libgnu/fnmatch.c Examining data/octave-5.2.0/libgnu/fnmatch.in.h Examining data/octave-5.2.0/libgnu/fnmatch_loop.c Examining data/octave-5.2.0/libgnu/fpucw.h Examining data/octave-5.2.0/libgnu/fpurge.c Examining data/octave-5.2.0/libgnu/freading.c Examining data/octave-5.2.0/libgnu/freading.h Examining data/octave-5.2.0/libgnu/frexp.c Examining data/octave-5.2.0/libgnu/frexpf.c Examining data/octave-5.2.0/libgnu/fseek.c Examining data/octave-5.2.0/libgnu/fseeko.c Examining data/octave-5.2.0/libgnu/fstat.c Examining data/octave-5.2.0/libgnu/fstatat.c Examining data/octave-5.2.0/libgnu/ftell.c Examining data/octave-5.2.0/libgnu/ftello.c Examining data/octave-5.2.0/libgnu/ftruncate.c Examining data/octave-5.2.0/libgnu/getcwd-lgpl.c Examining data/octave-5.2.0/libgnu/getcwd.c Examining data/octave-5.2.0/libgnu/getdtablesize.c Examining data/octave-5.2.0/libgnu/gethostname.c Examining data/octave-5.2.0/libgnu/getlogin_r.c Examining data/octave-5.2.0/libgnu/getopt-cdefs.in.h Examining data/octave-5.2.0/libgnu/getopt-core.h Examining data/octave-5.2.0/libgnu/getopt-ext.h Examining data/octave-5.2.0/libgnu/getopt-pfx-core.h Examining data/octave-5.2.0/libgnu/getopt-pfx-ext.h Examining data/octave-5.2.0/libgnu/getopt.c Examining data/octave-5.2.0/libgnu/getopt.in.h Examining data/octave-5.2.0/libgnu/getopt1.c Examining data/octave-5.2.0/libgnu/getopt_int.h Examining data/octave-5.2.0/libgnu/getprogname.c Examining data/octave-5.2.0/libgnu/getprogname.h Examining data/octave-5.2.0/libgnu/getrusage.c Examining data/octave-5.2.0/libgnu/gettext.h Examining data/octave-5.2.0/libgnu/gettimeofday.c Examining data/octave-5.2.0/libgnu/gl_openssl.h Examining data/octave-5.2.0/libgnu/glob-libc.h Examining data/octave-5.2.0/libgnu/glob.c Examining data/octave-5.2.0/libgnu/glob.in.h Examining data/octave-5.2.0/libgnu/glob_internal.h Examining data/octave-5.2.0/libgnu/glob_pattern_p.c Examining data/octave-5.2.0/libgnu/globfree.c Examining data/octave-5.2.0/libgnu/glthread/lock.c Examining data/octave-5.2.0/libgnu/glthread/lock.h Examining data/octave-5.2.0/libgnu/glthread/threadlib.c Examining data/octave-5.2.0/libgnu/glthread/tls.c Examining data/octave-5.2.0/libgnu/glthread/tls.h Examining data/octave-5.2.0/libgnu/hard-locale.c Examining data/octave-5.2.0/libgnu/hard-locale.h Examining data/octave-5.2.0/libgnu/hash-pjw.c Examining data/octave-5.2.0/libgnu/hash-pjw.h Examining data/octave-5.2.0/libgnu/hash-triple.c Examining data/octave-5.2.0/libgnu/hash-triple.h Examining data/octave-5.2.0/libgnu/hash.c Examining data/octave-5.2.0/libgnu/hash.h Examining data/octave-5.2.0/libgnu/iconv.c Examining data/octave-5.2.0/libgnu/iconv.in.h Examining data/octave-5.2.0/libgnu/iconv_close.c Examining data/octave-5.2.0/libgnu/iconv_open-aix.h Examining data/octave-5.2.0/libgnu/iconv_open-hpux.h Examining data/octave-5.2.0/libgnu/iconv_open-irix.h Examining data/octave-5.2.0/libgnu/iconv_open-osf.h Examining data/octave-5.2.0/libgnu/iconv_open-solaris.h Examining data/octave-5.2.0/libgnu/iconv_open.c Examining data/octave-5.2.0/libgnu/iconveh.h Examining data/octave-5.2.0/libgnu/intprops.h Examining data/octave-5.2.0/libgnu/isatty.c Examining data/octave-5.2.0/libgnu/isnan.c Examining data/octave-5.2.0/libgnu/isnand-nolibm.h Examining data/octave-5.2.0/libgnu/isnand.c Examining data/octave-5.2.0/libgnu/itold.c Examining data/octave-5.2.0/libgnu/libc-config.h Examining data/octave-5.2.0/libgnu/limits.in.h Examining data/octave-5.2.0/libgnu/link.c Examining data/octave-5.2.0/libgnu/localcharset.c Examining data/octave-5.2.0/libgnu/localcharset.h Examining data/octave-5.2.0/libgnu/localtime-buffer.c Examining data/octave-5.2.0/libgnu/localtime-buffer.h Examining data/octave-5.2.0/libgnu/lseek.c Examining data/octave-5.2.0/libgnu/lstat.c Examining data/octave-5.2.0/libgnu/malloc/scratch_buffer.h Examining data/octave-5.2.0/libgnu/malloc/scratch_buffer_grow.c Examining data/octave-5.2.0/libgnu/malloc/scratch_buffer_grow_preserve.c Examining data/octave-5.2.0/libgnu/malloc/scratch_buffer_set_array_size.c Examining data/octave-5.2.0/libgnu/malloc.c Examining data/octave-5.2.0/libgnu/malloca.c Examining data/octave-5.2.0/libgnu/malloca.h Examining data/octave-5.2.0/libgnu/math.c Examining data/octave-5.2.0/libgnu/math.in.h Examining data/octave-5.2.0/libgnu/mbrtowc.c Examining data/octave-5.2.0/libgnu/mbsinit.c Examining data/octave-5.2.0/libgnu/mbsrtowcs-impl.h Examining data/octave-5.2.0/libgnu/mbsrtowcs-state.c Examining data/octave-5.2.0/libgnu/mbsrtowcs.c Examining data/octave-5.2.0/libgnu/md2.c Examining data/octave-5.2.0/libgnu/md2.h Examining data/octave-5.2.0/libgnu/md4.c Examining data/octave-5.2.0/libgnu/md4.h Examining data/octave-5.2.0/libgnu/md5.c Examining data/octave-5.2.0/libgnu/md5.h Examining data/octave-5.2.0/libgnu/memchr.c Examining data/octave-5.2.0/libgnu/mempcpy.c Examining data/octave-5.2.0/libgnu/memrchr.c Examining data/octave-5.2.0/libgnu/minmax.h Examining data/octave-5.2.0/libgnu/mkdir.c Examining data/octave-5.2.0/libgnu/mkfifo.c Examining data/octave-5.2.0/libgnu/mkostemp.c Examining data/octave-5.2.0/libgnu/mkostemps.c Examining data/octave-5.2.0/libgnu/mktime-internal.h Examining data/octave-5.2.0/libgnu/mktime.c Examining data/octave-5.2.0/libgnu/msvc-inval.c Examining data/octave-5.2.0/libgnu/msvc-inval.h Examining data/octave-5.2.0/libgnu/msvc-nothrow.c Examining data/octave-5.2.0/libgnu/msvc-nothrow.h Examining data/octave-5.2.0/libgnu/nanosleep.c Examining data/octave-5.2.0/libgnu/nproc.c Examining data/octave-5.2.0/libgnu/nproc.h Examining data/octave-5.2.0/libgnu/nstrftime.c Examining data/octave-5.2.0/libgnu/open.c Examining data/octave-5.2.0/libgnu/openat-die.c Examining data/octave-5.2.0/libgnu/openat-priv.h Examining data/octave-5.2.0/libgnu/openat-proc.c Examining data/octave-5.2.0/libgnu/openat.c Examining data/octave-5.2.0/libgnu/openat.h Examining data/octave-5.2.0/libgnu/opendir.c Examining data/octave-5.2.0/libgnu/pathmax.h Examining data/octave-5.2.0/libgnu/pipe-safer.c Examining data/octave-5.2.0/libgnu/pipe.c Examining data/octave-5.2.0/libgnu/printf-args.c Examining data/octave-5.2.0/libgnu/printf-args.h Examining data/octave-5.2.0/libgnu/printf-parse.c Examining data/octave-5.2.0/libgnu/printf-parse.h Examining data/octave-5.2.0/libgnu/progname.c Examining data/octave-5.2.0/libgnu/progname.h Examining data/octave-5.2.0/libgnu/putenv.c Examining data/octave-5.2.0/libgnu/raise.c Examining data/octave-5.2.0/libgnu/readdir.c Examining data/octave-5.2.0/libgnu/readlink.c Examining data/octave-5.2.0/libgnu/realloc.c Examining data/octave-5.2.0/libgnu/rewinddir.c Examining data/octave-5.2.0/libgnu/rmdir.c Examining data/octave-5.2.0/libgnu/same-inode.h Examining data/octave-5.2.0/libgnu/same.c Examining data/octave-5.2.0/libgnu/same.h Examining data/octave-5.2.0/libgnu/save-cwd.c Examining data/octave-5.2.0/libgnu/save-cwd.h Examining data/octave-5.2.0/libgnu/scratch_buffer.h Examining data/octave-5.2.0/libgnu/secure_getenv.c Examining data/octave-5.2.0/libgnu/select.c Examining data/octave-5.2.0/libgnu/setenv.c Examining data/octave-5.2.0/libgnu/sha1.c Examining data/octave-5.2.0/libgnu/sha1.h Examining data/octave-5.2.0/libgnu/sha256.c Examining data/octave-5.2.0/libgnu/sha256.h Examining data/octave-5.2.0/libgnu/sha512.c Examining data/octave-5.2.0/libgnu/sha512.h Examining data/octave-5.2.0/libgnu/sig-handler.c Examining data/octave-5.2.0/libgnu/sig-handler.h Examining data/octave-5.2.0/libgnu/sigaction.c Examining data/octave-5.2.0/libgnu/siglist.h Examining data/octave-5.2.0/libgnu/signal.in.h Examining data/octave-5.2.0/libgnu/sigprocmask.c Examining data/octave-5.2.0/libgnu/size_max.h Examining data/octave-5.2.0/libgnu/snprintf.c Examining data/octave-5.2.0/libgnu/sockets.c Examining data/octave-5.2.0/libgnu/sockets.h Examining data/octave-5.2.0/libgnu/stat-time.c Examining data/octave-5.2.0/libgnu/stat-time.h Examining data/octave-5.2.0/libgnu/stat-w32.c Examining data/octave-5.2.0/libgnu/stat-w32.h Examining data/octave-5.2.0/libgnu/stat.c Examining data/octave-5.2.0/libgnu/stdalign.in.h Examining data/octave-5.2.0/libgnu/stdbool.in.h Examining data/octave-5.2.0/libgnu/stddef.in.h Examining data/octave-5.2.0/libgnu/stdint.in.h Examining data/octave-5.2.0/libgnu/stdio-impl.h Examining data/octave-5.2.0/libgnu/stdio.in.h Examining data/octave-5.2.0/libgnu/stdlib.in.h Examining data/octave-5.2.0/libgnu/strcasecmp.c Examining data/octave-5.2.0/libgnu/strdup.c Examining data/octave-5.2.0/libgnu/streq.h Examining data/octave-5.2.0/libgnu/strerror-override.c Examining data/octave-5.2.0/libgnu/strerror-override.h Examining data/octave-5.2.0/libgnu/strerror.c Examining data/octave-5.2.0/libgnu/strftime.h Examining data/octave-5.2.0/libgnu/striconveh.c Examining data/octave-5.2.0/libgnu/striconveh.h Examining data/octave-5.2.0/libgnu/striconveha.c Examining data/octave-5.2.0/libgnu/striconveha.h Examining data/octave-5.2.0/libgnu/string.in.h Examining data/octave-5.2.0/libgnu/strings.in.h Examining data/octave-5.2.0/libgnu/stripslash.c Examining data/octave-5.2.0/libgnu/strncasecmp.c Examining data/octave-5.2.0/libgnu/strndup.c Examining data/octave-5.2.0/libgnu/strnlen.c Examining data/octave-5.2.0/libgnu/strnlen1.c Examining data/octave-5.2.0/libgnu/strnlen1.h Examining data/octave-5.2.0/libgnu/strptime.c Examining data/octave-5.2.0/libgnu/strsignal.c Examining data/octave-5.2.0/libgnu/symlink.c Examining data/octave-5.2.0/libgnu/sys-limits.h Examining data/octave-5.2.0/libgnu/sys_resource.in.h Examining data/octave-5.2.0/libgnu/sys_select.in.h Examining data/octave-5.2.0/libgnu/sys_socket.c Examining data/octave-5.2.0/libgnu/sys_socket.in.h Examining data/octave-5.2.0/libgnu/sys_stat.in.h Examining data/octave-5.2.0/libgnu/sys_time.in.h Examining data/octave-5.2.0/libgnu/sys_times.in.h Examining data/octave-5.2.0/libgnu/sys_types.in.h Examining data/octave-5.2.0/libgnu/sys_uio.in.h Examining data/octave-5.2.0/libgnu/sys_utsname.in.h Examining data/octave-5.2.0/libgnu/sys_wait.in.h Examining data/octave-5.2.0/libgnu/tempname.c Examining data/octave-5.2.0/libgnu/tempname.h Examining data/octave-5.2.0/libgnu/time-internal.h Examining data/octave-5.2.0/libgnu/time.in.h Examining data/octave-5.2.0/libgnu/time_r.c Examining data/octave-5.2.0/libgnu/time_rz.c Examining data/octave-5.2.0/libgnu/timegm.c Examining data/octave-5.2.0/libgnu/tmpdir.c Examining data/octave-5.2.0/libgnu/tmpdir.h Examining data/octave-5.2.0/libgnu/tmpfile.c Examining data/octave-5.2.0/libgnu/tzset.c Examining data/octave-5.2.0/libgnu/u64.c Examining data/octave-5.2.0/libgnu/u64.h Examining data/octave-5.2.0/libgnu/uname.c Examining data/octave-5.2.0/libgnu/unicase/cased.c Examining data/octave-5.2.0/libgnu/unicase/cased.h Examining data/octave-5.2.0/libgnu/unicase/caseprop.h Examining data/octave-5.2.0/libgnu/unicase/context.h Examining data/octave-5.2.0/libgnu/unicase/empty-prefix-context.c Examining data/octave-5.2.0/libgnu/unicase/empty-suffix-context.c Examining data/octave-5.2.0/libgnu/unicase/ignorable.c Examining data/octave-5.2.0/libgnu/unicase/ignorable.h Examining data/octave-5.2.0/libgnu/unicase/simple-mapping.h Examining data/octave-5.2.0/libgnu/unicase/special-casing-table.h Examining data/octave-5.2.0/libgnu/unicase/special-casing.c Examining data/octave-5.2.0/libgnu/unicase/special-casing.in.h Examining data/octave-5.2.0/libgnu/unicase/tolower.c Examining data/octave-5.2.0/libgnu/unicase/tolower.h Examining data/octave-5.2.0/libgnu/unicase/toupper.c Examining data/octave-5.2.0/libgnu/unicase/toupper.h Examining data/octave-5.2.0/libgnu/unicase/u-casemap.h Examining data/octave-5.2.0/libgnu/unicase/u8-casemap.c Examining data/octave-5.2.0/libgnu/unicase/u8-tolower.c Examining data/octave-5.2.0/libgnu/unicase/u8-toupper.c Examining data/octave-5.2.0/libgnu/unicase/unicasemap.h Examining data/octave-5.2.0/libgnu/unicase.in.h Examining data/octave-5.2.0/libgnu/uniconv/u-conv-to-enc.h Examining data/octave-5.2.0/libgnu/uniconv/u32-conv-to-enc.c Examining data/octave-5.2.0/libgnu/uniconv/u8-conv-from-enc.c Examining data/octave-5.2.0/libgnu/uniconv/u8-conv-to-enc.c Examining data/octave-5.2.0/libgnu/uniconv.in.h Examining data/octave-5.2.0/libgnu/unictype/bitmap.h Examining data/octave-5.2.0/libgnu/unictype/combiningclass.c Examining data/octave-5.2.0/libgnu/unictype/combiningclass.h Examining data/octave-5.2.0/libgnu/unictype/ctype_alnum.c Examining data/octave-5.2.0/libgnu/unictype/ctype_alnum.h Examining data/octave-5.2.0/libgnu/unictype/ctype_alpha.c Examining data/octave-5.2.0/libgnu/unictype/ctype_alpha.h Examining data/octave-5.2.0/libgnu/unictype/ctype_blank.c Examining data/octave-5.2.0/libgnu/unictype/ctype_blank.h Examining data/octave-5.2.0/libgnu/unictype/ctype_cntrl.c Examining data/octave-5.2.0/libgnu/unictype/ctype_cntrl.h Examining data/octave-5.2.0/libgnu/unictype/ctype_digit.c Examining data/octave-5.2.0/libgnu/unictype/ctype_digit.h Examining data/octave-5.2.0/libgnu/unictype/ctype_graph.c Examining data/octave-5.2.0/libgnu/unictype/ctype_graph.h Examining data/octave-5.2.0/libgnu/unictype/ctype_lower.c Examining data/octave-5.2.0/libgnu/unictype/ctype_lower.h Examining data/octave-5.2.0/libgnu/unictype/ctype_print.c Examining data/octave-5.2.0/libgnu/unictype/ctype_print.h Examining data/octave-5.2.0/libgnu/unictype/ctype_punct.c Examining data/octave-5.2.0/libgnu/unictype/ctype_punct.h Examining data/octave-5.2.0/libgnu/unictype/ctype_space.c Examining data/octave-5.2.0/libgnu/unictype/ctype_space.h Examining data/octave-5.2.0/libgnu/unictype/ctype_upper.c Examining data/octave-5.2.0/libgnu/unictype/ctype_upper.h Examining data/octave-5.2.0/libgnu/unictype/ctype_xdigit.c Examining data/octave-5.2.0/libgnu/unictype/ctype_xdigit.h Examining data/octave-5.2.0/libgnu/unictype/pr_soft_dotted.c Examining data/octave-5.2.0/libgnu/unictype/pr_soft_dotted.h Examining data/octave-5.2.0/libgnu/unictype.in.h Examining data/octave-5.2.0/libgnu/uninorm/decompose-internal.c Examining data/octave-5.2.0/libgnu/uninorm/decompose-internal.h Examining data/octave-5.2.0/libgnu/uninorm/normalize-internal.h Examining data/octave-5.2.0/libgnu/uninorm/u-normalize-internal.h Examining data/octave-5.2.0/libgnu/uninorm/u8-normalize.c Examining data/octave-5.2.0/libgnu/uninorm.in.h Examining data/octave-5.2.0/libgnu/unistd--.h Examining data/octave-5.2.0/libgnu/unistd-safer.h Examining data/octave-5.2.0/libgnu/unistd.c Examining data/octave-5.2.0/libgnu/unistd.in.h Examining data/octave-5.2.0/libgnu/unistr/u-cpy.h Examining data/octave-5.2.0/libgnu/unistr/u32-mblen.c Examining data/octave-5.2.0/libgnu/unistr/u32-to-u8.c Examining data/octave-5.2.0/libgnu/unistr/u8-check.c Examining data/octave-5.2.0/libgnu/unistr/u8-cpy.c Examining data/octave-5.2.0/libgnu/unistr/u8-mblen.c Examining data/octave-5.2.0/libgnu/unistr/u8-mbtouc-aux.c Examining data/octave-5.2.0/libgnu/unistr/u8-mbtouc-unsafe-aux.c Examining data/octave-5.2.0/libgnu/unistr/u8-mbtouc-unsafe.c Examining data/octave-5.2.0/libgnu/unistr/u8-mbtouc.c Examining data/octave-5.2.0/libgnu/unistr/u8-mbtoucr.c Examining data/octave-5.2.0/libgnu/unistr/u8-prev.c Examining data/octave-5.2.0/libgnu/unistr/u8-strmblen.c Examining data/octave-5.2.0/libgnu/unistr/u8-strmbtouc.c Examining data/octave-5.2.0/libgnu/unistr/u8-to-u32.c Examining data/octave-5.2.0/libgnu/unistr/u8-uctomb-aux.c Examining data/octave-5.2.0/libgnu/unistr/u8-uctomb.c Examining data/octave-5.2.0/libgnu/unistr.in.h Examining data/octave-5.2.0/libgnu/unitypes.in.h Examining data/octave-5.2.0/libgnu/unlink.c Examining data/octave-5.2.0/libgnu/unsetenv.c Examining data/octave-5.2.0/libgnu/unused-parameter.h Examining data/octave-5.2.0/libgnu/vasnprintf.c Examining data/octave-5.2.0/libgnu/vasnprintf.h Examining data/octave-5.2.0/libgnu/vasprintf.c Examining data/octave-5.2.0/libgnu/verify.h Examining data/octave-5.2.0/libgnu/w32sock.h Examining data/octave-5.2.0/libgnu/waitpid.c Examining data/octave-5.2.0/libgnu/warn-on-use.h Examining data/octave-5.2.0/libgnu/wchar.in.h Examining data/octave-5.2.0/libgnu/wctype-h.c Examining data/octave-5.2.0/libgnu/wctype.in.h Examining data/octave-5.2.0/libgnu/xalloc-die.c Examining data/octave-5.2.0/libgnu/xalloc-oversized.h Examining data/octave-5.2.0/libgnu/xalloc.h Examining data/octave-5.2.0/libgnu/xgetcwd.c Examining data/octave-5.2.0/libgnu/xgetcwd.h Examining data/octave-5.2.0/libgnu/xmalloc.c Examining data/octave-5.2.0/libgnu/xsize.c Examining data/octave-5.2.0/libgnu/xsize.h Examining data/octave-5.2.0/libgnu/xstrndup.c Examining data/octave-5.2.0/libgnu/xstrndup.h Examining data/octave-5.2.0/libgui/graphics/Backend.cc Examining data/octave-5.2.0/libgui/graphics/Backend.h Examining data/octave-5.2.0/libgui/graphics/BaseControl.cc Examining data/octave-5.2.0/libgui/graphics/BaseControl.h Examining data/octave-5.2.0/libgui/graphics/ButtonControl.cc Examining data/octave-5.2.0/libgui/graphics/ButtonControl.h Examining data/octave-5.2.0/libgui/graphics/ButtonGroup.cc Examining data/octave-5.2.0/libgui/graphics/ButtonGroup.h Examining data/octave-5.2.0/libgui/graphics/Canvas.cc Examining data/octave-5.2.0/libgui/graphics/Canvas.h Examining data/octave-5.2.0/libgui/graphics/CheckBoxControl.cc Examining data/octave-5.2.0/libgui/graphics/CheckBoxControl.h Examining data/octave-5.2.0/libgui/graphics/Container.cc Examining data/octave-5.2.0/libgui/graphics/Container.h Examining data/octave-5.2.0/libgui/graphics/ContextMenu.cc Examining data/octave-5.2.0/libgui/graphics/ContextMenu.h Examining data/octave-5.2.0/libgui/graphics/EditControl.cc Examining data/octave-5.2.0/libgui/graphics/EditControl.h Examining data/octave-5.2.0/libgui/graphics/Figure.cc Examining data/octave-5.2.0/libgui/graphics/Figure.h Examining data/octave-5.2.0/libgui/graphics/FigureWindow.cc Examining data/octave-5.2.0/libgui/graphics/FigureWindow.h Examining data/octave-5.2.0/libgui/graphics/GLCanvas.cc Examining data/octave-5.2.0/libgui/graphics/GLCanvas.h Examining data/octave-5.2.0/libgui/graphics/GenericEventNotify.h Examining data/octave-5.2.0/libgui/graphics/KeyMap.cc Examining data/octave-5.2.0/libgui/graphics/KeyMap.h Examining data/octave-5.2.0/libgui/graphics/ListBoxControl.cc Examining data/octave-5.2.0/libgui/graphics/ListBoxControl.h Examining data/octave-5.2.0/libgui/graphics/Logger.cc Examining data/octave-5.2.0/libgui/graphics/Logger.h Examining data/octave-5.2.0/libgui/graphics/Menu.cc Examining data/octave-5.2.0/libgui/graphics/Menu.h Examining data/octave-5.2.0/libgui/graphics/MenuContainer.h Examining data/octave-5.2.0/libgui/graphics/MouseModeActionGroup.cc Examining data/octave-5.2.0/libgui/graphics/MouseModeActionGroup.h Examining data/octave-5.2.0/libgui/graphics/Object.cc Examining data/octave-5.2.0/libgui/graphics/Object.h Examining data/octave-5.2.0/libgui/graphics/ObjectFactory.cc Examining data/octave-5.2.0/libgui/graphics/ObjectFactory.h Examining data/octave-5.2.0/libgui/graphics/ObjectProxy.cc Examining data/octave-5.2.0/libgui/graphics/ObjectProxy.h Examining data/octave-5.2.0/libgui/graphics/Panel.cc Examining data/octave-5.2.0/libgui/graphics/Panel.h Examining data/octave-5.2.0/libgui/graphics/PopupMenuControl.cc Examining data/octave-5.2.0/libgui/graphics/PopupMenuControl.h Examining data/octave-5.2.0/libgui/graphics/PushButtonControl.cc Examining data/octave-5.2.0/libgui/graphics/PushButtonControl.h Examining data/octave-5.2.0/libgui/graphics/PushTool.cc Examining data/octave-5.2.0/libgui/graphics/PushTool.h Examining data/octave-5.2.0/libgui/graphics/QtHandlesUtils.cc Examining data/octave-5.2.0/libgui/graphics/QtHandlesUtils.h Examining data/octave-5.2.0/libgui/graphics/RadioButtonControl.cc Examining data/octave-5.2.0/libgui/graphics/RadioButtonControl.h Examining data/octave-5.2.0/libgui/graphics/SliderControl.cc Examining data/octave-5.2.0/libgui/graphics/SliderControl.h Examining data/octave-5.2.0/libgui/graphics/Table.cc Examining data/octave-5.2.0/libgui/graphics/Table.h Examining data/octave-5.2.0/libgui/graphics/TextControl.cc Examining data/octave-5.2.0/libgui/graphics/TextControl.h Examining data/octave-5.2.0/libgui/graphics/TextEdit.cc Examining data/octave-5.2.0/libgui/graphics/TextEdit.h Examining data/octave-5.2.0/libgui/graphics/ToggleButtonControl.cc Examining data/octave-5.2.0/libgui/graphics/ToggleButtonControl.h Examining data/octave-5.2.0/libgui/graphics/ToggleTool.cc Examining data/octave-5.2.0/libgui/graphics/ToggleTool.h Examining data/octave-5.2.0/libgui/graphics/ToolBar.cc Examining data/octave-5.2.0/libgui/graphics/ToolBar.h Examining data/octave-5.2.0/libgui/graphics/ToolBarButton.cc Examining data/octave-5.2.0/libgui/graphics/ToolBarButton.h Examining data/octave-5.2.0/libgui/graphics/__init_qt__.cc Examining data/octave-5.2.0/libgui/graphics/__init_qt__.h Examining data/octave-5.2.0/libgui/graphics/annotation-dialog.cc Examining data/octave-5.2.0/libgui/graphics/annotation-dialog.h Examining data/octave-5.2.0/libgui/graphics/gl-select.cc Examining data/octave-5.2.0/libgui/graphics/gl-select.h Examining data/octave-5.2.0/libgui/graphics/qopengl-functions.h Examining data/octave-5.2.0/libgui/liboctgui-build-info.h Examining data/octave-5.2.0/libgui/liboctgui-build-info.in.cc Examining data/octave-5.2.0/libgui/qterminal/libqterminal/QTerminal.cc Examining data/octave-5.2.0/libgui/qterminal/libqterminal/QTerminal.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/BlockArray.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/BlockArray.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Character.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/CharacterColor.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Emulation.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Emulation.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/ExtendedDefaultTranslator.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/ExtendedDefaultTranslatorMac.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Filter.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Filter.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/History.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/History.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/KeyboardTranslator.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/KeyboardTranslator.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/LineFont.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/QUnixTerminalImpl.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/QUnixTerminalImpl.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Screen.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Screen.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/ScreenWindow.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/ScreenWindow.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/SelfListener.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/SelfListener.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalCharacterDecoder.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalCharacterDecoder.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalModel.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalModel.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalView.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalView.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/konsole_wcwidth.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/konsole_wcwidth.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty_p.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/win32/QTerminalColors.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/win32/QTerminalColors.h Examining data/octave-5.2.0/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp Examining data/octave-5.2.0/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.h Examining data/octave-5.2.0/libgui/src/color-picker.cc Examining data/octave-5.2.0/libgui/src/color-picker.h Examining data/octave-5.2.0/libgui/src/dialog.cc Examining data/octave-5.2.0/libgui/src/dialog.h Examining data/octave-5.2.0/libgui/src/documentation-dock-widget.cc Examining data/octave-5.2.0/libgui/src/documentation-dock-widget.h Examining data/octave-5.2.0/libgui/src/documentation.cc Examining data/octave-5.2.0/libgui/src/documentation.h Examining data/octave-5.2.0/libgui/src/dw-main-window.cc Examining data/octave-5.2.0/libgui/src/dw-main-window.h Examining data/octave-5.2.0/libgui/src/external-editor-interface.cc Examining data/octave-5.2.0/libgui/src/external-editor-interface.h Examining data/octave-5.2.0/libgui/src/files-dock-widget.cc Examining data/octave-5.2.0/libgui/src/files-dock-widget.h Examining data/octave-5.2.0/libgui/src/find-files-dialog.cc Examining data/octave-5.2.0/libgui/src/find-files-dialog.h Examining data/octave-5.2.0/libgui/src/find-files-model.cc Examining data/octave-5.2.0/libgui/src/find-files-model.h Examining data/octave-5.2.0/libgui/src/gui-preferences-mw.h Examining data/octave-5.2.0/libgui/src/gui-preferences.h Examining data/octave-5.2.0/libgui/src/history-dock-widget.cc Examining data/octave-5.2.0/libgui/src/history-dock-widget.h Examining data/octave-5.2.0/libgui/src/m-editor/file-editor-interface.h Examining data/octave-5.2.0/libgui/src/m-editor/file-editor-tab.cc Examining data/octave-5.2.0/libgui/src/m-editor/file-editor-tab.h Examining data/octave-5.2.0/libgui/src/m-editor/file-editor.cc Examining data/octave-5.2.0/libgui/src/m-editor/file-editor.h Examining data/octave-5.2.0/libgui/src/m-editor/find-dialog.cc Examining data/octave-5.2.0/libgui/src/m-editor/find-dialog.h Examining data/octave-5.2.0/libgui/src/m-editor/marker.cc Examining data/octave-5.2.0/libgui/src/m-editor/marker.h Examining data/octave-5.2.0/libgui/src/m-editor/octave-qscintilla.cc Examining data/octave-5.2.0/libgui/src/m-editor/octave-qscintilla.h Examining data/octave-5.2.0/libgui/src/m-editor/octave-txt-lexer.cc Examining data/octave-5.2.0/libgui/src/m-editor/octave-txt-lexer.h Examining data/octave-5.2.0/libgui/src/main-window.cc Examining data/octave-5.2.0/libgui/src/main-window.h Examining data/octave-5.2.0/libgui/src/octave-cmd.cc Examining data/octave-5.2.0/libgui/src/octave-cmd.h Examining data/octave-5.2.0/libgui/src/octave-dock-widget.cc Examining data/octave-5.2.0/libgui/src/octave-dock-widget.h Examining data/octave-5.2.0/libgui/src/octave-gui.cc Examining data/octave-5.2.0/libgui/src/octave-gui.h Examining data/octave-5.2.0/libgui/src/octave-qt-link.cc Examining data/octave-5.2.0/libgui/src/octave-qt-link.h Examining data/octave-5.2.0/libgui/src/resource-manager.cc Examining data/octave-5.2.0/libgui/src/resource-manager.h Examining data/octave-5.2.0/libgui/src/settings-dialog.cc Examining data/octave-5.2.0/libgui/src/settings-dialog.h Examining data/octave-5.2.0/libgui/src/shortcut-manager.cc Examining data/octave-5.2.0/libgui/src/shortcut-manager.h Examining data/octave-5.2.0/libgui/src/tab-bar.cc Examining data/octave-5.2.0/libgui/src/tab-bar.h Examining data/octave-5.2.0/libgui/src/terminal-dock-widget.cc Examining data/octave-5.2.0/libgui/src/terminal-dock-widget.h Examining data/octave-5.2.0/libgui/src/variable-editor-model.cc Examining data/octave-5.2.0/libgui/src/variable-editor-model.h Examining data/octave-5.2.0/libgui/src/variable-editor.cc Examining data/octave-5.2.0/libgui/src/variable-editor.h Examining data/octave-5.2.0/libgui/src/welcome-wizard.cc Examining data/octave-5.2.0/libgui/src/welcome-wizard.h Examining data/octave-5.2.0/libgui/src/workspace-model.cc Examining data/octave-5.2.0/libgui/src/workspace-model.h Examining data/octave-5.2.0/libgui/src/workspace-view.cc Examining data/octave-5.2.0/libgui/src/workspace-view.h Examining data/octave-5.2.0/libinterp/build-env.h Examining data/octave-5.2.0/libinterp/build-env.in.cc Examining data/octave-5.2.0/libinterp/corefcn/Cell.cc Examining data/octave-5.2.0/libinterp/corefcn/Cell.h Examining data/octave-5.2.0/libinterp/corefcn/DASPK-opts.cc Examining data/octave-5.2.0/libinterp/corefcn/DASRT-opts.cc Examining data/octave-5.2.0/libinterp/corefcn/DASSL-opts.cc Examining data/octave-5.2.0/libinterp/corefcn/LSODE-opts.cc Examining data/octave-5.2.0/libinterp/corefcn/Quad-opts.cc Examining data/octave-5.2.0/libinterp/corefcn/__betainc__.cc Examining data/octave-5.2.0/libinterp/corefcn/__contourc__.cc Examining data/octave-5.2.0/libinterp/corefcn/__dsearchn__.cc Examining data/octave-5.2.0/libinterp/corefcn/__expint__.cc Examining data/octave-5.2.0/libinterp/corefcn/__gammainc__.cc Examining data/octave-5.2.0/libinterp/corefcn/__ichol__.cc Examining data/octave-5.2.0/libinterp/corefcn/__ilu__.cc Examining data/octave-5.2.0/libinterp/corefcn/__lin_interpn__.cc Examining data/octave-5.2.0/libinterp/corefcn/__magick_read__.cc Examining data/octave-5.2.0/libinterp/corefcn/__pchip_deriv__.cc Examining data/octave-5.2.0/libinterp/corefcn/__qp__.cc Examining data/octave-5.2.0/libinterp/corefcn/balance.cc Examining data/octave-5.2.0/libinterp/corefcn/base-text-renderer.h Examining data/octave-5.2.0/libinterp/corefcn/besselj.cc Examining data/octave-5.2.0/libinterp/corefcn/bitfcns.cc Examining data/octave-5.2.0/libinterp/corefcn/bsxfun.cc Examining data/octave-5.2.0/libinterp/corefcn/c-file-ptr-stream.cc Examining data/octave-5.2.0/libinterp/corefcn/c-file-ptr-stream.h Examining data/octave-5.2.0/libinterp/corefcn/call-stack.cc Examining data/octave-5.2.0/libinterp/corefcn/call-stack.h Examining data/octave-5.2.0/libinterp/corefcn/cdisplay.c Examining data/octave-5.2.0/libinterp/corefcn/cdisplay.h Examining data/octave-5.2.0/libinterp/corefcn/cellfun.cc Examining data/octave-5.2.0/libinterp/corefcn/coct-hdf5-types.c Examining data/octave-5.2.0/libinterp/corefcn/colloc.cc Examining data/octave-5.2.0/libinterp/corefcn/conv2.cc Examining data/octave-5.2.0/libinterp/corefcn/daspk.cc Examining data/octave-5.2.0/libinterp/corefcn/dasrt.cc Examining data/octave-5.2.0/libinterp/corefcn/dassl.cc Examining data/octave-5.2.0/libinterp/corefcn/data.cc Examining data/octave-5.2.0/libinterp/corefcn/data.h Examining data/octave-5.2.0/libinterp/corefcn/debug.cc Examining data/octave-5.2.0/libinterp/corefcn/default-defs.in.h Examining data/octave-5.2.0/libinterp/corefcn/defaults.cc Examining data/octave-5.2.0/libinterp/corefcn/defaults.h Examining data/octave-5.2.0/libinterp/corefcn/defun-dld.h Examining data/octave-5.2.0/libinterp/corefcn/defun-int.h Examining data/octave-5.2.0/libinterp/corefcn/defun.cc Examining data/octave-5.2.0/libinterp/corefcn/defun.h Examining data/octave-5.2.0/libinterp/corefcn/det.cc Examining data/octave-5.2.0/libinterp/corefcn/dirfns.cc Examining data/octave-5.2.0/libinterp/corefcn/dirfns.h Examining data/octave-5.2.0/libinterp/corefcn/display.cc Examining data/octave-5.2.0/libinterp/corefcn/display.h Examining data/octave-5.2.0/libinterp/corefcn/dlmread.cc Examining data/octave-5.2.0/libinterp/corefcn/dot.cc Examining data/octave-5.2.0/libinterp/corefcn/dynamic-ld.cc Examining data/octave-5.2.0/libinterp/corefcn/dynamic-ld.h Examining data/octave-5.2.0/libinterp/corefcn/eig.cc Examining data/octave-5.2.0/libinterp/corefcn/ellipj.cc Examining data/octave-5.2.0/libinterp/corefcn/environment.cc Examining data/octave-5.2.0/libinterp/corefcn/environment.h Examining data/octave-5.2.0/libinterp/corefcn/error.cc Examining data/octave-5.2.0/libinterp/corefcn/error.h Examining data/octave-5.2.0/libinterp/corefcn/errwarn.cc Examining data/octave-5.2.0/libinterp/corefcn/errwarn.h Examining data/octave-5.2.0/libinterp/corefcn/event-queue.cc Examining data/octave-5.2.0/libinterp/corefcn/event-queue.h Examining data/octave-5.2.0/libinterp/corefcn/fcn-info.cc Examining data/octave-5.2.0/libinterp/corefcn/fcn-info.h Examining data/octave-5.2.0/libinterp/corefcn/fft.cc Examining data/octave-5.2.0/libinterp/corefcn/fft2.cc Examining data/octave-5.2.0/libinterp/corefcn/fftn.cc Examining data/octave-5.2.0/libinterp/corefcn/file-io.cc Examining data/octave-5.2.0/libinterp/corefcn/file-io.h Examining data/octave-5.2.0/libinterp/corefcn/filter.cc Examining data/octave-5.2.0/libinterp/corefcn/find.cc Examining data/octave-5.2.0/libinterp/corefcn/ft-text-renderer.cc Examining data/octave-5.2.0/libinterp/corefcn/ft-text-renderer.h Examining data/octave-5.2.0/libinterp/corefcn/gcd.cc Examining data/octave-5.2.0/libinterp/corefcn/getgrent.cc Examining data/octave-5.2.0/libinterp/corefcn/getpwent.cc Examining data/octave-5.2.0/libinterp/corefcn/getrusage.cc Examining data/octave-5.2.0/libinterp/corefcn/givens.cc Examining data/octave-5.2.0/libinterp/corefcn/gl-render.cc Examining data/octave-5.2.0/libinterp/corefcn/gl-render.h Examining data/octave-5.2.0/libinterp/corefcn/gl2ps-print.cc Examining data/octave-5.2.0/libinterp/corefcn/gl2ps-print.h Examining data/octave-5.2.0/libinterp/corefcn/graphics-handle.h Examining data/octave-5.2.0/libinterp/corefcn/graphics-toolkit.cc Examining data/octave-5.2.0/libinterp/corefcn/graphics-toolkit.h Examining data/octave-5.2.0/libinterp/corefcn/graphics.cc Examining data/octave-5.2.0/libinterp/corefcn/graphics.in.h Examining data/octave-5.2.0/libinterp/corefcn/gsvd.cc Examining data/octave-5.2.0/libinterp/corefcn/gtk-manager.cc Examining data/octave-5.2.0/libinterp/corefcn/gtk-manager.h Examining data/octave-5.2.0/libinterp/corefcn/hash.cc Examining data/octave-5.2.0/libinterp/corefcn/help.cc Examining data/octave-5.2.0/libinterp/corefcn/help.h Examining data/octave-5.2.0/libinterp/corefcn/hess.cc Examining data/octave-5.2.0/libinterp/corefcn/hex2num.cc Examining data/octave-5.2.0/libinterp/corefcn/hook-fcn.cc Examining data/octave-5.2.0/libinterp/corefcn/hook-fcn.h Examining data/octave-5.2.0/libinterp/corefcn/input.cc Examining data/octave-5.2.0/libinterp/corefcn/input.h Examining data/octave-5.2.0/libinterp/corefcn/interpreter-private.cc Examining data/octave-5.2.0/libinterp/corefcn/interpreter-private.h Examining data/octave-5.2.0/libinterp/corefcn/interpreter.cc Examining data/octave-5.2.0/libinterp/corefcn/interpreter.h Examining data/octave-5.2.0/libinterp/corefcn/inv.cc Examining data/octave-5.2.0/libinterp/corefcn/kron.cc Examining data/octave-5.2.0/libinterp/corefcn/load-path.cc Examining data/octave-5.2.0/libinterp/corefcn/load-path.h Examining data/octave-5.2.0/libinterp/corefcn/load-save.cc Examining data/octave-5.2.0/libinterp/corefcn/load-save.h Examining data/octave-5.2.0/libinterp/corefcn/lookup.cc Examining data/octave-5.2.0/libinterp/corefcn/ls-ascii-helper.cc Examining data/octave-5.2.0/libinterp/corefcn/ls-ascii-helper.h Examining data/octave-5.2.0/libinterp/corefcn/ls-hdf5.cc Examining data/octave-5.2.0/libinterp/corefcn/ls-hdf5.h Examining data/octave-5.2.0/libinterp/corefcn/ls-mat-ascii.cc Examining data/octave-5.2.0/libinterp/corefcn/ls-mat-ascii.h Examining data/octave-5.2.0/libinterp/corefcn/ls-mat4.cc Examining data/octave-5.2.0/libinterp/corefcn/ls-mat4.h Examining data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc Examining data/octave-5.2.0/libinterp/corefcn/ls-mat5.h Examining data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc Examining data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.h Examining data/octave-5.2.0/libinterp/corefcn/ls-oct-text.cc Examining data/octave-5.2.0/libinterp/corefcn/ls-oct-text.h Examining data/octave-5.2.0/libinterp/corefcn/ls-utils.cc Examining data/octave-5.2.0/libinterp/corefcn/ls-utils.h Examining data/octave-5.2.0/libinterp/corefcn/lsode.cc Examining data/octave-5.2.0/libinterp/corefcn/lu.cc Examining data/octave-5.2.0/libinterp/corefcn/mappers.cc Examining data/octave-5.2.0/libinterp/corefcn/matrix_type.cc Examining data/octave-5.2.0/libinterp/corefcn/max.cc Examining data/octave-5.2.0/libinterp/corefcn/mex.cc Examining data/octave-5.2.0/libinterp/corefcn/mex.h Examining data/octave-5.2.0/libinterp/corefcn/mexproto.h Examining data/octave-5.2.0/libinterp/corefcn/mgorth.cc Examining data/octave-5.2.0/libinterp/corefcn/mxarray.in.h Examining data/octave-5.2.0/libinterp/corefcn/nproc.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-errno.h Examining data/octave-5.2.0/libinterp/corefcn/oct-errno.in.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-fstrm.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-fstrm.h Examining data/octave-5.2.0/libinterp/corefcn/oct-handle.h Examining data/octave-5.2.0/libinterp/corefcn/oct-hdf5-types.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-hdf5-types.h Examining data/octave-5.2.0/libinterp/corefcn/oct-hdf5.h Examining data/octave-5.2.0/libinterp/corefcn/oct-hist.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-hist.h Examining data/octave-5.2.0/libinterp/corefcn/oct-iostrm.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-iostrm.h Examining data/octave-5.2.0/libinterp/corefcn/oct-map.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-map.h Examining data/octave-5.2.0/libinterp/corefcn/oct-obj.h Examining data/octave-5.2.0/libinterp/corefcn/oct-opengl.h Examining data/octave-5.2.0/libinterp/corefcn/oct-prcstrm.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-prcstrm.h Examining data/octave-5.2.0/libinterp/corefcn/oct-procbuf.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-procbuf.h Examining data/octave-5.2.0/libinterp/corefcn/oct-stdstrm.h Examining data/octave-5.2.0/libinterp/corefcn/oct-stream.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-stream.h Examining data/octave-5.2.0/libinterp/corefcn/oct-strstrm.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-strstrm.h Examining data/octave-5.2.0/libinterp/corefcn/oct-tex-lexer.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-tex-parser.cc Examining data/octave-5.2.0/libinterp/corefcn/oct-tex-parser.h Examining data/octave-5.2.0/libinterp/corefcn/oct-tex-symbols.cc Examining data/octave-5.2.0/libinterp/corefcn/oct.h Examining data/octave-5.2.0/libinterp/corefcn/octave-default-image.h Examining data/octave-5.2.0/libinterp/corefcn/octave-link.cc Examining data/octave-5.2.0/libinterp/corefcn/octave-link.h Examining data/octave-5.2.0/libinterp/corefcn/ordschur.cc Examining data/octave-5.2.0/libinterp/corefcn/pager.cc Examining data/octave-5.2.0/libinterp/corefcn/pager.h Examining data/octave-5.2.0/libinterp/corefcn/pinv.cc Examining data/octave-5.2.0/libinterp/corefcn/pr-flt-fmt.cc Examining data/octave-5.2.0/libinterp/corefcn/pr-flt-fmt.h Examining data/octave-5.2.0/libinterp/corefcn/pr-output.cc Examining data/octave-5.2.0/libinterp/corefcn/pr-output.h Examining data/octave-5.2.0/libinterp/corefcn/procstream.cc Examining data/octave-5.2.0/libinterp/corefcn/procstream.h Examining data/octave-5.2.0/libinterp/corefcn/psi.cc Examining data/octave-5.2.0/libinterp/corefcn/quad.cc Examining data/octave-5.2.0/libinterp/corefcn/quadcc.cc Examining data/octave-5.2.0/libinterp/corefcn/qz.cc Examining data/octave-5.2.0/libinterp/corefcn/rand.cc Examining data/octave-5.2.0/libinterp/corefcn/rcond.cc Examining data/octave-5.2.0/libinterp/corefcn/regexp.cc Examining data/octave-5.2.0/libinterp/corefcn/schur.cc Examining data/octave-5.2.0/libinterp/corefcn/settings.cc Examining data/octave-5.2.0/libinterp/corefcn/settings.h Examining data/octave-5.2.0/libinterp/corefcn/sighandlers.cc Examining data/octave-5.2.0/libinterp/corefcn/sighandlers.h Examining data/octave-5.2.0/libinterp/corefcn/sparse-xdiv.cc Examining data/octave-5.2.0/libinterp/corefcn/sparse-xdiv.h Examining data/octave-5.2.0/libinterp/corefcn/sparse-xpow.cc Examining data/octave-5.2.0/libinterp/corefcn/sparse-xpow.h Examining data/octave-5.2.0/libinterp/corefcn/sparse.cc Examining data/octave-5.2.0/libinterp/corefcn/spparms.cc Examining data/octave-5.2.0/libinterp/corefcn/sqrtm.cc Examining data/octave-5.2.0/libinterp/corefcn/strfind.cc Examining data/octave-5.2.0/libinterp/corefcn/strfns.cc Examining data/octave-5.2.0/libinterp/corefcn/sub2ind.cc Examining data/octave-5.2.0/libinterp/corefcn/svd.cc Examining data/octave-5.2.0/libinterp/corefcn/sylvester.cc Examining data/octave-5.2.0/libinterp/corefcn/syminfo.cc Examining data/octave-5.2.0/libinterp/corefcn/syminfo.h Examining data/octave-5.2.0/libinterp/corefcn/symrec.cc Examining data/octave-5.2.0/libinterp/corefcn/symrec.h Examining data/octave-5.2.0/libinterp/corefcn/symscope.cc Examining data/octave-5.2.0/libinterp/corefcn/symscope.h Examining data/octave-5.2.0/libinterp/corefcn/symtab.cc Examining data/octave-5.2.0/libinterp/corefcn/symtab.h Examining data/octave-5.2.0/libinterp/corefcn/syscalls.cc Examining data/octave-5.2.0/libinterp/corefcn/sysdep.cc Examining data/octave-5.2.0/libinterp/corefcn/sysdep.h Examining data/octave-5.2.0/libinterp/corefcn/text-engine.cc Examining data/octave-5.2.0/libinterp/corefcn/text-engine.h Examining data/octave-5.2.0/libinterp/corefcn/text-renderer.cc Examining data/octave-5.2.0/libinterp/corefcn/text-renderer.h Examining data/octave-5.2.0/libinterp/corefcn/time.cc Examining data/octave-5.2.0/libinterp/corefcn/toplev.cc Examining data/octave-5.2.0/libinterp/corefcn/toplev.h Examining data/octave-5.2.0/libinterp/corefcn/tril.cc Examining data/octave-5.2.0/libinterp/corefcn/tsearch.cc Examining data/octave-5.2.0/libinterp/corefcn/txt-eng.h Examining data/octave-5.2.0/libinterp/corefcn/typecast.cc Examining data/octave-5.2.0/libinterp/corefcn/url-handle-manager.cc Examining data/octave-5.2.0/libinterp/corefcn/url-handle-manager.h Examining data/octave-5.2.0/libinterp/corefcn/urlwrite.cc Examining data/octave-5.2.0/libinterp/corefcn/utils.cc Examining data/octave-5.2.0/libinterp/corefcn/utils.h Examining data/octave-5.2.0/libinterp/corefcn/variables.cc Examining data/octave-5.2.0/libinterp/corefcn/variables.h Examining data/octave-5.2.0/libinterp/corefcn/xdiv.cc Examining data/octave-5.2.0/libinterp/corefcn/xdiv.h Examining data/octave-5.2.0/libinterp/corefcn/xnorm.cc Examining data/octave-5.2.0/libinterp/corefcn/xnorm.h Examining data/octave-5.2.0/libinterp/corefcn/xpow.cc Examining data/octave-5.2.0/libinterp/corefcn/xpow.h Examining data/octave-5.2.0/libinterp/corefcn/zfstream.cc Examining data/octave-5.2.0/libinterp/corefcn/zfstream.h Examining data/octave-5.2.0/libinterp/dldfcn/__delaunayn__.cc Examining data/octave-5.2.0/libinterp/dldfcn/__eigs__.cc Examining data/octave-5.2.0/libinterp/dldfcn/__fltk_uigetfile__.cc Examining data/octave-5.2.0/libinterp/dldfcn/__glpk__.cc Examining data/octave-5.2.0/libinterp/dldfcn/__init_fltk__.cc Examining data/octave-5.2.0/libinterp/dldfcn/__init_gnuplot__.cc Examining data/octave-5.2.0/libinterp/dldfcn/__ode15__.cc Examining data/octave-5.2.0/libinterp/dldfcn/__voronoi__.cc Examining data/octave-5.2.0/libinterp/dldfcn/amd.cc Examining data/octave-5.2.0/libinterp/dldfcn/audiodevinfo.cc Examining data/octave-5.2.0/libinterp/dldfcn/audioread.cc Examining data/octave-5.2.0/libinterp/dldfcn/ccolamd.cc Examining data/octave-5.2.0/libinterp/dldfcn/chol.cc Examining data/octave-5.2.0/libinterp/dldfcn/colamd.cc Examining data/octave-5.2.0/libinterp/dldfcn/convhulln.cc Examining data/octave-5.2.0/libinterp/dldfcn/dmperm.cc Examining data/octave-5.2.0/libinterp/dldfcn/fftw.cc Examining data/octave-5.2.0/libinterp/dldfcn/gzip.cc Examining data/octave-5.2.0/libinterp/dldfcn/oct-qhull.h Examining data/octave-5.2.0/libinterp/dldfcn/qr.cc Examining data/octave-5.2.0/libinterp/dldfcn/symbfact.cc Examining data/octave-5.2.0/libinterp/dldfcn/symrcm.cc Examining data/octave-5.2.0/libinterp/liboctinterp-build-info.h Examining data/octave-5.2.0/libinterp/liboctinterp-build-info.in.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-base-diag.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-base-diag.h Examining data/octave-5.2.0/libinterp/octave-value/ov-base-int.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-base-int.h Examining data/octave-5.2.0/libinterp/octave-value/ov-base-mat.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-base-mat.h Examining data/octave-5.2.0/libinterp/octave-value/ov-base-scalar.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-base-scalar.h Examining data/octave-5.2.0/libinterp/octave-value/ov-base-sparse.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-base-sparse.h Examining data/octave-5.2.0/libinterp/octave-value/ov-base.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-base.h Examining data/octave-5.2.0/libinterp/octave-value/ov-bool-mat.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-bool-mat.h Examining data/octave-5.2.0/libinterp/octave-value/ov-bool-sparse.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-bool-sparse.h Examining data/octave-5.2.0/libinterp/octave-value/ov-bool.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-bool.h Examining data/octave-5.2.0/libinterp/octave-value/ov-builtin.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-builtin.h Examining data/octave-5.2.0/libinterp/octave-value/ov-cell.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-cell.h Examining data/octave-5.2.0/libinterp/octave-value/ov-ch-mat.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-ch-mat.h Examining data/octave-5.2.0/libinterp/octave-value/ov-class.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-class.h Examining data/octave-5.2.0/libinterp/octave-value/ov-classdef.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-classdef.h Examining data/octave-5.2.0/libinterp/octave-value/ov-colon.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-colon.h Examining data/octave-5.2.0/libinterp/octave-value/ov-complex.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-complex.h Examining data/octave-5.2.0/libinterp/octave-value/ov-cs-list.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-cs-list.h Examining data/octave-5.2.0/libinterp/octave-value/ov-cx-diag.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-cx-diag.h Examining data/octave-5.2.0/libinterp/octave-value/ov-cx-mat.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-cx-mat.h Examining data/octave-5.2.0/libinterp/octave-value/ov-cx-sparse.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-cx-sparse.h Examining data/octave-5.2.0/libinterp/octave-value/ov-dld-fcn.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-dld-fcn.h Examining data/octave-5.2.0/libinterp/octave-value/ov-fcn-handle.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-fcn-handle.h Examining data/octave-5.2.0/libinterp/octave-value/ov-fcn-inline.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-fcn-inline.h Examining data/octave-5.2.0/libinterp/octave-value/ov-fcn.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-fcn.h Examining data/octave-5.2.0/libinterp/octave-value/ov-float.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-float.h Examining data/octave-5.2.0/libinterp/octave-value/ov-flt-complex.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-flt-complex.h Examining data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-diag.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-diag.h Examining data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-mat.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-mat.h Examining data/octave-5.2.0/libinterp/octave-value/ov-flt-re-diag.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-flt-re-diag.h Examining data/octave-5.2.0/libinterp/octave-value/ov-flt-re-mat.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-flt-re-mat.h Examining data/octave-5.2.0/libinterp/octave-value/ov-int-traits.h Examining data/octave-5.2.0/libinterp/octave-value/ov-int16.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-int16.h Examining data/octave-5.2.0/libinterp/octave-value/ov-int32.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-int32.h Examining data/octave-5.2.0/libinterp/octave-value/ov-int64.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-int64.h Examining data/octave-5.2.0/libinterp/octave-value/ov-int8.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-int8.h Examining data/octave-5.2.0/libinterp/octave-value/ov-intx.h Examining data/octave-5.2.0/libinterp/octave-value/ov-java.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-java.h Examining data/octave-5.2.0/libinterp/octave-value/ov-lazy-idx.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-lazy-idx.h Examining data/octave-5.2.0/libinterp/octave-value/ov-mex-fcn.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-mex-fcn.h Examining data/octave-5.2.0/libinterp/octave-value/ov-null-mat.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-null-mat.h Examining data/octave-5.2.0/libinterp/octave-value/ov-oncleanup.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-oncleanup.h Examining data/octave-5.2.0/libinterp/octave-value/ov-perm.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-perm.h Examining data/octave-5.2.0/libinterp/octave-value/ov-range.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-range.h Examining data/octave-5.2.0/libinterp/octave-value/ov-re-diag.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-re-diag.h Examining data/octave-5.2.0/libinterp/octave-value/ov-re-mat.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-re-mat.h Examining data/octave-5.2.0/libinterp/octave-value/ov-re-sparse.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-re-sparse.h Examining data/octave-5.2.0/libinterp/octave-value/ov-scalar.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-scalar.h Examining data/octave-5.2.0/libinterp/octave-value/ov-str-mat.h Examining data/octave-5.2.0/libinterp/octave-value/ov-struct.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-struct.h Examining data/octave-5.2.0/libinterp/octave-value/ov-typeinfo.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-typeinfo.h Examining data/octave-5.2.0/libinterp/octave-value/ov-uint16.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-uint16.h Examining data/octave-5.2.0/libinterp/octave-value/ov-uint32.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-uint32.h Examining data/octave-5.2.0/libinterp/octave-value/ov-uint64.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-uint64.h Examining data/octave-5.2.0/libinterp/octave-value/ov-uint8.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-uint8.h Examining data/octave-5.2.0/libinterp/octave-value/ov-usr-fcn.cc Examining data/octave-5.2.0/libinterp/octave-value/ov-usr-fcn.h Examining data/octave-5.2.0/libinterp/octave-value/ov.cc Examining data/octave-5.2.0/libinterp/octave-value/ov.h Examining data/octave-5.2.0/libinterp/octave-value/ovl.cc Examining data/octave-5.2.0/libinterp/octave-value/ovl.h Examining data/octave-5.2.0/libinterp/octave-value/ov-str-mat.cc Examining data/octave-5.2.0/libinterp/octave.cc Examining data/octave-5.2.0/libinterp/octave.h Examining data/octave-5.2.0/libinterp/operators/op-b-b.cc Examining data/octave-5.2.0/libinterp/operators/op-b-bm.cc Examining data/octave-5.2.0/libinterp/operators/op-b-sbm.cc Examining data/octave-5.2.0/libinterp/operators/op-bm-b.cc Examining data/octave-5.2.0/libinterp/operators/op-bm-bm.cc Examining data/octave-5.2.0/libinterp/operators/op-bm-sbm.cc Examining data/octave-5.2.0/libinterp/operators/op-cdm-cdm.cc Examining data/octave-5.2.0/libinterp/operators/op-cdm-cm.cc Examining data/octave-5.2.0/libinterp/operators/op-cdm-cs.cc Examining data/octave-5.2.0/libinterp/operators/op-cdm-dm.cc Examining data/octave-5.2.0/libinterp/operators/op-cdm-m.cc Examining data/octave-5.2.0/libinterp/operators/op-cdm-s.cc Examining data/octave-5.2.0/libinterp/operators/op-cell.cc Examining data/octave-5.2.0/libinterp/operators/op-chm.cc Examining data/octave-5.2.0/libinterp/operators/op-class.cc Examining data/octave-5.2.0/libinterp/operators/op-cm-cdm.cc Examining data/octave-5.2.0/libinterp/operators/op-cm-cm.cc Examining data/octave-5.2.0/libinterp/operators/op-cm-cs.cc Examining data/octave-5.2.0/libinterp/operators/op-cm-dm.cc Examining data/octave-5.2.0/libinterp/operators/op-cm-m.cc Examining data/octave-5.2.0/libinterp/operators/op-cm-pm.cc Examining data/octave-5.2.0/libinterp/operators/op-cm-s.cc Examining data/octave-5.2.0/libinterp/operators/op-cm-scm.cc Examining data/octave-5.2.0/libinterp/operators/op-cm-sm.cc Examining data/octave-5.2.0/libinterp/operators/op-cs-cm.cc Examining data/octave-5.2.0/libinterp/operators/op-cs-cs.cc Examining data/octave-5.2.0/libinterp/operators/op-cs-m.cc Examining data/octave-5.2.0/libinterp/operators/op-cs-s.cc Examining data/octave-5.2.0/libinterp/operators/op-cs-scm.cc Examining data/octave-5.2.0/libinterp/operators/op-cs-sm.cc Examining data/octave-5.2.0/libinterp/operators/op-dm-cdm.cc Examining data/octave-5.2.0/libinterp/operators/op-dm-cm.cc Examining data/octave-5.2.0/libinterp/operators/op-dm-cs.cc Examining data/octave-5.2.0/libinterp/operators/op-dm-dm.cc Examining data/octave-5.2.0/libinterp/operators/op-dm-m.cc Examining data/octave-5.2.0/libinterp/operators/op-dm-s.cc Examining data/octave-5.2.0/libinterp/operators/op-dm-scm.cc Examining data/octave-5.2.0/libinterp/operators/op-dm-sm.cc Examining data/octave-5.2.0/libinterp/operators/op-dm-template.cc Examining data/octave-5.2.0/libinterp/operators/op-dms-template.cc Examining data/octave-5.2.0/libinterp/operators/op-fcdm-fcdm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcdm-fcm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcdm-fcs.cc Examining data/octave-5.2.0/libinterp/operators/op-fcdm-fdm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcdm-fm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcdm-fs.cc Examining data/octave-5.2.0/libinterp/operators/op-fcm-fcdm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcm-fcm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcm-fcs.cc Examining data/octave-5.2.0/libinterp/operators/op-fcm-fdm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcm-fm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcm-fs.cc Examining data/octave-5.2.0/libinterp/operators/op-fcm-pm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcn.cc Examining data/octave-5.2.0/libinterp/operators/op-fcs-fcm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcs-fcs.cc Examining data/octave-5.2.0/libinterp/operators/op-fcs-fm.cc Examining data/octave-5.2.0/libinterp/operators/op-fcs-fs.cc Examining data/octave-5.2.0/libinterp/operators/op-fdm-fcdm.cc Examining data/octave-5.2.0/libinterp/operators/op-fdm-fcm.cc Examining data/octave-5.2.0/libinterp/operators/op-fdm-fcs.cc Examining data/octave-5.2.0/libinterp/operators/op-fdm-fdm.cc Examining data/octave-5.2.0/libinterp/operators/op-fdm-fm.cc Examining data/octave-5.2.0/libinterp/operators/op-fdm-fs.cc Examining data/octave-5.2.0/libinterp/operators/op-fm-fcdm.cc Examining data/octave-5.2.0/libinterp/operators/op-fm-fcm.cc Examining data/octave-5.2.0/libinterp/operators/op-fm-fcs.cc Examining data/octave-5.2.0/libinterp/operators/op-fm-fdm.cc Examining data/octave-5.2.0/libinterp/operators/op-fm-fm.cc Examining data/octave-5.2.0/libinterp/operators/op-fm-fs.cc Examining data/octave-5.2.0/libinterp/operators/op-fm-pm.cc Examining data/octave-5.2.0/libinterp/operators/op-fs-fcm.cc Examining data/octave-5.2.0/libinterp/operators/op-fs-fcs.cc Examining data/octave-5.2.0/libinterp/operators/op-fs-fm.cc Examining data/octave-5.2.0/libinterp/operators/op-fs-fs.cc Examining data/octave-5.2.0/libinterp/operators/op-i16-i16.cc Examining data/octave-5.2.0/libinterp/operators/op-i32-i32.cc Examining data/octave-5.2.0/libinterp/operators/op-i64-i64.cc Examining data/octave-5.2.0/libinterp/operators/op-i8-i8.cc Examining data/octave-5.2.0/libinterp/operators/op-int-concat.cc Examining data/octave-5.2.0/libinterp/operators/op-int.h Examining data/octave-5.2.0/libinterp/operators/op-m-cdm.cc Examining data/octave-5.2.0/libinterp/operators/op-m-cm.cc Examining data/octave-5.2.0/libinterp/operators/op-m-cs.cc Examining data/octave-5.2.0/libinterp/operators/op-m-dm.cc Examining data/octave-5.2.0/libinterp/operators/op-m-m.cc Examining data/octave-5.2.0/libinterp/operators/op-m-pm.cc Examining data/octave-5.2.0/libinterp/operators/op-m-s.cc Examining data/octave-5.2.0/libinterp/operators/op-m-scm.cc Examining data/octave-5.2.0/libinterp/operators/op-m-sm.cc Examining data/octave-5.2.0/libinterp/operators/op-pm-cm.cc Examining data/octave-5.2.0/libinterp/operators/op-pm-fcm.cc Examining data/octave-5.2.0/libinterp/operators/op-pm-fm.cc Examining data/octave-5.2.0/libinterp/operators/op-pm-m.cc Examining data/octave-5.2.0/libinterp/operators/op-pm-pm.cc Examining data/octave-5.2.0/libinterp/operators/op-pm-scm.cc Examining data/octave-5.2.0/libinterp/operators/op-pm-sm.cc Examining data/octave-5.2.0/libinterp/operators/op-pm-template.cc Examining data/octave-5.2.0/libinterp/operators/op-range.cc Examining data/octave-5.2.0/libinterp/operators/op-s-cm.cc Examining data/octave-5.2.0/libinterp/operators/op-s-cs.cc Examining data/octave-5.2.0/libinterp/operators/op-s-m.cc Examining data/octave-5.2.0/libinterp/operators/op-s-s.cc Examining data/octave-5.2.0/libinterp/operators/op-s-scm.cc Examining data/octave-5.2.0/libinterp/operators/op-s-sm.cc Examining data/octave-5.2.0/libinterp/operators/op-sbm-b.cc Examining data/octave-5.2.0/libinterp/operators/op-sbm-bm.cc Examining data/octave-5.2.0/libinterp/operators/op-sbm-sbm.cc Examining data/octave-5.2.0/libinterp/operators/op-scm-cm.cc Examining data/octave-5.2.0/libinterp/operators/op-scm-cs.cc Examining data/octave-5.2.0/libinterp/operators/op-scm-m.cc Examining data/octave-5.2.0/libinterp/operators/op-scm-s.cc Examining data/octave-5.2.0/libinterp/operators/op-scm-scm.cc Examining data/octave-5.2.0/libinterp/operators/op-scm-sm.cc Examining data/octave-5.2.0/libinterp/operators/op-sm-cm.cc Examining data/octave-5.2.0/libinterp/operators/op-sm-cs.cc Examining data/octave-5.2.0/libinterp/operators/op-sm-m.cc Examining data/octave-5.2.0/libinterp/operators/op-sm-s.cc Examining data/octave-5.2.0/libinterp/operators/op-sm-scm.cc Examining data/octave-5.2.0/libinterp/operators/op-sm-sm.cc Examining data/octave-5.2.0/libinterp/operators/op-str-m.cc Examining data/octave-5.2.0/libinterp/operators/op-str-s.cc Examining data/octave-5.2.0/libinterp/operators/op-str-str.cc Examining data/octave-5.2.0/libinterp/operators/op-struct.cc Examining data/octave-5.2.0/libinterp/operators/op-ui16-ui16.cc Examining data/octave-5.2.0/libinterp/operators/op-ui32-ui32.cc Examining data/octave-5.2.0/libinterp/operators/op-ui64-ui64.cc Examining data/octave-5.2.0/libinterp/operators/op-ui8-ui8.cc Examining data/octave-5.2.0/libinterp/operators/ops.h Examining data/octave-5.2.0/libinterp/options-usage.h Examining data/octave-5.2.0/libinterp/parse-tree/bp-table.cc Examining data/octave-5.2.0/libinterp/parse-tree/bp-table.h Examining data/octave-5.2.0/libinterp/parse-tree/comment-list.cc Examining data/octave-5.2.0/libinterp/parse-tree/comment-list.h Examining data/octave-5.2.0/libinterp/parse-tree/jit-ir.cc Examining data/octave-5.2.0/libinterp/parse-tree/jit-ir.h Examining data/octave-5.2.0/libinterp/parse-tree/jit-typeinfo.cc Examining data/octave-5.2.0/libinterp/parse-tree/jit-typeinfo.h Examining data/octave-5.2.0/libinterp/parse-tree/jit-util.cc Examining data/octave-5.2.0/libinterp/parse-tree/jit-util.h Examining data/octave-5.2.0/libinterp/parse-tree/lex.cc Examining data/octave-5.2.0/libinterp/parse-tree/lex.h Examining data/octave-5.2.0/libinterp/parse-tree/oct-gperf.h Examining data/octave-5.2.0/libinterp/parse-tree/oct-lvalue.cc Examining data/octave-5.2.0/libinterp/parse-tree/oct-lvalue.h Examining data/octave-5.2.0/libinterp/parse-tree/oct-parse.cc Examining data/octave-5.2.0/libinterp/parse-tree/oct-parse.h Examining data/octave-5.2.0/libinterp/parse-tree/parse.h Examining data/octave-5.2.0/libinterp/parse-tree/profiler.cc Examining data/octave-5.2.0/libinterp/parse-tree/profiler.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-all.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-anon-scopes.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-anon-scopes.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-arg-list.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-arg-list.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-array-list.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-array-list.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-assign.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-assign.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-binop.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-binop.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-bp.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-bp.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-cbinop.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-cbinop.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-cell.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-cell.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-check.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-check.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-classdef.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-classdef.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-cmd.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-colon.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-colon.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-const.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-const.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-decl.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-decl.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-eval.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-eval.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-except.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-except.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-exp.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-exp.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-fcn-handle.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-fcn-handle.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-funcall.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-funcall.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-id.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-id.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-idx.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-idx.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-jit.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-jit.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-jump.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-loop.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-loop.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-mat.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-mat.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-misc.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-misc.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-pr-code.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-pr-code.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-select.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-select.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-stmt.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-stmt.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-tm-const.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-tm-const.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-unop.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-unop.h Examining data/octave-5.2.0/libinterp/parse-tree/pt-walk.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt-walk.h Examining data/octave-5.2.0/libinterp/parse-tree/pt.cc Examining data/octave-5.2.0/libinterp/parse-tree/pt.h Examining data/octave-5.2.0/libinterp/parse-tree/token.cc Examining data/octave-5.2.0/libinterp/parse-tree/token.h Examining data/octave-5.2.0/libinterp/template-inst/Array-jit.cc Examining data/octave-5.2.0/libinterp/template-inst/Array-tc.cc Examining data/octave-5.2.0/liboctave/array/Array-C.cc Examining data/octave-5.2.0/liboctave/array/Array-b.cc Examining data/octave-5.2.0/liboctave/array/Array-ch.cc Examining data/octave-5.2.0/liboctave/array/Array-d.cc Examining data/octave-5.2.0/liboctave/array/Array-f.cc Examining data/octave-5.2.0/liboctave/array/Array-fC.cc Examining data/octave-5.2.0/liboctave/array/Array-i.cc Examining data/octave-5.2.0/liboctave/array/Array-idx-vec.cc Examining data/octave-5.2.0/liboctave/array/Array-s.cc Examining data/octave-5.2.0/liboctave/array/Array-str.cc Examining data/octave-5.2.0/liboctave/array/Array-util.cc Examining data/octave-5.2.0/liboctave/array/Array-util.h Examining data/octave-5.2.0/liboctave/array/Array-voidp.cc Examining data/octave-5.2.0/liboctave/array/Array.cc Examining data/octave-5.2.0/liboctave/array/Array.h Examining data/octave-5.2.0/liboctave/array/CColVector.cc Examining data/octave-5.2.0/liboctave/array/CColVector.h Examining data/octave-5.2.0/liboctave/array/CDiagMatrix.cc Examining data/octave-5.2.0/liboctave/array/CDiagMatrix.h Examining data/octave-5.2.0/liboctave/array/CMatrix.cc Examining data/octave-5.2.0/liboctave/array/CMatrix.h Examining data/octave-5.2.0/liboctave/array/CNDArray.cc Examining data/octave-5.2.0/liboctave/array/CNDArray.h Examining data/octave-5.2.0/liboctave/array/CRowVector.cc Examining data/octave-5.2.0/liboctave/array/CRowVector.h Examining data/octave-5.2.0/liboctave/array/CSparse.cc Examining data/octave-5.2.0/liboctave/array/CSparse.h Examining data/octave-5.2.0/liboctave/array/DiagArray2.cc Examining data/octave-5.2.0/liboctave/array/DiagArray2.h Examining data/octave-5.2.0/liboctave/array/MArray-C.cc Examining data/octave-5.2.0/liboctave/array/MArray-d.cc Examining data/octave-5.2.0/liboctave/array/MArray-f.cc Examining data/octave-5.2.0/liboctave/array/MArray-fC.cc Examining data/octave-5.2.0/liboctave/array/MArray-i.cc Examining data/octave-5.2.0/liboctave/array/MArray-s.cc Examining data/octave-5.2.0/liboctave/array/MArray.cc Examining data/octave-5.2.0/liboctave/array/MArray.h Examining data/octave-5.2.0/liboctave/array/MDiagArray2.cc Examining data/octave-5.2.0/liboctave/array/MDiagArray2.h Examining data/octave-5.2.0/liboctave/array/MSparse-C.cc Examining data/octave-5.2.0/liboctave/array/MSparse-d.cc Examining data/octave-5.2.0/liboctave/array/MSparse.cc Examining data/octave-5.2.0/liboctave/array/MSparse.h Examining data/octave-5.2.0/liboctave/array/Matrix.h Examining data/octave-5.2.0/liboctave/array/MatrixType.cc Examining data/octave-5.2.0/liboctave/array/MatrixType.h Examining data/octave-5.2.0/liboctave/array/PermMatrix.cc Examining data/octave-5.2.0/liboctave/array/PermMatrix.h Examining data/octave-5.2.0/liboctave/array/Range.cc Examining data/octave-5.2.0/liboctave/array/Range.h Examining data/octave-5.2.0/liboctave/array/Sparse-C.cc Examining data/octave-5.2.0/liboctave/array/Sparse-b.cc Examining data/octave-5.2.0/liboctave/array/Sparse-d.cc Examining data/octave-5.2.0/liboctave/array/Sparse.cc Examining data/octave-5.2.0/liboctave/array/Sparse.h Examining data/octave-5.2.0/liboctave/array/boolMatrix.cc Examining data/octave-5.2.0/liboctave/array/boolMatrix.h Examining data/octave-5.2.0/liboctave/array/boolNDArray.cc Examining data/octave-5.2.0/liboctave/array/boolNDArray.h Examining data/octave-5.2.0/liboctave/array/boolSparse.cc Examining data/octave-5.2.0/liboctave/array/boolSparse.h Examining data/octave-5.2.0/liboctave/array/chMatrix.cc Examining data/octave-5.2.0/liboctave/array/chMatrix.h Examining data/octave-5.2.0/liboctave/array/chNDArray.cc Examining data/octave-5.2.0/liboctave/array/chNDArray.h Examining data/octave-5.2.0/liboctave/array/dColVector.cc Examining data/octave-5.2.0/liboctave/array/dColVector.h Examining data/octave-5.2.0/liboctave/array/dDiagMatrix.cc Examining data/octave-5.2.0/liboctave/array/dDiagMatrix.h Examining data/octave-5.2.0/liboctave/array/dMatrix.cc Examining data/octave-5.2.0/liboctave/array/dMatrix.h Examining data/octave-5.2.0/liboctave/array/dNDArray.cc Examining data/octave-5.2.0/liboctave/array/dNDArray.h Examining data/octave-5.2.0/liboctave/array/dRowVector.cc Examining data/octave-5.2.0/liboctave/array/dRowVector.h Examining data/octave-5.2.0/liboctave/array/dSparse.cc Examining data/octave-5.2.0/liboctave/array/dSparse.h Examining data/octave-5.2.0/liboctave/array/dim-vector.cc Examining data/octave-5.2.0/liboctave/array/dim-vector.h Examining data/octave-5.2.0/liboctave/array/fCColVector.cc Examining data/octave-5.2.0/liboctave/array/fCColVector.h Examining data/octave-5.2.0/liboctave/array/fCDiagMatrix.cc Examining data/octave-5.2.0/liboctave/array/fCDiagMatrix.h Examining data/octave-5.2.0/liboctave/array/fCMatrix.cc Examining data/octave-5.2.0/liboctave/array/fCMatrix.h Examining data/octave-5.2.0/liboctave/array/fCNDArray.cc Examining data/octave-5.2.0/liboctave/array/fCNDArray.h Examining data/octave-5.2.0/liboctave/array/fCRowVector.cc Examining data/octave-5.2.0/liboctave/array/fCRowVector.h Examining data/octave-5.2.0/liboctave/array/fColVector.cc Examining data/octave-5.2.0/liboctave/array/fColVector.h Examining data/octave-5.2.0/liboctave/array/fDiagMatrix.cc Examining data/octave-5.2.0/liboctave/array/fDiagMatrix.h Examining data/octave-5.2.0/liboctave/array/fMatrix.cc Examining data/octave-5.2.0/liboctave/array/fMatrix.h Examining data/octave-5.2.0/liboctave/array/fNDArray.cc Examining data/octave-5.2.0/liboctave/array/fNDArray.h Examining data/octave-5.2.0/liboctave/array/fRowVector.cc Examining data/octave-5.2.0/liboctave/array/fRowVector.h Examining data/octave-5.2.0/liboctave/array/idx-vector.cc Examining data/octave-5.2.0/liboctave/array/idx-vector.h Examining data/octave-5.2.0/liboctave/array/int16NDArray.cc Examining data/octave-5.2.0/liboctave/array/int16NDArray.h Examining data/octave-5.2.0/liboctave/array/int32NDArray.cc Examining data/octave-5.2.0/liboctave/array/int32NDArray.h Examining data/octave-5.2.0/liboctave/array/int64NDArray.cc Examining data/octave-5.2.0/liboctave/array/int64NDArray.h Examining data/octave-5.2.0/liboctave/array/int8NDArray.cc Examining data/octave-5.2.0/liboctave/array/int8NDArray.h Examining data/octave-5.2.0/liboctave/array/intNDArray.cc Examining data/octave-5.2.0/liboctave/array/intNDArray.h Examining data/octave-5.2.0/liboctave/array/uint16NDArray.cc Examining data/octave-5.2.0/liboctave/array/uint16NDArray.h Examining data/octave-5.2.0/liboctave/array/uint32NDArray.cc Examining data/octave-5.2.0/liboctave/array/uint32NDArray.h Examining data/octave-5.2.0/liboctave/array/uint64NDArray.cc Examining data/octave-5.2.0/liboctave/array/uint64NDArray.h Examining data/octave-5.2.0/liboctave/array/uint8NDArray.cc Examining data/octave-5.2.0/liboctave/array/uint8NDArray.h Examining data/octave-5.2.0/liboctave/external/Faddeeva/Faddeeva.cc Examining data/octave-5.2.0/liboctave/external/blas-xtra/xerbla.cc Examining data/octave-5.2.0/liboctave/liboctave-build-info.h Examining data/octave-5.2.0/liboctave/liboctave-build-info.in.cc Examining data/octave-5.2.0/liboctave/numeric/CollocWt.cc Examining data/octave-5.2.0/liboctave/numeric/CollocWt.h Examining data/octave-5.2.0/liboctave/numeric/DAE.h Examining data/octave-5.2.0/liboctave/numeric/DAEFunc.h Examining data/octave-5.2.0/liboctave/numeric/DAERT.h Examining data/octave-5.2.0/liboctave/numeric/DAERTFunc.h Examining data/octave-5.2.0/liboctave/numeric/DASPK.cc Examining data/octave-5.2.0/liboctave/numeric/DASPK.h Examining data/octave-5.2.0/liboctave/numeric/DASRT.cc Examining data/octave-5.2.0/liboctave/numeric/DASRT.h Examining data/octave-5.2.0/liboctave/numeric/DASSL.cc Examining data/octave-5.2.0/liboctave/numeric/DASSL.h Examining data/octave-5.2.0/liboctave/numeric/DET.h Examining data/octave-5.2.0/liboctave/numeric/EIG.cc Examining data/octave-5.2.0/liboctave/numeric/EIG.h Examining data/octave-5.2.0/liboctave/numeric/LSODE.cc Examining data/octave-5.2.0/liboctave/numeric/LSODE.h Examining data/octave-5.2.0/liboctave/numeric/ODE.h Examining data/octave-5.2.0/liboctave/numeric/ODEFunc.h Examining data/octave-5.2.0/liboctave/numeric/ODES.cc Examining data/octave-5.2.0/liboctave/numeric/ODES.h Examining data/octave-5.2.0/liboctave/numeric/ODESFunc.h Examining data/octave-5.2.0/liboctave/numeric/Quad.cc Examining data/octave-5.2.0/liboctave/numeric/Quad.h Examining data/octave-5.2.0/liboctave/numeric/aepbalance.cc Examining data/octave-5.2.0/liboctave/numeric/aepbalance.h Examining data/octave-5.2.0/liboctave/numeric/base-dae.h Examining data/octave-5.2.0/liboctave/numeric/base-de.h Examining data/octave-5.2.0/liboctave/numeric/base-min.h Examining data/octave-5.2.0/liboctave/numeric/bsxfun-decl.h Examining data/octave-5.2.0/liboctave/numeric/bsxfun-defs.cc Examining data/octave-5.2.0/liboctave/numeric/bsxfun.h Examining data/octave-5.2.0/liboctave/numeric/chol.cc Examining data/octave-5.2.0/liboctave/numeric/chol.h Examining data/octave-5.2.0/liboctave/numeric/eigs-base.cc Examining data/octave-5.2.0/liboctave/numeric/eigs-base.h Examining data/octave-5.2.0/liboctave/numeric/fEIG.cc Examining data/octave-5.2.0/liboctave/numeric/fEIG.h Examining data/octave-5.2.0/liboctave/numeric/gepbalance.cc Examining data/octave-5.2.0/liboctave/numeric/gepbalance.h Examining data/octave-5.2.0/liboctave/numeric/gsvd.cc Examining data/octave-5.2.0/liboctave/numeric/gsvd.h Examining data/octave-5.2.0/liboctave/numeric/hess.cc Examining data/octave-5.2.0/liboctave/numeric/hess.h Examining data/octave-5.2.0/liboctave/numeric/lo-amos-proto.h Examining data/octave-5.2.0/liboctave/numeric/lo-arpack-proto.h Examining data/octave-5.2.0/liboctave/numeric/lo-blas-proto.h Examining data/octave-5.2.0/liboctave/numeric/lo-lapack-proto.h Examining data/octave-5.2.0/liboctave/numeric/lo-mappers.cc Examining data/octave-5.2.0/liboctave/numeric/lo-mappers.h Examining data/octave-5.2.0/liboctave/numeric/lo-qrupdate-proto.h Examining data/octave-5.2.0/liboctave/numeric/lo-ranlib-proto.h Examining data/octave-5.2.0/liboctave/numeric/lo-slatec-proto.h Examining data/octave-5.2.0/liboctave/numeric/lo-specfun.cc Examining data/octave-5.2.0/liboctave/numeric/lo-specfun.h Examining data/octave-5.2.0/liboctave/numeric/lu.cc Examining data/octave-5.2.0/liboctave/numeric/lu.h Examining data/octave-5.2.0/liboctave/numeric/oct-convn.cc Examining data/octave-5.2.0/liboctave/numeric/oct-convn.h Examining data/octave-5.2.0/liboctave/numeric/oct-fftw.cc Examining data/octave-5.2.0/liboctave/numeric/oct-fftw.h Examining data/octave-5.2.0/liboctave/numeric/oct-norm.cc Examining data/octave-5.2.0/liboctave/numeric/oct-norm.h Examining data/octave-5.2.0/liboctave/numeric/oct-rand.cc Examining data/octave-5.2.0/liboctave/numeric/oct-rand.h Examining data/octave-5.2.0/liboctave/numeric/oct-spparms.cc Examining data/octave-5.2.0/liboctave/numeric/oct-spparms.h Examining data/octave-5.2.0/liboctave/numeric/qr.cc Examining data/octave-5.2.0/liboctave/numeric/qr.h Examining data/octave-5.2.0/liboctave/numeric/qrp.cc Examining data/octave-5.2.0/liboctave/numeric/qrp.h Examining data/octave-5.2.0/liboctave/numeric/randgamma.cc Examining data/octave-5.2.0/liboctave/numeric/randgamma.h Examining data/octave-5.2.0/liboctave/numeric/randmtzig.cc Examining data/octave-5.2.0/liboctave/numeric/randmtzig.h Examining data/octave-5.2.0/liboctave/numeric/randpoisson.cc Examining data/octave-5.2.0/liboctave/numeric/randpoisson.h Examining data/octave-5.2.0/liboctave/numeric/schur.cc Examining data/octave-5.2.0/liboctave/numeric/schur.h Examining data/octave-5.2.0/liboctave/numeric/sparse-chol.cc Examining data/octave-5.2.0/liboctave/numeric/sparse-chol.h Examining data/octave-5.2.0/liboctave/numeric/sparse-dmsolve.cc Examining data/octave-5.2.0/liboctave/numeric/sparse-dmsolve.h Examining data/octave-5.2.0/liboctave/numeric/sparse-lu.cc Examining data/octave-5.2.0/liboctave/numeric/sparse-lu.h Examining data/octave-5.2.0/liboctave/numeric/sparse-qr.cc Examining data/octave-5.2.0/liboctave/numeric/sparse-qr.h Examining data/octave-5.2.0/liboctave/numeric/svd.cc Examining data/octave-5.2.0/liboctave/numeric/svd.h Examining data/octave-5.2.0/liboctave/operators/Sparse-diag-op-defs.h Examining data/octave-5.2.0/liboctave/operators/Sparse-op-decls.h Examining data/octave-5.2.0/liboctave/operators/Sparse-op-defs.h Examining data/octave-5.2.0/liboctave/operators/Sparse-perm-op-defs.h Examining data/octave-5.2.0/liboctave/operators/mx-base.h Examining data/octave-5.2.0/liboctave/operators/mx-defs.h Examining data/octave-5.2.0/liboctave/operators/mx-ext.h Examining data/octave-5.2.0/liboctave/operators/mx-inlines.cc Examining data/octave-5.2.0/liboctave/operators/mx-op-decl.h Examining data/octave-5.2.0/liboctave/operators/mx-op-defs.h Examining data/octave-5.2.0/liboctave/system/child-list.cc Examining data/octave-5.2.0/liboctave/system/child-list.h Examining data/octave-5.2.0/liboctave/system/cmach-info.c Examining data/octave-5.2.0/liboctave/system/cmach-info.h Examining data/octave-5.2.0/liboctave/system/dir-ops.cc Examining data/octave-5.2.0/liboctave/system/dir-ops.h Examining data/octave-5.2.0/liboctave/system/file-ops.cc Examining data/octave-5.2.0/liboctave/system/file-ops.h Examining data/octave-5.2.0/liboctave/system/file-stat.cc Examining data/octave-5.2.0/liboctave/system/file-stat.h Examining data/octave-5.2.0/liboctave/system/lo-sysdep.cc Examining data/octave-5.2.0/liboctave/system/lo-sysdep.h Examining data/octave-5.2.0/liboctave/system/lo-sysinfo.cc Examining data/octave-5.2.0/liboctave/system/lo-sysinfo.h Examining data/octave-5.2.0/liboctave/system/mach-info.cc Examining data/octave-5.2.0/liboctave/system/mach-info.h Examining data/octave-5.2.0/liboctave/system/oct-env.cc Examining data/octave-5.2.0/liboctave/system/oct-env.h Examining data/octave-5.2.0/liboctave/system/oct-group.cc Examining data/octave-5.2.0/liboctave/system/oct-group.h Examining data/octave-5.2.0/liboctave/system/oct-passwd.cc Examining data/octave-5.2.0/liboctave/system/oct-passwd.h Examining data/octave-5.2.0/liboctave/system/oct-syscalls.cc Examining data/octave-5.2.0/liboctave/system/oct-syscalls.h Examining data/octave-5.2.0/liboctave/system/oct-time.cc Examining data/octave-5.2.0/liboctave/system/oct-time.h Examining data/octave-5.2.0/liboctave/system/oct-uname.cc Examining data/octave-5.2.0/liboctave/system/oct-uname.h Examining data/octave-5.2.0/liboctave/util/action-container.h Examining data/octave-5.2.0/liboctave/util/base-list.h Examining data/octave-5.2.0/liboctave/util/blaswrap.c Examining data/octave-5.2.0/liboctave/util/byte-swap.h Examining data/octave-5.2.0/liboctave/util/caseless-str.h Examining data/octave-5.2.0/liboctave/util/cmd-edit.cc Examining data/octave-5.2.0/liboctave/util/cmd-edit.h Examining data/octave-5.2.0/liboctave/util/cmd-hist.cc Examining data/octave-5.2.0/liboctave/util/cmd-hist.h Examining data/octave-5.2.0/liboctave/util/cquit.c Examining data/octave-5.2.0/liboctave/util/data-conv.cc Examining data/octave-5.2.0/liboctave/util/data-conv.h Examining data/octave-5.2.0/liboctave/util/f2c-main.c Examining data/octave-5.2.0/liboctave/util/f77-fcn.c Examining data/octave-5.2.0/liboctave/util/f77-fcn.h Examining data/octave-5.2.0/liboctave/util/file-info.cc Examining data/octave-5.2.0/liboctave/util/file-info.h Examining data/octave-5.2.0/liboctave/util/functor.h Examining data/octave-5.2.0/liboctave/util/glob-match.cc Examining data/octave-5.2.0/liboctave/util/glob-match.h Examining data/octave-5.2.0/liboctave/util/kpse.cc Examining data/octave-5.2.0/liboctave/util/kpse.h Examining data/octave-5.2.0/liboctave/util/lo-array-errwarn.cc Examining data/octave-5.2.0/liboctave/util/lo-array-errwarn.h Examining data/octave-5.2.0/liboctave/util/lo-cutils.c Examining data/octave-5.2.0/liboctave/util/lo-cutils.h Examining data/octave-5.2.0/liboctave/util/lo-error.c Examining data/octave-5.2.0/liboctave/util/lo-error.h Examining data/octave-5.2.0/liboctave/util/lo-hash.cc Examining data/octave-5.2.0/liboctave/util/lo-hash.h Examining data/octave-5.2.0/liboctave/util/lo-ieee.cc Examining data/octave-5.2.0/liboctave/util/lo-ieee.h Examining data/octave-5.2.0/liboctave/util/lo-regexp.cc Examining data/octave-5.2.0/liboctave/util/lo-regexp.h Examining data/octave-5.2.0/liboctave/util/lo-traits.h Examining data/octave-5.2.0/liboctave/util/lo-utils.cc Examining data/octave-5.2.0/liboctave/util/lo-utils.h Examining data/octave-5.2.0/liboctave/util/oct-base64.cc Examining data/octave-5.2.0/liboctave/util/oct-base64.h Examining data/octave-5.2.0/liboctave/util/oct-binmap.h Examining data/octave-5.2.0/liboctave/util/oct-cmplx.h Examining data/octave-5.2.0/liboctave/util/oct-glob.cc Examining data/octave-5.2.0/liboctave/util/oct-glob.h Examining data/octave-5.2.0/liboctave/util/oct-inttypes-fwd.h Examining data/octave-5.2.0/liboctave/util/oct-inttypes.cc Examining data/octave-5.2.0/liboctave/util/oct-inttypes.h Examining data/octave-5.2.0/liboctave/util/oct-locbuf.h Examining data/octave-5.2.0/liboctave/util/oct-mutex.cc Examining data/octave-5.2.0/liboctave/util/oct-mutex.h Examining data/octave-5.2.0/liboctave/util/oct-refcount.h Examining data/octave-5.2.0/liboctave/util/oct-rl-edit.c Examining data/octave-5.2.0/liboctave/util/oct-rl-edit.h Examining data/octave-5.2.0/liboctave/util/oct-rl-hist.c Examining data/octave-5.2.0/liboctave/util/oct-rl-hist.h Examining data/octave-5.2.0/liboctave/util/oct-shlib.cc Examining data/octave-5.2.0/liboctave/util/oct-shlib.h Examining data/octave-5.2.0/liboctave/util/oct-sort.cc Examining data/octave-5.2.0/liboctave/util/oct-sort.h Examining data/octave-5.2.0/liboctave/util/oct-sparse.cc Examining data/octave-5.2.0/liboctave/util/oct-sparse.h Examining data/octave-5.2.0/liboctave/util/oct-string.cc Examining data/octave-5.2.0/liboctave/util/oct-string.h Examining data/octave-5.2.0/liboctave/util/octave-preserve-stream-state.h Examining data/octave-5.2.0/liboctave/util/pathsearch.cc Examining data/octave-5.2.0/liboctave/util/pathsearch.h Examining data/octave-5.2.0/liboctave/util/quit.cc Examining data/octave-5.2.0/liboctave/util/quit.h Examining data/octave-5.2.0/liboctave/util/singleton-cleanup.cc Examining data/octave-5.2.0/liboctave/util/singleton-cleanup.h Examining data/octave-5.2.0/liboctave/util/sparse-sort.cc Examining data/octave-5.2.0/liboctave/util/sparse-sort.h Examining data/octave-5.2.0/liboctave/util/sparse-util.cc Examining data/octave-5.2.0/liboctave/util/sparse-util.h Examining data/octave-5.2.0/liboctave/util/str-vec.cc Examining data/octave-5.2.0/liboctave/util/str-vec.h Examining data/octave-5.2.0/liboctave/util/unwind-prot.cc Examining data/octave-5.2.0/liboctave/util/unwind-prot.h Examining data/octave-5.2.0/liboctave/util/url-transfer.cc Examining data/octave-5.2.0/liboctave/util/url-transfer.h Examining data/octave-5.2.0/liboctave/version.cc Examining data/octave-5.2.0/liboctave/version.in.h Examining data/octave-5.2.0/liboctave/wrappers/areadlink-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/areadlink-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/async-system-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/async-system-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/base64-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/base64-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/canonicalize-file-name-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/canonicalize-file-name-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/dirent-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/dirent-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/fcntl-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/fcntl-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/filepos-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/filepos-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/fpucw-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/fpucw-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/gen-tempname-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/gen-tempname-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/getopt-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/getopt-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/glob-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/glob-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/hash-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/hash-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/iconv-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/iconv-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/localcharset-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/localcharset-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/math-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/math-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/mkostemp-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/mkostemp-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/mkostemps-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/mkostemps-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/nanosleep-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/nanosleep-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/nproc-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/nproc-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/octave-popen2.c Examining data/octave-5.2.0/liboctave/wrappers/octave-popen2.h Examining data/octave-5.2.0/liboctave/wrappers/putenv-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/putenv-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/set-program-name-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/set-program-name-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/signal-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/signal-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/stat-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/stat-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/strdup-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/strdup-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/strftime-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/strftime-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/strmode-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/strmode-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/strptime-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/strptime-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/time-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/time-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/tmpfile-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/tmpfile-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/uname-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/uname-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/unicase-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/unicase-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/uniconv-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/uniconv-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/unictype-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/unictype-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/unistd-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/unistd-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/unistr-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/unistr-wrappers.h Examining data/octave-5.2.0/liboctave/wrappers/unsetenv-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/unsetenv-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/vasprintf-wrapper.c Examining data/octave-5.2.0/liboctave/wrappers/vasprintf-wrapper.h Examining data/octave-5.2.0/liboctave/wrappers/wait-for-input.c Examining data/octave-5.2.0/liboctave/wrappers/wait-for-input.h Examining data/octave-5.2.0/liboctave/wrappers/wait-wrappers.c Examining data/octave-5.2.0/liboctave/wrappers/wait-wrappers.h Examining data/octave-5.2.0/oct-conf-post.in.h Examining data/octave-5.2.0/src/display-available.c Examining data/octave-5.2.0/src/display-available.h Examining data/octave-5.2.0/src/main-cli.cc Examining data/octave-5.2.0/src/main-gui.cc Examining data/octave-5.2.0/src/mkoctfile.in.cc Examining data/octave-5.2.0/src/octave-build-info.h Examining data/octave-5.2.0/src/octave-build-info.in.cc Examining data/octave-5.2.0/src/octave-config.in.cc Examining data/octave-5.2.0/src/octave-svgconvert.cc Examining data/octave-5.2.0/src/shared-fcns.h Examining data/octave-5.2.0/src/main.in.cc Examining data/octave-5.2.0/test/mex/bug_51725.c Examining data/octave-5.2.0/test/mex/bug_54096.c FINAL RESULTS: data/octave-5.2.0/libgnu/areadlink-with-size.c:74:11: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. r = readlink (file, buffer, buf_size); data/octave-5.2.0/libgnu/areadlink.c:43:10: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. return readlink (filename, buffer, buffer_size); data/octave-5.2.0/libgnu/readlink.c:32:1: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. readlink (const char *name, char *buf _GL_UNUSED, data/octave-5.2.0/libgnu/readlink.c:47:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # undef readlink data/octave-5.2.0/libgnu/readlink.c:71:10: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. return readlink (name, buf, bufsize); data/octave-5.2.0/libgnu/stdio.in.h:745:8: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. #undef gets data/octave-5.2.0/libgnu/stdio.in.h:747:18: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); data/octave-5.2.0/libgnu/sys_stat.in.h:507:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. # define lchmod chmod data/octave-5.2.0/libgnu/sys_stat.in.h:511:34: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. _GL_CXXALIAS_RPL_CAST_1 (lchmod, chmod, int, data/octave-5.2.0/libgnu/unistd.in.h:263:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - " data/octave-5.2.0/libgnu/unistd.in.h:277:11: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/octave-5.2.0/libgnu/unistd.in.h:278:12: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # define chown rpl_chown data/octave-5.2.0/libgnu/unistd.in.h:280:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) data/octave-5.2.0/libgnu/unistd.in.h:282:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); data/octave-5.2.0/libgnu/unistd.in.h:285:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) data/octave-5.2.0/libgnu/unistd.in.h:288:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); data/octave-5.2.0/libgnu/unistd.in.h:290:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIASWARN (chown); data/octave-5.2.0/libgnu/unistd.in.h:292:9: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/octave-5.2.0/libgnu/unistd.in.h:294:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " data/octave-5.2.0/libgnu/unistd.in.h:1321:12: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # define readlink rpl_readlink data/octave-5.2.0/libgnu/unistd.in.h:1323:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_FUNCDECL_RPL (readlink, ssize_t, data/octave-5.2.0/libgnu/unistd.in.h:1326:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIAS_RPL (readlink, ssize_t, data/octave-5.2.0/libgnu/unistd.in.h:1330:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_FUNCDECL_SYS (readlink, ssize_t, data/octave-5.2.0/libgnu/unistd.in.h:1334:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIAS_SYS (readlink, ssize_t, data/octave-5.2.0/libgnu/unistd.in.h:1337:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIASWARN (readlink); data/octave-5.2.0/libgnu/unistd.in.h:1339:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # undef readlink data/octave-5.2.0/libgnu/unistd.in.h:1341:18: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_WARN_ON_USE (readlink, "readlink is unportable - " data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:321:9: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (!chown(d->ttyName.data(), getuid(), gid)) { data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:322:4: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(d->ttyName.data(), S_IRUSR|S_IWUSR|S_IWGRP); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:417:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. if (!chown(d->ttyName.data(), 0, st.st_gid == getgid() ? 0 : -1)) { data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:418:15: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(d->ttyName.data(), S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); data/octave-5.2.0/libinterp/corefcn/dirfns.cc:404:29: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. int status = octave::sys::readlink (symlink, result, msg); data/octave-5.2.0/libinterp/corefcn/file-io.cc:356:24: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. std::string tmp = os.gets (len_arg, err, who); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:4099:16: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. base_stream::gets (octave_idx_type max_len, bool& err, data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:6044:11: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. stream::gets (octave_idx_type max_len, bool& err, const std::string& who) data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:6049:21: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. retval = rep->gets (max_len, err, who); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:6055:11: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. stream::gets (const octave_value& tc_max_len, bool& err, data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:6075:12: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. return gets (max_len, err, who); data/octave-5.2.0/libinterp/corefcn/oct-stream.h:197:17: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. std::string gets (octave_idx_type max_len, bool& err, data/octave-5.2.0/libinterp/corefcn/oct-stream.h:264:17: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. std::string gets (octave_idx_type max_len, bool& err, data/octave-5.2.0/libinterp/corefcn/oct-stream.h:266:17: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. std::string gets (const octave_value& max_len, bool& err, data/octave-5.2.0/liboctave/system/file-ops.cc:472:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. int readlink (const std::string& path, std::string& result) data/octave-5.2.0/liboctave/system/file-ops.cc:475:14: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. return readlink (path, result, msg); data/octave-5.2.0/liboctave/system/file-ops.cc:478:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. int readlink (const std::string& path, std::string& result, std::string& msg) data/octave-5.2.0/liboctave/system/file-ops.h:138:5: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. readlink (const std::string&, std::string&); data/octave-5.2.0/liboctave/system/file-ops.h:141:5: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. readlink (const std::string&, std::string&, std::string&); data/octave-5.2.0/libgnu/chdir-long.c:249:7: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp (cmd, (char *) NULL); data/octave-5.2.0/libgnu/error.c:274:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (stderr, message, args); data/octave-5.2.0/libgnu/error.c:389:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, file_name != NULL ? "%s:%u: " : " ", data/octave-5.2.0/libgnu/fnmatch.c:165:23: [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). # define STRCAT(D, S) strcat (D, S) data/octave-5.2.0/libgnu/fnmatch.c:195:25: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). # define STRCAT(D, S) wcscat (D, S) data/octave-5.2.0/libgnu/getlogin_r.c:35:14: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. extern char *getlogin (void); data/octave-5.2.0/libgnu/getlogin_r.c:96:7: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. n = getlogin (); data/octave-5.2.0/libgnu/getopt.c:40:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define fprintf __fxprintf_nocancel data/octave-5.2.0/libgnu/localcharset.c:778:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "CP%s", pdot + 1); data/octave-5.2.0/libgnu/openat-proc.c:88:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (dotdot_buf, PROC_SELF_FD_FORMAT "../fd", proc_self_fd); data/octave-5.2.0/libgnu/openat-proc.c:89:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. proc_status = access (dotdot_buf, F_OK) ? -1 : 1; data/octave-5.2.0/libgnu/openat-proc.c:106:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. dirlen = sprintf (result, PROC_SELF_FD_FORMAT, fd); data/octave-5.2.0/libgnu/openat-proc.c:127: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 (result, dir); data/octave-5.2.0/libgnu/openat-proc.c:132:3: [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 (result + dirlen, file); data/octave-5.2.0/libgnu/opendir.c:151:3: [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 (dirp->dir_name_mask, dir_name_mask); data/octave-5.2.0/libgnu/snprintf.c:37:1: [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. snprintf (char *str, size_t size, const char *format, ...) data/octave-5.2.0/libgnu/stdio.in.h:304:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define fprintf rpl_fprintf data/octave-5.2.0/libgnu/stdio.in.h:308:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) data/octave-5.2.0/libgnu/stdio.in.h:312:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) data/octave-5.2.0/libgnu/stdio.in.h:316:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:318:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:320:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (fprintf); data/octave-5.2.0/libgnu/stdio.in.h:324:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef fprintf data/octave-5.2.0/libgnu/stdio.in.h:327:18: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " data/octave-5.2.0/libgnu/stdio.in.h:431:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef fscanf data/octave-5.2.0/libgnu/stdio.in.h:432:12: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define fscanf rpl_fscanf data/octave-5.2.0/libgnu/stdio.in.h:434:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (fscanf, int, (FILE *stream, const char *format, ...) data/octave-5.2.0/libgnu/stdio.in.h:437:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (fscanf, int, (FILE *stream, const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:439:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (fscanf, int, (FILE *stream, const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:441:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (fscanf); data/octave-5.2.0/libgnu/stdio.in.h:839:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef popen data/octave-5.2.0/libgnu/stdio.in.h:840:12: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # define popen rpl_popen data/octave-5.2.0/libgnu/stdio.in.h:842:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) data/octave-5.2.0/libgnu/stdio.in.h:844:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); data/octave-5.2.0/libgnu/stdio.in.h:847:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) data/octave-5.2.0/libgnu/stdio.in.h:850:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); data/octave-5.2.0/libgnu/stdio.in.h:852:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIASWARN (popen); data/octave-5.2.0/libgnu/stdio.in.h:854:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef popen data/octave-5.2.0/libgnu/stdio.in.h:856:18: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " data/octave-5.2.0/libgnu/stdio.in.h:867:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf __printf__ data/octave-5.2.0/libgnu/stdio.in.h:884: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. _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:887:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf rpl_printf data/octave-5.2.0/libgnu/stdio.in.h:889:19: [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. _GL_FUNCDECL_RPL (printf, int, data/octave-5.2.0/libgnu/stdio.in.h:893:19: [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. _GL_CXXALIAS_RPL (printf, int, (const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:897:19: [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. _GL_CXXALIAS_SYS (printf, int, (const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:899:19: [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. _GL_CXXALIASWARN (printf); data/octave-5.2.0/libgnu/stdio.in.h:903:10: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef printf data/octave-5.2.0/libgnu/stdio.in.h:906:18: [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. _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " data/octave-5.2.0/libgnu/stdio.in.h:1028:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/octave-5.2.0/libgnu/stdio.in.h:1030:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf __scanf__ data/octave-5.2.0/libgnu/stdio.in.h:1038:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:1041:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/octave-5.2.0/libgnu/stdio.in.h:1042:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf rpl_scanf data/octave-5.2.0/libgnu/stdio.in.h:1044:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...) data/octave-5.2.0/libgnu/stdio.in.h:1047:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:1050:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:1052:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (scanf); data/octave-5.2.0/libgnu/stdio.in.h:1058:12: [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 rpl_snprintf data/octave-5.2.0/libgnu/stdio.in.h:1060:19: [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. _GL_FUNCDECL_RPL (snprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1064:19: [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. _GL_CXXALIAS_RPL (snprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1068:19: [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. _GL_FUNCDECL_SYS (snprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1073:19: [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. _GL_CXXALIAS_SYS (snprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1076:19: [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. _GL_CXXALIASWARN (snprintf); data/octave-5.2.0/libgnu/stdio.in.h:1078: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. # undef snprintf data/octave-5.2.0/libgnu/stdio.in.h:1080: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. _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " data/octave-5.2.0/libgnu/stdio.in.h:1097:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define sprintf rpl_sprintf data/octave-5.2.0/libgnu/stdio.in.h:1099:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...) data/octave-5.2.0/libgnu/stdio.in.h:1102:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:1104:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...)); data/octave-5.2.0/libgnu/stdio.in.h:1106:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (sprintf); data/octave-5.2.0/libgnu/stdio.in.h:1108:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef sprintf data/octave-5.2.0/libgnu/stdio.in.h:1110:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " data/octave-5.2.0/libgnu/stdio.in.h:1216:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define vfprintf rpl_vfprintf data/octave-5.2.0/libgnu/stdio.in.h:1220:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) data/octave-5.2.0/libgnu/stdio.in.h:1224:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) data/octave-5.2.0/libgnu/stdio.in.h:1228:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)); data/octave-5.2.0/libgnu/stdio.in.h:1233:24: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS_CAST (vfprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1236:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (vfprintf); data/octave-5.2.0/libgnu/stdio.in.h:1240:10: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef vfprintf data/octave-5.2.0/libgnu/stdio.in.h:1243:18: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " data/octave-5.2.0/libgnu/stdio.in.h:1251:11: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vfscanf data/octave-5.2.0/libgnu/stdio.in.h:1252:12: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vfscanf rpl_vfscanf data/octave-5.2.0/libgnu/stdio.in.h:1254:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vfscanf, int, data/octave-5.2.0/libgnu/stdio.in.h:1258:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vfscanf, int, data/octave-5.2.0/libgnu/stdio.in.h:1261:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vfscanf, int, data/octave-5.2.0/libgnu/stdio.in.h:1264:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vfscanf); data/octave-5.2.0/libgnu/stdio.in.h:1271:12: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define vprintf rpl_vprintf data/octave-5.2.0/libgnu/stdio.in.h:1275:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) data/octave-5.2.0/libgnu/stdio.in.h:1279:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) data/octave-5.2.0/libgnu/stdio.in.h:1283:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args)); data/octave-5.2.0/libgnu/stdio.in.h:1288:24: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args)); data/octave-5.2.0/libgnu/stdio.in.h:1290:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (vprintf); data/octave-5.2.0/libgnu/stdio.in.h:1294:10: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef vprintf data/octave-5.2.0/libgnu/stdio.in.h:1297:18: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " data/octave-5.2.0/libgnu/stdio.in.h:1305:11: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vscanf data/octave-5.2.0/libgnu/stdio.in.h:1306:12: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vscanf rpl_vscanf data/octave-5.2.0/libgnu/stdio.in.h:1308:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vscanf, int, (const char *format, va_list args) data/octave-5.2.0/libgnu/stdio.in.h:1311:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vscanf, int, (const char *format, va_list args)); data/octave-5.2.0/libgnu/stdio.in.h:1313:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vscanf, int, (const char *format, va_list args)); data/octave-5.2.0/libgnu/stdio.in.h:1315:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vscanf); data/octave-5.2.0/libgnu/stdio.in.h:1321:12: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf rpl_vsnprintf data/octave-5.2.0/libgnu/stdio.in.h:1323:19: [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. _GL_FUNCDECL_RPL (vsnprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1327:19: [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. _GL_CXXALIAS_RPL (vsnprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1331:19: [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. _GL_FUNCDECL_SYS (vsnprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1336:19: [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. _GL_CXXALIAS_SYS (vsnprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1339:19: [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. _GL_CXXALIASWARN (vsnprintf); data/octave-5.2.0/libgnu/stdio.in.h:1341: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. # undef vsnprintf data/octave-5.2.0/libgnu/stdio.in.h:1343: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. _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " data/octave-5.2.0/libgnu/stdio.in.h:1351:12: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define vsprintf rpl_vsprintf data/octave-5.2.0/libgnu/stdio.in.h:1353:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (vsprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1357:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (vsprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1363:24: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS_CAST (vsprintf, int, data/octave-5.2.0/libgnu/stdio.in.h:1366:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (vsprintf); data/octave-5.2.0/libgnu/stdio.in.h:1368:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef vsprintf data/octave-5.2.0/libgnu/stdio.in.h:1370:18: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " data/octave-5.2.0/libgnu/strerror.c:33:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/octave-5.2.0/libgnu/strerror.c:59:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf, fmt, n); data/octave-5.2.0/libgnu/strsignal.c:47:21: [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/octave-5.2.0/libgnu/tmpdir.c:157:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (tmpl + dlen, &"/%.*sXXXXXX"[!add_slash], (int) plen, pfx); data/octave-5.2.0/libgnu/uname.c:117:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf->sysname, "MINGW32_%s-%u.%u", super_version, data/octave-5.2.0/libgnu/uname.c:121:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf->sysname, "Windows%s", super_version); data/octave-5.2.0/libgnu/uname.c:173:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf->release, "%s %u.%u", data/octave-5.2.0/libgnu/uname.c:178: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 (buf->release, base); data/octave-5.2.0/libgnu/uname.c:190:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf->release, "Windows %s", super_version); data/octave-5.2.0/libgnu/uname.c:192:3: [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 (buf->version, version.szCSDVersion); data/octave-5.2.0/libgnu/unistd.in.h:252:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_WARN_ON_USE (access, "the access function is a security risk - " data/octave-5.2.0/libgnu/unistd.in.h:802:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_FUNCDECL_SYS (getlogin, char *, (void)); data/octave-5.2.0/libgnu/unistd.in.h:804:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIAS_SYS (getlogin, char *, (void)); data/octave-5.2.0/libgnu/unistd.in.h:805:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIASWARN (getlogin); data/octave-5.2.0/libgnu/unistd.in.h:807:9: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. # undef getlogin data/octave-5.2.0/libgnu/unistd.in.h:809:18: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_WARN_ON_USE (getlogin, "getlogin is unportable - " data/octave-5.2.0/libgnu/unistd.in.h:945:11: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # undef getpass data/octave-5.2.0/libgnu/unistd.in.h:946:12: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # define getpass rpl_getpass data/octave-5.2.0/libgnu/unistd.in.h:948:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_FUNCDECL_RPL (getpass, char *, (const char *prompt) data/octave-5.2.0/libgnu/unistd.in.h:950:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIAS_RPL (getpass, char *, (const char *prompt)); data/octave-5.2.0/libgnu/unistd.in.h:953:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_FUNCDECL_SYS (getpass, char *, (const char *prompt) data/octave-5.2.0/libgnu/unistd.in.h:956:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIAS_SYS (getpass, char *, (const char *prompt)); data/octave-5.2.0/libgnu/unistd.in.h:958:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIASWARN (getpass); data/octave-5.2.0/libgnu/unistd.in.h:960:9: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # undef getpass data/octave-5.2.0/libgnu/unistd.in.h:962:18: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_WARN_ON_USE (getpass, "getpass is unportable - " data/octave-5.2.0/libgnu/vasnprintf.c:171:20: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define SNPRINTF swprintf data/octave-5.2.0/libgnu/vasnprintf.c:189:21: [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/octave-5.2.0/libgnu/vasnprintf.c:191:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/octave-5.2.0/libgnu/vasnprintf.c:194:21: [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/octave-5.2.0/libgnu/vasnprintf.c:199:20: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF snprintf data/octave-5.2.0/libgnu/vasnprintf.c:201:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/octave-5.2.0/libgnu/vasnprintf.c:205:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/octave-5.2.0/libgnu/vasnprintf.c:4269:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/octave-5.2.0/libgnu/vasnprintf.c:4277:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/octave-5.2.0/libgnu/vasnprintf.c:4462:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/octave-5.2.0/libgnu/vasnprintf.c:4470:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/octave-5.2.0/libgnu/vasnprintf.c:4992:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/octave-5.2.0/libgnu/vasnprintf.c:4995:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/octave-5.2.0/libgnu/vasnprintf.c:4998:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/octave-5.2.0/libgnu/wchar.in.h:607:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_FUNCDECL_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/octave-5.2.0/libgnu/wchar.in.h:609:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIAS_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/octave-5.2.0/libgnu/wchar.in.h:610:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIASWARN (wcscpy); data/octave-5.2.0/libgnu/wchar.in.h:612:9: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. # undef wcscpy data/octave-5.2.0/libgnu/wchar.in.h:614:18: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - " data/octave-5.2.0/libgnu/wchar.in.h:676:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/octave-5.2.0/libgnu/wchar.in.h:678:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/octave-5.2.0/libgnu/wchar.in.h:679:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcscat); data/octave-5.2.0/libgnu/wchar.in.h:681:9: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). # undef wcscat data/octave-5.2.0/libgnu/wchar.in.h:683:18: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcscat, "wcscat is unportable - " data/octave-5.2.0/libgui/graphics/Logger.cc:82:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (stderr, fmt, arg); data/octave-5.2.0/libgui/graphics/Table.cc:358:19: [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. int error = sscanf (c_str, format, &val, &n); \ data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalView.cpp:1031:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sizeStr.sprintf("Size: %d x %d", _columns, _lines); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:294:27: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. ptyName = QString().sprintf("/dev/pty%c%c", *s3, *s4).toAscii(); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:295:30: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. d->ttyName = QString().sprintf("/dev/tty%c%c", *s3, *s4).toAscii(); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:312:14: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access(d->ttyName.data(),R_OK|W_OK)) // checks availability based on permission bits data/octave-5.2.0/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp:978:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (flog, fmt, l); data/octave-5.2.0/libgui/src/resource-manager.cc:124:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. language = QLocale::system ().name (); // get system wide locale data/octave-5.2.0/libinterp/corefcn/data.cc:6475:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. double sys = cpu_tm.system (); data/octave-5.2.0/libinterp/corefcn/file-io.cc:807:15: [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. result = os.printf (args(fmt_n), tmp_args, who); data/octave-5.2.0/libinterp/corefcn/file-io.cc:815:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. DEFMETHOD (fprintf, interp, args, nargout, data/octave-5.2.0/libinterp/corefcn/file-io.cc:839:12: [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. DEFMETHOD (printf, interp, args, nargout, data/octave-5.2.0/libinterp/corefcn/file-io.cc:918:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. DEFUN (sprintf, args, , data/octave-5.2.0/libinterp/corefcn/file-io.cc:969:18: [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. retval(2) = os.printf (fmt_arg, tmp_args, who); data/octave-5.2.0/libinterp/corefcn/file-io.cc:1012:29: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. octave_value tmp = os.scanf (args(1), size, count, who); data/octave-5.2.0/libinterp/corefcn/file-io.cc:1020:12: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. DEFMETHOD (fscanf, interp, args, , data/octave-5.2.0/libinterp/corefcn/file-io.cc:1090:8: [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. DEFUN (sscanf, args, , data/octave-5.2.0/libinterp/corefcn/file-io.cc:1134:29: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. octave_value tmp = os.scanf (args(1), size, count, who); data/octave-5.2.0/libinterp/corefcn/file-io.cc:1148:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. DEFMETHOD (scanf, interp, args, , data/octave-5.2.0/libinterp/corefcn/file-io.cc:2952:3: [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 (tmp, tmpl8.c_str ()); data/octave-5.2.0/libinterp/corefcn/gl2ps-print.cc:497:30: [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). std::strcpy (str, srchstr.c_str ()); data/octave-5.2.0/libinterp/corefcn/gl2ps-print.cc:1157:22: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. fp = octave::popen (cmd.c_str (), "w"); data/octave-5.2.0/libinterp/corefcn/input.cc:509:33: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. m_mfile_encoding = "system"; data/octave-5.2.0/libinterp/corefcn/input.cc:520:64: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. std::string encoding = (m_mfile_encoding.compare ("system") == 0) data/octave-5.2.0/libinterp/corefcn/input.cc:1103:35: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. = (mfile_encoding.compare ("system") == 0 data/octave-5.2.0/libinterp/corefcn/mex.cc:893: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 (class_name, name_arg); data/octave-5.2.0/libinterp/corefcn/mex.cc:3413:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmpfmt, "%s: %s", fname, fmt); data/octave-5.2.0/libinterp/corefcn/mex.cc:3461:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmpfmt, "%s: %s", fname, fmt); data/octave-5.2.0/libinterp/corefcn/mxarray.in.h:539:11: [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 (retval, str); data/octave-5.2.0/libinterp/corefcn/oct-hist.cc:88: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 (tmp_line, line); data/octave-5.2.0/libinterp/corefcn/oct-hist.cc:112: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 (tmp_line, line); data/octave-5.2.0/libinterp/corefcn/oct-prcstrm.cc:42:36: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. : octave_stdiostream (n, octave::popen (n.c_str (), "r"), data/octave-5.2.0/libinterp/corefcn/oct-prcstrm.cc:61:36: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. : octave_stdiostream (n, octave::popen (n.c_str (), "w"), data/octave-5.2.0/libinterp/corefcn/oct-procbuf.cc:81:16: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. f = (octave::popen (command, (mode & std::ios::in) ? "r" : "w")); data/octave-5.2.0/libinterp/corefcn/oct-procbuf.cc:147:7: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl (SHELL_PATH, "sh", "-c", command, static_cast<void *> (nullptr)); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:4969:16: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. base_stream::scanf (const std::string& fmt, const Array<double>& size, data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:5889:16: [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. base_stream::printf (const std::string& fmt, data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:7047:11: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. stream::scanf (const std::string& fmt, const Array<double>& size, data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:7053:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. retval = rep->scanf (fmt, size, count, who); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:7059:11: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. stream::scanf (const octave_value& fmt, const Array<double>& size, data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:7071:18: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. retval = scanf (sfmt, size, count, who); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:7127:11: [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. stream::printf (const std::string& fmt, const octave_value_list& args, data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:7133: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. retval = rep->printf (fmt, args, who); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:7139:11: [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. stream::printf (const octave_value& fmt, const octave_value_list& args, data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:7151:18: [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. retval = printf (sfmt, args, who); data/octave-5.2.0/libinterp/corefcn/oct-stream.h:206:18: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. octave_value scanf (const std::string& fmt, const Array<double>& size, data/octave-5.2.0/libinterp/corefcn/oct-stream.h:232:9: [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. int printf (const std::string& fmt, const octave_value_list& args, data/octave-5.2.0/libinterp/corefcn/oct-stream.h:305:18: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. octave_value scanf (const std::string& fmt, const Array<double>& size, data/octave-5.2.0/libinterp/corefcn/oct-stream.h:308:18: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. octave_value scanf (const octave_value& fmt, const Array<double>& size, data/octave-5.2.0/libinterp/corefcn/oct-stream.h:321:9: [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. int printf (const std::string& fmt, const octave_value_list& args, data/octave-5.2.0/libinterp/corefcn/oct-stream.h:324:9: [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. int printf (const octave_value& fmt, const octave_value_list& args, data/octave-5.2.0/libinterp/corefcn/oct-tex-parser.cc:703:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/octave-5.2.0/libinterp/corefcn/symtab.cc:581:79: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. error (R"(ignore_function_time_stamp: argument must be one of "all", "system", or "none")"); data/octave-5.2.0/libinterp/corefcn/syscalls.cc:203:29: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int status = octave::sys::execvp (exec_file, exec_args, msg); data/octave-5.2.0/libinterp/corefcn/sysdep.cc:517:10: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE * popen (const char *command, const char *mode) data/octave-5.2.0/libinterp/corefcn/sysdep.cc:537:14: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return ::popen (command, mode); data/octave-5.2.0/libinterp/corefcn/sysdep.h:45:31: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. extern OCTINTERP_API FILE * popen (const char *command, const char *mode); data/octave-5.2.0/libinterp/corefcn/sysdep.h:91:18: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return octave::popen (command, mode); data/octave-5.2.0/libinterp/corefcn/toplev.cc:177:8: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. DEFUN (system, args, nargout, data/octave-5.2.0/libinterp/corefcn/toplev.cc:295:20: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int status = system (cmd_str.c_str ()); data/octave-5.2.0/libinterp/dldfcn/__delaunayn__.cc:164:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (flags, "qhull d %s", options.c_str ()); data/octave-5.2.0/libinterp/dldfcn/__voronoi__.cc:179:3: [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 (cmd_str, cmd.c_str ()); data/octave-5.2.0/libinterp/dldfcn/amd.cc:156:53: [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. SUITESPARSE_ASSIGN_FPTR (printf_func, amd_printf, printf); data/octave-5.2.0/libinterp/dldfcn/audiodevinfo.cc:175:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (name, "%s (%s)", device_info->name, driver); data/octave-5.2.0/libinterp/dldfcn/convhulln.cc:194:3: [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 (cmd_str, cmd.c_str ()); data/octave-5.2.0/libinterp/dldfcn/gzip.cc:270:14: [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). std::strcpy (reinterpret_cast<char *> (p), str.c_str ()); data/octave-5.2.0/libinterp/parse-tree/oct-parse.cc:1484:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/octave-5.2.0/liboctave/external/Faddeeva/Faddeeva.cc:2222:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(#f "(%g%+gi) = %g%+gi (vs. %g%+gi), re/im rel. err. = %0.2g/%0.2g)\n", \ data/octave-5.2.0/liboctave/system/file-ops.cc:672:7: [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 (tname, templatename.c_str ()); data/octave-5.2.0/liboctave/system/lo-sysdep.cc:175:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (new_item, "%s=%s", name.c_str (), value.c_str ()); data/octave-5.2.0/liboctave/system/oct-syscalls.cc:72:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp (const std::string& file, const string_vector& argv) data/octave-5.2.0/liboctave/system/oct-syscalls.cc:75:19: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return sys::execvp (file, argv, msg); data/octave-5.2.0/liboctave/system/oct-syscalls.cc:79:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp (const std::string& file, const string_vector& args, data/octave-5.2.0/liboctave/system/oct-syscalls.h:41:27: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. extern OCTAVE_API int execvp (const std::string&, const string_vector&); data/octave-5.2.0/liboctave/system/oct-syscalls.h:42:27: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. extern OCTAVE_API int execvp (const std::string&, const string_vector&, data/octave-5.2.0/liboctave/system/oct-time.h:423:14: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. double system (void) const data/octave-5.2.0/liboctave/util/cmd-edit.cc:837:11: [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 (retval, tmp.c_str ()); data/octave-5.2.0/liboctave/util/cmd-edit.cc:859:11: [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 (retval, tmp.c_str ()); data/octave-5.2.0/liboctave/util/cmd-edit.cc:881:11: [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 (retval, tmp.c_str ()); data/octave-5.2.0/liboctave/util/lo-error.c:58:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (stderr, fmt, args); data/octave-5.2.0/liboctave/util/lo-utils.cc:83: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). tmp = strcpy (tmp, s); data/octave-5.2.0/liboctave/util/oct-rl-edit.c:48: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 (ss, s) data/octave-5.2.0/liboctave/util/oct-rl-hist.c:294:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmp, "%5d %s", i + history_base, data/octave-5.2.0/liboctave/util/oct-rl-hist.c:297:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (tmp, line ? line : ""); data/octave-5.2.0/liboctave/util/sparse-util.cc:78:18: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. int ret = std::vfprintf (stderr, fmt, args); data/octave-5.2.0/liboctave/wrappers/async-system-wrapper.c:61:3: [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 (xcmd, cmd); data/octave-5.2.0/liboctave/wrappers/async-system-wrapper.c:80:5: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl (SHELL_PATH, "sh", "-c", cmd, (char *) (0)); data/octave-5.2.0/liboctave/wrappers/octave-popen2.c:73:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (command, "\"%s\"", cmd); data/octave-5.2.0/liboctave/wrappers/octave-popen2.c:77:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (command, "%s \"%s\"", command, *argp); data/octave-5.2.0/liboctave/wrappers/octave-popen2.c:200:19: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (execvp (cmd, args) < 0) data/octave-5.2.0/liboctave/wrappers/unistd-wrappers.c:76:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return access (nm, mode); data/octave-5.2.0/liboctave/wrappers/unistd-wrappers.c:265:10: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return execv (file, argv); data/octave-5.2.0/liboctave/wrappers/unistd-wrappers.c:273:10: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return execvp (file, argv); data/octave-5.2.0/oct-conf-post.in.h:66:33: [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. __attribute__ ((__format__(printf, index, first))) data/octave-5.2.0/src/main.in.cc:197: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). tmp = strcpy (tmp, s); data/octave-5.2.0/src/mkoctfile.in.cc:543:16: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int result = system (cmd.c_str ()); data/octave-5.2.0/src/mkoctfile.in.cc:604:11: [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). ctmpl = strcpy (ctmpl, tmpl.c_str ()); data/octave-5.2.0/src/mkoctfile.in.cc:892:22: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *fd = popen (cmd.c_str (), "r"); data/octave-5.2.0/src/mkoctfile.in.cc:926:22: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *fd = popen (cmd.c_str (), "r"); data/octave-5.2.0/src/shared-fcns.h:38:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # define popen _popen data/octave-5.2.0/libgnu/fnmatch_loop.c:209: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. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/octave-5.2.0/libgnu/fnmatch_loop.c:999:29: [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. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/octave-5.2.0/libgnu/fnmatch_loop.c:1052:29: [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. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/octave-5.2.0/libgnu/getopt-core.h:91:12: [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. extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) data/octave-5.2.0/libgnu/getopt-ext.h:66:12: [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. extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv, data/octave-5.2.0/libgnu/getopt-pfx-core.h:40:9: [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. # undef getopt data/octave-5.2.0/libgnu/getopt-pfx-core.h:45: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. # define getopt __GETOPT_ID (getopt) data/octave-5.2.0/libgnu/getopt-pfx-core.h:45:30: [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. # define getopt __GETOPT_ID (getopt) data/octave-5.2.0/libgnu/getopt-pfx-ext.h:40:9: [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. # undef getopt_long data/octave-5.2.0/libgnu/getopt-pfx-ext.h:44:10: [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. # define getopt_long __GETOPT_ID (getopt_long) data/octave-5.2.0/libgnu/getopt-pfx-ext.h:44:35: [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. # define getopt_long __GETOPT_ID (getopt_long) data/octave-5.2.0/libgnu/getopt.c:405: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. else if (posixly_correct || !!getenv ("POSIXLY_CORRECT")) data/octave-5.2.0/libgnu/getopt.c:736:14: [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. GETOPT_ENTRY(getopt, 0) data/octave-5.2.0/libgnu/getopt.c:739:14: [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. GETOPT_ENTRY(getopt, 1) data/octave-5.2.0/libgnu/getopt.c:758:11: [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. c = getopt (argc, argv, "abc:d:0123456789"); data/octave-5.2.0/libgnu/getopt1.c:28:1: [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. getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, data/octave-5.2.0/libgnu/getopt1.c:94:11: [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. c = getopt_long (argc, argv, "abc:d:0123456789", data/octave-5.2.0/libgnu/gettimeofday.c:48:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE kernel32 = LoadLibrary ("kernel32.dll"); data/octave-5.2.0/libgnu/glob.c:594:28: [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 *home_dir = getenv ("HOME"); data/octave-5.2.0/libgnu/glob.c:601:40: [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 *home_drive = getenv ("HOMEDRIVE"); data/octave-5.2.0/libgnu/glob.c:602:39: [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 *home_path = getenv ("HOMEPATH"); data/octave-5.2.0/libgnu/glthread/lock.c:801:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/octave-5.2.0/libgnu/glthread/lock.c:819:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/octave-5.2.0/libgnu/glthread/lock.c:938:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/octave-5.2.0/libgnu/glthread/lock.c:959:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/octave-5.2.0/libgnu/glthread/lock.c:991:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/octave-5.2.0/libgnu/glthread/lock.c:1015:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/octave-5.2.0/libgnu/glthread/lock.c:1044:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/octave-5.2.0/libgnu/glthread/lock.c:1059:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/octave-5.2.0/libgnu/glthread/lock.c:1121:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/octave-5.2.0/libgnu/glthread/lock.c:1143:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/octave-5.2.0/libgnu/glthread/lock.c:1190:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&once_control->lock); data/octave-5.2.0/libgnu/glthread/lock.c:1191:11: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/octave-5.2.0/libgnu/glthread/lock.c:1210:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/octave-5.2.0/libgnu/localcharset.c:707:16: [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. locale = getenv ("LC_ALL"); data/octave-5.2.0/libgnu/localcharset.c:710: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. locale = getenv ("LC_CTYPE"); data/octave-5.2.0/libgnu/localcharset.c:712:22: [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. locale = getenv ("LANG"); data/octave-5.2.0/libgnu/localcharset.c:803:12: [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. locale = getenv ("LC_ALL"); data/octave-5.2.0/libgnu/localcharset.c:806:16: [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. locale = getenv ("LC_CTYPE"); data/octave-5.2.0/libgnu/localcharset.c:808:18: [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. locale = getenv ("LANG"); data/octave-5.2.0/libgnu/localcharset.c:927:16: [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. locale = getenv ("LC_ALL"); data/octave-5.2.0/libgnu/localcharset.c:930: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. locale = getenv ("LC_CTYPE"); data/octave-5.2.0/libgnu/localcharset.c:932:22: [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. locale = getenv ("LANG"); data/octave-5.2.0/libgnu/mktime.c:94: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. const char *tz = getenv ("TZ"); data/octave-5.2.0/libgnu/nproc.c:380:44: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. omp_env_threads = parse_omp_threads (getenv ("OMP_NUM_THREADS")); data/octave-5.2.0/libgnu/nproc.c:381:42: [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. omp_env_limit = parse_omp_threads (getenv ("OMP_THREAD_LIMIT")); data/octave-5.2.0/libgnu/secure_getenv.c:36: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. return getenv (name); data/octave-5.2.0/libgnu/secure_getenv.c:40: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. return getenv (name); data/octave-5.2.0/libgnu/secure_getenv.c:50: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. return getenv (name); data/octave-5.2.0/libgnu/setenv.c:372:19: [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 *tmp = getenv (name); data/octave-5.2.0/libgnu/stat-w32.c:64:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE kernel32 = LoadLibrary ("kernel32.dll"); data/octave-5.2.0/libgnu/stdlib.in.h:577:19: [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. _GL_FUNCDECL_SYS (random, long, (void)); data/octave-5.2.0/libgnu/stdlib.in.h:579:19: [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. _GL_CXXALIAS_SYS (random, long, (void)); data/octave-5.2.0/libgnu/stdlib.in.h:580:19: [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. _GL_CXXALIASWARN (random); data/octave-5.2.0/libgnu/stdlib.in.h:582:9: [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. # undef random data/octave-5.2.0/libgnu/stdlib.in.h:584:18: [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. _GL_WARN_ON_USE (random, "random is unportable - " data/octave-5.2.0/libgnu/stdlib.in.h:591:19: [3] (random) srandom: 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. _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); data/octave-5.2.0/libgnu/stdlib.in.h:593:19: [3] (random) srandom: 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. _GL_CXXALIAS_SYS (srandom, void, (unsigned int seed)); data/octave-5.2.0/libgnu/stdlib.in.h:594:19: [3] (random) srandom: 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. _GL_CXXALIASWARN (srandom); data/octave-5.2.0/libgnu/stdlib.in.h:596:9: [3] (random) srandom: 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. # undef srandom data/octave-5.2.0/libgnu/stdlib.in.h:598:18: [3] (random) srandom: 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. _GL_WARN_ON_USE (srandom, "srandom is unportable - " data/octave-5.2.0/libgnu/stdlib.in.h:622:19: [3] (random) setstate: 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. _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); data/octave-5.2.0/libgnu/stdlib.in.h:624:19: [3] (random) setstate: 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. _GL_CXXALIAS_SYS (setstate, char *, (char *arg_state)); data/octave-5.2.0/libgnu/stdlib.in.h:625:19: [3] (random) setstate: 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. _GL_CXXALIASWARN (setstate); data/octave-5.2.0/libgnu/stdlib.in.h:627:9: [3] (random) setstate: 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. # undef setstate data/octave-5.2.0/libgnu/stdlib.in.h:629:18: [3] (random) setstate: 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. _GL_WARN_ON_USE (setstate, "setstate is unportable - " data/octave-5.2.0/libgnu/stdlib.in.h:792:12: [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. # define realpath rpl_realpath data/octave-5.2.0/libgnu/stdlib.in.h:794:19: [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. _GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved) data/octave-5.2.0/libgnu/stdlib.in.h:796:19: [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. _GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved)); data/octave-5.2.0/libgnu/stdlib.in.h:799:19: [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. _GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved) data/octave-5.2.0/libgnu/stdlib.in.h:802:19: [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. _GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved)); data/octave-5.2.0/libgnu/stdlib.in.h:804:19: [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. _GL_CXXALIASWARN (realpath); data/octave-5.2.0/libgnu/stdlib.in.h:806:9: [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. # undef realpath data/octave-5.2.0/libgnu/stdlib.in.h:808:18: [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. _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " data/octave-5.2.0/libgnu/time_rz.c:214: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. return getenv ("TZ"); data/octave-5.2.0/libgnu/tzset.c:66: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. const char *tz = getenv ("TZ"); data/octave-5.2.0/libgnu/unsetenv.c:119: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. while (getenv (name)) data/octave-5.2.0/libgui/src/documentation.cc:70:26: [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. QString collection = getenv ("OCTAVE_QTHELP_COLLECTION"); data/octave-5.2.0/libgui/src/documentation.cc:87:38: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). = QString::fromStdString (sys::tempnam (tmpdir.toStdString (), data/octave-5.2.0/libgui/src/main-window.cc:2824: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. sys::env::getenv ("OCTAVE_SHOW_GUI_MESSAGES"); data/octave-5.2.0/libgui/src/resource-manager.cc:59: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. std::string dsf = sys::env::getenv ("OCTAVE_DEFAULT_QT_SETTINGS"); data/octave-5.2.0/libgui/src/resource-manager.cc:98: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. std::string dldir = sys::env::getenv ("OCTAVE_LOCALE_DIR"); data/octave-5.2.0/libgui/src/resource-manager.cc:220:48: [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. std::string env_default_family = sys::env::getenv ("OCTAVE_DEFAULT_FONT"); data/octave-5.2.0/libgui/src/resource-manager.cc:248:23: [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. = sys::env::getenv ("OCTAVE_DEFAULT_FONT_SIZE"); data/octave-5.2.0/libgui/src/resource-manager.cc:261:23: [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. = sys::env::getenv ("OCTAVE_DEFAULT_EDITOR"); data/octave-5.2.0/libinterp/corefcn/defaults.cc:78:34: [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. std::string oh = sys::env::getenv ("OCTAVE_HOME"); data/octave-5.2.0/libinterp/corefcn/defaults.cc:91:34: [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. std::string oh = sys::env::getenv ("OCTAVE_HOME"); data/octave-5.2.0/libinterp/corefcn/defaults.cc:92: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. std::string oeh = sys::env::getenv ("OCTAVE_EXEC_HOME"); data/octave-5.2.0/libinterp/corefcn/defaults.cc:110: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. std::string lsf = sys::env::getenv ("OCTAVE_SITE_INITFILE"); data/octave-5.2.0/libinterp/corefcn/defaults.cc:117:34: [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. std::string sf = sys::env::getenv ("OCTAVE_VERSION_INITFILE"); data/octave-5.2.0/libinterp/corefcn/environment.cc:51:46: [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. std::string shell_path = octave::sys::env::getenv ("PATH"); data/octave-5.2.0/libinterp/corefcn/environment.cc:108:40: [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. std::string env_editor = sys::env::getenv ("EDITOR"); data/octave-5.2.0/libinterp/corefcn/environment.cc:118:39: [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. std::string exec_path = sys::env::getenv ("OCTAVE_EXEC_PATH"); data/octave-5.2.0/libinterp/corefcn/environment.cc:140:38: [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. std::string env_path = sys::env::getenv ("OCTAVE_IMAGE_PATH"); data/octave-5.2.0/libinterp/corefcn/file-io.cc:2808:29: [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. dir = octave::sys::env::getenv ("TMPDIR"); data/octave-5.2.0/libinterp/corefcn/file-io.cc:2815:28: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). return ovl (octave::sys::tempnam (dir, pfx)); data/octave-5.2.0/libinterp/corefcn/ft-text-renderer.cc:214: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. fonts_dir = sys::env::getenv ("OCTAVE_FONTS_DIR"); data/octave-5.2.0/libinterp/corefcn/interpreter.cc:774:42: [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. std::string initfile = sys::env::getenv ("OCTAVE_INITFILE"); data/octave-5.2.0/libinterp/corefcn/load-path.cc:220:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tpath = sys::env::getenv ("OCTAVE_PATH"); data/octave-5.2.0/libinterp/corefcn/ls-hdf5.cc:108:19: [3] (random) setstate: 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. std::ios::setstate (std::ios::badbit); data/octave-5.2.0/libinterp/corefcn/ls-hdf5.cc:167:27: [3] (random) setstate: 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. std::ios::setstate (std::ios::badbit); data/octave-5.2.0/libinterp/corefcn/ls-hdf5.cc:182:27: [3] (random) setstate: 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. std::ios::setstate (std::ios::badbit); data/octave-5.2.0/libinterp/corefcn/ls-hdf5.cc:188:47: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). std::string tmp_name = octave::sys::tempnam ("", "oct-"); data/octave-5.2.0/libinterp/corefcn/ls-hdf5.cc:195:25: [3] (random) setstate: 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. std::ios::setstate (std::ios::badbit); data/octave-5.2.0/libinterp/corefcn/ls-hdf5.cc:207:25: [3] (random) setstate: 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. std::ios::setstate (std::ios::badbit); data/octave-5.2.0/libinterp/corefcn/ls-hdf5.cc:223:15: [3] (random) setstate: 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. std::ios::setstate (std::ios::badbit); data/octave-5.2.0/libinterp/corefcn/oct-hist.cc:228:37: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). std::string name = octave::sys::tempnam ("", "oct-"); data/octave-5.2.0/libinterp/corefcn/oct-hist.cc:267:44: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. sys::env::getenv ("OCTAVE_HISTCONTROL")); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:1277:10: [3] (random) setstate: 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. void setstate (std::ios_base::iostate m) { flags = flags | m; } data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:1378:9: [3] (random) setstate: 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. setstate (std::ios_base::failbit); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:1390:13: [3] (random) setstate: 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. setstate (std::ios_base::eofbit); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:2537:9: [3] (random) setstate: 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. isp.setstate (state); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:2670:13: [3] (random) setstate: 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. isp.setstate (isp.eofbit); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:2884:10: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:2886:10: [3] (random) setstate: 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. is.setstate (is.rdstate () & ~std::ios::failbit); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:3949:16: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:4390:12: [3] (random) setstate: 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. is.setstate (std::ios::failbit); \ data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:4404:18: [3] (random) setstate: 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. is.setstate (std::ios::failbit); \ data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:4408:12: [3] (random) setstate: 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. is.setstate (std::ios::failbit); \ data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:4522:12: [3] (random) setstate: 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. is.setstate (std::ios::failbit); \ data/octave-5.2.0/libinterp/corefcn/pager.cc:116:42: [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. std::string pager_binary = sys::env::getenv ("PAGER"); data/octave-5.2.0/libinterp/corefcn/pager.cc:462:41: [3] (random) setstate: 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. m_external_pager->setstate (std::ios::failbit); data/octave-5.2.0/libinterp/corefcn/procstream.cc:36:15: [3] (random) setstate: 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. std::ios::setstate (std::ios::badbit); data/octave-5.2.0/libinterp/corefcn/procstream.cc:44:15: [3] (random) setstate: 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. std::ios::setstate (std::ios::badbit); data/octave-5.2.0/libinterp/corefcn/procstream.cc:53:15: [3] (random) setstate: 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. std::ios::setstate (std::ios::badbit); data/octave-5.2.0/libinterp/corefcn/procstream.cc:64:19: [3] (random) setstate: 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. std::ios::setstate (std::ios::failbit); data/octave-5.2.0/libinterp/corefcn/sysdep.cc:182:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE hShell = LoadLibrary ("shell32.dll"); data/octave-5.2.0/libinterp/corefcn/sysdep.cc:612:36: [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. retval = octave::sys::env::getenv ("TEMP"); data/octave-5.2.0/libinterp/corefcn/sysdep.cc:615:38: [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. retval = octave::sys::env::getenv ("TMP"); data/octave-5.2.0/libinterp/corefcn/sysdep.cc:651:8: [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. DEFUN (getenv, args, , data/octave-5.2.0/libinterp/corefcn/sysdep.cc:672: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. return ovl (octave::sys::env::getenv (name)); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:545:11: [3] (random) setstate: 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. this->setstate (std::ios_base::failbit); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:555:11: [3] (random) setstate: 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. this->setstate (std::ios_base::failbit); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:565:11: [3] (random) setstate: 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. this->setstate (std::ios_base::failbit); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:594:11: [3] (random) setstate: 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. this->setstate (std::ios_base::failbit); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:604:11: [3] (random) setstate: 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. this->setstate (std::ios_base::failbit); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:614:11: [3] (random) setstate: 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. this->setstate (std::ios_base::failbit); data/octave-5.2.0/libinterp/dldfcn/__init_fltk__.cc:850:31: [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. = octave::sys::env::getenv ("OCTAVE_SHOW_GUI_MESSAGES"); data/octave-5.2.0/libinterp/dldfcn/__init_gnuplot__.cc:189:46: [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 std::string path = octave::sys::env::getenv ("PATH"); data/octave-5.2.0/libinterp/octave-value/ov-java.cc:343:36: [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. java_dir = octave::sys::env::getenv ("OCTAVE_JAVA_DIR"); data/octave-5.2.0/libinterp/octave-value/ov-java.cc:546:32: [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. jversion = octave::sys::env::getenv ("JAVA_VERSION"); data/octave-5.2.0/libinterp/octave-value/ov-java.cc:648:53: [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. std::string java_home_env = octave::sys::env::getenv ("JAVA_HOME"); data/octave-5.2.0/liboctave/array/Sparse.cc:2750:18: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/liboctave/array/Sparse.cc:2760:18: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/liboctave/array/Sparse.cc:2770:18: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/liboctave/array/Sparse.cc:2785:18: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/liboctave/system/file-ops.cc:635:17: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). std::string tempnam (const std::string& dir, const std::string& pfx) data/octave-5.2.0/liboctave/system/file-ops.cc:638:14: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). return tempnam (dir, pfx, msg); data/octave-5.2.0/liboctave/system/file-ops.cc:641:17: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). std::string tempnam (const std::string& dir, const std::string& pfx, data/octave-5.2.0/liboctave/system/file-ops.h:171:5: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). tempnam (const std::string&, const std::string&); data/octave-5.2.0/liboctave/system/file-ops.h:174:5: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). tempnam (const std::string&, const std::string&, std::string&); data/octave-5.2.0/liboctave/system/lo-sysdep.cc:199:21: [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 (name.c_str ()); data/octave-5.2.0/liboctave/system/oct-env.cc:235: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. env::getenv (const std::string& name) data/octave-5.2.0/liboctave/system/oct-env.cc:250:29: [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. std::string display = getenv ("DISPLAY"); data/octave-5.2.0/liboctave/system/oct-env.h:76:26: [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. static std::string getenv (const std::string& name); data/octave-5.2.0/liboctave/util/cmd-edit.cc:252:34: [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. std::string term = sys::env::getenv ("TERM"); data/octave-5.2.0/liboctave/util/lo-utils.cc:206:18: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/liboctave/util/lo-utils.cc:209:14: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/liboctave/util/lo-utils.cc:231:14: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/liboctave/util/lo-utils.cc:313:14: [3] (random) setstate: 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. is.setstate (status); data/octave-5.2.0/liboctave/util/lo-utils.cc:347:16: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/liboctave/util/lo-utils.cc:352:12: [3] (random) setstate: 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. is.setstate (std::ios::failbit); data/octave-5.2.0/liboctave/util/oct-mutex.cc:67:7: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&cs); data/octave-5.2.0/liboctave/util/oct-mutex.cc:77:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&cs); data/octave-5.2.0/liboctave/util/oct-string.cc:261:12: [3] (random) setstate: 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. is.setstate (std::ios::failbit); // indicate that read has failed. data/octave-5.2.0/liboctave/util/oct-string.cc:282:16: [3] (random) setstate: 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. is.setstate (std::ios::failbit); // indicate that read has failed. data/octave-5.2.0/liboctave/util/oct-string.cc:404:20: [3] (random) setstate: 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. is.setstate (std::ios::failbit); // indicate read has failed. data/octave-5.2.0/liboctave/util/pathsearch.cc:103:37: [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. std::string val = sys::env::getenv ("KPATHSEA_DEBUG"); data/octave-5.2.0/liboctave/util/url-transfer.cc:347:38: [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. std::string cainfo = sys::env::getenv ("CURLOPT_CAINFO"); data/octave-5.2.0/liboctave/util/url-transfer.cc:351:38: [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. std::string capath = sys::env::getenv ("CURLOPT_CAPATH"); data/octave-5.2.0/liboctave/wrappers/async-system-wrapper.c:63:9: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. if (! CreateProcess (0, xcmd, 0, 0, FALSE, 0, 0, 0, &si, &pi)) data/octave-5.2.0/liboctave/wrappers/async-system-wrapper.c:63:9: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. if (! CreateProcess (0, xcmd, 0, 0, FALSE, 0, 0, 0, &si, &pi)) data/octave-5.2.0/liboctave/wrappers/getopt-wrapper.c:103:16: [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 retval = getopt_long (argc, argv, shortopts, lopts, longind); data/octave-5.2.0/liboctave/wrappers/octave-popen2.c:137:12: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. status = CreateProcess (0, command, 0, 0, TRUE, 0, 0, 0, &si, &pi); data/octave-5.2.0/liboctave/wrappers/octave-popen2.c:137:12: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. status = CreateProcess (0, command, 0, 0, TRUE, 0, 0, 0, &si, &pi); data/octave-5.2.0/src/display-available.c:66:30: [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 *display_name = getenv ("DISPLAY"); data/octave-5.2.0/src/mkoctfile.in.cc:129:21: [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 *val = getenv (name); data/octave-5.2.0/src/shared-fcns.h:93:19: [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 *value = ::getenv (name.c_str ()); data/octave-5.2.0/examples/code/myprop.c:8:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char property[256]; data/octave-5.2.0/libgnu/af_alg.c:159:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BLOCKSIZE]; data/octave-5.2.0/libgnu/alloca.c:122:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char align[ALIGN_SIZE]; /* To force sizeof(header). */ data/octave-5.2.0/libgnu/at-func.c:89: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 proc_buf[OPENAT_BUFFER_SIZE]; data/octave-5.2.0/libgnu/base64.c:62: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 b64c[64] = data/octave-5.2.0/libgnu/base64.c:252:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const signed char b64[0x100] = { data/octave-5.2.0/libgnu/base64.h:38:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/octave-5.2.0/libgnu/basename.c:51:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p + 2, base, length); data/octave-5.2.0/libgnu/canonicalize.c:163:11: [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 (rname, name, prefix_len); data/octave-5.2.0/libgnu/canonicalize.c:222:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. dest = memcpy (dest, start, end - start); data/octave-5.2.0/libgnu/canonicalize.c:291:28: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. name = end = memcpy (extra_buf, buf, n); data/octave-5.2.0/libgnu/canonicalize.c:298: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 (rname, buf, pfxlen); data/octave-5.2.0/libgnu/careadlinkat.c:73:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stack_buf[1024]; data/octave-5.2.0/libgnu/careadlinkat.c:124:15: [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, buf, link_size); data/octave-5.2.0/libgnu/dirent-private.h:37:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir_name_mask[1]; data/octave-5.2.0/libgnu/dirent.in.h:41:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char d_name[1]; data/octave-5.2.0/libgnu/dirname-lgpl.c:81:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dir, file, length); data/octave-5.2.0/libgnu/dup.c:66:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[_MAX_PATH]; data/octave-5.2.0/libgnu/dup.c:70:17: [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). dupfd = open (path, O_RDONLY); data/octave-5.2.0/libgnu/dup2.c:118:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tempfd = open ("NUL", O_RDONLY); data/octave-5.2.0/libgnu/dup2.c:126:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[_MAX_PATH]; data/octave-5.2.0/libgnu/dup2.c:130: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). return open(path, O_RDONLY); data/octave-5.2.0/libgnu/error.c:180:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errbuf[1024]; data/octave-5.2.0/libgnu/fcntl.c:60:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char fds_to_close[OPEN_MAX_MAX / CHAR_BIT]; data/octave-5.2.0/libgnu/fcntl.in.h:111:11: [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). # undef open data/octave-5.2.0/libgnu/fcntl.in.h:112:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open rpl_open data/octave-5.2.0/libgnu/fcntl.in.h:114:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) data/octave-5.2.0/libgnu/fcntl.in.h:116:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); data/octave-5.2.0/libgnu/fcntl.in.h:118:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); data/octave-5.2.0/libgnu/fcntl.in.h:123:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIASWARN (open); data/octave-5.2.0/libgnu/fcntl.in.h:126:9: [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). # undef open data/octave-5.2.0/libgnu/fcntl.in.h:128: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). _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " data/octave-5.2.0/libgnu/fdopendir.c:71:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[_MAX_PATH]; data/octave-5.2.0/libgnu/fdopendir.c:182:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[OPENAT_BUFFER_SIZE]; data/octave-5.2.0/libgnu/filenamecat-lgpl.c:31:47: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N))) data/octave-5.2.0/libgnu/fnmatch.c:172:49: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define MEMPCPY(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N))) data/octave-5.2.0/libgnu/fnmatch.c:215:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[CHAR_CLASS_MAX_LENGTH + 1]; data/octave-5.2.0/libgnu/fnmatch_loop.c:472:29: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 str[c1]; data/octave-5.2.0/libgnu/fnmatch_loop.c:693:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[c1]; data/octave-5.2.0/libgnu/fseeko.c:62:19: [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 *tmp = fopen ("/dev/null", "r"); data/octave-5.2.0/libgnu/ftello.c:76:19: [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 *tmp = fopen ("/dev/null", "r"); data/octave-5.2.0/libgnu/ftruncate.c:90: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 char zero_bytes[1024]; data/octave-5.2.0/libgnu/getcwd-lgpl.c:80:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[4032]; data/octave-5.2.0/libgnu/getcwd.c:128:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dots[DEEP_NESTING * sizeof ".." + BIG_FILE_NAME_COMPONENT_LENGTH + 1]; data/octave-5.2.0/libgnu/getcwd.c:168:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char big_buffer[BIG_FILE_NAME_LENGTH + 1]; data/octave-5.2.0/libgnu/getcwd.c:345: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 (dotlist + dotlen, d->d_name, _D_ALLOC_NAMLEN (d)); data/octave-5.2.0/libgnu/getcwd.c:381:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. dirp = memcpy (tmp + allocated - (oldsize - dirroom), data/octave-5.2.0/libgnu/getcwd.c:388:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dirp, d->d_name, namlen); data/octave-5.2.0/libgnu/getlogin_r.c:104:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (name, n, nlen + 1); data/octave-5.2.0/libgnu/getprogname.c:148:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char status64[1216]; data/octave-5.2.0/libgnu/getprogname.c:218:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[50]; data/octave-5.2.0/libgnu/getprogname.c:221:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (filename, "/proc/pinfo/%d", (int) getpid ()); data/octave-5.2.0/libgnu/getprogname.c:222:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (filename, O_RDONLY); data/octave-5.2.0/libgnu/getprogname.c:238:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy (namecopy, name, namelen); data/octave-5.2.0/libgnu/gettext.h:220:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/octave-5.2.0/libgnu/gettext.h:222:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/octave-5.2.0/libgnu/gettext.h:231:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/octave-5.2.0/libgnu/gettext.h:233:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/octave-5.2.0/libgnu/gettext.h:268:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/octave-5.2.0/libgnu/gettext.h:270:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/octave-5.2.0/libgnu/gettext.h:279:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/octave-5.2.0/libgnu/gettext.h:281:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/octave-5.2.0/libgnu/glob.c:610:19: [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 (mem, home_drive, home_drive_len); data/octave-5.2.0/libgnu/glob.c:611:19: [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 (mem + home_drive_len, home_path, home_path_len + 1); data/octave-5.2.0/libgnu/glob.c:1238:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct globnames *next; size_t count; char *name[nnames]; data/octave-5.2.0/libgnu/iconv_open-aix.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[10 + 1]; }; data/octave-5.2.0/libgnu/iconv_open-aix.h:86: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 stringpool_str6[sizeof("EUC-TW")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:87: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 stringpool_str7[sizeof("EUC-KR")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:88: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 stringpool_str8[sizeof("CP852")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:89: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 stringpool_str9[sizeof("EUC-JP")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str10[sizeof("ISO-8859-2")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:91: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 stringpool_str11[sizeof("CP857")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:92: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 stringpool_str12[sizeof("CP850")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:93: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 stringpool_str13[sizeof("ISO-8859-7")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:94: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 stringpool_str14[sizeof("CP932")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:95: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 stringpool_str15[sizeof("GB2312")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:96: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 stringpool_str16[sizeof("BIG5")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:97: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 stringpool_str17[sizeof("CP437")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:98: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 stringpool_str19[sizeof("ISO-8859-5")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:99: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 stringpool_str20[sizeof("ISO-8859-15")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:100: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 stringpool_str21[sizeof("ISO-8859-3")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:101: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 stringpool_str22[sizeof("ISO-8859-13")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:102: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 stringpool_str23[sizeof("CP1046")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:103: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 stringpool_str24[sizeof("ISO-8859-8")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:104: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 stringpool_str25[sizeof("CP856")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:105: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 stringpool_str26[sizeof("CP1125")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:106: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 stringpool_str27[sizeof("ISO-8859-6")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:107: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 stringpool_str28[sizeof("CP865")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:108: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 stringpool_str29[sizeof("CP922")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:109: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 stringpool_str30[sizeof("CP1252")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:110: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 stringpool_str31[sizeof("ISO-8859-9")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:111: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 stringpool_str33[sizeof("CP943")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:112: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 stringpool_str34[sizeof("ISO-8859-4")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:113: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 stringpool_str35[sizeof("ISO-8859-1")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:114: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 stringpool_str38[sizeof("CP1129")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:115: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 stringpool_str40[sizeof("CP869")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:116: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 stringpool_str41[sizeof("CP1124")]; data/octave-5.2.0/libgnu/iconv_open-aix.h:117: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 stringpool_str44[sizeof("CP861")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[9 + 1]; }; data/octave-5.2.0/libgnu/iconv_open-hpux.h:86: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 stringpool_str6[sizeof("CP1256")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:87: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 stringpool_str7[sizeof("CP1250")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:88: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 stringpool_str8[sizeof("CP1251")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:89: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 stringpool_str9[sizeof("CP850")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str10[sizeof("TIS-620")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:91: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 stringpool_str11[sizeof("CP1254")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:92: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 stringpool_str12[sizeof("ISO-8859-6")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:93: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 stringpool_str13[sizeof("EUC-TW")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:94: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 stringpool_str14[sizeof("ISO-8859-1")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:95: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 stringpool_str15[sizeof("ISO-8859-9")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:96: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 stringpool_str16[sizeof("CP1255")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:97: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 stringpool_str17[sizeof("BIG5")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:98: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 stringpool_str18[sizeof("CP855")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:99: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 stringpool_str19[sizeof("CP1257")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:100: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 stringpool_str20[sizeof("EUC-KR")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:101: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 stringpool_str21[sizeof("CP857")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:102: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 stringpool_str22[sizeof("ISO-8859-5")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:103: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 stringpool_str23[sizeof("ISO-8859-15")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:104: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 stringpool_str24[sizeof("CP866")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:105: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 stringpool_str25[sizeof("ISO-8859-7")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:106: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 stringpool_str26[sizeof("CP861")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:107: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 stringpool_str27[sizeof("CP869")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:108: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 stringpool_str28[sizeof("CP874")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:109: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 stringpool_str29[sizeof("CP864")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:110: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 stringpool_str30[sizeof("CP1252")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:111: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 stringpool_str31[sizeof("CP437")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:112: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 stringpool_str32[sizeof("CP852")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:113: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 stringpool_str33[sizeof("CP775")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:114: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 stringpool_str34[sizeof("CP865")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:115: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 stringpool_str35[sizeof("EUC-JP")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:116: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 stringpool_str36[sizeof("ISO-8859-2")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:117: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 stringpool_str37[sizeof("SHIFT_JIS")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:118: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 stringpool_str38[sizeof("CP1258")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:119: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 stringpool_str39[sizeof("UTF-8")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h: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 stringpool_str40[sizeof("HP-KANA8")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:121: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 stringpool_str41[sizeof("HP-ROMAN8")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:122: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 stringpool_str42[sizeof("HP-HEBREW8")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:123: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 stringpool_str43[sizeof("GB2312")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:124: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 stringpool_str44[sizeof("ISO-8859-8")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:125: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 stringpool_str45[sizeof("HP-TURKISH8")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:126: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 stringpool_str46[sizeof("HP-GREEK8")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:127: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 stringpool_str47[sizeof("HP-ARABIC8")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:128: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 stringpool_str48[sizeof("CP862")]; data/octave-5.2.0/libgnu/iconv_open-hpux.h:129: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 stringpool_str49[sizeof("CP1253")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[10 + 1]; }; data/octave-5.2.0/libgnu/iconv_open-irix.h:86: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 stringpool_str5[sizeof("CP855")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:87: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 stringpool_str6[sizeof("EUC-TW")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:88: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 stringpool_str7[sizeof("EUC-KR")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:89: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 stringpool_str8[sizeof("CP1251")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str9[sizeof("SHIFT_JIS")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:91: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 stringpool_str10[sizeof("ISO-8859-5")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:92: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 stringpool_str11[sizeof("ISO-8859-15")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:93: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 stringpool_str12[sizeof("ISO-8859-1")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:94: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 stringpool_str13[sizeof("EUC-JP")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:95: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 stringpool_str14[sizeof("KOI8-R")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:96: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 stringpool_str15[sizeof("ISO-8859-2")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:97: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 stringpool_str16[sizeof("GB2312")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:98: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 stringpool_str17[sizeof("ISO-8859-9")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:99: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 stringpool_str18[sizeof("ISO-8859-8")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:100: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 stringpool_str19[sizeof("ISO-8859-7")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:101: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 stringpool_str20[sizeof("ISO-8859-6")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:102: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 stringpool_str21[sizeof("ISO-8859-4")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:103: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 stringpool_str22[sizeof("ISO-8859-3")]; data/octave-5.2.0/libgnu/iconv_open-irix.h:104: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 stringpool_str23[sizeof("TIS-620")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[10 + 1]; }; data/octave-5.2.0/libgnu/iconv_open-osf.h:86: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 stringpool_str6[sizeof("CP1255")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:87: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 stringpool_str7[sizeof("CP775")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:88: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 stringpool_str8[sizeof("CP1250")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:89: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 stringpool_str9[sizeof("EUC-TW")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str10[sizeof("EUC-KR")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:91: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 stringpool_str11[sizeof("TIS-620")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:92: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 stringpool_str12[sizeof("ISO-8859-5")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:93: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 stringpool_str13[sizeof("ISO-8859-15")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:94: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 stringpool_str14[sizeof("BIG5")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:95: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 stringpool_str15[sizeof("CP855")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:96: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 stringpool_str16[sizeof("CP1258")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:97: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 stringpool_str17[sizeof("CP850")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:98: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 stringpool_str18[sizeof("CP865")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:99: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 stringpool_str19[sizeof("EUC-JP")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:100: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 stringpool_str20[sizeof("CP1257")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:101: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 stringpool_str21[sizeof("CP1256")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:102: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 stringpool_str22[sizeof("ISO-8859-8")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:103: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 stringpool_str23[sizeof("SHIFT_JIS")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:104: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 stringpool_str25[sizeof("ISO-8859-9")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:105: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 stringpool_str26[sizeof("ISO-8859-7")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:106: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 stringpool_str27[sizeof("ISO-8859-6")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:107: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 stringpool_str29[sizeof("CP857")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:108: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 stringpool_str30[sizeof("CP1252")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:109: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 stringpool_str31[sizeof("CP869")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:110: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 stringpool_str32[sizeof("CP949")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:111: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 stringpool_str33[sizeof("CP866")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:112: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 stringpool_str34[sizeof("CP437")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:113: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 stringpool_str35[sizeof("CP1251")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:114: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 stringpool_str36[sizeof("ISO-8859-2")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:115: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 stringpool_str37[sizeof("CP1254")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:116: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 stringpool_str38[sizeof("CP874")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:117: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 stringpool_str39[sizeof("CP852")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:118: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 stringpool_str40[sizeof("CP1253")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:119: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 stringpool_str41[sizeof("ISO-8859-1")]; data/octave-5.2.0/libgnu/iconv_open-osf.h: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 stringpool_str42[sizeof("CP862")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:121: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 stringpool_str43[sizeof("ISO-8859-4")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:122: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 stringpool_str46[sizeof("ISO-8859-3")]; data/octave-5.2.0/libgnu/iconv_open-osf.h:123: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 stringpool_str47[sizeof("CP861")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[10 + 1]; }; data/octave-5.2.0/libgnu/iconv_open-solaris.h:100: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 stringpool_str5[sizeof("ASCII")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:101: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 stringpool_str6[sizeof("CP1251")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:102: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 stringpool_str7[sizeof("$ abc")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:103: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 stringpool_str10[sizeof("ISO-8859-1")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:104: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 stringpool_str11[sizeof("ISO-8859-15")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:105: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 stringpool_str12[sizeof("ISO-8859-9")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:106: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 stringpool_str13[sizeof("ISO-8859-8")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:107: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 stringpool_str14[sizeof("ISO-8859-7")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:108: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 stringpool_str15[sizeof("ISO-8859-6")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:109: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 stringpool_str16[sizeof("ISO-8859-5")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:110: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 stringpool_str17[sizeof("ISO-8859-4")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:111: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 stringpool_str18[sizeof("ISO-8859-3")]; data/octave-5.2.0/libgnu/iconv_open-solaris.h:112: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 stringpool_str19[sizeof("ISO-8859-2")]; data/octave-5.2.0/libgnu/iconv_open.c:48:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fromcode_upper[32]; data/octave-5.2.0/libgnu/iconv_open.c:49:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tocode_upper[32]; data/octave-5.2.0/libgnu/localcharset.c:85: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. const char alias[11+1]; data/octave-5.2.0/libgnu/localcharset.c:86: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. const char canonical[11+1]; data/octave-5.2.0/libgnu/localcharset.c:438: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. const char locale[17+1]; data/octave-5.2.0/libgnu/localcharset.c:439: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. const char canonical[11+1]; data/octave-5.2.0/libgnu/localcharset.c:705: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 char buf[2 + 10 + 1]; data/octave-5.2.0/libgnu/localcharset.c:731:19: [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, dot, modifier - dot); data/octave-5.2.0/libgnu/localcharset.c:749:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/octave-5.2.0/libgnu/localcharset.c:760:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/octave-5.2.0/libgnu/localcharset.c:788:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/octave-5.2.0/libgnu/localcharset.c:795:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/octave-5.2.0/libgnu/localcharset.c:826:15: [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, dot, modifier - dot); data/octave-5.2.0/libgnu/localcharset.c:844:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", cp[0]); data/octave-5.2.0/libgnu/malloc/scratch_buffer_grow_preserve.c:40:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_ptr, buffer->__space, buffer->length); data/octave-5.2.0/libgnu/mbrtowc.c:96:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char internal_state[4]; data/octave-5.2.0/libgnu/mbrtowc.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 buf[4]; data/octave-5.2.0/libgnu/md2.c:60:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (resbuf, ctx->X, 16); data/octave-5.2.0/libgnu/md2.c:84:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ctx->buf, ctx->chksum, 16); data/octave-5.2.0/libgnu/md2.c:191:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ctx->buf + ctx->curlen, in, (size_t) n); data/octave-5.2.0/libgnu/md2.c:206:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char PI_SUBST[256] = { data/octave-5.2.0/libgnu/md2.h:34:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chksum[16], X[48], buf[16]; data/octave-5.2.0/libgnu/md4.c:50:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; data/octave-5.2.0/libgnu/md4.c:73:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (cp, &v, sizeof v); data/octave-5.2.0/libgnu/md4.c:105:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char*)ctx->buffer)[bytes], fillbuf, pad); data/octave-5.2.0/libgnu/md4.c:220:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char*)ctx->buffer)[left_over], buffer, add); data/octave-5.2.0/libgnu/md4.c:229:11: [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 (ctx->buffer, &((char*)ctx->buffer)[(left_over + add) & ~63], data/octave-5.2.0/libgnu/md4.c:245:32: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. md4_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); data/octave-5.2.0/libgnu/md4.c:263:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char*)ctx->buffer)[left_over], buffer, len); data/octave-5.2.0/libgnu/md4.c:269:11: [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 (ctx->buffer, &ctx->buffer[16], left_over); data/octave-5.2.0/libgnu/md5.c:70:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; data/octave-5.2.0/libgnu/md5.c:93:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (cp, &v, sizeof v); data/octave-5.2.0/libgnu/md5.c:128:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes); data/octave-5.2.0/libgnu/md5.c:252:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, add); data/octave-5.2.0/libgnu/md5.c:262:11: [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 (ctx->buffer, data/octave-5.2.0/libgnu/md5.c:279:32: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); data/octave-5.2.0/libgnu/md5.c:297:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, len); data/octave-5.2.0/libgnu/md5.c:305:11: [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 (ctx->buffer, &ctx->buffer[16], left_over); data/octave-5.2.0/libgnu/mempcpy.c:27:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (char *) memcpy (dest, src, n) + n; data/octave-5.2.0/libgnu/nstrftime.c:96: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. # define MEMCPY(d, s, n) memcpy (d, s, n) data/octave-5.2.0/libgnu/nstrftime.c:882: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 ufmt[5]; data/octave-5.2.0/libgnu/nstrftime.c:884: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 ubuf[1024]; /* enough for any single format in practice */ data/octave-5.2.0/libgnu/open.c:33:10: [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). return open (filename, flags, mode); data/octave-5.2.0/libgnu/open.c:55:1: [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). open (const char *filename, int flags, ...) data/octave-5.2.0/libgnu/open.c:162:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open ("/dev/null", flags, mode); data/octave-5.2.0/libgnu/openat-priv.h:47:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file); data/octave-5.2.0/libgnu/openat-priv.h:47:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file); data/octave-5.2.0/libgnu/openat-proc.c:43:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * data/octave-5.2.0/libgnu/openat-proc.c:44:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file) data/octave-5.2.0/libgnu/openat-proc.c:76:28: [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 proc_self_fd = open ("/proc/self/fd", data/octave-5.2.0/libgnu/openat-proc.c:87: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 dotdot_buf[PROC_SELF_FD_DIR_SIZE_BOUND + sizeof "../fd" - 1]; data/octave-5.2.0/libgnu/openat-proc.c:112:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir[_MAX_PATH]; data/octave-5.2.0/libgnu/openat.c:225:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open (file, flags, mode); data/octave-5.2.0/libgnu/openat.c:228: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[OPENAT_BUFFER_SIZE]; data/octave-5.2.0/libgnu/openat.c:232:27: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open_result = open (proc_file, flags, mode); data/octave-5.2.0/libgnu/openat.c:269:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). err = open (file, flags, mode); data/octave-5.2.0/libgnu/openat.c:296:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open ("/", O_SEARCH); data/octave-5.2.0/libgnu/openat.c:300:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[OPENAT_BUFFER_SIZE]; data/octave-5.2.0/libgnu/opendir.c:61: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 (dir_name, O_RDONLY); data/octave-5.2.0/libgnu/opendir.c:77:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir_name_mask[MAX_PATH + 1 + 1 + 1]; data/octave-5.2.0/libgnu/opendir.c:150:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&dirp->entry, &entry, sizeof (WIN32_FIND_DATA)); data/octave-5.2.0/libgnu/printf-parse.c:122:11: [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 (memory, a->arg, a->count * sizeof (argument)); \ data/octave-5.2.0/libgnu/printf-parse.c:599: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 (memory, d->dir, d->count * sizeof (DIRECTIVE)); data/octave-5.2.0/libgnu/putenv.c:81: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_, name, len); data/octave-5.2.0/libgnu/putenv.c:145:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (name_x, string, name_end - string + 1); data/octave-5.2.0/libgnu/putenv.c:186:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_environ + 1, environ, (size + 1) * sizeof *new_environ); data/octave-5.2.0/libgnu/save-cwd.c:66:15: [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). cwd->desc = open (".", O_SEARCH | O_CLOEXEC); data/octave-5.2.0/libgnu/select.c:55:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char in[FD_SETSIZE / CHAR_BIT]; data/octave-5.2.0/libgnu/select.c:56:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char out[FD_SETSIZE / CHAR_BIT]; data/octave-5.2.0/libgnu/select.c:261:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char anyfds_in[FD_SETSIZE / CHAR_BIT]; data/octave-5.2.0/libgnu/select.c:418:11: [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 (&handle_rfds, rfds, sizeof (fd_set)); data/octave-5.2.0/libgnu/select.c:419:11: [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 (&handle_wfds, wfds, sizeof (fd_set)); data/octave-5.2.0/libgnu/select.c:420:11: [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 (&handle_xfds, xfds, sizeof (fd_set)); data/octave-5.2.0/libgnu/select.c:494:11: [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 (&handle_rfds, rfds, sizeof (fd_set)); data/octave-5.2.0/libgnu/select.c:495:11: [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 (&handle_wfds, wfds, sizeof (fd_set)); data/octave-5.2.0/libgnu/select.c:496:11: [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 (&handle_xfds, xfds, sizeof (fd_set)); data/octave-5.2.0/libgnu/setenv.c:179:11: [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_value, name, namelen); data/octave-5.2.0/libgnu/setenv.c:181:11: [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_value[namelen + 1], value, vallen); data/octave-5.2.0/libgnu/setenv.c:200:15: [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_environ[size], new_value, namelen + 1 + vallen); data/octave-5.2.0/libgnu/setenv.c:202:15: [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_environ[size], name, namelen); data/octave-5.2.0/libgnu/setenv.c:204:15: [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_environ[size][namelen + 1], value, vallen); data/octave-5.2.0/libgnu/setenv.c:217: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 ((char *) new_environ, (char *) __environ, data/octave-5.2.0/libgnu/setenv.c:247:11: [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_value, name, namelen); data/octave-5.2.0/libgnu/setenv.c:249:11: [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_value[namelen + 1], value, vallen); data/octave-5.2.0/libgnu/setenv.c:268:15: [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 (np, new_value, namelen + 1 + vallen); data/octave-5.2.0/libgnu/setenv.c:270:15: [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 (np, name, namelen); data/octave-5.2.0/libgnu/setenv.c:272:15: [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 (&np[namelen + 1], value, vallen); data/octave-5.2.0/libgnu/setenv.c:380:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp + 1, value, len + 1); data/octave-5.2.0/libgnu/sha1.c:55:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; data/octave-5.2.0/libgnu/sha1.c:80:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (cp, &v, sizeof v); data/octave-5.2.0/libgnu/sha1.c:116:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes); data/octave-5.2.0/libgnu/sha1.c:239:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, add); data/octave-5.2.0/libgnu/sha1.c:249:11: [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 (ctx->buffer, data/octave-5.2.0/libgnu/sha1.c:266:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. sha1_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); data/octave-5.2.0/libgnu/sha1.c:284:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, len); data/octave-5.2.0/libgnu/sha1.c:292:11: [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 (ctx->buffer, &ctx->buffer[16], left_over); data/octave-5.2.0/libgnu/sha256.c:54:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; data/octave-5.2.0/libgnu/sha256.c:100:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (cp, &v, sizeof v); data/octave-5.2.0/libgnu/sha256.c:151:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes); data/octave-5.2.0/libgnu/sha256.c:318:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, add); data/octave-5.2.0/libgnu/sha256.c:328:11: [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 (ctx->buffer, data/octave-5.2.0/libgnu/sha256.c:345:35: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. sha256_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); data/octave-5.2.0/libgnu/sha256.c:363:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, len); data/octave-5.2.0/libgnu/sha256.c:371:11: [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 (ctx->buffer, &ctx->buffer[16], left_over); data/octave-5.2.0/libgnu/sha512.c:54:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char fillbuf[128] = { 0x80, 0 /* , 0, 0, ... */ }; data/octave-5.2.0/libgnu/sha512.c:100:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (cp, &v, sizeof v); data/octave-5.2.0/libgnu/sha512.c:152:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 8 - bytes); data/octave-5.2.0/libgnu/sha512.c:319:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, add); data/octave-5.2.0/libgnu/sha512.c:329:11: [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 (ctx->buffer, data/octave-5.2.0/libgnu/sha512.c:346:35: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. sha512_process_block (memcpy (ctx->buffer, buffer, 128), 128, ctx); data/octave-5.2.0/libgnu/sha512.c:364:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&((char *) ctx->buffer)[left_over], buffer, len); data/octave-5.2.0/libgnu/sha512.c:372:11: [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 (ctx->buffer, &ctx->buffer[16], left_over); data/octave-5.2.0/libgnu/snprintf.c:57:11: [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 (str, output, pruned_len); data/octave-5.2.0/libgnu/stat-w32.c:196:15: [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->st_ino, &id.FileId, sizeof (ino_t)); data/octave-5.2.0/libgnu/stat-w32.c:249:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fpath[PATH_MAX]; data/octave-5.2.0/libgnu/stat.c:168:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (malloca_rname, name, rlen); data/octave-5.2.0/libgnu/stdio-impl.h:51:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _ubuf[3]; \ data/octave-5.2.0/libgnu/stdio-impl.h:52:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _nbuf[1]; \ data/octave-5.2.0/libgnu/stdio-impl.h:85:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _ubuf[3]; \ data/octave-5.2.0/libgnu/stdio-impl.h:86:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _nbuf[1]; \ data/octave-5.2.0/libgnu/stdio.in.h:283:11: [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). # undef fopen data/octave-5.2.0/libgnu/stdio.in.h:284:12: [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). # define fopen rpl_fopen data/octave-5.2.0/libgnu/stdio.in.h:286:19: [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). _GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode) data/octave-5.2.0/libgnu/stdio.in.h:288:19: [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). _GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode)); data/octave-5.2.0/libgnu/stdio.in.h:290:19: [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). _GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode)); data/octave-5.2.0/libgnu/stdio.in.h:292:19: [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). _GL_CXXALIASWARN (fopen); data/octave-5.2.0/libgnu/stdio.in.h:294:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef fopen data/octave-5.2.0/libgnu/stdio.in.h:296:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " data/octave-5.2.0/libgnu/stdio.in.h:1118:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # define tmpfile rpl_tmpfile data/octave-5.2.0/libgnu/stdio.in.h:1120:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_FUNCDECL_RPL (tmpfile, FILE *, (void)); data/octave-5.2.0/libgnu/stdio.in.h:1121:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); data/octave-5.2.0/libgnu/stdio.in.h:1123:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); data/octave-5.2.0/libgnu/stdio.in.h:1125:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIASWARN (tmpfile); data/octave-5.2.0/libgnu/stdio.in.h:1127:9: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # undef tmpfile data/octave-5.2.0/libgnu/stdio.in.h:1129:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " data/octave-5.2.0/libgnu/stdlib.in.h:402:12: [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). # define mkstemp rpl_mkstemp data/octave-5.2.0/libgnu/stdlib.in.h:404:19: [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). _GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); data/octave-5.2.0/libgnu/stdlib.in.h:405:19: [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). _GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); data/octave-5.2.0/libgnu/stdlib.in.h:408:19: [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). _GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); data/octave-5.2.0/libgnu/stdlib.in.h:410:19: [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). _GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); data/octave-5.2.0/libgnu/stdlib.in.h:412:19: [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). _GL_CXXALIASWARN (mkstemp); data/octave-5.2.0/libgnu/stdlib.in.h:414:9: [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). # undef mkstemp data/octave-5.2.0/libgnu/stdlib.in.h:416:18: [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). _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " data/octave-5.2.0/libgnu/strdup.c:47:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (char *) memcpy (new, s, len); data/octave-5.2.0/libgnu/strerror.c:39:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[STACKBUF_LEN]; data/octave-5.2.0/libgnu/strerror.c:69:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, msg, len + 1); data/octave-5.2.0/libgnu/striconveh.c:365:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. union { unsigned int align; char buf[tmpbufsize]; } tmp; data/octave-5.2.0/libgnu/striconveh.c:480:27: [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 (memory, initial_result, length); data/octave-5.2.0/libgnu/striconveh.c:529:15: [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 (memory, initial_result, length); data/octave-5.2.0/libgnu/striconveh.c:567: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 (memory, initial_result, length); data/octave-5.2.0/libgnu/striconveh.c:605: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 utf8buf[utf8bufsize + 1]; data/octave-5.2.0/libgnu/striconveh.c:774:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 scratchbuf[10]; data/octave-5.2.0/libgnu/striconveh.c:801:36: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char hex[16] = "0123456789ABCDEF"; data/octave-5.2.0/libgnu/striconveh.c:836:33: [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 (out2ptr, inptr, insize); data/octave-5.2.0/libgnu/striconveh.c:869: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. memcpy (memory, initial_result, length); data/octave-5.2.0/libgnu/striconveh.c:885:33: [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 (out2ptr, inptr, insize); data/octave-5.2.0/libgnu/striconveh.c:949:23: [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 (memory, initial_result, length); data/octave-5.2.0/libgnu/striconveh.c:997:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, tmpbuf, length); data/octave-5.2.0/libgnu/striconveh.c:1089:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, src, srclen); data/octave-5.2.0/libgnu/striconveha.c:121:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_name, name, namelen); data/octave-5.2.0/libgnu/striconveha.c:127:11: [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 (memory, try_in_order[i], len); data/octave-5.2.0/libgnu/striconveha.c:237:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (to_codeset_suffixed, to_codeset, len); data/octave-5.2.0/libgnu/striconveha.c:238:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (to_codeset_suffixed + len, "//TRANSLIT", 10 + 1); data/octave-5.2.0/libgnu/striconveha.c:339:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (to_codeset_suffixed, to_codeset, len); data/octave-5.2.0/libgnu/striconveha.c:340:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (to_codeset_suffixed + len, "//TRANSLIT", 10 + 1); data/octave-5.2.0/libgnu/strndup.c:35:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy (new, s, len); data/octave-5.2.0/libgnu/strsignal.c:73: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 *_sys_siglist[NSIG]; data/octave-5.2.0/libgnu/strsignal.c:84:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char local_buf[BUFFERSIZ]; data/octave-5.2.0/libgnu/sys_socket.in.h:116:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __ss_padding[_SS_PADSIZE]; data/octave-5.2.0/libgnu/sys_stat.in.h:788:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, data/octave-5.2.0/libgnu/sys_stat.in.h:791:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, data/octave-5.2.0/libgnu/sys_stat.in.h:795:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, data/octave-5.2.0/libgnu/sys_stat.in.h:799:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, data/octave-5.2.0/libgnu/sys_utsname.in.h:72:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nodename[_UTSNAME_NODENAME_LENGTH]; data/octave-5.2.0/libgnu/sys_utsname.in.h:75: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 sysname[_UTSNAME_SYSNAME_LENGTH]; data/octave-5.2.0/libgnu/sys_utsname.in.h:77:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char release[_UTSNAME_RELEASE_LENGTH]; data/octave-5.2.0/libgnu/sys_utsname.in.h:79: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 version[_UTSNAME_VERSION_LENGTH]; data/octave-5.2.0/libgnu/sys_utsname.in.h:82: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 machine[_UTSNAME_MACHINE_LENGTH]; data/octave-5.2.0/libgnu/tempname.c:70:17: [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). # define __open open data/octave-5.2.0/libgnu/tempname.c:170:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx); data/octave-5.2.0/libgnu/time-internal.h:30:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *tzname_copy[2]; data/octave-5.2.0/libgnu/time-internal.h:48:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char abbrs[FLEXIBLE_ARRAY_MEMBER]; data/octave-5.2.0/libgnu/time_rz.c:88:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (abbrs, abbr, abbr_size); data/octave-5.2.0/libgnu/tmpdir.c:119:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dirbuf[PATH_MAX]; data/octave-5.2.0/libgnu/tmpdir.c:156:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmpl, dir, dlen); data/octave-5.2.0/libgnu/tmpfile.c:71:1: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile (void) data/octave-5.2.0/libgnu/tmpfile.c:73:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir[PATH_MAX]; data/octave-5.2.0/libgnu/tmpfile.c:83:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char xtemplate[PATH_MAX]; data/octave-5.2.0/libgnu/tmpfile.c:93:15: [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 (&xtemplate[len - 6], "XXXXXX", 6); data/octave-5.2.0/libgnu/uname.c:64:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&version, &versionex, sizeof (OSVERSIONINFO)); data/octave-5.2.0/libgnu/uname.c:75:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->nodename, "localhost"); data/octave-5.2.0/libgnu/uname.c:183:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf->release, "Windows CE %u.%u", data/octave-5.2.0/libgnu/uname.c:208: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 (buf->machine, "x86_64"); data/octave-5.2.0/libgnu/uname.c:211: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 (buf->machine, "ia64"); data/octave-5.2.0/libgnu/uname.c:214: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 (buf->machine, "i386"); data/octave-5.2.0/libgnu/uname.c:220: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 (buf->machine, "i686"); data/octave-5.2.0/libgnu/uname.c:223: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 (buf->machine, "mips"); data/octave-5.2.0/libgnu/uname.c:227: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 (buf->machine, "alpha"); data/octave-5.2.0/libgnu/uname.c:230: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 (buf->machine, "powerpc"); data/octave-5.2.0/libgnu/uname.c:233: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 (buf->machine, "sh"); data/octave-5.2.0/libgnu/uname.c:236: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 (buf->machine, "arm"); data/octave-5.2.0/libgnu/uname.c:239: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 (buf->machine, "unknown"); data/octave-5.2.0/libgnu/uname.c:249: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 (buf->machine, "x86_64"); data/octave-5.2.0/libgnu/uname.c:252: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 (buf->machine, "ia64"); data/octave-5.2.0/libgnu/uname.c:256:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf->machine, "i%u", data/octave-5.2.0/libgnu/uname.c:259:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "unknown"); data/octave-5.2.0/libgnu/unicase/special-casing.in.h:36: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. /*unsigned*/ char code[3]; data/octave-5.2.0/libgnu/unicase/special-casing.in.h:45:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char language[2]; data/octave-5.2.0/libgnu/unicase/u-casemap.h:70: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 code[3]; data/octave-5.2.0/libgnu/uniconv/u8-conv-from-enc.c:80:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) result, src, srclen); data/octave-5.2.0/libgnu/uniconv/u8-conv-to-enc.c:63:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, (const char *) src, srclen); data/octave-5.2.0/libgnu/unictype/combiningclass.h:14:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char level3[75 << 7]; data/octave-5.2.0/libgnu/uninorm/u-normalize-internal.h:318: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 (new_sortbuf, sortbuf, data/octave-5.2.0/libgnu/unistr/u-cpy.h:29:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) dest, (const char *) src, n * sizeof (UNIT)); data/octave-5.2.0/libgnu/unistr/u32-to-u8.c:95: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 ((char *) memory, (char *) result, data/octave-5.2.0/libgnu/unistr/u8-to-u32.c:93: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 ((char *) memory, (char *) result, data/octave-5.2.0/libgnu/unlink.c:72:11: [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 (short_name, name, len); data/octave-5.2.0/libgnu/vasnprintf.c:151: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. # define DCHAR_CPY memcpy data/octave-5.2.0/libgnu/vasnprintf.c:295:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pointbuf[5]; data/octave-5.2.0/libgnu/vasnprintf.c:296:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (pointbuf, "%#.0f", 1.0); data/octave-5.2.0/libgnu/vasnprintf.c:520:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/octave-5.2.0/libgnu/vasnprintf.c:656:11: [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 (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/octave-5.2.0/libgnu/vasnprintf.c:2677:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/octave-5.2.0/libgnu/vasnprintf.c:2722:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/octave-5.2.0/libgnu/vasnprintf.c:2772:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[64]; /* Assume MB_CUR_MAX <= 64. */ data/octave-5.2.0/libgnu/vasnprintf.c:2785: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 (tmpptr, cbuf, count); data/octave-5.2.0/libgnu/vasnprintf.c:2853:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/octave-5.2.0/libgnu/vasnprintf.c:2866:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, cbuf, count); data/octave-5.2.0/libgnu/vasnprintf.c:2882:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/octave-5.2.0/libgnu/vasnprintf.c:2904:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, cbuf, count); data/octave-5.2.0/libgnu/vasnprintf.c:3185:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+d", exponent); data/octave-5.2.0/libgnu/vasnprintf.c:3191:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 expbuf[6 + 1]; data/octave-5.2.0/libgnu/vasnprintf.c:3193:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+d", exponent); data/octave-5.2.0/libgnu/vasnprintf.c:3336:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+d", exponent); data/octave-5.2.0/libgnu/vasnprintf.c:3342:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 expbuf[6 + 1]; data/octave-5.2.0/libgnu/vasnprintf.c:3344:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+d", exponent); data/octave-5.2.0/libgnu/vasnprintf.c:3411: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 (result + length, tmp, count * sizeof (DCHAR_T)); data/octave-5.2.0/libgnu/vasnprintf.c:3796:37: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+.2d", exponent); data/octave-5.2.0/libgnu/vasnprintf.c:3802:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 expbuf[6 + 1]; data/octave-5.2.0/libgnu/vasnprintf.c:3804:37: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+.2d", exponent); data/octave-5.2.0/libgnu/vasnprintf.c:3977:45: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+.2d", exponent); data/octave-5.2.0/libgnu/vasnprintf.c:3983:45: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 expbuf[6 + 1]; data/octave-5.2.0/libgnu/vasnprintf.c:3985:45: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+.2d", exponent); data/octave-5.2.0/libgnu/vasnprintf.c:4275:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 expbuf[6 + 1]; data/octave-5.2.0/libgnu/vasnprintf.c:4468:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/octave-5.2.0/libgnu/vasnprintf.c:4594: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 (result + length, tmp, count * sizeof (DCHAR_T)); data/octave-5.2.0/libgnu/vasnprintf.c:4802:29: [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 (fbp, dp->width_start, n * sizeof (TCHAR_T)); data/octave-5.2.0/libgnu/vasnprintf.c:4823:29: [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 (fbp, dp->precision_start, n * sizeof (TCHAR_T)); data/octave-5.2.0/libgnu/vasnprintf.c:5532: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 (result + length, tmp, count * sizeof (DCHAR_T)); data/octave-5.2.0/libgnu/xmalloc.c:113:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy (xmalloc (s), p, s); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/BlockArray.cpp:175:21: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE* tmp = tmpfile(); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/BlockArray.h:33:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[ENTRIES]; data/octave-5.2.0/libgui/qterminal/libqterminal/unix/History.cpp:88:15: [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 (tmpFile.open()) data/octave-5.2.0/libgui/qterminal/libqterminal/unix/History.cpp:372:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, line.constData() + startColumn , count * sizeof(Character)); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/History.cpp:498:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(res, b->data + (colno * sizeof(Character)), count * sizeof(Character)); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/History.cpp:512:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b->data, a, count * sizeof(Character)); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/KeyboardTranslator.cpp:121: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). if (!destination.open(QIODevice::WriteOnly | QIODevice::Text)) data/octave-5.2.0/libgui/qterminal/libqterminal/unix/KeyboardTranslator.cpp:149:35: [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 (name.isEmpty() || !source.open(QIODevice::ReadOnly | QIODevice::Text)) data/octave-5.2.0/libgui/qterminal/libqterminal/unix/KeyboardTranslator.cpp:160:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!textBuffer.open(QIODevice::ReadOnly)) data/octave-5.2.0/libgui/qterminal/libqterminal/unix/KeyboardTranslator.cpp:488:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QIODevice::ReadOnly); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/KeyboardTranslator.cpp:677: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 replacement[2] = {0,0}; data/octave-5.2.0/libgui/qterminal/libqterminal/unix/KeyboardTranslator.cpp:694: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 hexDigits[3] = {0}; data/octave-5.2.0/libgui/qterminal/libqterminal/unix/QUnixTerminalImpl.cpp:79:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). m_kpty->open(); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/SelfListener.cpp:26:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096 + 1]; data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalView.cpp:973:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void*)currentLine,(const void*)newLine,columnsToUpdate*sizeof(Character)); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalView.cpp:1452:11: [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((void*)&_image[_columns*line], data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp:824:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char tmp[20]; data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp:825:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp,"\033[%d;%dR",_currentScreen->getCursorY()+1,_currentScreen->getCursorX()+1); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp:862:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char tmp[100]; data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp:863:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp,"\033[%d;1;1;112;112;1;0x",p); // not really true. data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp:904:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char tmp[20]; data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp:914:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp,"\033[M%c%c%c",cb+0x20,cx+0x20,cy+0x20); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.h:58:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char charset[4]; // data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:212:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool KPty::open() data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:233:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ptsn[PATH_MAX]; data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:260:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). d->masterFd = ::open(PTM_DEVICE, O_RDWR|O_NOCTTY); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:262: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). # error No method to open a PTY master detected. data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:273: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[32]; data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:274:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "/dev/pts/%d", ptyno); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:297:23: [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). d->masterFd = ::open(ptyName.data(), O_RDWR); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.cpp:366: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). d->slaveFd = ::open(d->ttyName.data(), O_RDWR | O_NOCTTY); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/kpty.h:59:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open(); data/octave-5.2.0/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp:366:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t titleBuf[260]; data/octave-5.2.0/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp:472:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open (devName, _O_RDWR | _O_BINARY); data/octave-5.2.0/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp:975:20: [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* flog = fopen (LOGFILENAME, "ab"); data/octave-5.2.0/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp:985:20: [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* flog = fopen (LOGFILENAME, "w"); data/octave-5.2.0/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp:1253:10: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 wchar_t titleBuf[260]; data/octave-5.2.0/libgui/src/files-dock-widget.cc:896: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). file.open (QIODevice::WriteOnly); data/octave-5.2.0/libgui/src/find-files-dialog.cc:392: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). if (file.open (QIODevice::ReadOnly)) data/octave-5.2.0/libgui/src/m-editor/file-editor-tab.cc:705:30: [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). bool apis_usable = f.open (QIODevice::ReadOnly); data/octave-5.2.0/libgui/src/m-editor/file-editor-tab.cc:709:29: [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). apis_usable = f.open (QIODevice::WriteOnly); data/octave-5.2.0/libgui/src/m-editor/file-editor-tab.cc:1752:15: [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 (!file.open(QIODevice::ReadOnly)) data/octave-5.2.0/libgui/src/m-editor/file-editor-tab.cc:2141:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! file.open (QIODevice::WriteOnly)) data/octave-5.2.0/libgui/src/m-editor/file-editor.cc:1407:40: [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 (! file.open (QIODevice::WriteOnly)) data/octave-5.2.0/libgui/src/main-window.cc:529:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file->open (QFile::ReadOnly)) data/octave-5.2.0/libgui/src/resource-manager.cc:236:27: [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 (! qt_settings.open (QFile::ReadOnly)) data/octave-5.2.0/libgui/src/resource-manager.cc:273:29: [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 (! user_settings.open (QIODevice::WriteOnly)) data/octave-5.2.0/libinterp/corefcn/DASPK-opts.cc:28: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. const char *kw_tok[MAX_TOKENS + 1]; data/octave-5.2.0/libinterp/corefcn/DASRT-opts.cc:28: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. const char *kw_tok[MAX_TOKENS + 1]; data/octave-5.2.0/libinterp/corefcn/DASSL-opts.cc:28: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. const char *kw_tok[MAX_TOKENS + 1]; data/octave-5.2.0/libinterp/corefcn/LSODE-opts.cc:28: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. const char *kw_tok[MAX_TOKENS + 1]; data/octave-5.2.0/libinterp/corefcn/Quad-opts.cc:28: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. const char *kw_tok[MAX_TOKENS + 1]; data/octave-5.2.0/libinterp/corefcn/debug.cc:690:25: [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). start = atoi (start_str.c_str ()); data/octave-5.2.0/libinterp/corefcn/debug.cc:694:25: [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). end = atoi (end_str.c_str ()); data/octave-5.2.0/libinterp/corefcn/debug.cc:708:24: [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). int line = atoi (arg.c_str ()); data/octave-5.2.0/libinterp/corefcn/debug.cc:751:21: [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). start = atoi (start_str.c_str ()); data/octave-5.2.0/libinterp/corefcn/debug.cc:755:21: [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). end = atoi (end_str.c_str ()); data/octave-5.2.0/libinterp/corefcn/debug.cc:759:21: [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). start = atoi (arg.c_str ()); data/octave-5.2.0/libinterp/corefcn/debug.cc:801:15: [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). n = atoi (s_arg.c_str ()); data/octave-5.2.0/libinterp/corefcn/debug.cc:889:19: [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). n = atoi (s_arg.c_str ()); data/octave-5.2.0/libinterp/corefcn/debug.cc:1033:15: [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). n = atoi (s_arg.c_str ()); data/octave-5.2.0/libinterp/corefcn/debug.cc:1131:19: [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). int n = atoi (arg.c_str ()); data/octave-5.2.0/libinterp/corefcn/dlmread.cc:227: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). input_file.open (ascii_fname.c_str (), std::ios::in); data/octave-5.2.0/libinterp/corefcn/dynamic-ld.cc:165: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). oct_file.open (file_name); data/octave-5.2.0/libinterp/corefcn/dynamic-ld.cc:219: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). mex_file.open (file_name); data/octave-5.2.0/libinterp/corefcn/file-io.cc:435:37: [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 *fptr = octave::sys::fopen (fname.c_str (), mode.c_str ()); data/octave-5.2.0/libinterp/corefcn/file-io.cc:452:37: [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 *fptr = octave::sys::fopen (fname.c_str (), mode.c_str ()); data/octave-5.2.0/libinterp/corefcn/file-io.cc:483:12: [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). DEFMETHOD (fopen, interp, args, nargout, data/octave-5.2.0/libinterp/corefcn/file-io.cc:2266:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). %! fid = fopen (f, "w+"); data/octave-5.2.0/libinterp/corefcn/file-io.cc:2871:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). DEFMETHOD (tmpfile, interp, args, , data/octave-5.2.0/libinterp/corefcn/file-io.cc:2918:12: [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). DEFMETHOD (mkstemp, interp, args, , data/octave-5.2.0/libinterp/corefcn/gl2ps-print.cc:451: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 str[8192]; // 8 kB is a common kernel buffersize data/octave-5.2.0/libinterp/corefcn/gl2ps-print.cc:1168:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = octave::sys::fopen (stream.c_str (), "w"); data/octave-5.2.0/libinterp/corefcn/graphics.cc:5734:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (m.fortran_vec (), data, sizeof (double)*32); data/octave-5.2.0/libinterp/corefcn/graphics.cc:5744:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (retval.fortran_vec (), m.fortran_vec (), sizeof (double)*3); data/octave-5.2.0/libinterp/corefcn/help.cc:595:29: [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). error ("failed to open docstrings file: %s", data/octave-5.2.0/libinterp/corefcn/help.cc:681:29: [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). error ("failed to open docstrings file: %s", data/octave-5.2.0/libinterp/corefcn/hex2num.cc:256:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex[nchars]; data/octave-5.2.0/libinterp/corefcn/load-save.cc:87:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #if defined (open) data/octave-5.2.0/libinterp/corefcn/load-save.cc:88:10: [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). # undef open data/octave-5.2.0/libinterp/corefcn/load-save.cc:132: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 magic[magic_len+1]; data/octave-5.2.0/libinterp/corefcn/load-save.cc:175:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char magic[2]; data/octave-5.2.0/libinterp/corefcn/load-save.cc:244:17: [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) data/octave-5.2.0/libinterp/corefcn/load-save.cc:850:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char headertext[128]; data/octave-5.2.0/libinterp/corefcn/load-save.cc:860:11: [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 (headertext, comment_string.data (), len); data/octave-5.2.0/libinterp/corefcn/load-save.cc:874:11: [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 (headertext+124, versionmagic, 4); data/octave-5.2.0/libinterp/corefcn/ls-hdf5.cc:121:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). hdf5_fstreambase::open (const char *name, int mode, int) data/octave-5.2.0/libinterp/corefcn/ls-hdf5.h:57:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const char *name, int mode, int); data/octave-5.2.0/libinterp/corefcn/ls-hdf5.h:75:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const char *name, int mode = std::ios::in | std::ios::binary, data/octave-5.2.0/libinterp/corefcn/ls-hdf5.h:77:23: [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). { hdf5_fstreambase::open (name, mode, prot); } data/octave-5.2.0/libinterp/corefcn/ls-hdf5.h:90:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const char *name, int mode = std::ios::out | std::ios::binary, data/octave-5.2.0/libinterp/corefcn/ls-hdf5.h:92:23: [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). { hdf5_fstreambase::open (name, mode, prot); } data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:1689: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 char buf[9]="\x00\x00\x00\x00\x00\x00\x00\x00"; data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:1774: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 char buf[9]="\x00\x00\x00\x00\x00\x00\x00\x00"; data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:1827: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 char buf[9]="\x00\x00\x00\x00\x00\x00\x00\x00"; data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:2412: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 char buf[9]="\x00\x00\x00\x00\x00\x00\x00\x00"; data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:2452: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 char padbuf[9]="\x00\x00\x00\x00\x00\x00\x00\x00"; data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:2636: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/octave-5.2.0/libinterp/corefcn/mex.cc:1183:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pr, val.pr, nbytes); data/octave-5.2.0/libinterp/corefcn/mex.cc:1186:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pi, val.pi, nbytes); data/octave-5.2.0/libinterp/corefcn/mex.cc:1512:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pr, val.pr, nbytes); data/octave-5.2.0/libinterp/corefcn/mex.cc:1515:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pi, val.pi, nbytes); data/octave-5.2.0/libinterp/corefcn/mex.cc:1518:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ir, val.ir, nzmax * sizeof (mwIndex)); data/octave-5.2.0/libinterp/corefcn/mex.cc:1521:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (jc, val.jc, (val.get_n () + 1) * sizeof (mwIndex)); data/octave-5.2.0/libinterp/corefcn/oct-fstrm.cc:45:6: [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). fs.open (nm.c_str (), arg_md); data/octave-5.2.0/libinterp/corefcn/oct-procbuf.cc:74:17: [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). octave_procbuf::open (const char *command, int mode) data/octave-5.2.0/libinterp/corefcn/oct-procbuf.h:46:24: [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). next (nullptr) { open (command, mode); } data/octave-5.2.0/libinterp/corefcn/oct-procbuf.h:56:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). octave_procbuf * open (const char *command, int mode); data/octave-5.2.0/libinterp/corefcn/oct-tex-parser.cc:950:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/octave-5.2.0/libinterp/corefcn/oct-tex-parser.cc:1237:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yymsgbuf[128]; data/octave-5.2.0/libinterp/corefcn/octave-link.cc:231:33: [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). retval(idx++) = atoi (str.c_str ()); data/octave-5.2.0/libinterp/corefcn/octave-link.cc:246:35: [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). retval = ovl (items, *it++, atoi (it->c_str ())); data/octave-5.2.0/libinterp/corefcn/pager.cc:372:27: [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). m_external_diary_file.open (m_diary_file_name.c_str (), std::ios::app); data/octave-5.2.0/libinterp/corefcn/pr-output.cc:1254:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char i[sizeof (T)]; data/octave-5.2.0/libinterp/corefcn/pr-output.cc:1261:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stmp[9]; \ data/octave-5.2.0/libinterp/corefcn/pr-output.cc:1279:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stmp[9]; \ data/octave-5.2.0/libinterp/corefcn/procstream.cc:35:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! pb.open (command.c_str (), mode)) data/octave-5.2.0/libinterp/corefcn/procstream.cc:43:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! pb.open (command, mode)) data/octave-5.2.0/libinterp/corefcn/procstream.cc:48:17: [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). procstreambase::open (const char *command, int mode) data/octave-5.2.0/libinterp/corefcn/procstream.cc:52:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! pb.open (command, mode)) data/octave-5.2.0/libinterp/corefcn/procstream.h:49:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const std::string& name, int mode) data/octave-5.2.0/libinterp/corefcn/procstream.h:50:5: [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). { open (name.c_str (), mode); } data/octave-5.2.0/libinterp/corefcn/procstream.h:52:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const char *name, int mode); data/octave-5.2.0/libinterp/corefcn/procstream.h:90:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const std::string& name, int mode = std::ios::in) data/octave-5.2.0/libinterp/corefcn/procstream.h:91:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). { procstreambase::open (name, mode); } data/octave-5.2.0/libinterp/corefcn/procstream.h:93:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const char *name, int mode = std::ios::in) data/octave-5.2.0/libinterp/corefcn/procstream.h:94:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). { procstreambase::open (name, mode); } data/octave-5.2.0/libinterp/corefcn/procstream.h:120:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const std::string& name, int mode = std::ios::out) data/octave-5.2.0/libinterp/corefcn/procstream.h:121:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). { procstreambase::open (name, mode); } data/octave-5.2.0/libinterp/corefcn/procstream.h:123:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const char *name, int mode = std::ios::out) data/octave-5.2.0/libinterp/corefcn/procstream.h:124:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). { procstreambase::open (name, mode); } data/octave-5.2.0/libinterp/corefcn/procstream.h:150:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const std::string& name, int mode) data/octave-5.2.0/libinterp/corefcn/procstream.h:151:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). { procstreambase::open (name, mode); } data/octave-5.2.0/libinterp/corefcn/procstream.h:153:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open (const char *name, int mode) data/octave-5.2.0/libinterp/corefcn/procstream.h:154:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). { procstreambase::open (name, mode); } data/octave-5.2.0/libinterp/corefcn/syminfo.cc:108:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[6]; data/octave-5.2.0/libinterp/corefcn/sysdep.cc:530:9: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t tmode[3] = {wmode[0], L'b', L'\0'}; data/octave-5.2.0/libinterp/corefcn/sysdep.cc:805:3: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t value_name[MAX_VALUE_NAME_SIZE+1]; data/octave-5.2.0/libinterp/corefcn/sysdep.cc:1068:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[2] = { static_cast<char> (c), '\0' }; data/octave-5.2.0/libinterp/corefcn/typecast.cc:81:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy (dest, data, n * sizeof (T)); data/octave-5.2.0/libinterp/corefcn/typecast.cc:100:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy (dest, data, n * sizeof (VT)); data/octave-5.2.0/libinterp/corefcn/utils.cc:184:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 **to_match = new const char * [max_toks + 1]; data/octave-5.2.0/libinterp/corefcn/utils.cc:763: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 char retval[2] {'\0', '\0'}; data/octave-5.2.0/libinterp/corefcn/zfstream.cc:85:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). gzfilebuf::open (const char *name, std::ios_base::openmode mode) data/octave-5.2.0/libinterp/corefcn/zfstream.cc:95:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char char_mode[6] = "\0\0\0\0\0"; data/octave-5.2.0/libinterp/corefcn/zfstream.cc:122:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char char_mode[6] = "\0\0\0\0\0"; data/octave-5.2.0/libinterp/corefcn/zfstream.cc:529:9: [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). this->open (name, mode); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:542:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). gzifstream::open (const char *name, std::ios_base::openmode mode) data/octave-5.2.0/libinterp/corefcn/zfstream.cc:544:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! sb.open (name, mode | std::ios_base::in)) data/octave-5.2.0/libinterp/corefcn/zfstream.cc:578:9: [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). this->open (name, mode); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:591:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). gzofstream::open (const char *name, std::ios_base::openmode mode) data/octave-5.2.0/libinterp/corefcn/zfstream.cc:593:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! sb.open (name, mode | std::ios_base::out)) data/octave-5.2.0/libinterp/corefcn/zfstream.h:96:3: [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). open (const char *name, data/octave-5.2.0/libinterp/corefcn/zfstream.h:329:3: [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). open (const char *name, data/octave-5.2.0/libinterp/corefcn/zfstream.h:416:3: [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). open (const char *name, data/octave-5.2.0/libinterp/dldfcn/__delaunayn__.cc:170:28: [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 *outfile = std::fopen ("NUL", "w"); data/octave-5.2.0/libinterp/dldfcn/__delaunayn__.cc:172:28: [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 *outfile = std::fopen ("/dev/null", "w"); data/octave-5.2.0/libinterp/dldfcn/__init_fltk__.cc:587:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). val = atoi (valstr.c_str ()); data/octave-5.2.0/libinterp/dldfcn/__init_fltk__.cc:1560:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp_e_text[2]; data/octave-5.2.0/libinterp/dldfcn/__voronoi__.cc:162:24: [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 *outfile = std::fopen ("NUL", "w"); data/octave-5.2.0/libinterp/dldfcn/__voronoi__.cc:164:24: [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 *outfile = std::fopen ("/dev/null", "w"); data/octave-5.2.0/libinterp/dldfcn/audiodevinfo.cc:174:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[128]; data/octave-5.2.0/libinterp/dldfcn/convhulln.cc:177:24: [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 *outfile = std::fopen ("NUL", "w"); data/octave-5.2.0/libinterp/dldfcn/convhulln.cc:179:24: [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 *outfile = std::fopen ("/dev/null", "w"); data/octave-5.2.0/libinterp/dldfcn/gzip.cc:101:28: [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). : m_fp (octave::sys::fopen (path, mode)) data/octave-5.2.0/libinterp/dldfcn/gzip.cc:174: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[buf_len]; data/octave-5.2.0/libinterp/dldfcn/gzip.cc:407: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. unsigned char buf_in[buf_len]; data/octave-5.2.0/libinterp/dldfcn/gzip.cc:408: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. unsigned char buf_out[buf_len]; data/octave-5.2.0/libinterp/octave-value/ov-base.cc:1027: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 const char *names[num_unary_mappers] = data/octave-5.2.0/libinterp/octave-value/ov-bool.cc:176:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[2]; data/octave-5.2.0/libinterp/parse-tree/bp-table.cc:301:22: [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). else if (atoi (args(pos).string_value ().c_str ()) > 0) data/octave-5.2.0/libinterp/parse-tree/bp-table.cc:355:32: [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). int line = atoi (args(pos).string_value ().c_str ()); data/octave-5.2.0/libinterp/parse-tree/lex.cc:5044: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 (buf, m_pos, len); data/octave-5.2.0/libinterp/parse-tree/oct-parse.cc:1731:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/octave-5.2.0/libinterp/parse-tree/oct-parse.cc:3071:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yymsgbuf[128]; data/octave-5.2.0/libinterp/parse-tree/oct-parse.cc:8492:28: [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). ffile = octave::sys::fopen (full_file, "rb"); data/octave-5.2.0/liboctave/array/Array-util.cc:269: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 const char *tag[3] = { "row", "column", nullptr }; data/octave-5.2.0/liboctave/array/idx-vector.cc:632:16: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy (retval.fortran_vec (), data, len*sizeof (octave_idx_type)); data/octave-5.2.0/liboctave/numeric/randmtzig.cc:260:26: [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 *urandom = std::fopen ("/dev/urandom", "rb"); data/octave-5.2.0/liboctave/numeric/randmtzig.cc:265:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char word[4]; data/octave-5.2.0/liboctave/operators/mx-inlines.cc:387:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy (r, x, n * sizeof (T)); \ data/octave-5.2.0/liboctave/operators/mx-inlines.cc:396:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy (r, y, n * sizeof (T)); \ data/octave-5.2.0/liboctave/system/cmach-info.c:136: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 c[sizeof (long)]; data/octave-5.2.0/liboctave/system/dir-ops.cc:47:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dir_entry::open (const std::string& n) data/octave-5.2.0/liboctave/system/dir-ops.h:46:11: [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). open (); data/octave-5.2.0/liboctave/system/dir-ops.h:67:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open (const std::string& = ""); data/octave-5.2.0/liboctave/system/file-ops.cc:670:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tname [templatename.length () + 1]; data/octave-5.2.0/liboctave/system/file-stat.cc:149:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[12]; data/octave-5.2.0/liboctave/system/lo-sysdep.cc:149:5: [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). fopen (const std::string& filename, const std::string& mode) data/octave-5.2.0/liboctave/system/lo-sysdep.cc:155:19: [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). return std::fopen (filename.c_str (), mode.c_str ()); data/octave-5.2.0/liboctave/system/lo-sysdep.cc:327:7: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t w_full_file_name[_MAX_PATH]; data/octave-5.2.0/liboctave/system/lo-sysdep.cc:396:7: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t w_filename_hash[filename_hash.length ()+1] = {0}; data/octave-5.2.0/liboctave/system/lo-sysdep.h:47:24: [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). extern std::FILE * fopen (const std::string& name, const std::string& mode); data/octave-5.2.0/liboctave/system/lo-sysinfo.cc:134:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[198]; data/octave-5.2.0/liboctave/system/oct-env.cc:521:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostname[1024]; data/octave-5.2.0/liboctave/system/oct-syscalls.cc:115:5: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. vfork (std::string& msg) data/octave-5.2.0/liboctave/system/oct-syscalls.h:47:29: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. extern OCTAVE_API pid_t vfork (std::string&); data/octave-5.2.0/liboctave/util/cmd-edit.cc:1836:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char number_buffer[32]; data/octave-5.2.0/liboctave/util/cmd-edit.cc:1839:21: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number_buffer, "%d", num); data/octave-5.2.0/liboctave/util/cmd-edit.cc:1849:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char number_buffer[32]; data/octave-5.2.0/liboctave/util/cmd-edit.cc:1850:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number_buffer, "%d", command_number); data/octave-5.2.0/liboctave/util/data-conv.cc:391:28: [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). block_size = atoi (s.c_str ()); data/octave-5.2.0/liboctave/util/data-conv.cc:458:24: [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). block_size = atoi (s.c_str ()); data/octave-5.2.0/liboctave/util/f77-fcn.h:328:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (cs, F77_CHAR_ARG_USE (s), F77_CHAR_ARG_LEN_USE (s, len)); \ data/octave-5.2.0/liboctave/util/lo-traits.h:96:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { char c[2]; } two; data/octave-5.2.0/liboctave/util/oct-shlib.cc:523:10: [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). void open (const std::string& f); data/octave-5.2.0/liboctave/util/oct-shlib.h:158:10: [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). void open (const std::string& f) data/octave-5.2.0/liboctave/util/pathsearch.cc:106:25: [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). kpse_debug |= atoi (val.c_str ()); data/octave-5.2.0/liboctave/util/str-vec.cc:158:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 **retval = new char * [len + 1]; data/octave-5.2.0/liboctave/wrappers/fcntl-wrappers.c:45:10: [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). return open (nm, flags, mode); data/octave-5.2.0/liboctave/wrappers/tmpfile-wrapper.c:38:10: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). return tmpfile (); data/octave-5.2.0/liboctave/wrappers/uniconv-wrappers.c:81:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (retval, mbchar, length); data/octave-5.2.0/liboctave/wrappers/uniconv-wrappers.c:108:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (retval, wchar, length); data/octave-5.2.0/liboctave/wrappers/unistd-wrappers.c:310:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (nm, retval, len); data/octave-5.2.0/liboctave/wrappers/unistd-wrappers.c:471:10: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. return vfork (); data/octave-5.2.0/src/main.in.cc:229:32: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 **new_argv = new char * [argc + 1]; data/octave-5.2.0/src/octave-svgconvert.cc:739: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 (! file.open (QIODevice::ReadOnly | QIODevice::Text)) data/octave-5.2.0/src/octave-svgconvert.cc:749: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 (! file.open (stdin, QIODevice::ReadOnly | QIODevice::Text)) data/octave-5.2.0/src/octave-svgconvert.cc:819:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! fout.open ()) data/octave-5.2.0/src/shared-fcns.h:49:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char namebuf[MAX_PATH+1]; data/octave-5.2.0/libgnu/af_alg.c:92:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read (ofd, resblock, hashlen) == hashlen ? 0 : -EAFNOSUPPORT; data/octave-5.2.0/libgnu/af_alg.c:132:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (ofd, resblock, hashlen) == hashlen) data/octave-5.2.0/libgnu/af_alg.c:200:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (result == 0 && read (ofd, resblock, hashlen) != hashlen) data/octave-5.2.0/libgnu/basename-lgpl.c:63:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--) data/octave-5.2.0/libgnu/canonicalize.c:274: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). n = strlen (buf); data/octave-5.2.0/libgnu/canonicalize.c:275: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). len = strlen (end); data/octave-5.2.0/libgnu/chdir-long.c:117: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 (dir); data/octave-5.2.0/libgnu/error.c:211: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 len = strlen (message) + 1; data/octave-5.2.0/libgnu/filenamecat-lgpl.c:52: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 baselen = strlen (base); data/octave-5.2.0/libgnu/fnmatch.c:164: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). # define STRLEN(S) strlen (S) data/octave-5.2.0/libgnu/fnmatch.c:194:22: [1] (buffer) wcslen: Does not handle 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 STRLEN(S) wcslen (S) data/octave-5.2.0/libgnu/fnmatch.c:342: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). return internal_fnmatch (pattern, string, string + strlen (string), data/octave-5.2.0/libgnu/fstatat.c:79: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). len = strlen (file); data/octave-5.2.0/libgnu/getcwd-lgpl.c:119: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). result = realloc (buf, strlen (buf) + 1); data/octave-5.2.0/libgnu/getcwd.c:45:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define _D_EXACT_NAMLEN(d) strlen ((d)->d_name) data/octave-5.2.0/libgnu/gethostname.c:55:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (name, uts.nodename, len); data/octave-5.2.0/libgnu/gethostname.c:57:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (name, ""); /* Hardcode your system name if you want. */ data/octave-5.2.0/libgnu/getlogin_r.c:101: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). nlen = strlen (n); data/octave-5.2.0/libgnu/getopt.c:214: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). && namelen == strlen (p->name)) data/octave-5.2.0/libgnu/getopt.c:301: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). d->__nextchar += strlen (d->__nextchar); data/octave-5.2.0/libgnu/getprogname.c:117:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (ucomm) < PST_UCOMMLEN - 1) data/octave-5.2.0/libgnu/getprogname.c:131: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). if (strlen (p) > PST_UCOMMLEN - 1 data/octave-5.2.0/libgnu/getprogname.c:153: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). if (strlen (ucomm) < PST_UCOMMLEN - 1) data/octave-5.2.0/libgnu/getprogname.c:167: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). if (strlen (p) > PST_UCOMMLEN - 1 data/octave-5.2.0/libgnu/gettext.h:216: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 msgctxt_len = strlen (msgctxt) + 1; data/octave-5.2.0/libgnu/gettext.h:217:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/octave-5.2.0/libgnu/gettext.h:264: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 msgctxt_len = strlen (msgctxt) + 1; data/octave-5.2.0/libgnu/gettext.h:265:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/octave-5.2.0/libgnu/glob.c:296:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pattern[0] && pattern[strlen (pattern) - 1] == '/') data/octave-5.2.0/libgnu/glob.c:363: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 pattern_len = strlen (pattern) - 1; data/octave-5.2.0/libgnu/glob.c:401:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rest_len = strlen (++rest) + 1; data/octave-5.2.0/libgnu/glob.c:478: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). dirlen = strlen (pattern); data/octave-5.2.0/libgnu/glob.c:606: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). size_t home_drive_len = strlen (home_drive); data/octave-5.2.0/libgnu/glob.c:607: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). size_t home_path_len = strlen (home_path); data/octave-5.2.0/libgnu/glob.c:629: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). size_t ssize = strlen (s.data) + 1; data/octave-5.2.0/libgnu/glob.c:682: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). dirlen = strlen (dirname); data/octave-5.2.0/libgnu/glob.c:688: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). size_t home_len = strlen (home_dir); data/octave-5.2.0/libgnu/glob.c:814: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). size_t home_len = strlen (p->pw_dir); data/octave-5.2.0/libgnu/glob.c:815:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t rest_len = end_name == NULL ? 0 : strlen (end_name); data/octave-5.2.0/libgnu/glob.c:1122: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 len = strlen (pglob->gl_pathv[i]) + 2; data/octave-5.2.0/libgnu/glob.c:1131:13: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (&new[len - 2], "/"); data/octave-5.2.0/libgnu/glob.c:1180: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 dirlen = strlen (dirname); data/octave-5.2.0/libgnu/glob.c:1205: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 eltlen = strlen (array[i]) + 1; data/octave-5.2.0/libgnu/glob.c:1235: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 dirlen = strlen (directory); data/octave-5.2.0/libgnu/glob.c:1272: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 patlen = strlen (pattern); data/octave-5.2.0/libgnu/glob.c:1384: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 len = strlen (pattern); data/octave-5.2.0/libgnu/link.c:60: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 len1 = strlen (file1); data/octave-5.2.0/libgnu/link.c:61: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 len2 = strlen (file2); data/octave-5.2.0/libgnu/link.c:173: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). len1 = strlen (file1); data/octave-5.2.0/libgnu/link.c:174: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). len2 = strlen (file2); data/octave-5.2.0/libgnu/localcharset.c:777: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). if (pdot && 2 + strlen (pdot + 1) + 1 <= sizeof (buf)) data/octave-5.2.0/libgnu/lstat.c:80: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). if (S_ISDIR (sbuf->st_mode) || file[strlen (file) - 1] != '/') data/octave-5.2.0/libgnu/mkdir.c:55: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 len = strlen (dir); data/octave-5.2.0/libgnu/mkfifo.c:47: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 len = strlen (name); data/octave-5.2.0/libgnu/nstrftime.c:97: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). # define STRLEN(s) strlen (s) data/octave-5.2.0/libgnu/nstrftime.c:629: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). format_end = f + strlen (f) + 1; data/octave-5.2.0/libgnu/nstrftime.c:641: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). len += strlen (f + len); data/octave-5.2.0/libgnu/nstrftime.c:920: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 len = strlen (era->era_name); data/octave-5.2.0/libgnu/nstrftime.c:1393: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). cpy (strlen (zone), zone); data/octave-5.2.0/libgnu/open.c:118: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 len = strlen (filename); data/octave-5.2.0/libgnu/open.c:187: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 len = strlen (filename); data/octave-5.2.0/libgnu/openat-proc.c:98:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t bufsize = PROC_SELF_FD_DIR_SIZE_BOUND + strlen (file); data/octave-5.2.0/libgnu/openat-proc.c:118:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dirlen = strlen (dir); data/octave-5.2.0/libgnu/openat-proc.c:119: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). bufsize = dirlen + 1 + strlen (file) + 1; /* 1 for '/', 1 for null */ data/octave-5.2.0/libgnu/openat.c:107: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 len = strlen (filename); data/octave-5.2.0/libgnu/openat.c:152: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 len = strlen (filename); data/octave-5.2.0/libgnu/opendir.c:103: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). p = dir_name_mask + strlen (dir_name_mask); data/octave-5.2.0/libgnu/opendir.c:139: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). + strlen (dir_name_mask) + 1); data/octave-5.2.0/libgnu/putenv.c:75: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). len = strlen (name); data/octave-5.2.0/libgnu/readlink.c:57: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 len = strlen (name); data/octave-5.2.0/libgnu/rmdir.c:37: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 len = strlen (dir); data/octave-5.2.0/libgnu/select.c:123:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). BOOL read, write, except; data/octave-5.2.0/libgnu/select.c:230:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read && (rbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) data/octave-5.2.0/libgnu/setenv.c:118: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). const size_t namelen = strlen (name); data/octave-5.2.0/libgnu/setenv.c:119:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t vallen = value != NULL ? strlen (value) + 1 : 0; data/octave-5.2.0/libgnu/setenv.c:376: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 len = strlen (value); data/octave-5.2.0/libgnu/stat.c:122: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 len = strlen (name); data/octave-5.2.0/libgnu/stat.c:417: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 len = strlen (name); data/octave-5.2.0/libgnu/stdio.in.h:254:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef fgetc data/octave-5.2.0/libgnu/stdio.in.h:255:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define fgetc rpl_fgetc data/octave-5.2.0/libgnu/stdio.in.h:257:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/octave-5.2.0/libgnu/stdio.in.h:258:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (fgetc, int, (FILE *stream)); data/octave-5.2.0/libgnu/stdio.in.h:260:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (fgetc, int, (FILE *stream)); data/octave-5.2.0/libgnu/stdio.in.h:262:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (fgetc); data/octave-5.2.0/libgnu/stdio.in.h:641:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/octave-5.2.0/libgnu/stdio.in.h:642:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc rpl_fgetc data/octave-5.2.0/libgnu/stdio.in.h:644:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/octave-5.2.0/libgnu/stdio.in.h:645:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL_1 (getc, rpl_fgetc, int, (FILE *stream)); data/octave-5.2.0/libgnu/stdio.in.h:647:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getc, int, (FILE *stream)); data/octave-5.2.0/libgnu/stdio.in.h:649:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getc); data/octave-5.2.0/libgnu/stdio.in.h:655:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/octave-5.2.0/libgnu/stdio.in.h:656:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar rpl_getchar data/octave-5.2.0/libgnu/stdio.in.h:658:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (getchar, int, (void)); data/octave-5.2.0/libgnu/stdio.in.h:659:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (getchar, int, (void)); data/octave-5.2.0/libgnu/stdio.in.h:661:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getchar, int, (void)); data/octave-5.2.0/libgnu/stdio.in.h:663:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getchar); data/octave-5.2.0/libgnu/strdup.c:41: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 len = strlen (s) + 1; data/octave-5.2.0/libgnu/strerror.c:65: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). len = strlen (msg); data/octave-5.2.0/libgnu/striconveh.c:1038: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). int retval = mem_cd_iconveh_internal (src, strlen (src), data/octave-5.2.0/libgnu/striconveha.c:105:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). namelen = strlen (name) + 1; data/octave-5.2.0/libgnu/striconveha.c:108: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). memneed += sizeof (char *) + strlen (try_in_order[i]) + 1; data/octave-5.2.0/libgnu/striconveha.c:126: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 len = strlen (try_in_order[i]) + 1; data/octave-5.2.0/libgnu/striconveha.c:235: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 len = strlen (to_codeset); data/octave-5.2.0/libgnu/striconveha.c:337: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 len = strlen (to_codeset); data/octave-5.2.0/libgnu/string.in.h:411:11: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/octave-5.2.0/libgnu/string.in.h:412:12: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # define strncat rpl_strncat data/octave-5.2.0/libgnu/string.in.h:414:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n) data/octave-5.2.0/libgnu/string.in.h:416:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n)); data/octave-5.2.0/libgnu/string.in.h:418:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n)); data/octave-5.2.0/libgnu/string.in.h:420:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIASWARN (strncat); data/octave-5.2.0/libgnu/string.in.h:422:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/octave-5.2.0/libgnu/string.in.h:424:18: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_WARN_ON_USE (strncat, "strncat is unportable - " data/octave-5.2.0/libgnu/strptime.c:46: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 len = strlen (cs1); \ data/octave-5.2.0/libgnu/strptime.c:53: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). (strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1)) data/octave-5.2.0/libgnu/strptime.c:53:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1)) data/octave-5.2.0/libgnu/symlink.c:35: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 len = strlen (name); data/octave-5.2.0/libgnu/tempname.c:131:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). plen = strlen (pfx); data/octave-5.2.0/libgnu/tempname.c:159: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). dlen = strlen (dir); data/octave-5.2.0/libgnu/tempname.c:207: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). len = strlen (tmpl); data/octave-5.2.0/libgnu/time_rz.c:97:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t name_size = name ? strlen (name) + 1 : 0; data/octave-5.2.0/libgnu/time_rz.c:153: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). size_t zone_size = strlen (zone) + 1; data/octave-5.2.0/libgnu/time_rz.c:173: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). zone_copy += strlen (zone_copy) + 1; data/octave-5.2.0/libgnu/tmpdir.c:101:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). plen = strlen (pfx); data/octave-5.2.0/libgnu/tmpdir.c:142: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). dlen = strlen (dir); data/octave-5.2.0/libgnu/tmpfile.c:87: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 len = strlen (xtemplate); data/octave-5.2.0/libgnu/unicase/u8-tolower.c:105: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). int length = strlen (input); data/octave-5.2.0/libgnu/unicase/u8-toupper.c:105: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). int length = strlen (input); data/octave-5.2.0/libgnu/unistd.in.h:1297:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/octave-5.2.0/libgnu/unistd.in.h:1298:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read rpl_read data/octave-5.2.0/libgnu/unistd.in.h:1300:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count) data/octave-5.2.0/libgnu/unistd.in.h:1302:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count)); data/octave-5.2.0/libgnu/unistd.in.h:1307:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS_CAST (read, ssize_t, (int fd, void *buf, size_t count)); data/octave-5.2.0/libgnu/unistd.in.h:1309:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (read); data/octave-5.2.0/libgnu/unistd.in.h:1622:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/octave-5.2.0/libgnu/unistd.in.h:1623:12: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # define usleep rpl_usleep data/octave-5.2.0/libgnu/unistd.in.h:1625:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); data/octave-5.2.0/libgnu/unistd.in.h:1626:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); data/octave-5.2.0/libgnu/unistd.in.h:1629:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); data/octave-5.2.0/libgnu/unistd.in.h:1631:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_SYS (usleep, int, (useconds_t n)); data/octave-5.2.0/libgnu/unistd.in.h:1633:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIASWARN (usleep); data/octave-5.2.0/libgnu/unistd.in.h:1635:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/octave-5.2.0/libgnu/unistd.in.h:1637:18: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_WARN_ON_USE (usleep, "usleep is unportable - " data/octave-5.2.0/libgnu/unlink.c:38: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 len = strlen (name); data/octave-5.2.0/libgnu/unsetenv.c:68: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). len = strlen (name); data/octave-5.2.0/libgnu/vasnprintf.c:240:24: [1] (buffer) wcslen: Does not handle 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 local_wcslen wcslen data/octave-5.2.0/libgnu/vasnprintf.c:1744: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). tmp_length = strlen (arg); data/octave-5.2.0/libgnu/vasnprintf.c:2576: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). arg_end = arg + strlen (arg); data/octave-5.2.0/libgnu/vasnprintf.c:3663: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). ndigits = strlen (digits); data/octave-5.2.0/libgnu/vasnprintf.c:3723:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/octave-5.2.0/libgnu/vasnprintf.c:3759: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). if (strlen (digits2) == precision + 1) data/octave-5.2.0/libgnu/vasnprintf.c:3859:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/octave-5.2.0/libgnu/vasnprintf.c:3895: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). if (strlen (digits2) == precision) data/octave-5.2.0/libgnu/vasnprintf.c:4125: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). ndigits = strlen (digits); data/octave-5.2.0/libgnu/vasnprintf.c:4182:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/octave-5.2.0/libgnu/vasnprintf.c:4217: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). if (strlen (digits2) == precision + 1) data/octave-5.2.0/libgnu/vasnprintf.c:4330:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ndigits = strlen (digits); data/octave-5.2.0/libgnu/vasnprintf.c:4365: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). if (strlen (digits2) == precision) data/octave-5.2.0/libgnu/wchar.in.h:574:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s) _GL_ATTRIBUTE_PURE); data/octave-5.2.0/libgnu/wchar.in.h:576:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s)); data/octave-5.2.0/libgnu/wchar.in.h:577:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_CXXALIASWARN (wcslen); data/octave-5.2.0/libgnu/wchar.in.h:579:9: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # undef wcslen data/octave-5.2.0/libgnu/wchar.in.h:581:18: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_WARN_ON_USE (wcslen, "wcslen is unportable - " data/octave-5.2.0/libgnu/wchar.in.h:639:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcsncpy, wchar_t *, data/octave-5.2.0/libgnu/wchar.in.h:642:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcsncpy, wchar_t *, data/octave-5.2.0/libgnu/wchar.in.h:644:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcsncpy); data/octave-5.2.0/libgnu/wchar.in.h:646:9: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). # undef wcsncpy data/octave-5.2.0/libgnu/wchar.in.h:648:18: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - " data/octave-5.2.0/libgnu/wchar.in.h:692:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_FUNCDECL_SYS (wcsncat, wchar_t *, data/octave-5.2.0/libgnu/wchar.in.h:695:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIAS_SYS (wcsncat, wchar_t *, data/octave-5.2.0/libgnu/wchar.in.h:697:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIASWARN (wcsncat); data/octave-5.2.0/libgnu/wchar.in.h:699:9: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. # undef wcsncat data/octave-5.2.0/libgnu/wchar.in.h:701:18: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - " data/octave-5.2.0/libgnu/xmalloc.c:121: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). return xmemdup (string, strlen (string) + 1); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/History.cpp:168:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(ion,bytes,len); if (rc < 0) { perror("HistoryFile::get.read"); return; } data/octave-5.2.0/libgui/qterminal/libqterminal/unix/KeyboardTranslator.cpp:158: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). textBuffer.setData(defaultTranslatorText,strlen(defaultTranslatorText)); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/KeyboardTranslator.cpp:706:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). charsToRemove = 2 + strlen(hexDigits); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/SelfListener.cpp:30:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((len = ::read(_a, buf, 4096)) > 0) { data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalView.cpp:172:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _fontWidth = (double)fm.width(REPCHAR)/(double)strlen(REPCHAR); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/TerminalView.cpp:177: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). for(unsigned int i=1; i< strlen(REPCHAR); i++) data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp:813: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). emit sendData(s,strlen(s)); data/octave-5.2.0/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp:1055:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(_charset[scrno].charset,"BBBB",4); data/octave-5.2.0/libinterp/corefcn/c-file-ptr-stream.cc:66:25: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int_type c = std::fgetc (f); data/octave-5.2.0/libinterp/corefcn/error.cc:247: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 len = strlen (fmt); data/octave-5.2.0/libinterp/corefcn/error.cc:512: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 len = strlen (fmt); data/octave-5.2.0/libinterp/corefcn/error.cc:743: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 fmt_len = (fmt ? strlen (fmt) : 0); data/octave-5.2.0/libinterp/corefcn/error.cc:1004: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 len = strlen (msg); data/octave-5.2.0/libinterp/corefcn/file-io.cc:2332:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return os.read (size, block_size, input_type, output_type, skip, data/octave-5.2.0/libinterp/corefcn/file-io.cc:3052:38: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). int status = convert (octave::sys::umask (oct_mask), 10, 8); data/octave-5.2.0/libinterp/corefcn/gl2ps-print.cc:464: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). nread = strlen (str); data/octave-5.2.0/libinterp/corefcn/gl2ps-print.cc:473:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nwrite = std::fwrite (fcn, 1, strlen (fcn), fp); data/octave-5.2.0/libinterp/corefcn/gl2ps-print.cc:474: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 (nwrite != strlen (fcn)) data/octave-5.2.0/libinterp/corefcn/load-path.cc:1278:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). string_vector flist = dir.read (); data/octave-5.2.0/libinterp/corefcn/load-save.cc:133:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (magic, magic_len); data/octave-5.2.0/libinterp/corefcn/load-save.cc:149:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (&tmp, 1); data/octave-5.2.0/libinterp/corefcn/load-save.cc:176:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (file.read (reinterpret_cast<char *> (&magic[0]), 2) data/octave-5.2.0/libinterp/corefcn/ls-mat4.cc:116:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (&mopt), 4); data/octave-5.2.0/libinterp/corefcn/ls-mat4.cc:120:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nr), 4)) data/octave-5.2.0/libinterp/corefcn/ls-mat4.cc:123:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nc), 4)) data/octave-5.2.0/libinterp/corefcn/ls-mat4.cc:126:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&imag), 4)) data/octave-5.2.0/libinterp/corefcn/ls-mat4.cc:129:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&len), 4)) data/octave-5.2.0/libinterp/corefcn/ls-mat4.cc:278:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (name, len)) data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:267:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stream.read (reinterpret_cast<char *> (ptr), n_bytes); \ data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:430:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&temp), 4)) data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:447:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&temp), 4)) data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:461:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (&val), 4); data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:525:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (inbuf, element_length); data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:693:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (name, len)) data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:1044:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (elname, fn_len)) data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:1104:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (name, len)) data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:1132:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&field_name_length), fn_len)) data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:1152:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (elname, fn_len)) data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:1491:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (&subsys_offset), 8); data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:1494:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (&version), 2); data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:1495:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (&magic), 2); data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:2428:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (paddedname, name.c_str (), namelen); data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:2606:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (paddedname, classname.c_str (), namelen); data/octave-5.2.0/libinterp/corefcn/ls-mat5.cc:2656:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (buf, key.c_str (), max_namelen); data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc:138:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (&name_len), 4); data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc:147:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (name), name_len)) data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc:152:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (&doc_len), 4); data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc:161:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (tdoc), doc_len)) data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc:166:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc:171:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc:202:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&len), 4)) data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc:207:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (s), len)) data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc:229:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&len), 4)) data/octave-5.2.0/libinterp/corefcn/ls-oct-binary.cc:234:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (s, len)) data/octave-5.2.0/libinterp/corefcn/ls-oct-text.cc:107: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). bool match = (tmp.substr (0, strlen (keyword)) == keyword); data/octave-5.2.0/libinterp/corefcn/ls-oct-text.h: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). bool match = (tmp.substr (0, strlen (keyword)) == keyword); data/octave-5.2.0/libinterp/corefcn/mex.cc:77: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). mwSize tmp = strlen (str[i]); data/octave-5.2.0/libinterp/corefcn/mex.cc:91:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int nel = strlen (key); data/octave-5.2.0/libinterp/corefcn/mex.cc:892:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). class_name = static_cast<char *> (mxArray::malloc (strlen (name_arg) + 1)); data/octave-5.2.0/libinterp/corefcn/mex.cc:1134: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). str ? (strlen (str) ? 1 : 0) : 0, data/octave-5.2.0/libinterp/corefcn/mex.cc:1135:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str ? strlen (str) : 0), data/octave-5.2.0/libinterp/corefcn/mex.cc:1161: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 tmp_len = strlen (ptr); data/octave-5.2.0/libinterp/corefcn/mex.cc:3387: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). if (s && (len = strlen (s)) > 0) data/octave-5.2.0/libinterp/corefcn/mex.cc:3408:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fmt && strlen (fmt) > 0) data/octave-5.2.0/libinterp/corefcn/mex.cc:3411: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 len = strlen (fname) + 2 + strlen (fmt) + 1; data/octave-5.2.0/libinterp/corefcn/mex.cc:3411:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (fname) + 2 + strlen (fmt) + 1; data/octave-5.2.0/libinterp/corefcn/mex.cc:3432: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). if (s && (len = strlen (s)) > 0) data/octave-5.2.0/libinterp/corefcn/mex.cc:3456:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fmt && strlen (fmt) > 0) data/octave-5.2.0/libinterp/corefcn/mex.cc:3459: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 len = strlen (fname) + 2 + strlen (fmt) + 1; data/octave-5.2.0/libinterp/corefcn/mex.cc:3459:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (fname) + 2 + strlen (fmt) + 1; data/octave-5.2.0/libinterp/corefcn/mxarray.in.h:534: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). mwSize sz = sizeof (mxChar) * (strlen (str) + 1); data/octave-5.2.0/libinterp/corefcn/oct-hist.cc:364:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). command_history::read (); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:1258:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). char * read (char *buffer, int size, char* &new_start); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:1363:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i_stream.read (buf, idx - buf); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:1449:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i_stream.read (buf + old_remaining, bufsize - old_remaining); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:1497:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). delimited_stream::read (char *buffer, int size, char* &prior_tell) data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:2973:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). char *look = is.read (&look_buf[0], look_buf.size (), pos); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:2986:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (&look_buf[0], s.size (), pos); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:3763:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). char *look = is.read (&tmp[0], comment_len-1, pos); // already read first char data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:3834:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). char *look = is.read (&tmp[0], tmp.size (), pos); data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:3849:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (&tmp[0], s.size (), pos); // read just the right amount data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:6508:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stream::read (const Array<double>& size, octave_idx_type block_size, data/octave-5.2.0/libinterp/corefcn/oct-stream.cc:6632:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (input_buf, input_buf_size); data/octave-5.2.0/libinterp/corefcn/oct-stream.h:284:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). octave_value read (const Array<double>& size, octave_idx_type block_size, data/octave-5.2.0/libinterp/corefcn/oct-tex-lexer.cc:1148:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/octave-5.2.0/libinterp/corefcn/oct-tex-lexer.cc:2777:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); data/octave-5.2.0/libinterp/corefcn/oct-tex-parser.cc:850: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). # define yystrlen strlen data/octave-5.2.0/libinterp/corefcn/strfind.cc:115:24: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (std::equal (x, x + m, y + j)) data/octave-5.2.0/libinterp/corefcn/strfind.cc:124:24: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (std::equal (x, x + m, y + j)) data/octave-5.2.0/libinterp/corefcn/strfind.cc:134:30: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (j == n - m && std::equal (x, x + m, y + j)) data/octave-5.2.0/libinterp/corefcn/zfstream.cc:178:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (c_mode, "w"); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:180:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (c_mode, "a"); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:182:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (c_mode, "w"); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:184:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (c_mode, "r"); data/octave-5.2.0/libinterp/corefcn/zfstream.cc:192:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (c_mode) == 0) data/octave-5.2.0/libinterp/corefcn/zfstream.cc:195:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (c_mode, "b"); data/octave-5.2.0/libinterp/octave-value/ov-base-int.cc:355:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&mdims), 4)) data/octave-5.2.0/libinterp/octave-value/ov-base-int.cc:369:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&di), 4)) data/octave-5.2.0/libinterp/octave-value/ov-base-int.cc:390:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (m.fortran_vec ()), m.byte_size ())) data/octave-5.2.0/libinterp/octave-value/ov-base-int.cc:706:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), this->byte_size ())) data/octave-5.2.0/libinterp/octave-value/ov-bool-mat.cc:380:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&mdims), 4)) data/octave-5.2.0/libinterp/octave-value/ov-bool-mat.cc:397:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&di), 4)) data/octave-5.2.0/libinterp/octave-value/ov-bool-mat.cc:418:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (htmp, nel)) data/octave-5.2.0/libinterp/octave-value/ov-bool-sparse.cc:263:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-bool-sparse.cc:272:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nr), 4)) data/octave-5.2.0/libinterp/octave-value/ov-bool-sparse.cc:274:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nc), 4)) data/octave-5.2.0/libinterp/octave-value/ov-bool-sparse.cc:276:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nz), 4)) data/octave-5.2.0/libinterp/octave-value/ov-bool-sparse.cc:293:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-bool-sparse.cc:303:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-bool-sparse.cc:315:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (htmp, nz)) data/octave-5.2.0/libinterp/octave-value/ov-bool.cc:219:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-cell.cc:929:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&mdims), 4)) data/octave-5.2.0/libinterp/octave-value/ov-cell.cc:943:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&di), 4)) data/octave-5.2.0/libinterp/octave-value/ov-class.cc:1321:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (&classname_len), 4); data/octave-5.2.0/libinterp/octave-value/ov-class.cc:1330:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (classname), classname_len)) data/octave-5.2.0/libinterp/octave-value/ov-class.cc:1337:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&len), 4)) data/octave-5.2.0/libinterp/octave-value/ov-complex.cc:342:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-cx-diag.cc:220:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! (is.read (reinterpret_cast<char *> (&r), 4) data/octave-5.2.0/libinterp/octave-value/ov-cx-diag.cc:221:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). && is.read (reinterpret_cast<char *> (&c), 4) data/octave-5.2.0/libinterp/octave-value/ov-cx-diag.cc:222:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). && is.read (reinterpret_cast<char *> (&tmp), 1))) data/octave-5.2.0/libinterp/octave-value/ov-cx-mat.cc:460:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&mdims), 4)) data/octave-5.2.0/libinterp/octave-value/ov-cx-mat.cc:473:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&di), 4)) data/octave-5.2.0/libinterp/octave-value/ov-cx-mat.cc:492:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-cx-mat.cc:509:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nc), 4)) data/octave-5.2.0/libinterp/octave-value/ov-cx-mat.cc:513:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-cx-sparse.cc:296:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-cx-sparse.cc:305:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nr), 4)) data/octave-5.2.0/libinterp/octave-value/ov-cx-sparse.cc:307:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nc), 4)) data/octave-5.2.0/libinterp/octave-value/ov-cx-sparse.cc:309:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nz), 4)) data/octave-5.2.0/libinterp/octave-value/ov-cx-sparse.cc:326:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-cx-sparse.cc:336:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-cx-sparse.cc:343:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&ctmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-fcn-handle.cc:612:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-fcn-handle.cc:620:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (ctmp1, tmp); data/octave-5.2.0/libinterp/octave-value/ov-fcn-handle.cc:640:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-fcn-handle.cc:648:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (ctmp2, tmp); data/octave-5.2.0/libinterp/octave-value/ov-fcn-inline.cc:228:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nargs), 4)) data/octave-5.2.0/libinterp/octave-value/ov-fcn-inline.cc:241:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-fcn-inline.cc:247:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (ctmp, tmp); data/octave-5.2.0/libinterp/octave-value/ov-fcn-inline.cc:254:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-fcn-inline.cc:260:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (ctmp1, tmp); data/octave-5.2.0/libinterp/octave-value/ov-fcn-inline.cc:266:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-fcn-inline.cc:272:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (ctmp2, tmp); data/octave-5.2.0/libinterp/octave-value/ov-float.cc:233:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-flt-complex.cc:289:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-diag.cc:190:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! (is.read (reinterpret_cast<char *> (&r), 4) data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-diag.cc:191:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). && is.read (reinterpret_cast<char *> (&c), 4) data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-diag.cc:192:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). && is.read (reinterpret_cast<char *> (&tmp), 1))) data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-mat.cc:424:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&mdims), 4)) data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-mat.cc:437:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&di), 4)) data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-mat.cc:456:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-mat.cc:473:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nc), 4)) data/octave-5.2.0/libinterp/octave-value/ov-flt-cx-mat.cc:477:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-flt-re-diag.cc:208:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! (is.read (reinterpret_cast<char *> (&r), 4) data/octave-5.2.0/libinterp/octave-value/ov-flt-re-diag.cc:209:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). && is.read (reinterpret_cast<char *> (&c), 4) data/octave-5.2.0/libinterp/octave-value/ov-flt-re-diag.cc:210:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). && is.read (reinterpret_cast<char *> (&tmp), 1))) data/octave-5.2.0/libinterp/octave-value/ov-flt-re-mat.cc:500:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&mdims), 4)) data/octave-5.2.0/libinterp/octave-value/ov-flt-re-mat.cc:513:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&di), 4)) data/octave-5.2.0/libinterp/octave-value/ov-flt-re-mat.cc:532:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-flt-re-mat.cc:549:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nc), 4)) data/octave-5.2.0/libinterp/octave-value/ov-flt-re-mat.cc:553:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-perm.cc:99:24: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. bool left = idx0.is_permutation (matrix.rows ()); data/octave-5.2.0/libinterp/octave-value/ov-perm.cc:100:25: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. bool right = idx1.is_permutation (matrix.cols ()); data/octave-5.2.0/libinterp/octave-value/ov-perm.cc:391:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! (is.read (reinterpret_cast<char *> (&sz), 4) data/octave-5.2.0/libinterp/octave-value/ov-perm.cc:392:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). && is.read (reinterpret_cast<char *> (&colp), 1))) data/octave-5.2.0/libinterp/octave-value/ov-perm.cc:397:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (m.fortran_vec ()), m.byte_size ())) data/octave-5.2.0/libinterp/octave-value/ov-range.cc:592:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-range.cc:595:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&bas), 8)) data/octave-5.2.0/libinterp/octave-value/ov-range.cc:599:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&lim), 8)) data/octave-5.2.0/libinterp/octave-value/ov-range.cc:603:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&inc), 8)) data/octave-5.2.0/libinterp/octave-value/ov-re-diag.cc:102:28: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. bool left = idx0.is_permutation (matrix.rows ()); data/octave-5.2.0/libinterp/octave-value/ov-re-diag.cc:103:29: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. bool right = idx1.is_permutation (matrix.cols ()); data/octave-5.2.0/libinterp/octave-value/ov-re-diag.cc:285:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! (is.read (reinterpret_cast<char *> (&r), 4) data/octave-5.2.0/libinterp/octave-value/ov-re-diag.cc:286:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). && is.read (reinterpret_cast<char *> (&c), 4) data/octave-5.2.0/libinterp/octave-value/ov-re-diag.cc:287:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). && is.read (reinterpret_cast<char *> (&tmp), 1))) data/octave-5.2.0/libinterp/octave-value/ov-re-mat.cc:614:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&mdims), 4)) data/octave-5.2.0/libinterp/octave-value/ov-re-mat.cc:627:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&di), 4)) data/octave-5.2.0/libinterp/octave-value/ov-re-mat.cc:646:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-re-mat.cc:663:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nc), 4)) data/octave-5.2.0/libinterp/octave-value/ov-re-mat.cc:667:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-re-sparse.cc:320:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-re-sparse.cc:329:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nr), 4)) data/octave-5.2.0/libinterp/octave-value/ov-re-sparse.cc:331:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nc), 4)) data/octave-5.2.0/libinterp/octave-value/ov-re-sparse.cc:333:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&nz), 4)) data/octave-5.2.0/libinterp/octave-value/ov-re-sparse.cc:350:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-re-sparse.cc:360:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 4)) data/octave-5.2.0/libinterp/octave-value/ov-re-sparse.cc:367:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&ctmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-scalar.cc:253:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&tmp), 1)) data/octave-5.2.0/libinterp/octave-value/ov-str-mat.cc:384:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (ftmp, dv.numel ()) || ! is) data/octave-5.2.0/libinterp/octave-value/ov-str-mat.cc:414:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (len > 0 && ! is.read (ptmp, len)) data/octave-5.2.0/libinterp/octave-value/ov-str-mat.cc:442:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (len > 0 && ! is.read (ptmp, len)) data/octave-5.2.0/libinterp/octave-value/ov-str-mat.cc:484:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&elements), 4)) data/octave-5.2.0/libinterp/octave-value/ov-str-mat.cc:498:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&di), 4)) data/octave-5.2.0/libinterp/octave-value/ov-str-mat.cc:519:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (tmp, dv.numel ()); data/octave-5.2.0/libinterp/octave-value/ov-str-mat.cc:533:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&len), 4)) data/octave-5.2.0/libinterp/octave-value/ov-str-mat.cc:539:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (pbtmp, len)) data/octave-5.2.0/libinterp/octave-value/ov-struct.cc:841:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&len), 4)) data/octave-5.2.0/libinterp/octave-value/ov-struct.cc:858:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&di), 4)) data/octave-5.2.0/libinterp/octave-value/ov-struct.cc:865:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&len), 4)) data/octave-5.2.0/libinterp/octave-value/ov-struct.cc:1488:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! is.read (reinterpret_cast<char *> (&len), 4)) data/octave-5.2.0/libinterp/parse-tree/lex.cc:1406:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/octave-5.2.0/libinterp/parse-tree/lex.cc:4180:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); data/octave-5.2.0/libinterp/parse-tree/lex.cc:5570: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). if (looks_like_hex (tmptxt, strlen (tmptxt))) data/octave-5.2.0/libinterp/parse-tree/lex.cc:5578: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). else if (looks_like_bin (tmptxt, strlen (tmptxt))) data/octave-5.2.0/libinterp/parse-tree/lex.cc:5582: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). for (size_t i = 0; i < strlen (tmptxt); i++) data/octave-5.2.0/libinterp/parse-tree/oct-parse.cc:1631: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). # define yystrlen strlen data/octave-5.2.0/liboctave/array/PermMatrix.cc:44:28: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (! idx_vector (p).is_permutation (p.numel ())) data/octave-5.2.0/liboctave/array/PermMatrix.cc:63:13: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (! idx.is_permutation (len)) data/octave-5.2.0/liboctave/array/Sparse.cc:1474:20: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. else if (idx.is_permutation (nel) && idx.isvector ()) data/octave-5.2.0/liboctave/array/Sparse.cc:1749:18: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. else if (idx_i.is_permutation (nr)) data/octave-5.2.0/liboctave/array/Sparse.cc:1930:24: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. else if (idx.is_permutation (n)) data/octave-5.2.0/liboctave/array/Sparse.cc:2124:26: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. else if (idx_j.is_permutation (nc)) data/octave-5.2.0/liboctave/array/Sparse.cc:2182:21: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (idx_i.is_permutation (nr)) data/octave-5.2.0/liboctave/array/chMatrix.cc:61: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). octave_idx_type s_len = strlen (s); data/octave-5.2.0/liboctave/array/chNDArray.cc:52: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). octave_idx_type n = (s ? strlen (s) : 0); data/octave-5.2.0/liboctave/array/dim-vector.h:562:15: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return std::equal (a.rep, a.rep + a_len, b.rep); data/octave-5.2.0/liboctave/array/idx-vector.cc:1140:13: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. idx_vector::is_permutation (octave_idx_type n) const data/octave-5.2.0/liboctave/array/idx-vector.h:1001:8: [1] (buffer) is_permutation: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. bool is_permutation (octave_idx_type n) const; data/octave-5.2.0/liboctave/system/dir-ops.cc:70:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). dir_entry::read (void) data/octave-5.2.0/liboctave/system/dir-ops.h:69:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). string_vector read (void); data/octave-5.2.0/liboctave/system/file-ops.cc:610:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). int umask (mode_t mode) data/octave-5.2.0/liboctave/system/file-ops.h:162:5: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask (mode_t); data/octave-5.2.0/liboctave/system/lo-sysdep.cc:140:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). dirlist = dir.read (); data/octave-5.2.0/liboctave/util/cmd-edit.cc:1841:21: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (number_buffer, "!"); data/octave-5.2.0/liboctave/util/cmd-hist.cc:697:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). command_history::read (bool must_exist) data/octave-5.2.0/liboctave/util/cmd-hist.cc:699:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (file (), must_exist); data/octave-5.2.0/liboctave/util/cmd-hist.cc:703:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). command_history::read (const std::string& f, bool must_exist) data/octave-5.2.0/liboctave/util/cmd-hist.cc:786:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). command_history::read (false); data/octave-5.2.0/liboctave/util/cmd-hist.h:103:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static void read (bool = true); data/octave-5.2.0/liboctave/util/cmd-hist.h:105:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static void read (const std::string&, bool = true); data/octave-5.2.0/liboctave/util/data-conv.cc:584:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stream.read (reinterpret_cast<char *> (ptr), n_bytes); \ data/octave-5.2.0/liboctave/util/data-conv.cc:807:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (ptr), n_bytes); data/octave-5.2.0/liboctave/util/data-conv.cc:817:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (data), n_bytes); data/octave-5.2.0/liboctave/util/data-conv.cc:865:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (data), n_bytes); data/octave-5.2.0/liboctave/util/data-conv.cc:874:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read (reinterpret_cast<char *> (ptr), n_bytes); data/octave-5.2.0/liboctave/util/f77-fcn.c:53:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = strlen (s); data/octave-5.2.0/liboctave/util/f77-fcn.h:114:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define F77_CHAR_ARG(x) octave_make_cray_ftn_ch_dsc (x, strlen (x)) data/octave-5.2.0/liboctave/util/f77-fcn.h:116:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). octave_make_cray_const_ftn_ch_dsc (x, strlen (x)) data/octave-5.2.0/liboctave/util/f77-fcn.h:198: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). #define F77_CHAR_ARG(x) x, strlen (x) data/octave-5.2.0/liboctave/util/file-info.cc:92:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). file.read (&buf[0], sz+1); data/octave-5.2.0/liboctave/util/lo-utils.cc:81:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen (s); data/octave-5.2.0/liboctave/util/lo-utils.cc:115: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). len = strlen (bufptr); data/octave-5.2.0/liboctave/util/oct-rl-edit.c:45: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). ss = malloc (strlen (s) + 1); \ data/octave-5.2.0/liboctave/util/oct-rl-hist.c:288: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 len = line ? strlen (line) : 0; data/octave-5.2.0/liboctave/util/oct-string.cc:78:1: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (const typename T::value_type *str) data/octave-5.2.0/liboctave/util/oct-string.cc:80: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). return std::strlen (str); data/octave-5.2.0/liboctave/util/oct-string.cc:101: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). return str_a.size () == strlen<T> (str_b); data/octave-5.2.0/liboctave/util/oct-string.cc:109: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). && str_a.numel () == strlen<Array<char>> (str_b)); data/octave-5.2.0/liboctave/util/oct-string.cc:168: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). auto len_b = strlen<T> (str_b); data/octave-5.2.0/liboctave/util/oct-string.cc:197: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). auto len_b = strlen<T> (str_b); data/octave-5.2.0/liboctave/util/url-transfer.cc:254:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). stream.read (static_cast<char *> (buffer), size*nmemb); data/octave-5.2.0/liboctave/wrappers/async-system-wrapper.c:59: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). char *xcmd = (char *) malloc (strlen (cmd) + 1); data/octave-5.2.0/liboctave/wrappers/octave-popen2.c:63:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmd_len = strlen (cmd) + 3; data/octave-5.2.0/liboctave/wrappers/octave-popen2.c:69: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). cmd_len += strlen (*argp) + 3; data/octave-5.2.0/liboctave/wrappers/stat-wrappers.c:68:10: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). return umask (mode); data/octave-5.2.0/liboctave/wrappers/uniconv-wrappers.c:70:19: [1] (buffer) wcslen: Does not handle 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 srclen = wcslen (wc) * sizeof (wchar_t); data/octave-5.2.0/liboctave/wrappers/uniconv-wrappers.c:97: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 srclen = strlen (u8); data/octave-5.2.0/liboctave/wrappers/unistd-wrappers.c:307:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (retval) > len) data/octave-5.2.0/src/main.in.cc:195:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen (s); data/octave-5.2.0/src/main.in.cc:279: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). else if (strlen (argv[i]) > 1 && argv[i][0] == '-' && argv[i][1] != '-') data/octave-5.2.0/src/main.in.cc:284: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 len = strlen (argv[i]); data/octave-5.2.0/src/mkoctfile.in.cc:115:20: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = std::fgetc (fp); ANALYSIS SUMMARY: Hits = 1609 Lines analyzed = 603920 in approximately 13.26 seconds (45558 lines/second) Physical Source Lines of Code (SLOC) = 400510 Hits@level = [0] 171 [1] 435 [2] 686 [3] 178 [4] 264 [5] 46 Hits@level+ = [0+] 1780 [1+] 1609 [2+] 1174 [3+] 488 [4+] 310 [5+] 46 Hits/KSLOC@level+ = [0+] 4.44433 [1+] 4.01738 [2+] 2.93126 [3+] 1.21845 [4+] 0.774013 [5+] 0.114854 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.