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/hivex-1.3.19/gnulib/lib/glthread/lock.h
Examining data/hivex-1.3.19/gnulib/lib/glthread/lock.c
Examining data/hivex-1.3.19/gnulib/lib/glthread/threadlib.c
Examining data/hivex-1.3.19/gnulib/lib/c-ctype.h
Examining data/hivex-1.3.19/gnulib/lib/c-ctype.c
Examining data/hivex-1.3.19/gnulib/lib/fd-hook.c
Examining data/hivex-1.3.19/gnulib/lib/full-read.h
Examining data/hivex-1.3.19/gnulib/lib/full-read.c
Examining data/hivex-1.3.19/gnulib/lib/full-write.h
Examining data/hivex-1.3.19/gnulib/lib/full-write.c
Examining data/hivex-1.3.19/gnulib/lib/progname.h
Examining data/hivex-1.3.19/gnulib/lib/progname.c
Examining data/hivex-1.3.19/gnulib/lib/safe-read.c
Examining data/hivex-1.3.19/gnulib/lib/safe-write.c
Examining data/hivex-1.3.19/gnulib/lib/size_max.h
Examining data/hivex-1.3.19/gnulib/lib/unistd.c
Examining data/hivex-1.3.19/gnulib/lib/xsize.h
Examining data/hivex-1.3.19/gnulib/lib/xsize.c
Examining data/hivex-1.3.19/gnulib/lib/xstrtol.c
Examining data/hivex-1.3.19/gnulib/lib/xstrtoul.c
Examining data/hivex-1.3.19/gnulib/lib/xstrtoll.c
Examining data/hivex-1.3.19/gnulib/lib/xstrtoull.c
Examining data/hivex-1.3.19/gnulib/lib/close.c
Examining data/hivex-1.3.19/gnulib/lib/dup2.c
Examining data/hivex-1.3.19/gnulib/lib/fcntl.c
Examining data/hivex-1.3.19/gnulib/lib/float.c
Examining data/hivex-1.3.19/gnulib/lib/itold.c
Examining data/hivex-1.3.19/gnulib/lib/getdtablesize.c
Examining data/hivex-1.3.19/gnulib/lib/memchr.c
Examining data/hivex-1.3.19/gnulib/lib/msvc-inval.c
Examining data/hivex-1.3.19/gnulib/lib/msvc-nothrow.c
Examining data/hivex-1.3.19/gnulib/lib/raise.c
Examining data/hivex-1.3.19/gnulib/lib/read.c
Examining data/hivex-1.3.19/gnulib/lib/strndup.c
Examining data/hivex-1.3.19/gnulib/lib/strnlen.c
Examining data/hivex-1.3.19/gnulib/lib/strtol.c
Examining data/hivex-1.3.19/gnulib/lib/strtoll.c
Examining data/hivex-1.3.19/gnulib/lib/strtoul.c
Examining data/hivex-1.3.19/gnulib/lib/strtoull.c
Examining data/hivex-1.3.19/gnulib/lib/asnprintf.c
Examining data/hivex-1.3.19/gnulib/lib/printf-args.c
Examining data/hivex-1.3.19/gnulib/lib/printf-parse.c
Examining data/hivex-1.3.19/gnulib/lib/vasnprintf.c
Examining data/hivex-1.3.19/gnulib/lib/asprintf.c
Examining data/hivex-1.3.19/gnulib/lib/vasprintf.c
Examining data/hivex-1.3.19/gnulib/lib/windows-mutex.c
Examining data/hivex-1.3.19/gnulib/lib/windows-once.c
Examining data/hivex-1.3.19/gnulib/lib/windows-recmutex.c
Examining data/hivex-1.3.19/gnulib/lib/windows-rwlock.c
Examining data/hivex-1.3.19/gnulib/lib/write.c
Examining data/hivex-1.3.19/gnulib/lib/alloca.in.h
Examining data/hivex-1.3.19/gnulib/lib/assure.h
Examining data/hivex-1.3.19/gnulib/lib/attribute.h
Examining data/hivex-1.3.19/gnulib/lib/byteswap.in.h
Examining data/hivex-1.3.19/gnulib/lib/errno.in.h
Examining data/hivex-1.3.19/gnulib/lib/fcntl.in.h
Examining data/hivex-1.3.19/gnulib/lib/fd-hook.h
Examining data/hivex-1.3.19/gnulib/lib/float.in.h
Examining data/hivex-1.3.19/gnulib/lib/ignore-value.h
Examining data/hivex-1.3.19/gnulib/lib/inttypes.in.h
Examining data/hivex-1.3.19/gnulib/lib/limits.in.h
Examining data/hivex-1.3.19/gnulib/lib/msvc-inval.h
Examining data/hivex-1.3.19/gnulib/lib/msvc-nothrow.h
Examining data/hivex-1.3.19/gnulib/lib/safe-read.h
Examining data/hivex-1.3.19/gnulib/lib/sys-limits.h
Examining data/hivex-1.3.19/gnulib/lib/safe-write.h
Examining data/hivex-1.3.19/gnulib/lib/signal.in.h
Examining data/hivex-1.3.19/gnulib/lib/_Noreturn.h
Examining data/hivex-1.3.19/gnulib/lib/arg-nonnull.h
Examining data/hivex-1.3.19/gnulib/lib/c++defs.h
Examining data/hivex-1.3.19/gnulib/lib/warn-on-use.h
Examining data/hivex-1.3.19/gnulib/lib/stdbool.in.h
Examining data/hivex-1.3.19/gnulib/lib/stddef.in.h
Examining data/hivex-1.3.19/gnulib/lib/stdint.in.h
Examining data/hivex-1.3.19/gnulib/lib/stdio.in.h
Examining data/hivex-1.3.19/gnulib/lib/stdlib.in.h
Examining data/hivex-1.3.19/gnulib/lib/string.in.h
Examining data/hivex-1.3.19/gnulib/lib/sys_types.in.h
Examining data/hivex-1.3.19/gnulib/lib/unistd.in.h
Examining data/hivex-1.3.19/gnulib/lib/float+.h
Examining data/hivex-1.3.19/gnulib/lib/printf-args.h
Examining data/hivex-1.3.19/gnulib/lib/printf-parse.h
Examining data/hivex-1.3.19/gnulib/lib/vasnprintf.h
Examining data/hivex-1.3.19/gnulib/lib/verify.h
Examining data/hivex-1.3.19/gnulib/lib/wchar.in.h
Examining data/hivex-1.3.19/gnulib/lib/windows-initguard.h
Examining data/hivex-1.3.19/gnulib/lib/windows-mutex.h
Examining data/hivex-1.3.19/gnulib/lib/windows-once.h
Examining data/hivex-1.3.19/gnulib/lib/windows-recmutex.h
Examining data/hivex-1.3.19/gnulib/lib/windows-rwlock.h
Examining data/hivex-1.3.19/gnulib/lib/xstrtol.h
Examining data/hivex-1.3.19/gnulib/tests/glthread/thread.h
Examining data/hivex-1.3.19/gnulib/tests/glthread/thread.c
Examining data/hivex-1.3.19/gnulib/tests/glthread/yield.h
Examining data/hivex-1.3.19/gnulib/tests/unistr/u8-mbtoucr.c
Examining data/hivex-1.3.19/gnulib/tests/unistr/u8-uctomb.c
Examining data/hivex-1.3.19/gnulib/tests/unistr/u8-uctomb-aux.c
Examining data/hivex-1.3.19/gnulib/tests/unistr/test-u8-mbtoucr.c
Examining data/hivex-1.3.19/gnulib/tests/unistr/test-u8-uctomb.c
Examining data/hivex-1.3.19/gnulib/tests/alloca.c
Examining data/hivex-1.3.19/gnulib/tests/basename-lgpl.c
Examining data/hivex-1.3.19/gnulib/tests/binary-io.h
Examining data/hivex-1.3.19/gnulib/tests/binary-io.c
Examining data/hivex-1.3.19/gnulib/tests/c-strcase.h
Examining data/hivex-1.3.19/gnulib/tests/c-strcasecmp.c
Examining data/hivex-1.3.19/gnulib/tests/c-strncasecmp.c
Examining data/hivex-1.3.19/gnulib/tests/cloexec.c
Examining data/hivex-1.3.19/gnulib/tests/exitfail.c
Examining data/hivex-1.3.19/gnulib/tests/getprogname.h
Examining data/hivex-1.3.19/gnulib/tests/getprogname.c
Examining data/hivex-1.3.19/gnulib/tests/gettext.h
Examining data/hivex-1.3.19/gnulib/tests/localename.c
Examining data/hivex-1.3.19/gnulib/tests/localename-table.c
Examining data/hivex-1.3.19/gnulib/tests/malloca.c
Examining data/hivex-1.3.19/gnulib/tests/setlocale_null.c
Examining data/hivex-1.3.19/gnulib/tests/sig-handler.c
Examining data/hivex-1.3.19/gnulib/tests/sockets.h
Examining data/hivex-1.3.19/gnulib/tests/sockets.c
Examining data/hivex-1.3.19/gnulib/tests/stat-time.c
Examining data/hivex-1.3.19/gnulib/tests/sys_socket.c
Examining data/hivex-1.3.19/gnulib/tests/xstrtol-error.c
Examining data/hivex-1.3.19/gnulib/tests/accept.c
Examining data/hivex-1.3.19/gnulib/tests/bind.c
Examining data/hivex-1.3.19/gnulib/tests/connect.c
Examining data/hivex-1.3.19/gnulib/tests/error.c
Examining data/hivex-1.3.19/gnulib/tests/fdopen.c
Examining data/hivex-1.3.19/gnulib/tests/fstat.c
Examining data/hivex-1.3.19/gnulib/tests/stat-w32.c
Examining data/hivex-1.3.19/gnulib/tests/ftruncate.c
Examining data/hivex-1.3.19/gnulib/tests/getcwd-lgpl.c
Examining data/hivex-1.3.19/gnulib/tests/getopt.c
Examining data/hivex-1.3.19/gnulib/tests/getopt1.c
Examining data/hivex-1.3.19/gnulib/tests/getpagesize.c
Examining data/hivex-1.3.19/gnulib/tests/gettimeofday.c
Examining data/hivex-1.3.19/gnulib/tests/iconv.c
Examining data/hivex-1.3.19/gnulib/tests/iconv_close.c
Examining data/hivex-1.3.19/gnulib/tests/iconv_open.c
Examining data/hivex-1.3.19/gnulib/tests/inet_pton.c
Examining data/hivex-1.3.19/gnulib/tests/ioctl.c
Examining data/hivex-1.3.19/gnulib/tests/isblank.c
Examining data/hivex-1.3.19/gnulib/tests/listen.c
Examining data/hivex-1.3.19/gnulib/tests/lstat.c
Examining data/hivex-1.3.19/gnulib/tests/malloc.c
Examining data/hivex-1.3.19/gnulib/tests/nanosleep.c
Examining data/hivex-1.3.19/gnulib/tests/open.c
Examining data/hivex-1.3.19/gnulib/tests/perror.c
Examining data/hivex-1.3.19/gnulib/tests/pipe.c
Examining data/hivex-1.3.19/gnulib/tests/pthread-thread.c
Examining data/hivex-1.3.19/gnulib/tests/pthread_sigmask.c
Examining data/hivex-1.3.19/gnulib/tests/putenv.c
Examining data/hivex-1.3.19/gnulib/tests/select.c
Examining data/hivex-1.3.19/gnulib/tests/setenv.c
Examining data/hivex-1.3.19/gnulib/tests/setlocale.c
Examining data/hivex-1.3.19/gnulib/tests/setlocale-lock.c
Examining data/hivex-1.3.19/gnulib/tests/setsockopt.c
Examining data/hivex-1.3.19/gnulib/tests/sigaction.c
Examining data/hivex-1.3.19/gnulib/tests/sigprocmask.c
Examining data/hivex-1.3.19/gnulib/tests/sleep.c
Examining data/hivex-1.3.19/gnulib/tests/socket.c
Examining data/hivex-1.3.19/gnulib/tests/stat.c
Examining data/hivex-1.3.19/gnulib/tests/strerror.c
Examining data/hivex-1.3.19/gnulib/tests/strerror-override.c
Examining data/hivex-1.3.19/gnulib/tests/strerror_r.c
Examining data/hivex-1.3.19/gnulib/tests/symlink.c
Examining data/hivex-1.3.19/gnulib/tests/unsetenv.c
Examining data/hivex-1.3.19/gnulib/tests/usleep.c
Examining data/hivex-1.3.19/gnulib/tests/windows-thread.c
Examining data/hivex-1.3.19/gnulib/tests/windows-tls.c
Examining data/hivex-1.3.19/gnulib/tests/test-accept.c
Examining data/hivex-1.3.19/gnulib/tests/test-alloca-opt.c
Examining data/hivex-1.3.19/gnulib/tests/test-arpa_inet.c
Examining data/hivex-1.3.19/gnulib/tests/test-binary-io.c
Examining data/hivex-1.3.19/gnulib/tests/test-bind.c
Examining data/hivex-1.3.19/gnulib/tests/test-byteswap.c
Examining data/hivex-1.3.19/gnulib/tests/test-c-ctype.c
Examining data/hivex-1.3.19/gnulib/tests/test-c-strcasecmp.c
Examining data/hivex-1.3.19/gnulib/tests/test-c-strncasecmp.c
Examining data/hivex-1.3.19/gnulib/tests/test-cloexec.c
Examining data/hivex-1.3.19/gnulib/tests/test-close.c
Examining data/hivex-1.3.19/gnulib/tests/test-connect.c
Examining data/hivex-1.3.19/gnulib/tests/test-ctype.c
Examining data/hivex-1.3.19/gnulib/tests/test-dup2.c
Examining data/hivex-1.3.19/gnulib/tests/test-environ.c
Examining data/hivex-1.3.19/gnulib/tests/test-errno.c
Examining data/hivex-1.3.19/gnulib/tests/test-fcntl.c
Examining data/hivex-1.3.19/gnulib/tests/test-fcntl-h.c
Examining data/hivex-1.3.19/gnulib/tests/test-fdopen.c
Examining data/hivex-1.3.19/gnulib/tests/test-fgetc.c
Examining data/hivex-1.3.19/gnulib/tests/test-float.c
Examining data/hivex-1.3.19/gnulib/tests/test-fputc.c
Examining data/hivex-1.3.19/gnulib/tests/test-fread.c
Examining data/hivex-1.3.19/gnulib/tests/test-fstat.c
Examining data/hivex-1.3.19/gnulib/tests/test-ftruncate.c
Examining data/hivex-1.3.19/gnulib/tests/test-fwrite.c
Examining data/hivex-1.3.19/gnulib/tests/test-getcwd-lgpl.c
Examining data/hivex-1.3.19/gnulib/tests/test-getdtablesize.c
Examining data/hivex-1.3.19/gnulib/tests/test-getopt-gnu.c
Examining data/hivex-1.3.19/gnulib/tests/test-getopt-posix.c
Examining data/hivex-1.3.19/gnulib/tests/test-getprogname.c
Examining data/hivex-1.3.19/gnulib/tests/test-gettimeofday.c
Examining data/hivex-1.3.19/gnulib/tests/test-iconv.c
Examining data/hivex-1.3.19/gnulib/tests/test-iconv-h.c
Examining data/hivex-1.3.19/gnulib/tests/test-ignore-value.c
Examining data/hivex-1.3.19/gnulib/tests/test-inet_pton.c
Examining data/hivex-1.3.19/gnulib/tests/test-intprops.c
Examining data/hivex-1.3.19/gnulib/tests/test-inttypes.c
Examining data/hivex-1.3.19/gnulib/tests/test-ioctl.c
Examining data/hivex-1.3.19/gnulib/tests/test-isblank.c
Examining data/hivex-1.3.19/gnulib/tests/test-langinfo.c
Examining data/hivex-1.3.19/gnulib/tests/test-limits-h.c
Examining data/hivex-1.3.19/gnulib/tests/test-listen.c
Examining data/hivex-1.3.19/gnulib/tests/test-locale.c
Examining data/hivex-1.3.19/gnulib/tests/test-localename.c
Examining data/hivex-1.3.19/gnulib/tests/test-lock.c
Examining data/hivex-1.3.19/gnulib/tests/test-lstat.c
Examining data/hivex-1.3.19/gnulib/tests/test-malloca.c
Examining data/hivex-1.3.19/gnulib/tests/test-memchr.c
Examining data/hivex-1.3.19/gnulib/tests/test-nanosleep.c
Examining data/hivex-1.3.19/gnulib/tests/test-netinet_in.c
Examining data/hivex-1.3.19/gnulib/tests/test-once.c
Examining data/hivex-1.3.19/gnulib/tests/test-open.c
Examining data/hivex-1.3.19/gnulib/tests/test-pathmax.c
Examining data/hivex-1.3.19/gnulib/tests/test-perror.c
Examining data/hivex-1.3.19/gnulib/tests/test-perror2.c
Examining data/hivex-1.3.19/gnulib/tests/test-pipe.c
Examining data/hivex-1.3.19/gnulib/tests/test-pthread.c
Examining data/hivex-1.3.19/gnulib/tests/test-pthread-thread.c
Examining data/hivex-1.3.19/gnulib/tests/test-pthread_sigmask1.c
Examining data/hivex-1.3.19/gnulib/tests/test-pthread_sigmask2.c
Examining data/hivex-1.3.19/gnulib/tests/test-raise.c
Examining data/hivex-1.3.19/gnulib/tests/test-read.c
Examining data/hivex-1.3.19/gnulib/tests/test-rwlock1.c
Examining data/hivex-1.3.19/gnulib/tests/test-sched.c
Examining data/hivex-1.3.19/gnulib/tests/test-select.c
Examining data/hivex-1.3.19/gnulib/tests/test-select-fd.c
Examining data/hivex-1.3.19/gnulib/tests/test-select-stdin.c
Examining data/hivex-1.3.19/gnulib/tests/test-setenv.c
Examining data/hivex-1.3.19/gnulib/tests/test-sleep.c
Examining data/hivex-1.3.19/gnulib/tests/test-setlocale1.c
Examining data/hivex-1.3.19/gnulib/tests/test-setlocale2.c
Examining data/hivex-1.3.19/gnulib/tests/test-setlocale_null.c
Examining data/hivex-1.3.19/gnulib/tests/test-setlocale_null-mt-all.c
Examining data/hivex-1.3.19/gnulib/tests/test-setlocale_null-mt-one.c
Examining data/hivex-1.3.19/gnulib/tests/test-setsockopt.c
Examining data/hivex-1.3.19/gnulib/tests/test-sigaction.c
Examining data/hivex-1.3.19/gnulib/tests/test-signal-h.c
Examining data/hivex-1.3.19/gnulib/tests/test-sigprocmask.c
Examining data/hivex-1.3.19/gnulib/tests/test-sockets.c
Examining data/hivex-1.3.19/gnulib/tests/test-stat.c
Examining data/hivex-1.3.19/gnulib/tests/test-stat-time.c
Examining data/hivex-1.3.19/gnulib/tests/test-stdalign.c
Examining data/hivex-1.3.19/gnulib/tests/test-stdbool.c
Examining data/hivex-1.3.19/gnulib/tests/test-stddef.c
Examining data/hivex-1.3.19/gnulib/tests/test-stdint.c
Examining data/hivex-1.3.19/gnulib/tests/test-stdio.c
Examining data/hivex-1.3.19/gnulib/tests/test-stdlib.c
Examining data/hivex-1.3.19/gnulib/tests/test-strerror.c
Examining data/hivex-1.3.19/gnulib/tests/test-strerror_r.c
Examining data/hivex-1.3.19/gnulib/tests/test-string.c
Examining data/hivex-1.3.19/gnulib/tests/test-strnlen.c
Examining data/hivex-1.3.19/gnulib/tests/test-strtoll.c
Examining data/hivex-1.3.19/gnulib/tests/test-strtoull.c
Examining data/hivex-1.3.19/gnulib/tests/test-symlink.c
Examining data/hivex-1.3.19/gnulib/tests/test-sys_ioctl.c
Examining data/hivex-1.3.19/gnulib/tests/test-sys_select.c
Examining data/hivex-1.3.19/gnulib/tests/test-sys_socket.c
Examining data/hivex-1.3.19/gnulib/tests/test-sys_stat.c
Examining data/hivex-1.3.19/gnulib/tests/test-sys_time.c
Examining data/hivex-1.3.19/gnulib/tests/test-sys_types.c
Examining data/hivex-1.3.19/gnulib/tests/test-sys_uio.c
Examining data/hivex-1.3.19/gnulib/tests/test-thread_create.c
Examining data/hivex-1.3.19/gnulib/tests/test-thread_self.c
Examining data/hivex-1.3.19/gnulib/tests/test-time.c
Examining data/hivex-1.3.19/gnulib/tests/test-unistd.c
Examining data/hivex-1.3.19/gnulib/tests/test-unsetenv.c
Examining data/hivex-1.3.19/gnulib/tests/test-usleep.c
Examining data/hivex-1.3.19/gnulib/tests/test-vasnprintf.c
Examining data/hivex-1.3.19/gnulib/tests/test-vasprintf.c
Examining data/hivex-1.3.19/gnulib/tests/test-verify.c
Examining data/hivex-1.3.19/gnulib/tests/test-verify-try.c
Examining data/hivex-1.3.19/gnulib/tests/test-wchar.c
Examining data/hivex-1.3.19/gnulib/tests/test-write.c
Examining data/hivex-1.3.19/gnulib/tests/test-xstrtol.c
Examining data/hivex-1.3.19/gnulib/tests/test-xstrtoll.c
Examining data/hivex-1.3.19/gnulib/tests/test-xstrtoul.c
Examining data/hivex-1.3.19/gnulib/tests/test-xstrtoull.c
Examining data/hivex-1.3.19/gnulib/tests/w32sock.h
Examining data/hivex-1.3.19/gnulib/tests/signature.h
Examining data/hivex-1.3.19/gnulib/tests/macros.h
Examining data/hivex-1.3.19/gnulib/tests/arpa_inet.in.h
Examining data/hivex-1.3.19/gnulib/tests/basename-lgpl.h
Examining data/hivex-1.3.19/gnulib/tests/cloexec.h
Examining data/hivex-1.3.19/gnulib/tests/ctype.in.h
Examining data/hivex-1.3.19/gnulib/tests/error.h
Examining data/hivex-1.3.19/gnulib/tests/exitfail.h
Examining data/hivex-1.3.19/gnulib/tests/filename.h
Examining data/hivex-1.3.19/gnulib/tests/flexmember.h
Examining data/hivex-1.3.19/gnulib/tests/fpucw.h
Examining data/hivex-1.3.19/gnulib/tests/stat-w32.h
Examining data/hivex-1.3.19/gnulib/tests/test-getopt-main.h
Examining data/hivex-1.3.19/gnulib/tests/test-getopt.h
Examining data/hivex-1.3.19/gnulib/tests/test-getopt_long.h
Examining data/hivex-1.3.19/gnulib/tests/getopt-cdefs.in.h
Examining data/hivex-1.3.19/gnulib/tests/getopt-core.h
Examining data/hivex-1.3.19/gnulib/tests/getopt-ext.h
Examining data/hivex-1.3.19/gnulib/tests/getopt-pfx-core.h
Examining data/hivex-1.3.19/gnulib/tests/getopt-pfx-ext.h
Examining data/hivex-1.3.19/gnulib/tests/getopt.in.h
Examining data/hivex-1.3.19/gnulib/tests/getopt_int.h
Examining data/hivex-1.3.19/gnulib/tests/iconv.in.h
Examining data/hivex-1.3.19/gnulib/tests/iconv_open-aix.h
Examining data/hivex-1.3.19/gnulib/tests/iconv_open-hpux.h
Examining data/hivex-1.3.19/gnulib/tests/iconv_open-irix.h
Examining data/hivex-1.3.19/gnulib/tests/iconv_open-osf.h
Examining data/hivex-1.3.19/gnulib/tests/iconv_open-solaris.h
Examining data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h
Examining data/hivex-1.3.19/gnulib/tests/intprops.h
Examining data/hivex-1.3.19/gnulib/tests/langinfo.in.h
Examining data/hivex-1.3.19/gnulib/tests/locale.in.h
Examining data/hivex-1.3.19/gnulib/tests/localename-table.h
Examining data/hivex-1.3.19/gnulib/tests/localename.h
Examining data/hivex-1.3.19/gnulib/tests/atomic-int-gnulib.h
Examining data/hivex-1.3.19/gnulib/tests/test-lstat.h
Examining data/hivex-1.3.19/gnulib/tests/malloca.h
Examining data/hivex-1.3.19/gnulib/tests/zerosize-ptr.h
Examining data/hivex-1.3.19/gnulib/tests/netinet_in.in.h
Examining data/hivex-1.3.19/gnulib/tests/test-open.h
Examining data/hivex-1.3.19/gnulib/tests/pathmax.h
Examining data/hivex-1.3.19/gnulib/tests/pthread.in.h
Examining data/hivex-1.3.19/gnulib/tests/same-inode.h
Examining data/hivex-1.3.19/gnulib/tests/sched.in.h
Examining data/hivex-1.3.19/gnulib/tests/test-select.h
Examining data/hivex-1.3.19/gnulib/tests/setlocale_null.h
Examining data/hivex-1.3.19/gnulib/tests/windows-initguard.h
Examining data/hivex-1.3.19/gnulib/tests/sig-handler.h
Examining data/hivex-1.3.19/gnulib/tests/_Noreturn.h
Examining data/hivex-1.3.19/gnulib/tests/arg-nonnull.h
Examining data/hivex-1.3.19/gnulib/tests/c++defs.h
Examining data/hivex-1.3.19/gnulib/tests/unused-parameter.h
Examining data/hivex-1.3.19/gnulib/tests/warn-on-use.h
Examining data/hivex-1.3.19/gnulib/tests/test-stat.h
Examining data/hivex-1.3.19/gnulib/tests/stat-time.h
Examining data/hivex-1.3.19/gnulib/tests/nap.h
Examining data/hivex-1.3.19/gnulib/tests/stdalign.in.h
Examining data/hivex-1.3.19/gnulib/tests/test-sys_wait.h
Examining data/hivex-1.3.19/gnulib/tests/strerror-override.h
Examining data/hivex-1.3.19/gnulib/tests/test-symlink.h
Examining data/hivex-1.3.19/gnulib/tests/sys_ioctl.in.h
Examining data/hivex-1.3.19/gnulib/tests/sys_select.in.h
Examining data/hivex-1.3.19/gnulib/tests/sys_socket.in.h
Examining data/hivex-1.3.19/gnulib/tests/sys_stat.in.h
Examining data/hivex-1.3.19/gnulib/tests/sys_time.in.h
Examining data/hivex-1.3.19/gnulib/tests/sys_uio.in.h
Examining data/hivex-1.3.19/gnulib/tests/time.in.h
Examining data/hivex-1.3.19/gnulib/tests/unistr.in.h
Examining data/hivex-1.3.19/gnulib/tests/unitypes.in.h
Examining data/hivex-1.3.19/gnulib/tests/windows-thread.h
Examining data/hivex-1.3.19/gnulib/tests/windows-tls.h
Examining data/hivex-1.3.19/gnulib/tests/xalloc-oversized.h
Examining data/hivex-1.3.19/gnulib/tests/xstrtol-error.h
Examining data/hivex-1.3.19/lib/hivex.h
Examining data/hivex-1.3.19/lib/mmap.c
Examining data/hivex-1.3.19/lib/byte_conversions.h
Examining data/hivex-1.3.19/lib/gettext.h
Examining data/hivex-1.3.19/lib/handle.c
Examining data/hivex-1.3.19/lib/hivex-internal.h
Examining data/hivex-1.3.19/lib/mmap.h
Examining data/hivex-1.3.19/lib/node.c
Examining data/hivex-1.3.19/lib/offset-list.c
Examining data/hivex-1.3.19/lib/utf16.c
Examining data/hivex-1.3.19/lib/util.c
Examining data/hivex-1.3.19/lib/value.c
Examining data/hivex-1.3.19/lib/visit.c
Examining data/hivex-1.3.19/lib/write.c
Examining data/hivex-1.3.19/lib/test-just-header.c
Examining data/hivex-1.3.19/images/mkzero/mkzero.c
Examining data/hivex-1.3.19/images/mklarge.c
Examining data/hivex-1.3.19/xml/hivexml.c
Examining data/hivex-1.3.19/sh/hivexsh.c
Examining data/hivex-1.3.19/ocaml/hivex_c.c
Examining data/hivex-1.3.19/python/hivex-py.c
Examining data/hivex-1.3.19/ruby/ext/hivex/_hivex.c

FINAL RESULTS:

data/hivex-1.3.19/gnulib/lib/stdio.in.h:822:8:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
#undef gets
data/hivex-1.3.19/gnulib/lib/stdio.in.h:824: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/hivex-1.3.19/gnulib/lib/unistd.in.h:298: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/hivex-1.3.19/gnulib/lib/unistd.in.h:312: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/hivex-1.3.19/gnulib/lib/unistd.in.h:313: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/hivex-1.3.19/gnulib/lib/unistd.in.h:315: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/hivex-1.3.19/gnulib/lib/unistd.in.h:317: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/hivex-1.3.19/gnulib/lib/unistd.in.h:320: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/hivex-1.3.19/gnulib/lib/unistd.in.h:323: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/hivex-1.3.19/gnulib/lib/unistd.in.h:325: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/hivex-1.3.19/gnulib/lib/unistd.in.h:327: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/hivex-1.3.19/gnulib/lib/unistd.in.h:329: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1394: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1396: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1400: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1405: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1410: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1414: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1416: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1418: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/hivex-1.3.19/gnulib/tests/test-stat-time.c:63:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  chmod (filename, 0600);
data/hivex-1.3.19/gnulib/tests/test-stat-time.c:118:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  ASSERT (chmod (filename_testfile, 0400) == 0);
data/hivex-1.3.19/gnulib/lib/stdio.in.h:329: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/hivex-1.3.19/gnulib/lib/stdio.in.h:333: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:338: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:343: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:346: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:350: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/hivex-1.3.19/gnulib/lib/stdio.in.h:355: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/hivex-1.3.19/gnulib/lib/stdio.in.h:358: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/hivex-1.3.19/gnulib/lib/stdio.in.h:482: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/hivex-1.3.19/gnulib/lib/stdio.in.h:483: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/hivex-1.3.19/gnulib/lib/stdio.in.h:485: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:489: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:492: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:496: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/hivex-1.3.19/gnulib/lib/stdio.in.h:918: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/hivex-1.3.19/gnulib/lib/stdio.in.h:919: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/hivex-1.3.19/gnulib/lib/stdio.in.h:921: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/hivex-1.3.19/gnulib/lib/stdio.in.h:923: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/hivex-1.3.19/gnulib/lib/stdio.in.h:926: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/hivex-1.3.19/gnulib/lib/stdio.in.h:929: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/hivex-1.3.19/gnulib/lib/stdio.in.h:931: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/hivex-1.3.19/gnulib/lib/stdio.in.h:933: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/hivex-1.3.19/gnulib/lib/stdio.in.h:935: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/hivex-1.3.19/gnulib/lib/stdio.in.h:946: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/hivex-1.3.19/gnulib/lib/stdio.in.h:963: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/hivex-1.3.19/gnulib/lib/stdio.in.h:966: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/hivex-1.3.19/gnulib/lib/stdio.in.h:968: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/hivex-1.3.19/gnulib/lib/stdio.in.h:972: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 *restrict format, ...));
data/hivex-1.3.19/gnulib/lib/stdio.in.h:976: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 *restrict format, ...));
data/hivex-1.3.19/gnulib/lib/stdio.in.h:979: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/hivex-1.3.19/gnulib/lib/stdio.in.h:984: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/hivex-1.3.19/gnulib/lib/stdio.in.h:987: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1119: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1121: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1129: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 *restrict format, ...));
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1132: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1133: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1135: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 *restrict format, ...)
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1138: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 *restrict format, ...));
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1141: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 *restrict format, ...));
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1144: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1151: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1153: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1158: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1163: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1169: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1173: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1175: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1177: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1194:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#   define sprintf rpl_sprintf
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1196:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_FUNCDECL_RPL (sprintf, int,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1200:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIAS_RPL (sprintf, int,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1203:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIAS_SYS (sprintf, int,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1207:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIASWARN (sprintf);
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1210:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
# undef sprintf
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1212: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1325: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1329: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1335: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1341: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1348: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1353: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1358: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1361: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1369: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1370: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1372: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1377: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1381: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1385: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1392: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1396: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 *restrict format, va_list args)
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1400: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 *restrict format, va_list args)
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1404: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 *restrict format, va_list args));
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1409: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,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1413: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1418: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1421: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1429: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1430: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1432: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 *restrict format, va_list args)
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1435: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 *restrict format, va_list args));
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1437: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 *restrict format, va_list args));
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1439: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1445: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1447: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1452: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1457: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1463: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1467: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1469: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1471: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1479:12:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#   define vsprintf rpl_vsprintf
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1481:19:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_FUNCDECL_RPL (vsprintf, int,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1486:19:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIAS_RPL (vsprintf, int,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1493: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1498:19:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIASWARN (vsprintf);
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1501:9:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
# undef vsprintf
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1503: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/hivex-1.3.19/gnulib/lib/unistd.in.h:270:11:  [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.
#   undef access
data/hivex-1.3.19/gnulib/lib/unistd.in.h:271:12:  [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.
#   define access rpl_access
data/hivex-1.3.19/gnulib/lib/unistd.in.h:273:19:  [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_FUNCDECL_RPL (access, int, (const char *file, int mode)
data/hivex-1.3.19/gnulib/lib/unistd.in.h:275:19:  [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_CXXALIAS_RPL (access, int, (const char *file, int mode));
data/hivex-1.3.19/gnulib/lib/unistd.in.h:277:19:  [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_CXXALIAS_SYS (access, int, (const char *file, int mode));
data/hivex-1.3.19/gnulib/lib/unistd.in.h:279:19:  [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_CXXALIASWARN (access);
data/hivex-1.3.19/gnulib/lib/unistd.in.h:281:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
# undef access
data/hivex-1.3.19/gnulib/lib/unistd.in.h:284: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, "access does not always support X_OK - "
data/hivex-1.3.19/gnulib/lib/unistd.in.h:870: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/hivex-1.3.19/gnulib/lib/unistd.in.h:872: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/hivex-1.3.19/gnulib/lib/unistd.in.h:873: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/hivex-1.3.19/gnulib/lib/unistd.in.h:875: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/hivex-1.3.19/gnulib/lib/unistd.in.h:877: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1018: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1019: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1021: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1023: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1026: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1029: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1031: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1033: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1035: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/hivex-1.3.19/gnulib/lib/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/hivex-1.3.19/gnulib/lib/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/hivex-1.3.19/gnulib/lib/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/hivex-1.3.19/gnulib/lib/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/hivex-1.3.19/gnulib/lib/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/hivex-1.3.19/gnulib/lib/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/hivex-1.3.19/gnulib/lib/vasnprintf.c:205:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/hivex-1.3.19/gnulib/lib/vasnprintf.c:4516:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                      sprintf ((char *) p, decimal_format, exponent);
data/hivex-1.3.19/gnulib/lib/vasnprintf.c:4524:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                      sprintf (expbuf, decimal_format, exponent);
data/hivex-1.3.19/gnulib/lib/vasnprintf.c:4709:47:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                              sprintf ((char *) p, decimal_format, exponent);
data/hivex-1.3.19/gnulib/lib/vasnprintf.c:4717:47:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                              sprintf (expbuf, decimal_format, exponent);
data/hivex-1.3.19/gnulib/lib/vasnprintf.c:5246:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, arg);                    \
data/hivex-1.3.19/gnulib/lib/vasnprintf.c:5249:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, prefixes[0], arg);       \
data/hivex-1.3.19/gnulib/lib/vasnprintf.c:5252:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, prefixes[0], prefixes[1],\
data/hivex-1.3.19/gnulib/lib/wchar.in.h:706: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 *,
data/hivex-1.3.19/gnulib/lib/wchar.in.h:709: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 *,
data/hivex-1.3.19/gnulib/lib/wchar.in.h:712: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/hivex-1.3.19/gnulib/lib/wchar.in.h:715: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/hivex-1.3.19/gnulib/lib/wchar.in.h:717: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/hivex-1.3.19/gnulib/lib/wchar.in.h:787:19:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
_GL_FUNCDECL_SYS (wcscat, wchar_t *,
data/hivex-1.3.19/gnulib/lib/wchar.in.h:790:19:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
_GL_CXXALIAS_SYS (wcscat, wchar_t *,
data/hivex-1.3.19/gnulib/lib/wchar.in.h:793:19:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
_GL_CXXALIASWARN (wcscat);
data/hivex-1.3.19/gnulib/lib/wchar.in.h:796:9:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
# undef wcscat
data/hivex-1.3.19/gnulib/lib/wchar.in.h:798: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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/localename.c:1405: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 (name, legacy_table[i1].unixy);
data/hivex-1.3.19/gnulib/tests/localename.c:1429: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 (name, langtag_table[i1].unixy);
data/hivex-1.3.19/gnulib/tests/localename.c:1449: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 (name + 3, script_table[i1].unixy);
data/hivex-1.3.19/gnulib/tests/localename.c:2628: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 (last_locale, locale_name);
data/hivex-1.3.19/gnulib/tests/perror.c:30:8:  [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/hivex-1.3.19/gnulib/tests/setlocale.c:753: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 (ll_buf + (underscore - llCC_buf), territory_end);
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:327: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 (resultbuf, buf);
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:406: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 (resultbuf[i], buf);
data/hivex-1.3.19/gnulib/tests/strerror.c:33:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/hivex-1.3.19/gnulib/tests/strerror.c:59:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (buf, fmt, n);
data/hivex-1.3.19/gnulib/tests/strerror_r.c:123:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf local_snprintf
data/hivex-1.3.19/gnulib/tests/test-lock.c:103:20:  [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 dbgprintf printf
data/hivex-1.3.19/gnulib/tests/test-lock.c:105:27:  [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 dbgprintf if (0) printf
data/hivex-1.3.19/gnulib/tests/test-lstat.c:57:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  ignore_value (system ("rm -rf " BASE "*"));
data/hivex-1.3.19/gnulib/tests/test-pthread_sigmask1.c:63:11:  [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.
  ASSERT (system (command) == 0);
data/hivex-1.3.19/gnulib/tests/test-sigprocmask.c:70:11:  [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.
  ASSERT (system (command) == 0);
data/hivex-1.3.19/gnulib/tests/test-symlink.c:44:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  ignore_value (system ("rm -rf " BASE "*"));
data/hivex-1.3.19/images/mklarge.c:62: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 (&name[len], strings[depth][i]);
data/hivex-1.3.19/sh/hivexsh.c:816: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.
        printf ("dword:%08" PRIx32, (uint32_t) j);
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:606:11:  [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/hivex-1.3.19/gnulib/lib/stdlib.in.h:607:12:  [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.
#   define random rpl_random
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:609: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_RPL (random, long, (void));
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:610: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_RPL (random, long, (void));
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:613: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:617:24:  [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_CAST (random, long, (void));
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:619: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:621: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:623: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:631:11:  [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/hivex-1.3.19/gnulib/lib/stdlib.in.h:632:12:  [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.
#   define srandom rpl_srandom
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:634: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_RPL (srandom, void, (unsigned int seed));
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:635: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_RPL (srandom, void, (unsigned int seed));
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:638: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:642:24:  [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_CAST (srandom, void, (unsigned int seed));
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:644: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:646: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:648: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:687: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.
#   undef setstate
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:688: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.
#   define setstate rpl_setstate
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:690: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_RPL (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1)));
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:691: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_RPL (setstate, char *, (char *arg_state));
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:694: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:698:24:  [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_CAST (setstate, char *, (char *arg_state));
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:700: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:702: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:704: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:873: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:875: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 *,
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:878: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 *,
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:882: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 *,
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:886: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 *,
data/hivex-1.3.19/gnulib/lib/stdlib.in.h:889: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:891: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:893: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/hivex-1.3.19/gnulib/lib/windows-mutex.c:30:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&mutex->lock);
data/hivex-1.3.19/gnulib/lib/windows-mutex.c:52:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&mutex->lock);
data/hivex-1.3.19/gnulib/lib/windows-once.c:35:11:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
          InitializeCriticalSection (&once_control->lock);
data/hivex-1.3.19/gnulib/lib/windows-once.c:36: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/hivex-1.3.19/gnulib/lib/windows-once.c:55: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/hivex-1.3.19/gnulib/lib/windows-recmutex.c:32:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&mutex->lock);
data/hivex-1.3.19/gnulib/lib/windows-recmutex.c:58:9:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
        EnterCriticalSection (&mutex->lock);
data/hivex-1.3.19/gnulib/lib/windows-rwlock.c:126:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/hivex-1.3.19/gnulib/lib/windows-rwlock.c:151:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/hivex-1.3.19/gnulib/lib/windows-rwlock.c:183:15:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
              EnterCriticalSection (&lock->lock);
data/hivex-1.3.19/gnulib/lib/windows-rwlock.c:211:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/hivex-1.3.19/gnulib/lib/windows-rwlock.c:240:15:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
              EnterCriticalSection (&lock->lock);
data/hivex-1.3.19/gnulib/lib/windows-rwlock.c:270:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/hivex-1.3.19/gnulib/lib/windows-rwlock.c:306:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/hivex-1.3.19/gnulib/lib/windows-rwlock.c:324:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/gettimeofday.c:35:9:  [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.
# undef LoadLibrary
data/hivex-1.3.19/gnulib/tests/gettimeofday.c:36:10:  [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.
# define LoadLibrary LoadLibraryA
data/hivex-1.3.19/gnulib/tests/gettimeofday.c:52: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/hivex-1.3.19/gnulib/tests/localename.c:1509:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("GETTEXT_MUI") != NULL)
data/hivex-1.3.19/gnulib/tests/localename.c:3321: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.
  retval = getenv ("LC_ALL");
data/hivex-1.3.19/gnulib/tests/localename.c:3325: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.
  retval = getenv (categoryname);
data/hivex-1.3.19/gnulib/tests/localename.c:3329: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.
  retval = getenv ("LANG");
data/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/setlocale-lock.c:76:11:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
          InitializeCriticalSection (&lock);
data/hivex-1.3.19/gnulib/tests/setlocale.c:1597:47:  [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 *verbose = getenv ("SETLOCALE_VERBOSE");
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:194:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (lock);
data/hivex-1.3.19/gnulib/tests/stat-w32.c:44:8:  [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.
#undef LoadLibrary
data/hivex-1.3.19/gnulib/tests/stat-w32.c:45:9:  [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.
#define LoadLibrary LoadLibraryA
data/hivex-1.3.19/gnulib/tests/stat-w32.c:74: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/hivex-1.3.19/gnulib/tests/test-getopt-gnu.c:36:18:  [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.
SIGNATURE_CHECK (getopt_long, int, (int, char *__getopt_argv_const *,
data/hivex-1.3.19/gnulib/tests/test-getopt-main.h:20:18:  [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.
SIGNATURE_CHECK (getopt, int, (int, char * const[], char const *));
data/hivex-1.3.19/gnulib/tests/test-getopt.h:43:15:  [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.
  while ((c = getopt (argc, (char **) argv, options)) != -1)
data/hivex-1.3.19/gnulib/tests/test-getopt.h:86: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.
  bool posixly = !!getenv ("POSIXLY_CORRECT");
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1386:15:  [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.
      ASSERT (getopt (argc, (char **) argv, "W;") == 'W');
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:57:15:  [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.
  while ((c = getopt_long (argc, (char **) argv, options, long_options,
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:108: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.
  return getopt_long (argc, (char **) argv, shortopts, longopts, longind);
data/hivex-1.3.19/gnulib/tests/test-setenv.c:38: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.
  ASSERT (strcmp (getenv ("a"), "==") == 0);
data/hivex-1.3.19/gnulib/tests/test-setlocale1.c:50: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.
  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL)
data/hivex-1.3.19/gnulib/tests/test-setlocale2.c:35: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.
                 getenv ("LC_ALL"));
data/hivex-1.3.19/gnulib/tests/test-setlocale2.c:45: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.
  if (setlocale (LC_ALL, getenv ("LC_ALL")) != NULL)
data/hivex-1.3.19/gnulib/tests/test-setlocale2.c:50: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.
                 getenv ("LC_ALL"));
data/hivex-1.3.19/gnulib/tests/test-unsetenv.c:42:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  ASSERT (getenv ("a") == NULL);
data/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/windows-thread.c:109:7:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
      InitializeCriticalSection (&thread->handle_lock);
data/hivex-1.3.19/gnulib/tests/windows-thread.c:125:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&thread->handle_lock);
data/hivex-1.3.19/gnulib/tests/windows-thread.c:164:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&thread->handle_lock);
data/hivex-1.3.19/gnulib/tests/windows-thread.c:184:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection (&thread->handle_lock);
data/hivex-1.3.19/gnulib/tests/windows-tls.c:68:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&dtor_table_lock);
data/hivex-1.3.19/gnulib/tests/windows-tls.c:135:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&dtor_table_lock);
data/hivex-1.3.19/gnulib/tests/windows-tls.c:175:19:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
                  EnterCriticalSection (&dtor_table_lock);
data/hivex-1.3.19/gnulib/tests/windows-tls.c:198:7:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
      EnterCriticalSection (&dtor_table_lock);
data/hivex-1.3.19/gnulib/tests/windows-tls.c:221:13:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
            EnterCriticalSection (&dtor_table_lock);
data/hivex-1.3.19/gnulib/tests/windows-tls.c:291:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&dtor_table_lock);
data/hivex-1.3.19/lib/handle.c:107: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.
  const char *debug = getenv ("HIVEX_DEBUG");
data/hivex-1.3.19/sh/hivexsh.c:119:15:  [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.
  while ((c = getopt (argc, argv, "df:wu")) != EOF) {
data/hivex-1.3.19/sh/hivexsh.c:342: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.
  home = getenv ("HOME");
data/hivex-1.3.19/xml/hivexml.c:98:15:  [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.
  while ((c = getopt (argc, argv, "dku")) != EOF) {
data/hivex-1.3.19/gnulib/lib/dup2.c:116: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/hivex-1.3.19/gnulib/lib/dup2.c:124: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/hivex-1.3.19/gnulib/lib/dup2.c:128: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/hivex-1.3.19/gnulib/lib/fcntl.c:61: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/hivex-1.3.19/gnulib/lib/fcntl.in.h:143: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/hivex-1.3.19/gnulib/lib/fcntl.in.h:144: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/hivex-1.3.19/gnulib/lib/fcntl.in.h:146: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/hivex-1.3.19/gnulib/lib/fcntl.in.h:148: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/hivex-1.3.19/gnulib/lib/fcntl.in.h:150: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/hivex-1.3.19/gnulib/lib/fcntl.in.h:155: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/hivex-1.3.19/gnulib/lib/fcntl.in.h:158: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/hivex-1.3.19/gnulib/lib/fcntl.in.h:160: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/hivex-1.3.19/gnulib/lib/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/hivex-1.3.19/gnulib/lib/printf-parse.c:593: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/hivex-1.3.19/gnulib/lib/stdio.in.h:303: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/hivex-1.3.19/gnulib/lib/stdio.in.h:304: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/hivex-1.3.19/gnulib/lib/stdio.in.h:306: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 *,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:309: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 *,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:312: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 *,
data/hivex-1.3.19/gnulib/lib/stdio.in.h:316: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/hivex-1.3.19/gnulib/lib/stdio.in.h:319: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/hivex-1.3.19/gnulib/lib/stdio.in.h:321: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1220: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1222: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1223: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1225: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1228: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/hivex-1.3.19/gnulib/lib/stdio.in.h:1231:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
# undef tmpfile
data/hivex-1.3.19/gnulib/lib/stdio.in.h:1233: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:427: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:429: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:430: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:433: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:435: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:437: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:439: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/hivex-1.3.19/gnulib/lib/stdlib.in.h:441: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/hivex-1.3.19/gnulib/lib/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/hivex-1.3.19/gnulib/lib/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/hivex-1.3.19/gnulib/lib/vasnprintf.c:285: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 hex[16] = "0123456789ABCDEF";
data/hivex-1.3.19/gnulib/lib/vasnprintf.c:363: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:364: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:588: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:724: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:2740: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:2781: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:2827: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:2836: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:2904: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:2913: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:2929: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:2947: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3032: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3058: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 cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/hivex-1.3.19/gnulib/lib/vasnprintf.c:3069: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 (tmpsrc, cbuf, count);
data/hivex-1.3.19/gnulib/lib/vasnprintf.c:3141: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3153: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3432: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3438: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3440: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3583: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3589: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3591: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3658: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4043: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4049: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4051: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4224: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4230: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4232: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4522: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4715: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4841: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:5049: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:5070: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:5784: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/hivex-1.3.19/gnulib/tests/alloca.c:112: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/hivex-1.3.19/gnulib/tests/atomic-int-gnulib.h:93: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[80];
data/hivex-1.3.19/gnulib/tests/atomic-int-gnulib.h:99: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 (name, "test-lock-%lu-%p-%u",
data/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/ftruncate.c:92: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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/getprogname.c:152: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/hivex-1.3.19/gnulib/tests/getprogname.c: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 filename[50];
data/hivex-1.3.19/gnulib/tests/getprogname.c:225: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/hivex-1.3.19/gnulib/tests/getprogname.c:226: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 | O_CLOEXEC);
data/hivex-1.3.19/gnulib/tests/getprogname.c:243: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/hivex-1.3.19/gnulib/tests/gettext.h:227: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/hivex-1.3.19/gnulib/tests/gettext.h:229: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/hivex-1.3.19/gnulib/tests/gettext.h: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/hivex-1.3.19/gnulib/tests/gettext.h:240: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/hivex-1.3.19/gnulib/tests/gettext.h:275: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/hivex-1.3.19/gnulib/tests/gettext.h:277: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/hivex-1.3.19/gnulib/tests/gettext.h:286: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/hivex-1.3.19/gnulib/tests/gettext.h:288: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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/iconv_open-zos.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/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str3[sizeof("GBK")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str5[sizeof("ASCII")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str7[sizeof("CP1253")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str8[sizeof("EUC-KR")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str9[sizeof("CP1257")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str10[sizeof("CP857")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str11[sizeof("ISO-8859-8")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str12[sizeof("ISO-8859-3")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str13[sizeof("ISO-8859-13")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str14[sizeof("ISO-8859-7")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str15[sizeof("CP437")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str16[sizeof("CP1129")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str17[sizeof("CP869")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str18[sizeof("ISO-8859-9")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str19[sizeof("CP922")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str20[sizeof("CP1252")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str21[sizeof("CP852")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str22[sizeof("CP1250")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str23[sizeof("CP850")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str24[sizeof("CP862")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str25[sizeof("ISO-8859-2")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str26[sizeof("CP932")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str27[sizeof("GB2312")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str28[sizeof("CP1255")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str29[sizeof("CP855")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str30[sizeof("KOI8-R")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str31[sizeof("CP1125")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str32[sizeof("CP865")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str33[sizeof("ISO-8859-5")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str34[sizeof("ISO-8859-15")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str35[sizeof("CP1256")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str36[sizeof("CP856")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.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_str37[sizeof("KOI8-U")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str38[sizeof("CP1254")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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("CP866")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h: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 stringpool_str40[sizeof("ISO-8859-6")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:134:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str42[sizeof("CP864")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:135:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/hivex-1.3.19/gnulib/tests/iconv_open-zos.h: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 stringpool_str44[sizeof("CP1251")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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("CP775")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:138:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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("CP943")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:139:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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("CP1131")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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("CP861")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:141:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str49[sizeof("ISO-8859-1")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_str50[sizeof("EUC-JP")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_str52[sizeof("CP949")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:144:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_str55[sizeof("CP874")];
data/hivex-1.3.19/gnulib/tests/iconv_open-zos.h:145:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_str64[sizeof("CP1046")];
data/hivex-1.3.19/gnulib/tests/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 fromcode_upper[32];
data/hivex-1.3.19/gnulib/tests/iconv_open.c:50: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/hivex-1.3.19/gnulib/tests/inet_pton.c:116: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 tmp[NS_INADDRSZ], *tp;
data/hivex-1.3.19/gnulib/tests/inet_pton.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 (dst, tmp, NS_INADDRSZ);
data/hivex-1.3.19/gnulib/tests/inet_pton.c:175: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 tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp;
data/hivex-1.3.19/gnulib/tests/inet_pton.c:262: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 (dst, tmp, NS_IN6ADDRSZ);
data/hivex-1.3.19/gnulib/tests/localename-table.h:33:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *category_name[6];
data/hivex-1.3.19/gnulib/tests/localename.c:1187:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 { const char legacy[21+1]; const char unixy[5+1]; }
data/hivex-1.3.19/gnulib/tests/localename.c:1187:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 { const char legacy[21+1]; const char unixy[5+1]; }
data/hivex-1.3.19/gnulib/tests/localename.c:1325:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 { const char langtag[7+1]; const char unixy[12+1]; }
data/hivex-1.3.19/gnulib/tests/localename.c:1325:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 { const char langtag[7+1]; const char unixy[12+1]; }
data/hivex-1.3.19/gnulib/tests/localename.c:1377:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 { const char script[4+1]; const char unixy[9+1]; }
data/hivex-1.3.19/gnulib/tests/localename.c:1377:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 { const char script[4+1]; const char unixy[9+1]; }
data/hivex-1.3.19/gnulib/tests/localename.c:1511: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 namebuf[256];
data/hivex-1.3.19/gnulib/tests/localename.c:2568: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 lname[LC_MAX * (LOCALE_NAME_MAX_LENGTH + 1) + 1];
data/hivex-1.3.19/gnulib/tests/localename.c:2575: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 locval[2 * LOCALE_NAME_MAX_LENGTH + 1 + 1];
data/hivex-1.3.19/gnulib/tests/localename.c:2611: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 last_locale[1000];
data/hivex-1.3.19/gnulib/tests/localename.c:2668:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char contents[FLEXIBLE_ARRAY_MEMBER];
data/hivex-1.3.19/gnulib/tests/localename.c:2699: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 (new_node->contents, string, size);
data/hivex-1.3.19/gnulib/tests/localename.c:3177:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              return ((const char * const *) lcp)[category];
data/hivex-1.3.19/gnulib/tests/localename.c:3195:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            return ((const char * const *) thread_locale)[category];
data/hivex-1.3.19/gnulib/tests/localename.c:3211: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 categories[7][32];
data/hivex-1.3.19/gnulib/tests/localename.c:3409: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 namebuf[256];
data/hivex-1.3.19/gnulib/tests/nap.h:72: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).
      nap_fd = open (TEMPFILE, O_RDWR, 0600);
data/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/open.c:161: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/hivex-1.3.19/gnulib/tests/perror.c:35: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 stackbuf[STACKBUF_LEN];
data/hivex-1.3.19/gnulib/tests/pthread_sigmask.c:47: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 (&omask_copy, &omask, sizeof omask);
data/hivex-1.3.19/gnulib/tests/pthread_sigmask.c:70: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 (old_mask, &omask, sizeof omask);
data/hivex-1.3.19/gnulib/tests/putenv.c:87: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/hivex-1.3.19/gnulib/tests/putenv.c:151: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/hivex-1.3.19/gnulib/tests/putenv.c:192: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/hivex-1.3.19/gnulib/tests/select.c:67: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/hivex-1.3.19/gnulib/tests/select.c:68: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/hivex-1.3.19/gnulib/tests/select.c:273: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/hivex-1.3.19/gnulib/tests/select.c:430: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/hivex-1.3.19/gnulib/tests/select.c:431: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/hivex-1.3.19/gnulib/tests/select.c:432: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/hivex-1.3.19/gnulib/tests/select.c:506: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/hivex-1.3.19/gnulib/tests/select.c:507: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/hivex-1.3.19/gnulib/tests/select.c:508: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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/setlocale.c:676: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 llCC_buf[64];
data/hivex-1.3.19/gnulib/tests/setlocale.c:677: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 ll_buf[64];
data/hivex-1.3.19/gnulib/tests/setlocale.c:678: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 CC_buf[64];
data/hivex-1.3.19/gnulib/tests/setlocale.c:752: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 (ll_buf, llCC_buf, underscore - llCC_buf);
data/hivex-1.3.19/gnulib/tests/setlocale.c:755: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 (CC_buf, territory_start, territory_end - territory_start);
data/hivex-1.3.19/gnulib/tests/setlocale.c:788: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 buf[64+64];
data/hivex-1.3.19/gnulib/tests/setlocale.c:792: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 (buf, part1, part1_len);
data/hivex-1.3.19/gnulib/tests/setlocale.c:794: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 (buf + part1_len + 1, part2, part2_len);
data/hivex-1.3.19/gnulib/tests/setlocale.c:868: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 lc_messages_name[64] = "C";
data/hivex-1.3.19/gnulib/tests/setlocale.c:1523: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 buf[256];
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:157: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 (buf, result, length + 1);
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:167: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, result, bufsize - 1);
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:322: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[SETLOCALE_NULL_ALL_MAX];
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:323: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 resultbuf[SETLOCALE_NULL_ALL_MAX];
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:365: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[SETLOCALE_NULL_MAX];
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:366: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 resultbuf[LC_INDICES_COUNT][SETLOCALE_NULL_MAX];
data/hivex-1.3.19/gnulib/tests/stat-w32.c:215: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/hivex-1.3.19/gnulib/tests/stat-w32.c:268: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/hivex-1.3.19/gnulib/tests/stat.c:179: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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/strerror_r.c:192: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 stackbuf[80];
data/hivex-1.3.19/gnulib/tests/strerror_r.c:219: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 stackbuf[STACKBUF_LEN];
data/hivex-1.3.19/gnulib/tests/strerror_r.c:238: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 stackbuf[STACKBUF_LEN];
data/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/sys_stat.in.h:813: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/hivex-1.3.19/gnulib/tests/sys_stat.in.h:816: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/hivex-1.3.19/gnulib/tests/sys_stat.in.h:820: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/hivex-1.3.19/gnulib/tests/sys_stat.in.h:824: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/hivex-1.3.19/gnulib/tests/test-binary-io.c:38:7:  [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 ("t-bin-out0.tmp", O_CREAT | O_TRUNC | O_RDWR | O_BINARY, 0600);
data/hivex-1.3.19/gnulib/tests/test-dup2.c:113: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 buffer[1];
data/hivex-1.3.19/gnulib/tests/test-dup2.c:115: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 (file, O_CREAT | O_TRUNC | O_RDWR, 0600);
data/hivex-1.3.19/gnulib/tests/test-dup2.c:177: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).
  ASSERT (open ("/dev/null", O_WRONLY, 0600) == fd + 1);
data/hivex-1.3.19/gnulib/tests/test-fgetc.c:49: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 (filename, O_RDWR | O_CREAT | O_TRUNC, 0600);
data/hivex-1.3.19/gnulib/tests/test-fgetc.c:58:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen (filename, "r");
data/hivex-1.3.19/gnulib/tests/test-fputc.c:49:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen (filename, "w");
data/hivex-1.3.19/gnulib/tests/test-fread.c:49: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 (filename, O_RDWR | O_CREAT | O_TRUNC, 0600);
data/hivex-1.3.19/gnulib/tests/test-fread.c:58:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen (filename, "r");
data/hivex-1.3.19/gnulib/tests/test-fread.c:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[5];
data/hivex-1.3.19/gnulib/tests/test-fread.c:75: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[1];
data/hivex-1.3.19/gnulib/tests/test-fread.c:89: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[1];
data/hivex-1.3.19/gnulib/tests/test-ftruncate.c:49: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 (filename, O_RDONLY);
data/hivex-1.3.19/gnulib/tests/test-fwrite.c:49:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen (filename, "w");
data/hivex-1.3.19/gnulib/tests/test-fwrite.c:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[5] = "world";
data/hivex-1.3.19/gnulib/tests/test-fwrite.c:67: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[5] = "world";
data/hivex-1.3.19/gnulib/tests/test-fwrite.c:82: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[5] = "world";
data/hivex-1.3.19/gnulib/tests/test-getopt.h:103: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:107: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:135: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:139: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:168: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:172: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:200: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:204: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:235: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:239: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:266: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:270: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:298: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:302: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:335: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:339: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:366: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:370: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:398: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:402: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:434: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:438: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:468: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:472: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:502: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:506: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:536: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:540: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:570: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:574: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:604: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:608: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:640: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:644: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:670: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:674: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:700: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:704: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:732: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:736: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:799: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:803: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.
      const char *argv[20];
data/hivex-1.3.19/gnulib/tests/test-getopt.h: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:886: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:930: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:934: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.
      const char *argv[20];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1005: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1009: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1073: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1077: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1116: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1120: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1147: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1151: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.
      const char *argv[20];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1203: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1207: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1273: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1277: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1316: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1320: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1345: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1349: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt.h:1377: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:119:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:134:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:149:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:164:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:178:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:193:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:208:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:222:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:236:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:252:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:267:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:292:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:321:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:342: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:345: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:371: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:374: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:401: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:404: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:430: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:433: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:462: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:465: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:491: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:494: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:521: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:524: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:555: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:558: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:584: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:587: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:616: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:619: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:650: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:653: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:678: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:681: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:707: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:710: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:740: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:743: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:768: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:771: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:797: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:800: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:830: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:833: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:858: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:861: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:888: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:891: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:922: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:925: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:950: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:953: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:979: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:982: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1010: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1013: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1038: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1041: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1067: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1070: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1096: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1099: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1127: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1130: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1155: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1158: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1184: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1187: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1213: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1216: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1243: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1246: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1275: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1278: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1306: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1309: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1339: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1342: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1369: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1372: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1403: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1406: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1445: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1448: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.
      const char *argv[20];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1497: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1500: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1542: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1545: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.
      const char *argv[20];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1614: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1617: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1657: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1660: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1697: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1700: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1726: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1729: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.
      const char *argv[20];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1778: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1781: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1830: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1833: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1872: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1875: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1902: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.
      const char *non_options[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1905: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.
      const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1945:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1961:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1977:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:1993:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:2010:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:2027:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:2043:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:2059:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:2074:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:2089:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:2109:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-getopt_long.h:2130:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *argv[10];
data/hivex-1.3.19/gnulib/tests/test-iconv.c:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[50];
data/hivex-1.3.19/gnulib/tests/test-iconv.c:79:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[2] = { (char)0xDE, (char)0xAD };
data/hivex-1.3.19/gnulib/tests/test-iconv.c: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 buf[50];
data/hivex-1.3.19/gnulib/tests/test-iconv.c: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 buf[10];
data/hivex-1.3.19/gnulib/tests/test-iconv.c:137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10];
data/hivex-1.3.19/gnulib/tests/test-localename.c:436:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *unsaved_names[SIZEOF (choices)][SIZEOF (categories)];
data/hivex-1.3.19/gnulib/tests/test-localename.c:439:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *saved_names[SIZEOF (choices)][SIZEOF (categories)];
data/hivex-1.3.19/gnulib/tests/test-lock.c:540: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 (&once_control, &fresh_once, sizeof (gl_once_t));
data/hivex-1.3.19/gnulib/tests/test-open.c:24: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).
SIGNATURE_CHECK (open, int, (char const *, int, ...));
data/hivex-1.3.19/gnulib/tests/test-open.c:40: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).
  return test_open (open, true);
data/hivex-1.3.19/gnulib/tests/test-perror2.c:99: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[256];
data/hivex-1.3.19/gnulib/tests/test-pthread_sigmask1.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 command[80];
data/hivex-1.3.19/gnulib/tests/test-pthread_sigmask1.c:62: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 (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
data/hivex-1.3.19/gnulib/tests/test-read.c:37: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_CREAT | O_WRONLY, 0600);
data/hivex-1.3.19/gnulib/tests/test-read.c:43: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/hivex-1.3.19/gnulib/tests/test-read.c:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10];
data/hivex-1.3.19/gnulib/tests/test-select-fd.c:34:20:  [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 fd = atoi (argv[2]);
data/hivex-1.3.19/gnulib/tests/test-select-fd.c:39:35:  [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 *result_file = fopen (result_file_name, "wb");
data/hivex-1.3.19/gnulib/tests/test-select.h:354: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[3];
data/hivex-1.3.19/gnulib/tests/test-select.h:395: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[3];
data/hivex-1.3.19/gnulib/tests/test-setlocale_null-mt-all.c:69: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[SETLOCALE_NULL_ALL_MAX];
data/hivex-1.3.19/gnulib/tests/test-setlocale_null-mt-all.c:89: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[SETLOCALE_NULL_ALL_MAX];
data/hivex-1.3.19/gnulib/tests/test-setlocale_null-mt-one.c:69: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[SETLOCALE_NULL_MAX];
data/hivex-1.3.19/gnulib/tests/test-setlocale_null-mt-one.c:89: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[SETLOCALE_NULL_MAX];
data/hivex-1.3.19/gnulib/tests/test-setlocale_null.c:25: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 buf[SETLOCALE_NULL_ALL_MAX];
data/hivex-1.3.19/gnulib/tests/test-sigprocmask.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 command[80];
data/hivex-1.3.19/gnulib/tests/test-sigprocmask.c:69: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 (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, (int) pid);
data/hivex-1.3.19/gnulib/tests/test-stat-time.c:37:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char filename_stamp1[50];
data/hivex-1.3.19/gnulib/tests/test-stat-time.c:38: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 filename_testfile[50];
data/hivex-1.3.19/gnulib/tests/test-stat-time.c:39: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 filename_stamp2[50];
data/hivex-1.3.19/gnulib/tests/test-stat-time.c:40: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 filename_stamp3[50];
data/hivex-1.3.19/gnulib/tests/test-stat-time.c:52: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_stamp1,   "t-stt-%ld-stamp1", t);
data/hivex-1.3.19/gnulib/tests/test-stat-time.c:53: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_testfile, "t-stt-%ld-testfile", t);
data/hivex-1.3.19/gnulib/tests/test-stat-time.c:54: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_stamp2,   "t-stt-%ld-stamp2", t);
data/hivex-1.3.19/gnulib/tests/test-stat-time.c:55: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_stamp3,   "t-stt-%ld-stamp3", t);
data/hivex-1.3.19/gnulib/tests/test-stat-time.c:83: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 (filename, flags | O_WRONLY, 0500);
data/hivex-1.3.19/gnulib/tests/test-stdalign.c:31: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.
typedef struct { char a[1]; } struct1;
data/hivex-1.3.19/gnulib/tests/test-stdalign.c:32: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.
typedef struct { char a[2]; } struct2;
data/hivex-1.3.19/gnulib/tests/test-stdalign.c:33: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.
typedef struct { char a[3]; } struct3;
data/hivex-1.3.19/gnulib/tests/test-stdalign.c:34: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.
typedef struct { char a[4]; } struct4;
data/hivex-1.3.19/gnulib/tests/test-stdbool.c:59: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 a[true == 1 ? 1 : -1];
data/hivex-1.3.19/gnulib/tests/test-stdbool.c:60: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 b[false == 0 ? 1 : -1];
data/hivex-1.3.19/gnulib/tests/test-stdbool.c:61: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 c[__bool_true_false_are_defined == 1 ? 1 : -1];
data/hivex-1.3.19/gnulib/tests/test-stdbool.c:63: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 d[(bool) 0.5 == true ? 1 : -1];
data/hivex-1.3.19/gnulib/tests/test-stdbool.c:72: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 f[(_Bool) 0.0 == false ? 1 : -1];
data/hivex-1.3.19/gnulib/tests/test-stdbool.c:74: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 g[true];
data/hivex-1.3.19/gnulib/tests/test-stdbool.c:75: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 h[sizeof (_Bool)];
data/hivex-1.3.19/gnulib/tests/test-stdbool.c:77: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 i[sizeof s.t];
data/hivex-1.3.19/gnulib/tests/test-stdbool.c:81: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 o[sizeof n == m * sizeof n[0] ? 1 : -1];
data/hivex-1.3.19/gnulib/tests/test-stdbool.c:82: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 p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
data/hivex-1.3.19/gnulib/tests/test-strerror_r.c:31: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[100];
data/hivex-1.3.19/gnulib/tests/test-strerror_r.c:97: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 buf2[sizeof buf] = "";
data/hivex-1.3.19/gnulib/tests/test-strerror_r.c:123:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy (buf, "BADFACE");
data/hivex-1.3.19/gnulib/tests/test-vasnprintf.c:32: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[8];
data/hivex-1.3.19/gnulib/tests/test-vasnprintf.c:50: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 (buf, "DEADBEEF", 8);
data/hivex-1.3.19/gnulib/tests/test-vasnprintf.c:69: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 (buf, "DEADBEEF", 8);
data/hivex-1.3.19/gnulib/tests/test-write.c:37: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_CREAT | O_WRONLY, 0600);
data/hivex-1.3.19/gnulib/tests/test-write.c:43: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_WRONLY);
data/hivex-1.3.19/gnulib/tests/test-write.c:50:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/hivex-1.3.19/gnulib/tests/test-write.c:51: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).
    int rfd = open (filename, O_RDONLY);
data/hivex-1.3.19/gnulib/tests/windows-tls.c:228: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 (new_table, dtor_table,
data/hivex-1.3.19/gnulib/tests/xstrtol-error.c:55: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 option_buffer[2];
data/hivex-1.3.19/gnulib/tests/zerosize-ptr.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).
  int fd = open ("/dev/zero", O_RDONLY, 0666);
data/hivex-1.3.19/images/mklarge.c:82: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 name[4096] = { '\0' };
data/hivex-1.3.19/lib/gettext.h:201: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/hivex-1.3.19/lib/gettext.h:203: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/hivex-1.3.19/lib/gettext.h:211: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/hivex-1.3.19/lib/gettext.h:213: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/hivex-1.3.19/lib/gettext.h:247: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/hivex-1.3.19/lib/gettext.h:249: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/hivex-1.3.19/lib/gettext.h:257: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/hivex-1.3.19/lib/gettext.h:259: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/hivex-1.3.19/lib/handle.c:120: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).
  h->fd = open (filename, O_RDONLY | O_CLOEXEC | O_BINARY);
data/hivex-1.3.19/lib/handle.c:122: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).
  h->fd = open (filename, O_RDONLY | O_BINARY);
data/hivex-1.3.19/lib/handle.c:486: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_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY|O_CLOEXEC|O_BINARY,
data/hivex-1.3.19/lib/handle.c:489: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_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY|O_BINARY, 0666);
data/hivex-1.3.19/lib/hivex-internal.h:101: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 magic[4];                /* "regf" */
data/hivex-1.3.19/lib/hivex-internal.h:113: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 name[64];                /* original file name of hive */
data/hivex-1.3.19/lib/hivex-internal.h:114: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 unknown_guid1[16];
data/hivex-1.3.19/lib/hivex-internal.h:115: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 unknown_guid2[16];
data/hivex-1.3.19/lib/hivex-internal.h:118: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 unknown_guid3[16];
data/hivex-1.3.19/lib/hivex-internal.h:121: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 unknown10[340];
data/hivex-1.3.19/lib/hivex-internal.h:125: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 unknown11[3528];
data/hivex-1.3.19/lib/hivex-internal.h:127: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 unknown_guid4[16];
data/hivex-1.3.19/lib/hivex-internal.h: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 unknown_guid5[16];
data/hivex-1.3.19/lib/hivex-internal.h:129: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 unknown_guid6[16];
data/hivex-1.3.19/lib/hivex-internal.h:136: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 magic[4];                /* "hbin" */
data/hivex-1.3.19/lib/hivex-internal.h:139: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 unknown[20];
data/hivex-1.3.19/lib/hivex-internal.h:145: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 id[2];                   /* the block type (eg. "nk" for nk record) */
data/hivex-1.3.19/lib/hivex-internal.h:157: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 id[2];                   /* "nk" */
data/hivex-1.3.19/lib/hivex-internal.h:192: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 name[1];                 /* name follows here */
data/hivex-1.3.19/lib/hivex-internal.h:197: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 id[2];                   /* "lf"|"lh" */
data/hivex-1.3.19/lib/hivex-internal.h:201:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hash[4];               /* hash of subkey name */
data/hivex-1.3.19/lib/hivex-internal.h:207: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 id[2];                   /* "ri" */
data/hivex-1.3.19/lib/hivex-internal.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 id[2];                   /* "vk" */
data/hivex-1.3.19/lib/hivex-internal.h:234: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 name[1];                 /* key name follows here */
data/hivex-1.3.19/lib/hivex-internal.h:239: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 id[2];                   /* "sk" */
data/hivex-1.3.19/lib/hivex-internal.h:245: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 sec_desc[1];             /* security info follows */
data/hivex-1.3.19/lib/hivex-internal.h:250: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 id[2];                   /* "db" */
data/hivex-1.3.19/lib/hivex-internal.h:258: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 data[1];
data/hivex-1.3.19/lib/value.c:363:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ret, (char *) &vk->data_offset, len);
data/hivex-1.3.19/lib/value.c:384:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ret, data, len);
data/hivex-1.3.19/lib/value.c:430: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 (ret + off, subblock->data, sz);
data/hivex-1.3.19/lib/visit.c:57: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 (&vtor, visitor, copysize);
data/hivex-1.3.19/lib/visit.c:65: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 (unvisited, h->bitmap, 1 + h->size / 32);
data/hivex-1.3.19/lib/write.c:149:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
allocate_block (hive_h *h, size_t seg_len, const char id[2])
data/hivex-1.3.19/lib/write.c:297:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ret, name, len < 4 ? len : 4);
data/hivex-1.3.19/lib/write.c:315: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 id[2] = { 'l', 'h' };
data/hivex-1.3.19/lib/write.c:360: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 id[2];
data/hivex-1.3.19/lib/write.c:361: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 (id, old_lf->id, sizeof id);
data/hivex-1.3.19/lib/write.c:418: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 id[2];
data/hivex-1.3.19/lib/write.c:419: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 (id, old_li->id, sizeof id);
data/hivex-1.3.19/lib/write.c:620: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 nk_id[2] = { 'n', 'k' };
data/hivex-1.3.19/lib/write.c:642: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 (nk->name, recoded_name, recoded_name_len);
data/hivex-1.3.19/lib/write.c:943: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 nul_id[2] = { 0, 0 };
data/hivex-1.3.19/lib/write.c:959:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char vk_id[2] = { 'v', 'k' };
data/hivex-1.3.19/lib/write.c:981: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 (vk->name, recoded_name, recoded_name_len);
data/hivex-1.3.19/lib/write.c:994: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 (&vk->data_offset, values[i].value, values[i].len);
data/hivex-1.3.19/lib/write.c:1007: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 *) h->addr + offs + 4, values[i].value, values[i].len);
data/hivex-1.3.19/lib/write.c:1090: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 (new_values[idx_of_val].value, val->value, val->len);
data/hivex-1.3.19/ocaml/hivex_c.c:75: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 *) String_val (sv), p, len);
data/hivex-1.3.19/sh/hivexsh.c:149: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).
    if (open (filename, O_RDONLY) == -1) {
data/hivex-1.3.19/sh/hivexsh.c:316: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[8192];
data/hivex-1.3.19/sh/hivexsh.c:332: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 histfile[1024];
data/hivex-1.3.19/sh/hivexsh.c:360: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).
    fd = open (histfile, O_WRONLY|O_CREAT, 0644);
data/hivex-1.3.19/sh/hivexsh.c:829: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.
          (unsigned char *) hivex_value_value (h, values[i], &t, &len);
data/hivex-1.3.19/sh/hivexsh.c:989: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 (values[i].value, &u32, 4);
data/hivex-1.3.19/sh/hivexsh.c:1015: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 (values[i].value, &u64, 4);
data/hivex-1.3.19/xml/hivexml.c: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[1+BYTE_RUN_BUF_LEN];
data/hivex-1.3.19/xml/hivexml.c:302:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1+BYTE_RUN_BUF_LEN];
data/hivex-1.3.19/gnulib/lib/read.c:44:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef read
data/hivex-1.3.19/gnulib/lib/read.c:54:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      result = read (fd, buf, count);
data/hivex-1.3.19/gnulib/lib/read.c:66:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  define read_nothrow read
data/hivex-1.3.19/gnulib/lib/safe-read.c:47:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define rw read
data/hivex-1.3.19/gnulib/lib/stdio.in.h:267:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef fgetc
data/hivex-1.3.19/gnulib/lib/stdio.in.h:268:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define fgetc rpl_fgetc
data/hivex-1.3.19/gnulib/lib/stdio.in.h:270: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/hivex-1.3.19/gnulib/lib/stdio.in.h:271: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/hivex-1.3.19/gnulib/lib/stdio.in.h:273: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/hivex-1.3.19/gnulib/lib/stdio.in.h:276:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (fgetc);
data/hivex-1.3.19/gnulib/lib/stdio.in.h:706:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef getc
data/hivex-1.3.19/gnulib/lib/stdio.in.h:707:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define getc rpl_fgetc
data/hivex-1.3.19/gnulib/lib/stdio.in.h:709: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/hivex-1.3.19/gnulib/lib/stdio.in.h:710: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/hivex-1.3.19/gnulib/lib/stdio.in.h:712: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/hivex-1.3.19/gnulib/lib/stdio.in.h:715:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (getc);
data/hivex-1.3.19/gnulib/lib/stdio.in.h:722:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef getchar
data/hivex-1.3.19/gnulib/lib/stdio.in.h:723:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define getchar rpl_getchar
data/hivex-1.3.19/gnulib/lib/stdio.in.h:725: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/hivex-1.3.19/gnulib/lib/stdio.in.h:726: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/hivex-1.3.19/gnulib/lib/stdio.in.h:728: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/hivex-1.3.19/gnulib/lib/stdio.in.h:731:19:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (getchar);
data/hivex-1.3.19/gnulib/lib/string.in.h:409: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/hivex-1.3.19/gnulib/lib/string.in.h:410: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/hivex-1.3.19/gnulib/lib/string.in.h:412: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 *,
data/hivex-1.3.19/gnulib/lib/string.in.h:415: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 *,
data/hivex-1.3.19/gnulib/lib/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 *,
data/hivex-1.3.19/gnulib/lib/string.in.h:422: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/hivex-1.3.19/gnulib/lib/string.in.h:425: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/hivex-1.3.19/gnulib/lib/string.in.h:427: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1370:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef read
data/hivex-1.3.19/gnulib/lib/unistd.in.h:1371:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define read rpl_read
data/hivex-1.3.19/gnulib/lib/unistd.in.h:1373: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1375: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1380: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1382:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (read);
data/hivex-1.3.19/gnulib/lib/unistd.in.h:1703: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1704: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1706: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1707: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1710: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1714:24:  [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_CAST (usleep, int, (useconds_t n));
data/hivex-1.3.19/gnulib/lib/unistd.in.h:1716: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1718: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/hivex-1.3.19/gnulib/lib/unistd.in.h:1720: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/hivex-1.3.19/gnulib/lib/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/hivex-1.3.19/gnulib/lib/vasnprintf.c:1809: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:2639: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3910: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:3970: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4006: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4106: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4142: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4372: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4429: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4464: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4577: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/hivex-1.3.19/gnulib/lib/vasnprintf.c:4612: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/hivex-1.3.19/gnulib/lib/wchar.in.h:671: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/hivex-1.3.19/gnulib/lib/wchar.in.h:673: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/hivex-1.3.19/gnulib/lib/wchar.in.h:675: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/hivex-1.3.19/gnulib/lib/wchar.in.h:678: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/hivex-1.3.19/gnulib/lib/wchar.in.h:680: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/hivex-1.3.19/gnulib/lib/wchar.in.h:744: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/hivex-1.3.19/gnulib/lib/wchar.in.h:748: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/hivex-1.3.19/gnulib/lib/wchar.in.h:752: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/hivex-1.3.19/gnulib/lib/wchar.in.h:755:9:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
# undef wcsncpy
data/hivex-1.3.19/gnulib/lib/wchar.in.h:757: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/hivex-1.3.19/gnulib/lib/wchar.in.h:807: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/hivex-1.3.19/gnulib/lib/wchar.in.h:811: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/hivex-1.3.19/gnulib/lib/wchar.in.h:815: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/hivex-1.3.19/gnulib/lib/wchar.in.h:818: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/hivex-1.3.19/gnulib/lib/wchar.in.h:820: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/hivex-1.3.19/gnulib/tests/basename-lgpl.c:59: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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/getcwd-lgpl.c:120: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).
      size_t actual_size = strlen (result) + 1;
data/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/getprogname.c:121: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/hivex-1.3.19/gnulib/tests/getprogname.c:135: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/hivex-1.3.19/gnulib/tests/getprogname.c:157: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/hivex-1.3.19/gnulib/tests/getprogname.c:171: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/hivex-1.3.19/gnulib/tests/gettext.h:223: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/hivex-1.3.19/gnulib/tests/gettext.h:224: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/hivex-1.3.19/gnulib/tests/gettext.h:271: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/hivex-1.3.19/gnulib/tests/gettext.h:272: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/hivex-1.3.19/gnulib/tests/localename.c:1411: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 (name) == 7 && name[2] == '-')
data/hivex-1.3.19/gnulib/tests/localename.c:2581:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat (locval, "_");
data/hivex-1.3.19/gnulib/tests/localename.c:2583: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).
                        locval + strlen (locval), LOCALE_NAME_MAX_LENGTH))
data/hivex-1.3.19/gnulib/tests/localename.c:2585:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         size_t locval_len = strlen (locval);
data/hivex-1.3.19/gnulib/tests/localename.c:2621:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (lname, locale_name, sizeof (lname) - 1);
data/hivex-1.3.19/gnulib/tests/localename.c:2692: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).
  size = strlen (string) + 1;
data/hivex-1.3.19/gnulib/tests/lstat.c:84: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/hivex-1.3.19/gnulib/tests/open.c:117: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/hivex-1.3.19/gnulib/tests/open.c:184: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/hivex-1.3.19/gnulib/tests/pthread_sigmask.c:84:7:  [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.
      usleep (1);
data/hivex-1.3.19/gnulib/tests/putenv.c:81: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/hivex-1.3.19/gnulib/tests/select.c:135:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  BOOL read, write, except;
data/hivex-1.3.19/gnulib/tests/select.c:242: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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/setlocale.c:693: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 (locale) < sizeof (llCC_buf))
data/hivex-1.3.19/gnulib/tests/setlocale.c:750:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              territory_end = territory_start + strlen (territory_start);
data/hivex-1.3.19/gnulib/tests/setlocale.c:785:48:  [1] (buffer) strlen:
  Does not handle 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 part1_len = strlen (part1);
data/hivex-1.3.19/gnulib/tests/setlocale.c:787:48:  [1] (buffer) strlen:
  Does not handle 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 part2_len = strlen (part2) + 1;
data/hivex-1.3.19/gnulib/tests/setlocale.c:879:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy (lc_messages_name, locale, sizeof (lc_messages_name) - 1);
data/hivex-1.3.19/gnulib/tests/setlocale.c:1117: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).
      locale1_len = strlen (locale1);
data/hivex-1.3.19/gnulib/tests/setlocale.c:1124: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).
      locale2_len = strlen (locale2);
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:111:23:  [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 length = wcslen (result);
data/hivex-1.3.19/gnulib/tests/setlocale_null.c:154: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 length = strlen (result);
data/hivex-1.3.19/gnulib/tests/stat.c:133: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/hivex-1.3.19/gnulib/tests/stat.c:428: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/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/strerror_r.c:131: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/hivex-1.3.19/gnulib/tests/strerror_r.c:217:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!ret && strlen (buf) == buflen - 1)
data/hivex-1.3.19/gnulib/tests/strerror_r.c:222:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen (stackbuf);
data/hivex-1.3.19/gnulib/tests/strerror_r.c:236: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).
    if (ret == ERANGE && strlen (buf) < buflen - 1)
data/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/test-dup2.c:185:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ASSERT (read (fd, buffer, 1) == 1);
data/hivex-1.3.19/gnulib/tests/test-fgetc.c:22:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SIGNATURE_CHECK (fgetc, int, (FILE *));
data/hivex-1.3.19/gnulib/tests/test-fgetc.c:62:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT (fgetc (fp) == EOF);
data/hivex-1.3.19/gnulib/tests/test-fgetc.c:75:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ASSERT (fgetc (fp) == EOF);
data/hivex-1.3.19/gnulib/tests/test-fgetc.c:88:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ASSERT (fgetc (fp) == EOF);
data/hivex-1.3.19/gnulib/tests/test-getcwd-lgpl.c:58: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 (pwd1);
data/hivex-1.3.19/gnulib/tests/test-iconv.c:65: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 inbytesleft = strlen (input);
data/hivex-1.3.19/gnulib/tests/test-iconv.c:72: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).
    ASSERT (outptr == buf + strlen (expected));
data/hivex-1.3.19/gnulib/tests/test-iconv.c:73:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ASSERT (memcmp (buf, expected, strlen (expected)) == 0);
data/hivex-1.3.19/gnulib/tests/test-iconv.c:100: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 inbytesleft = strlen (input);
data/hivex-1.3.19/gnulib/tests/test-iconv.c:107: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).
    ASSERT (outptr == buf + strlen (expected));
data/hivex-1.3.19/gnulib/tests/test-iconv.c:108:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ASSERT (memcmp (buf, expected, strlen (expected)) == 0);
data/hivex-1.3.19/gnulib/tests/test-iconv.c:116: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 inbytesleft = strlen (input);
data/hivex-1.3.19/gnulib/tests/test-iconv.c:125: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).
        ASSERT (inbytesleft == strlen (input) && outptr == buf);
data/hivex-1.3.19/gnulib/tests/test-open.h:77:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT (read (fd, &c, 1) == 0);
data/hivex-1.3.19/gnulib/tests/test-perror2.c:103: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).
        ASSERT (strlen (err) < sizeof buf);
data/hivex-1.3.19/gnulib/tests/test-read.c:22:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SIGNATURE_CHECK (read, ssize_t, (int, void *, size_t));
data/hivex-1.3.19/gnulib/tests/test-read.c:48:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read (fd, buf, 10);
data/hivex-1.3.19/gnulib/tests/test-read.c:58:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT (read (-1, &byte, 1) == -1);
data/hivex-1.3.19/gnulib/tests/test-read.c:65:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT (read (99, &byte, 1) == -1);
data/hivex-1.3.19/gnulib/tests/test-rwlock1.c:83:3:  [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.
  usleep (100000);
data/hivex-1.3.19/gnulib/tests/test-rwlock1.c:99:3:  [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.
  usleep (100000);
data/hivex-1.3.19/gnulib/tests/test-select-stdin.c:80:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ASSERT (read (0, &c, 1) == 1);
data/hivex-1.3.19/gnulib/tests/test-select.h:220:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar ();
data/hivex-1.3.19/gnulib/tests/test-select.h:367:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ASSERT (read (c, buf, 3) == 3);
data/hivex-1.3.19/gnulib/tests/test-select.h:382:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ASSERT (read (c, buf, 3) == 3);
data/hivex-1.3.19/gnulib/tests/test-select.h:407:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ASSERT (read (rd, buf, 3) == 3);
data/hivex-1.3.19/gnulib/tests/test-strerror_r.c:41: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).
  ASSERT (strlen (buf) < sizeof buf);
data/hivex-1.3.19/gnulib/tests/test-strerror_r.c:48: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).
  ASSERT (strlen (buf) < sizeof buf);
data/hivex-1.3.19/gnulib/tests/test-strerror_r.c:55: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).
  ASSERT (strlen (buf) < sizeof buf);
data/hivex-1.3.19/gnulib/tests/test-strerror_r.c:80: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).
  ASSERT (strlen (buf) < sizeof buf);
data/hivex-1.3.19/gnulib/tests/test-strerror_r.c:102:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen (buf2);
data/hivex-1.3.19/gnulib/tests/test-usleep.c:24: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.
SIGNATURE_CHECK (usleep, int, (useconds_t));
data/hivex-1.3.19/gnulib/tests/test-usleep.c:34: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.
  ASSERT (usleep (1000000) == 0);
data/hivex-1.3.19/gnulib/tests/test-usleep.c:37: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.
  ASSERT (usleep (0) == 0);
data/hivex-1.3.19/gnulib/tests/test-vasnprintf.c: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).
      ASSERT (strlen (result) == 126);
data/hivex-1.3.19/gnulib/tests/test-write.c:53:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT (read (rfd, buf, sizeof (buf)) == 17);
data/hivex-1.3.19/gnulib/tests/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/hivex-1.3.19/gnulib/tests/usleep.c:46:1:  [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.
usleep (useconds_t micro)
data/hivex-1.3.19/gnulib/tests/usleep.c:47:8:  [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/hivex-1.3.19/gnulib/tests/usleep.c:72: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.
#  define usleep(x) 0
data/hivex-1.3.19/gnulib/tests/usleep.c:74:10:  [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.
  return usleep (micro % 1000000);
data/hivex-1.3.19/images/mklarge.c:58:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (name);
data/hivex-1.3.19/lib/gettext.h:197: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/hivex-1.3.19/lib/gettext.h:198: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/hivex-1.3.19/lib/gettext.h:243: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/hivex-1.3.19/lib/gettext.h:244: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/hivex-1.3.19/lib/hivex-internal.h:38: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).
#define STRPREFIX(a,b) (strncmp((a),(b),strlen((b))) == 0)
data/hivex-1.3.19/lib/utf16.c:99: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, strlen(str), size);
data/hivex-1.3.19/lib/utf16.c:104: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, strlen(str), size);
data/hivex-1.3.19/lib/write.c:293: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/hivex-1.3.19/lib/write.c:600: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 (name == NULL || strlen (name) == 0) {
data/hivex-1.3.19/python/hivex-py.c:190:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    PyList_SetItem (list, i, PyUnicode_DecodeUTF8 (argv[i], strlen (argv[i]), NULL));
data/hivex-1.3.19/python/hivex-py.c:769: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).
  py_r = PyUnicode_DecodeUTF8 (r, strlen (r), NULL);
data/hivex-1.3.19/sh/hivexsh.c:58: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).
#define STRPREFIX(a,b) (strncmp((a),(b),strlen((b))) == 0)
data/hivex-1.3.19/sh/hivexsh.c:211:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (args);
data/hivex-1.3.19/sh/hivexsh.c:324:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (line_read);
data/hivex-1.3.19/sh/hivexsh.c:930:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t nr_chars = strlen (buf);
data/hivex-1.3.19/sh/hivexsh.c:949:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t nr_chars = strlen (buf);
data/hivex-1.3.19/sh/hivexsh.c:1049: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).
      values[i].value = malloc (1 + strlen (buf) / 2);

ANALYSIS SUMMARY:

Hits = 1182
Lines analyzed = 81479 in approximately 2.45 seconds (33212 lines/second)
Physical Source Lines of Code (SLOC) = 56490
Hits@level = [0] 199 [1] 179 [2] 708 [3] 106 [4] 167 [5]  22
Hits@level+ = [0+] 1381 [1+] 1182 [2+] 1003 [3+] 295 [4+] 189 [5+]  22
Hits/KSLOC@level+ = [0+] 24.4468 [1+] 20.9241 [2+] 17.7554 [3+] 5.22216 [4+] 3.34572 [5+] 0.389449
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.