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/id-utils-4.6.28/src/die.h Examining data/id-utils-4.6.28/src/lid-eid.c Examining data/id-utils-4.6.28/src/fid.c Examining data/id-utils-4.6.28/src/fnid.c Examining data/id-utils-4.6.28/src/lid-lid.c Examining data/id-utils-4.6.28/src/lid-gid.c Examining data/id-utils-4.6.28/src/lid.h Examining data/id-utils-4.6.28/src/mkid.c Examining data/id-utils-4.6.28/src/lid-aid.c Examining data/id-utils-4.6.28/src/xtokid.c Examining data/id-utils-4.6.28/src/lid.c Examining data/id-utils-4.6.28/testsuite/single_file_token_bug.c Examining data/id-utils-4.6.28/gnulib-tests/test-fchdir.c Examining data/id-utils-4.6.28/gnulib-tests/test-string.c Examining data/id-utils-4.6.28/gnulib-tests/zerosize-ptr.h Examining data/id-utils-4.6.28/gnulib-tests/test-fnmatch-h.c Examining data/id-utils-4.6.28/gnulib-tests/netinet_in.in.h Examining data/id-utils-4.6.28/gnulib-tests/test-fprintf-posix.h Examining data/id-utils-4.6.28/gnulib-tests/test-ftello3.c Examining data/id-utils-4.6.28/gnulib-tests/test-mbsinit.c Examining data/id-utils-4.6.28/gnulib-tests/binary-io.c Examining data/id-utils-4.6.28/gnulib-tests/test-wcrtomb.c Examining data/id-utils-4.6.28/gnulib-tests/windows-tls.c Examining data/id-utils-4.6.28/gnulib-tests/test-calloc-gnu.c Examining data/id-utils-4.6.28/gnulib-tests/test-strerror_r.c Examining data/id-utils-4.6.28/gnulib-tests/wctob.c Examining data/id-utils-4.6.28/gnulib-tests/test-getprogname.c Examining data/id-utils-4.6.28/gnulib-tests/test-mkdir.c Examining data/id-utils-4.6.28/gnulib-tests/argmatch.h Examining data/id-utils-4.6.28/gnulib-tests/test-fprintf-posix.c Examining data/id-utils-4.6.28/gnulib-tests/inet_pton.c Examining data/id-utils-4.6.28/gnulib-tests/macros.h Examining data/id-utils-4.6.28/gnulib-tests/test-rwlock1.c Examining data/id-utils-4.6.28/gnulib-tests/test-bitrotate.c Examining data/id-utils-4.6.28/gnulib-tests/nan.h Examining data/id-utils-4.6.28/gnulib-tests/test-select-fd.c Examining data/id-utils-4.6.28/gnulib-tests/w32sock.h Examining data/id-utils-4.6.28/gnulib-tests/test-setlocale_null-mt-one.c Examining data/id-utils-4.6.28/gnulib-tests/test-fprintf-posix2.c Examining data/id-utils-4.6.28/gnulib-tests/test-select-stdin.c Examining data/id-utils-4.6.28/gnulib-tests/warn-on-use.h Examining data/id-utils-4.6.28/gnulib-tests/test-fstatat.c Examining data/id-utils-4.6.28/gnulib-tests/ioctl.c Examining data/id-utils-4.6.28/gnulib-tests/localename.h Examining data/id-utils-4.6.28/gnulib-tests/test-verify.c Examining data/id-utils-4.6.28/gnulib-tests/windows-tls.h Examining data/id-utils-4.6.28/gnulib-tests/test-argmatch.c Examining data/id-utils-4.6.28/gnulib-tests/putenv.c Examining data/id-utils-4.6.28/gnulib-tests/test-pthread.c Examining data/id-utils-4.6.28/gnulib-tests/test-fcntl.c Examining data/id-utils-4.6.28/gnulib-tests/test-fprintf-posix3.c Examining data/id-utils-4.6.28/gnulib-tests/connect.c Examining data/id-utils-4.6.28/gnulib-tests/test-stat.h Examining data/id-utils-4.6.28/gnulib-tests/test-printf-posix2.c Examining data/id-utils-4.6.28/gnulib-tests/test-getcwd.c Examining data/id-utils-4.6.28/gnulib-tests/test-isnand.h Examining data/id-utils-4.6.28/gnulib-tests/select.c Examining data/id-utils-4.6.28/gnulib-tests/test-fopen.h Examining data/id-utils-4.6.28/gnulib-tests/test-wcrtomb-w32.c Examining data/id-utils-4.6.28/gnulib-tests/test-fflush2.c Examining data/id-utils-4.6.28/gnulib-tests/_Noreturn.h Examining data/id-utils-4.6.28/gnulib-tests/infinity.h Examining data/id-utils-4.6.28/gnulib-tests/test-getopt-main.h Examining data/id-utils-4.6.28/gnulib-tests/glthread/yield.h Examining data/id-utils-4.6.28/gnulib-tests/glthread/thread.h Examining data/id-utils-4.6.28/gnulib-tests/glthread/thread.c Examining data/id-utils-4.6.28/gnulib-tests/test-verify-try.c Examining data/id-utils-4.6.28/gnulib-tests/localename-table.c Examining data/id-utils-4.6.28/gnulib-tests/test-isnanf.h Examining data/id-utils-4.6.28/gnulib-tests/test-locale.c Examining data/id-utils-4.6.28/gnulib-tests/sigprocmask.c Examining data/id-utils-4.6.28/gnulib-tests/test-sys_wait.h Examining data/id-utils-4.6.28/gnulib-tests/test-getdtablesize.c Examining data/id-utils-4.6.28/gnulib-tests/test-freading.c Examining data/id-utils-4.6.28/gnulib-tests/test-inet_pton.c Examining data/id-utils-4.6.28/gnulib-tests/test-localeconv.c Examining data/id-utils-4.6.28/gnulib-tests/test-pipe.c Examining data/id-utils-4.6.28/gnulib-tests/test-vasnprintf.c Examining data/id-utils-4.6.28/gnulib-tests/test-limits-h.c Examining data/id-utils-4.6.28/gnulib-tests/test-c-ctype.c Examining data/id-utils-4.6.28/gnulib-tests/test-pthread_sigmask2.c Examining data/id-utils-4.6.28/gnulib-tests/test-stddef.c Examining data/id-utils-4.6.28/gnulib-tests/test-mbrtowc-w32.c Examining data/id-utils-4.6.28/gnulib-tests/test-openat.c Examining data/id-utils-4.6.28/gnulib-tests/test-lstat.c Examining data/id-utils-4.6.28/gnulib-tests/test-open.h Examining data/id-utils-4.6.28/gnulib-tests/test-setenv.c Examining data/id-utils-4.6.28/gnulib-tests/randoml.c Examining data/id-utils-4.6.28/gnulib-tests/nanosleep.c Examining data/id-utils-4.6.28/gnulib-tests/test-setlocale_null.c Examining data/id-utils-4.6.28/gnulib-tests/test-strings.c Examining data/id-utils-4.6.28/gnulib-tests/test-strcasestr.c Examining data/id-utils-4.6.28/gnulib-tests/test-printf-posix.h Examining data/id-utils-4.6.28/gnulib-tests/test-float.c Examining data/id-utils-4.6.28/gnulib-tests/arpa_inet.in.h Examining data/id-utils-4.6.28/gnulib-tests/test-ioctl.c Examining data/id-utils-4.6.28/gnulib-tests/test-raise.c Examining data/id-utils-4.6.28/gnulib-tests/test-mkdir.h Examining data/id-utils-4.6.28/gnulib-tests/setenv.c Examining data/id-utils-4.6.28/gnulib-tests/bind.c Examining data/id-utils-4.6.28/gnulib-tests/test-sigprocmask.c Examining data/id-utils-4.6.28/gnulib-tests/sig-handler.c Examining data/id-utils-4.6.28/gnulib-tests/sigaction.c Examining data/id-utils-4.6.28/gnulib-tests/test-select.h Examining data/id-utils-4.6.28/gnulib-tests/test-fopen.c Examining data/id-utils-4.6.28/gnulib-tests/test-dup2.c Examining data/id-utils-4.6.28/gnulib-tests/sys_time.in.h Examining data/id-utils-4.6.28/gnulib-tests/test-fflush.c Examining data/id-utils-4.6.28/gnulib-tests/nap.h Examining data/id-utils-4.6.28/gnulib-tests/test-sigaction.c Examining data/id-utils-4.6.28/gnulib-tests/snprintf.c Examining data/id-utils-4.6.28/gnulib-tests/test-stdbool.c Examining data/id-utils-4.6.28/gnulib-tests/perror.c Examining data/id-utils-4.6.28/gnulib-tests/test-sleep.c Examining data/id-utils-4.6.28/gnulib-tests/test-unistd.c Examining data/id-utils-4.6.28/gnulib-tests/test-strerror.c Examining data/id-utils-4.6.28/gnulib-tests/test-localename.c Examining data/id-utils-4.6.28/gnulib-tests/test-nanosleep.c Examining data/id-utils-4.6.28/gnulib-tests/resource-ext.h Examining data/id-utils-4.6.28/gnulib-tests/test-setsockopt.c Examining data/id-utils-4.6.28/gnulib-tests/test-stdalign.c Examining data/id-utils-4.6.28/gnulib-tests/test-signal-h.c Examining data/id-utils-4.6.28/gnulib-tests/tmpdir.h Examining data/id-utils-4.6.28/gnulib-tests/symlink.c Examining data/id-utils-4.6.28/gnulib-tests/tmpfile.c Examining data/id-utils-4.6.28/gnulib-tests/test-binary-io.c Examining data/id-utils-4.6.28/gnulib-tests/test-alloca-opt.c Examining data/id-utils-4.6.28/gnulib-tests/test-memrchr.c Examining data/id-utils-4.6.28/gnulib-tests/vma-iter.h Examining data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h Examining data/id-utils-4.6.28/gnulib-tests/test-fdopendir.c Examining data/id-utils-4.6.28/gnulib-tests/test-fseterr.c Examining data/id-utils-4.6.28/gnulib-tests/test-thread_self.c Examining data/id-utils-4.6.28/gnulib-tests/test-fdopen.c Examining data/id-utils-4.6.28/gnulib-tests/test-select.c Examining data/id-utils-4.6.28/gnulib-tests/test-getopt-posix.c Examining data/id-utils-4.6.28/gnulib-tests/test-fnmatch.c Examining data/id-utils-4.6.28/gnulib-tests/test-pathmax.c Examining data/id-utils-4.6.28/gnulib-tests/wctomb.c Examining data/id-utils-4.6.28/gnulib-tests/test-stat.c Examining data/id-utils-4.6.28/gnulib-tests/sys_socket.c Examining data/id-utils-4.6.28/gnulib-tests/raise.c Examining data/id-utils-4.6.28/gnulib-tests/test-chdir.c Examining data/id-utils-4.6.28/gnulib-tests/get-rusage-as.c Examining data/id-utils-4.6.28/gnulib-tests/test-open.c Examining data/id-utils-4.6.28/gnulib-tests/test-errno.c Examining data/id-utils-4.6.28/gnulib-tests/wctomb-impl.h Examining data/id-utils-4.6.28/gnulib-tests/test-once.c Examining data/id-utils-4.6.28/gnulib-tests/hash-pjw.c Examining data/id-utils-4.6.28/gnulib-tests/gettimeofday.c Examining data/id-utils-4.6.28/gnulib-tests/same-inode.h Examining data/id-utils-4.6.28/gnulib-tests/test-bind.c Examining data/id-utils-4.6.28/gnulib-tests/binary-io.h Examining data/id-utils-4.6.28/gnulib-tests/test-exclude.c Examining data/id-utils-4.6.28/gnulib-tests/test-wchar.c Examining data/id-utils-4.6.28/gnulib-tests/pthread_sigmask.c Examining data/id-utils-4.6.28/gnulib-tests/sched.in.h Examining data/id-utils-4.6.28/gnulib-tests/test-connect.c Examining data/id-utils-4.6.28/gnulib-tests/setlocale.c Examining data/id-utils-4.6.28/gnulib-tests/sys_select.in.h Examining data/id-utils-4.6.28/gnulib-tests/test-localcharset.c Examining data/id-utils-4.6.28/gnulib-tests/test-close.c Examining data/id-utils-4.6.28/gnulib-tests/tempname.c Examining data/id-utils-4.6.28/gnulib-tests/test-ftello4.c Examining data/id-utils-4.6.28/gnulib-tests/ctype.in.h Examining data/id-utils-4.6.28/gnulib-tests/hash-pjw.h Examining data/id-utils-4.6.28/gnulib-tests/test-intprops.c Examining data/id-utils-4.6.28/gnulib-tests/socket.c Examining data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.c Examining data/id-utils-4.6.28/gnulib-tests/test-get-rusage-as.c Examining data/id-utils-4.6.28/gnulib-tests/test-usleep.c Examining data/id-utils-4.6.28/gnulib-tests/test-time.c Examining data/id-utils-4.6.28/gnulib-tests/test-pthread-thread.c Examining data/id-utils-4.6.28/gnulib-tests/test-stdint.c Examining data/id-utils-4.6.28/gnulib-tests/test-fpending.c Examining data/id-utils-4.6.28/gnulib-tests/c++defs.h Examining data/id-utils-4.6.28/gnulib-tests/test-isnanl.h Examining data/id-utils-4.6.28/gnulib-tests/sys_uio.in.h Examining data/id-utils-4.6.28/gnulib-tests/test-printf-frexpl.c Examining data/id-utils-4.6.28/gnulib-tests/test-isnanf-nolibm.c Examining data/id-utils-4.6.28/gnulib-tests/arg-nonnull.h Examining data/id-utils-4.6.28/gnulib-tests/pthread.in.h Examining data/id-utils-4.6.28/gnulib-tests/accept.c Examining data/id-utils-4.6.28/gnulib-tests/test-quotearg-simple.c Examining data/id-utils-4.6.28/gnulib-tests/test-argv-iter.c Examining data/id-utils-4.6.28/gnulib-tests/test-langinfo.c Examining data/id-utils-4.6.28/gnulib-tests/windows-thread.h Examining data/id-utils-4.6.28/gnulib-tests/test-getopt_long.h Examining data/id-utils-4.6.28/gnulib-tests/test-inttypes.c Examining data/id-utils-4.6.28/gnulib-tests/test-mbsrtowcs.c Examining data/id-utils-4.6.28/gnulib-tests/test-wcwidth.c Examining data/id-utils-4.6.28/gnulib-tests/test-perror.c Examining data/id-utils-4.6.28/gnulib-tests/pthread-thread.c Examining data/id-utils-4.6.28/gnulib-tests/test-unsetenv.c Examining data/id-utils-4.6.28/gnulib-tests/strerror_r.c Examining data/id-utils-4.6.28/gnulib-tests/localtime-buffer.h Examining data/id-utils-4.6.28/gnulib-tests/test-cloexec.c Examining data/id-utils-4.6.28/gnulib-tests/test-stdio.c Examining data/id-utils-4.6.28/gnulib-tests/randomd.c Examining data/id-utils-4.6.28/gnulib-tests/test-fcntl-h.c Examining data/id-utils-4.6.28/gnulib-tests/test-ftell3.c Examining data/id-utils-4.6.28/gnulib-tests/signal.in.h Examining data/id-utils-4.6.28/gnulib-tests/unsetenv.c Examining data/id-utils-4.6.28/gnulib-tests/secure_getenv.c Examining data/id-utils-4.6.28/gnulib-tests/test-getdelim.c Examining data/id-utils-4.6.28/gnulib-tests/test-setlocale1.c Examining data/id-utils-4.6.28/gnulib-tests/test-lstat.h Examining data/id-utils-4.6.28/gnulib-tests/stdalign.in.h Examining data/id-utils-4.6.28/gnulib-tests/test-printf-frexp.c Examining data/id-utils-4.6.28/gnulib-tests/locale.c Examining data/id-utils-4.6.28/gnulib-tests/test-hash.c Examining data/id-utils-4.6.28/gnulib-tests/test-hard-locale.c Examining data/id-utils-4.6.28/gnulib-tests/test-fwrite.c Examining data/id-utils-4.6.28/gnulib-tests/test-setlocale_null-mt-all.c Examining data/id-utils-4.6.28/gnulib-tests/test-lock.c Examining data/id-utils-4.6.28/gnulib-tests/localename.c Examining data/id-utils-4.6.28/gnulib-tests/argmatch.c Examining data/id-utils-4.6.28/gnulib-tests/test-isblank.c Examining data/id-utils-4.6.28/gnulib-tests/test-ftruncate.c Examining data/id-utils-4.6.28/gnulib-tests/test-btowc.c Examining data/id-utils-4.6.28/gnulib-tests/uniwidth/test-uc_width2.c Examining data/id-utils-4.6.28/gnulib-tests/uniwidth/test-uc_width.c Examining data/id-utils-4.6.28/gnulib-tests/test-accept.c Examining data/id-utils-4.6.28/gnulib-tests/test-sys_socket.c Examining data/id-utils-4.6.28/gnulib-tests/test-dup.c Examining data/id-utils-4.6.28/gnulib-tests/test-stdlib.c Examining data/id-utils-4.6.28/gnulib-tests/test-strnlen.c Examining data/id-utils-4.6.28/gnulib-tests/sockets.c Examining data/id-utils-4.6.28/gnulib-tests/test-setlocale2.c Examining data/id-utils-4.6.28/gnulib-tests/test-gettimeofday.c Examining data/id-utils-4.6.28/gnulib-tests/test-isnanl-nolibm.c Examining data/id-utils-4.6.28/gnulib-tests/sockets.h Examining data/id-utils-4.6.28/gnulib-tests/test-malloca.c Examining data/id-utils-4.6.28/gnulib-tests/test-getopt-gnu.c Examining data/id-utils-4.6.28/gnulib-tests/test-frexp.c Examining data/id-utils-4.6.28/gnulib-tests/test-malloc-gnu.c Examining data/id-utils-4.6.28/gnulib-tests/test-xalloc-die.c Examining data/id-utils-4.6.28/gnulib-tests/test-listen.c Examining data/id-utils-4.6.28/gnulib-tests/test-realloc-gnu.c Examining data/id-utils-4.6.28/gnulib-tests/signature.h Examining data/id-utils-4.6.28/gnulib-tests/getpagesize.c Examining data/id-utils-4.6.28/gnulib-tests/vma-iter.c Examining data/id-utils-4.6.28/gnulib-tests/test-netinet_in.c Examining data/id-utils-4.6.28/gnulib-tests/isblank.c Examining data/id-utils-4.6.28/gnulib-tests/test-fseeko.c Examining data/id-utils-4.6.28/gnulib-tests/test-math.c Examining data/id-utils-4.6.28/gnulib-tests/test-fpurge.c Examining data/id-utils-4.6.28/gnulib-tests/test-symlink.c Examining data/id-utils-4.6.28/gnulib-tests/test-fseeko4.c Examining data/id-utils-4.6.28/gnulib-tests/test-fstat.c Examining data/id-utils-4.6.28/gnulib-tests/test-fread.c Examining data/id-utils-4.6.28/gnulib-tests/test-getcwd-lgpl.c Examining data/id-utils-4.6.28/gnulib-tests/test-printf-posix.c Examining data/id-utils-4.6.28/gnulib-tests/test-ftell.c Examining data/id-utils-4.6.28/gnulib-tests/test-c-strncasecmp.c Examining data/id-utils-4.6.28/gnulib-tests/sleep.c Examining data/id-utils-4.6.28/gnulib-tests/test-arpa_inet.c Examining data/id-utils-4.6.28/gnulib-tests/test-regex.c Examining data/id-utils-4.6.28/gnulib-tests/test-inttostr.c Examining data/id-utils-4.6.28/gnulib-tests/pipe.c Examining data/id-utils-4.6.28/gnulib-tests/test-sys_ioctl.c Examining data/id-utils-4.6.28/gnulib-tests/mkdir.c Examining data/id-utils-4.6.28/gnulib-tests/test-snprintf.c Examining data/id-utils-4.6.28/gnulib-tests/test-pthread_sigmask1.c Examining data/id-utils-4.6.28/gnulib-tests/test-iswblank.c Examining data/id-utils-4.6.28/gnulib-tests/test-dup-safer.c Examining data/id-utils-4.6.28/gnulib-tests/usleep.c Examining data/id-utils-4.6.28/gnulib-tests/test-ftello.c Examining data/id-utils-4.6.28/gnulib-tests/localtime-buffer.c Examining data/id-utils-4.6.28/gnulib-tests/test-sched.c Examining data/id-utils-4.6.28/gnulib-tests/test-environ.c Examining data/id-utils-4.6.28/gnulib-tests/test-getopt.h Examining data/id-utils-4.6.28/gnulib-tests/listen.c Examining data/id-utils-4.6.28/gnulib-tests/fdopen.c Examining data/id-utils-4.6.28/gnulib-tests/test-wctype-h.c Examining data/id-utils-4.6.28/gnulib-tests/test-mbscasecmp.c Examining data/id-utils-4.6.28/gnulib-tests/test-fputc.c Examining data/id-utils-4.6.28/gnulib-tests/test-frexpl.c Examining data/id-utils-4.6.28/gnulib-tests/unused-parameter.h Examining data/id-utils-4.6.28/gnulib-tests/test-fseek.c Examining data/id-utils-4.6.28/gnulib-tests/tempname.h Examining data/id-utils-4.6.28/gnulib-tests/test-sys_time.c Examining data/id-utils-4.6.28/gnulib-tests/test-memchr.c Examining data/id-utils-4.6.28/gnulib-tests/test-mbrtowc.c Examining data/id-utils-4.6.28/gnulib-tests/test-signbit.c Examining data/id-utils-4.6.28/gnulib-tests/test-fgetc.c Examining data/id-utils-4.6.28/gnulib-tests/sys_socket.in.h Examining data/id-utils-4.6.28/gnulib-tests/test-c-strcasecmp.c Examining data/id-utils-4.6.28/gnulib-tests/test-sys_types.c Examining data/id-utils-4.6.28/gnulib-tests/test-quotearg.h Examining data/id-utils-4.6.28/gnulib-tests/test-sys_stat.c Examining data/id-utils-4.6.28/gnulib-tests/sig-handler.h Examining data/id-utils-4.6.28/gnulib-tests/test-iswdigit.c Examining data/id-utils-4.6.28/gnulib-tests/test-dirent.c Examining data/id-utils-4.6.28/gnulib-tests/test-sys_select.c Examining data/id-utils-4.6.28/gnulib-tests/test-thread_create.c Examining data/id-utils-4.6.28/gnulib-tests/minus-zero.h Examining data/id-utils-4.6.28/gnulib-tests/test-symlink.h Examining data/id-utils-4.6.28/gnulib-tests/localename-table.h Examining data/id-utils-4.6.28/gnulib-tests/test-dirname.c Examining data/id-utils-4.6.28/gnulib-tests/test-alignof.c Examining data/id-utils-4.6.28/gnulib-tests/test-frexp.h Examining data/id-utils-4.6.28/gnulib-tests/test-freopen.c Examining data/id-utils-4.6.28/gnulib-tests/test-ctype.c Examining data/id-utils-4.6.28/gnulib-tests/test-sockets.c Examining data/id-utils-4.6.28/gnulib-tests/tmpdir.c Examining data/id-utils-4.6.28/gnulib-tests/windows-thread.c Examining data/id-utils-4.6.28/gnulib-tests/test-iswxdigit.c Examining data/id-utils-4.6.28/gnulib-tests/test-isnand-nolibm.c Examining data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c Examining data/id-utils-4.6.28/gnulib-tests/test-fseeko3.c Examining data/id-utils-4.6.28/gnulib-tests/test-ignore-value.c Examining data/id-utils-4.6.28/gnulib-tests/test-lseek.c Examining data/id-utils-4.6.28/gnulib-tests/test-stat-time.c Examining data/id-utils-4.6.28/gnulib-tests/test-perror2.c Examining data/id-utils-4.6.28/gnulib-tests/setsockopt.c Examining data/id-utils-4.6.28/gnulib-tests/ftruncate.c Examining data/id-utils-4.6.28/gnulib-tests/test-sys_uio.c Examining data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo-mt.c Examining data/id-utils-4.6.28/gnulib-tests/test-vfprintf-posix.c Examining data/id-utils-4.6.28/libidu/idread.c Examining data/id-utils-4.6.28/libidu/dynvec.h Examining data/id-utils-4.6.28/libidu/idwrite.c Examining data/id-utils-4.6.28/libidu/idfile.c Examining data/id-utils-4.6.28/libidu/idfile.h Examining data/id-utils-4.6.28/libidu/fnprint.c Examining data/id-utils-4.6.28/libidu/tokflags.h Examining data/id-utils-4.6.28/libidu/scanners.h Examining data/id-utils-4.6.28/libidu/dynvec.c Examining data/id-utils-4.6.28/libidu/iduglobal.h Examining data/id-utils-4.6.28/libidu/xnls.h Examining data/id-utils-4.6.28/libidu/idu-hash.c Examining data/id-utils-4.6.28/libidu/idu-hash.h Examining data/id-utils-4.6.28/libidu/scanners.c Examining data/id-utils-4.6.28/libidu/walker.c Examining data/id-utils-4.6.28/lib/itold.c Examining data/id-utils-4.6.28/lib/c-strncasecmp.c Examining data/id-utils-4.6.28/lib/fseterr.h Examining data/id-utils-4.6.28/lib/inttostr.c Examining data/id-utils-4.6.28/lib/setlocale_null.h Examining data/id-utils-4.6.28/lib/fseek.c Examining data/id-utils-4.6.28/lib/malloca.c Examining data/id-utils-4.6.28/lib/progname.h Examining data/id-utils-4.6.28/lib/fchdir.c Examining data/id-utils-4.6.28/lib/fnmatch_loop.c Examining data/id-utils-4.6.28/lib/asnprintf.c Examining data/id-utils-4.6.28/lib/wctype.in.h Examining data/id-utils-4.6.28/lib/msvc-inval.c Examining data/id-utils-4.6.28/lib/stat-time.h Examining data/id-utils-4.6.28/lib/verify.h Examining data/id-utils-4.6.28/lib/signbitf.c Examining data/id-utils-4.6.28/lib/windows-rwlock.h Examining data/id-utils-4.6.28/lib/c-strcase.h Examining data/id-utils-4.6.28/lib/pipe-safer.c Examining data/id-utils-4.6.28/lib/str-two-way.h Examining data/id-utils-4.6.28/lib/printf-frexpl.c Examining data/id-utils-4.6.28/lib/sys_stat.in.h Examining data/id-utils-4.6.28/lib/lc-charset-dispatch.h Examining data/id-utils-4.6.28/lib/opendir.c Examining data/id-utils-4.6.28/lib/windows-recmutex.h Examining data/id-utils-4.6.28/lib/alloca.c Examining data/id-utils-4.6.28/lib/fd-hook.h Examining data/id-utils-4.6.28/lib/fd-safer-flag.c Examining data/id-utils-4.6.28/lib/regcomp.c Examining data/id-utils-4.6.28/lib/progname.c Examining data/id-utils-4.6.28/lib/dup-safer-flag.c Examining data/id-utils-4.6.28/lib/float.c Examining data/id-utils-4.6.28/lib/strnlen1.h Examining data/id-utils-4.6.28/lib/dup-safer.c Examining data/id-utils-4.6.28/lib/warn-on-use.h Examining data/id-utils-4.6.28/lib/lseek.c Examining data/id-utils-4.6.28/lib/bitrotate.c Examining data/id-utils-4.6.28/lib/obstack.h Examining data/id-utils-4.6.28/lib/xmalloc.c Examining data/id-utils-4.6.28/lib/limits.in.h Examining data/id-utils-4.6.28/lib/windows-rwlock.c Examining data/id-utils-4.6.28/lib/ftello.c Examining data/id-utils-4.6.28/lib/error.c Examining data/id-utils-4.6.28/lib/windows-once.c Examining data/id-utils-4.6.28/lib/exclude.h Examining data/id-utils-4.6.28/lib/bitrotate.h Examining data/id-utils-4.6.28/lib/closeout.h Examining data/id-utils-4.6.28/lib/wcrtomb.c Examining data/id-utils-4.6.28/lib/xalloc-die.c Examining data/id-utils-4.6.28/lib/time.in.h Examining data/id-utils-4.6.28/lib/hash.c Examining data/id-utils-4.6.28/lib/calloc.c Examining data/id-utils-4.6.28/lib/fstatat.c Examining data/id-utils-4.6.28/lib/strerror-override.c Examining data/id-utils-4.6.28/lib/isnand.c Examining data/id-utils-4.6.28/lib/argv-iter.h Examining data/id-utils-4.6.28/lib/mbtowc.c Examining data/id-utils-4.6.28/lib/mbuiter.h Examining data/id-utils-4.6.28/lib/xalloc.h Examining data/id-utils-4.6.28/lib/mbtowc-lock.h Examining data/id-utils-4.6.28/lib/isnand-nolibm.h Examining data/id-utils-4.6.28/lib/_Noreturn.h Examining data/id-utils-4.6.28/lib/close.c Examining data/id-utils-4.6.28/lib/glthread/threadlib.c Examining data/id-utils-4.6.28/lib/glthread/lock.c Examining data/id-utils-4.6.28/lib/glthread/lock.h Examining data/id-utils-4.6.28/lib/stat-w32.h Examining data/id-utils-4.6.28/lib/getdelim.c Examining data/id-utils-4.6.28/lib/regex_internal.h Examining data/id-utils-4.6.28/lib/stripslash.c Examining data/id-utils-4.6.28/lib/chdir-long.h Examining data/id-utils-4.6.28/lib/strcasestr.c Examining data/id-utils-4.6.28/lib/fcntl.in.h Examining data/id-utils-4.6.28/lib/windows-initguard.h Examining data/id-utils-4.6.28/lib/fnmatch.c Examining data/id-utils-4.6.28/lib/closedir.c Examining data/id-utils-4.6.28/lib/regex.h Examining data/id-utils-4.6.28/lib/mbchar.h Examining data/id-utils-4.6.28/lib/xgetcwd.c Examining data/id-utils-4.6.28/lib/mbsrtowcs.c Examining data/id-utils-4.6.28/lib/malloc.c Examining data/id-utils-4.6.28/lib/fpending.h Examining data/id-utils-4.6.28/lib/strsep.c Examining data/id-utils-4.6.28/lib/dirname.h Examining data/id-utils-4.6.28/lib/unistd-safer.h Examining data/id-utils-4.6.28/lib/rewinddir.c Examining data/id-utils-4.6.28/lib/printf.c Examining data/id-utils-4.6.28/lib/stdio-impl.h Examining data/id-utils-4.6.28/lib/malloca.h Examining data/id-utils-4.6.28/lib/strcasecmp.c Examining data/id-utils-4.6.28/lib/dirent-private.h Examining data/id-utils-4.6.28/lib/isnanl-nolibm.h Examining data/id-utils-4.6.28/lib/isnanf.c Examining data/id-utils-4.6.28/lib/realloc.c Examining data/id-utils-4.6.28/lib/unistd--.h Examining data/id-utils-4.6.28/lib/close-stream.h Examining data/id-utils-4.6.28/lib/closeout.c Examining data/id-utils-4.6.28/lib/dup2.c Examining data/id-utils-4.6.28/lib/fflush.c Examining data/id-utils-4.6.28/lib/stddef.in.h Examining data/id-utils-4.6.28/lib/iswxdigit.c Examining data/id-utils-4.6.28/lib/math.in.h Examining data/id-utils-4.6.28/lib/unitypes.in.h Examining data/id-utils-4.6.28/lib/intprops.h Examining data/id-utils-4.6.28/lib/mbtowc-lock.c Examining data/id-utils-4.6.28/lib/hard-locale.h Examining data/id-utils-4.6.28/lib/stat-macros.h Examining data/id-utils-4.6.28/lib/printf-args.h Examining data/id-utils-4.6.28/lib/wctype-h.c Examining data/id-utils-4.6.28/lib/getcwd.c Examining data/id-utils-4.6.28/lib/mbrtowc-impl.h Examining data/id-utils-4.6.28/lib/xsize.c Examining data/id-utils-4.6.28/lib/strings.in.h Examining data/id-utils-4.6.28/lib/basename.c Examining data/id-utils-4.6.28/lib/mbsrtowcs-state.c Examining data/id-utils-4.6.28/lib/libc-config.h Examining data/id-utils-4.6.28/lib/c-ctype.c Examining data/id-utils-4.6.28/lib/flexmember.h Examining data/id-utils-4.6.28/lib/umaxtostr.c Examining data/id-utils-4.6.28/lib/windows-mutex.h Examining data/id-utils-4.6.28/lib/assure.h Examining data/id-utils-4.6.28/lib/xsize.h Examining data/id-utils-4.6.28/lib/stdlib.in.h Examining data/id-utils-4.6.28/lib/dirfd.c Examining data/id-utils-4.6.28/lib/mbchar.c Examining data/id-utils-4.6.28/lib/mbtowc-impl.h Examining data/id-utils-4.6.28/lib/fpurge.c Examining data/id-utils-4.6.28/lib/save-cwd.h Examining data/id-utils-4.6.28/lib/fseeko.c Examining data/id-utils-4.6.28/lib/getprogname.h Examining data/id-utils-4.6.28/lib/sys_ioctl.in.h Examining data/id-utils-4.6.28/lib/msvc-nothrow.c Examining data/id-utils-4.6.28/lib/localeconv.c Examining data/id-utils-4.6.28/lib/sprintf.c Examining data/id-utils-4.6.28/lib/openat-priv.h Examining data/id-utils-4.6.28/lib/printf-frexp.c Examining data/id-utils-4.6.28/lib/memrchr.c Examining data/id-utils-4.6.28/lib/unistd.c Examining data/id-utils-4.6.28/lib/getopt-core.h Examining data/id-utils-4.6.28/lib/cloexec.c Examining data/id-utils-4.6.28/lib/save-cwd.c Examining data/id-utils-4.6.28/lib/c++defs.h Examining data/id-utils-4.6.28/lib/wcwidth.c Examining data/id-utils-4.6.28/lib/regex_internal.c Examining data/id-utils-4.6.28/lib/imaxtostr.c Examining data/id-utils-4.6.28/lib/stdbool.in.h Examining data/id-utils-4.6.28/lib/uniwidth.in.h Examining data/id-utils-4.6.28/lib/arg-nonnull.h Examining data/id-utils-4.6.28/lib/fnmatch.in.h Examining data/id-utils-4.6.28/lib/openat.h Examining data/id-utils-4.6.28/lib/msvc-nothrow.h Examining data/id-utils-4.6.28/lib/alloca.in.h Examining data/id-utils-4.6.28/lib/freading.h Examining data/id-utils-4.6.28/lib/freopen.c Examining data/id-utils-4.6.28/lib/msvc-inval.h Examining data/id-utils-4.6.28/lib/getprogname.c Examining data/id-utils-4.6.28/lib/isnanf-nolibm.h Examining data/id-utils-4.6.28/lib/mbscasecmp.c Examining data/id-utils-4.6.28/lib/close-stream.c Examining data/id-utils-4.6.28/lib/quotearg.c Examining data/id-utils-4.6.28/lib/openat-die.c Examining data/id-utils-4.6.28/lib/mbuiter.c Examining data/id-utils-4.6.28/lib/isnanl.c Examining data/id-utils-4.6.28/lib/getopt-ext.h Examining data/id-utils-4.6.28/lib/signbitd.c Examining data/id-utils-4.6.28/lib/string.in.h Examining data/id-utils-4.6.28/lib/frexpl.c Examining data/id-utils-4.6.28/lib/printf-parse.h Examining data/id-utils-4.6.28/lib/fdopendir.c Examining data/id-utils-4.6.28/lib/btowc.c Examining data/id-utils-4.6.28/lib/c-ctype.h Examining data/id-utils-4.6.28/lib/exitfail.c Examining data/id-utils-4.6.28/lib/frexp.c Examining data/id-utils-4.6.28/lib/streq.h Examining data/id-utils-4.6.28/lib/uinttostr.c Examining data/id-utils-4.6.28/lib/quotearg.h Examining data/id-utils-4.6.28/lib/getdtablesize.c Examining data/id-utils-4.6.28/lib/vasnprintf.c Examining data/id-utils-4.6.28/lib/getopt-cdefs.in.h Examining data/id-utils-4.6.28/lib/inttostr.h Examining data/id-utils-4.6.28/lib/xstrndup.c Examining data/id-utils-4.6.28/lib/float.in.h Examining data/id-utils-4.6.28/lib/getopt.in.h Examining data/id-utils-4.6.28/lib/fd-hook.c Examining data/id-utils-4.6.28/lib/uniwidth/cjk.h Examining data/id-utils-4.6.28/lib/uniwidth/width.c Examining data/id-utils-4.6.28/lib/cloexec.h Examining data/id-utils-4.6.28/lib/dirname.c Examining data/id-utils-4.6.28/lib/argv-iter.c Examining data/id-utils-4.6.28/lib/iswdigit.c Examining data/id-utils-4.6.28/lib/strerror.c Examining data/id-utils-4.6.28/lib/open.c Examining data/id-utils-4.6.28/lib/fprintf.c Examining data/id-utils-4.6.28/lib/c-strcasecmp.c Examining data/id-utils-4.6.28/lib/setlocale_null.c Examining data/id-utils-4.6.28/lib/stat-w32.c Examining data/id-utils-4.6.28/lib/getopt-pfx-core.h Examining data/id-utils-4.6.28/lib/inttypes.in.h Examining data/id-utils-4.6.28/lib/sys_types.in.h Examining data/id-utils-4.6.28/lib/chdir-long.c Examining data/id-utils-4.6.28/lib/dirent.in.h Examining data/id-utils-4.6.28/lib/xstrndup.h Examining data/id-utils-4.6.28/lib/mbsrtowcs-impl.h Examining data/id-utils-4.6.28/lib/math.c Examining data/id-utils-4.6.28/lib/nl_langinfo.c Examining data/id-utils-4.6.28/lib/filenamecat.h Examining data/id-utils-4.6.28/lib/stdio.in.h Examining data/id-utils-4.6.28/lib/isnan.c Examining data/id-utils-4.6.28/lib/basename-lgpl.c Examining data/id-utils-4.6.28/lib/vasnprintf.h Examining data/id-utils-4.6.28/lib/openat-proc.c Examining data/id-utils-4.6.28/lib/minmax.h Examining data/id-utils-4.6.28/lib/readdir.c Examining data/id-utils-4.6.28/lib/langinfo.in.h Examining data/id-utils-4.6.28/lib/filename.h Examining data/id-utils-4.6.28/lib/exclude.c Examining data/id-utils-4.6.28/lib/offtostr.c Examining data/id-utils-4.6.28/lib/c-strcaseeq.h Examining data/id-utils-4.6.28/lib/dirname-lgpl.c Examining data/id-utils-4.6.28/lib/lstat.c Examining data/id-utils-4.6.28/lib/freading.c Examining data/id-utils-4.6.28/lib/getcwd-lgpl.c Examining data/id-utils-4.6.28/lib/float+.h Examining data/id-utils-4.6.28/lib/vfprintf.c Examining data/id-utils-4.6.28/lib/fcntl.c Examining data/id-utils-4.6.28/lib/errno.in.h Examining data/id-utils-4.6.28/lib/exitfail.h Examining data/id-utils-4.6.28/lib/at-func.c Examining data/id-utils-4.6.28/lib/getopt.c Examining data/id-utils-4.6.28/lib/memchr.c Examining data/id-utils-4.6.28/lib/error.h Examining data/id-utils-4.6.28/lib/ignore-value.h Examining data/id-utils-4.6.28/lib/filenamecat-lgpl.c Examining data/id-utils-4.6.28/lib/fd-safer.c Examining data/id-utils-4.6.28/lib/anytostr.c Examining data/id-utils-4.6.28/lib/printf-args.c Examining data/id-utils-4.6.28/lib/obstack.c Examining data/id-utils-4.6.28/lib/openat.c Examining data/id-utils-4.6.28/lib/unused-parameter.h Examining data/id-utils-4.6.28/lib/setlocale-lock.c Examining data/id-utils-4.6.28/lib/dup.c Examining data/id-utils-4.6.28/lib/alignof.h Examining data/id-utils-4.6.28/lib/localcharset.c Examining data/id-utils-4.6.28/lib/fopen.c Examining data/id-utils-4.6.28/lib/strnlen.c Examining data/id-utils-4.6.28/lib/strdup.c Examining data/id-utils-4.6.28/lib/regex.c Examining data/id-utils-4.6.28/lib/windows-recmutex.c Examining data/id-utils-4.6.28/lib/size_max.h Examining data/id-utils-4.6.28/lib/mbrtowc.c Examining data/id-utils-4.6.28/lib/hash.h Examining data/id-utils-4.6.28/lib/signbitl.c Examining data/id-utils-4.6.28/lib/quote.h Examining data/id-utils-4.6.28/lib/strndup.c Examining data/id-utils-4.6.28/lib/printf-frexpl.h Examining data/id-utils-4.6.28/lib/fstat.c Examining data/id-utils-4.6.28/lib/xgetcwd.h Examining data/id-utils-4.6.28/lib/printf-frexp.h Examining data/id-utils-4.6.28/lib/strerror-override.h Examining data/id-utils-4.6.28/lib/cdefs.h Examining data/id-utils-4.6.28/lib/printf-parse.c Examining data/id-utils-4.6.28/lib/ftell.c Examining data/id-utils-4.6.28/lib/regexec.c Examining data/id-utils-4.6.28/lib/gettext.h Examining data/id-utils-4.6.28/lib/lc-charset-dispatch.c Examining data/id-utils-4.6.28/lib/windows-mutex.c Examining data/id-utils-4.6.28/lib/iswblank.c Examining data/id-utils-4.6.28/lib/unistd.in.h Examining data/id-utils-4.6.28/lib/strncasecmp.c Examining data/id-utils-4.6.28/lib/fseterr.c Examining data/id-utils-4.6.28/lib/stat.c Examining data/id-utils-4.6.28/lib/wchar.in.h Examining data/id-utils-4.6.28/lib/mbrtowc-impl-utf8.h Examining data/id-utils-4.6.28/lib/mempcpy.c Examining data/id-utils-4.6.28/lib/localcharset.h Examining data/id-utils-4.6.28/lib/stdint.in.h Examining data/id-utils-4.6.28/lib/mbsinit.c Examining data/id-utils-4.6.28/lib/locale.in.h Examining data/id-utils-4.6.28/lib/fpending.c Examining data/id-utils-4.6.28/lib/windows-once.h Examining data/id-utils-4.6.28/lib/getopt-pfx-ext.h Examining data/id-utils-4.6.28/lib/getopt_int.h Examining data/id-utils-4.6.28/lib/stat-time.c Examining data/id-utils-4.6.28/lib/strnlen1.c Examining data/id-utils-4.6.28/lib/getopt1.c Examining data/id-utils-4.6.28/lib/xalloc-oversized.h Examining data/id-utils-4.6.28/lib/fpucw.h Examining data/id-utils-4.6.28/lib/hard-locale.c Examining data/id-utils-4.6.28/lib/pathmax.h FINAL RESULTS: data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/lib/stdio.in.h:820:8: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. #undef gets data/id-utils-4.6.28/lib/stdio.in.h:822: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/id-utils-4.6.28/lib/unistd.in.h:287: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/id-utils-4.6.28/lib/unistd.in.h:301: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/id-utils-4.6.28/lib/unistd.in.h:302: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/id-utils-4.6.28/lib/unistd.in.h:304: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/id-utils-4.6.28/lib/unistd.in.h:306: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/id-utils-4.6.28/lib/unistd.in.h:309: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/id-utils-4.6.28/lib/unistd.in.h:312: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/id-utils-4.6.28/lib/unistd.in.h:314: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/id-utils-4.6.28/lib/unistd.in.h:316: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/id-utils-4.6.28/lib/unistd.in.h:318: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/id-utils-4.6.28/lib/unistd.in.h:1370: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/id-utils-4.6.28/lib/unistd.in.h:1372: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/id-utils-4.6.28/lib/unistd.in.h:1376: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/id-utils-4.6.28/lib/unistd.in.h:1381: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/id-utils-4.6.28/lib/unistd.in.h:1386: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/id-utils-4.6.28/lib/unistd.in.h:1390: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/id-utils-4.6.28/lib/unistd.in.h:1392: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/id-utils-4.6.28/lib/unistd.in.h:1394: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/id-utils-4.6.28/gnulib-tests/localename.c:1400: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/id-utils-4.6.28/gnulib-tests/localename.c:1424: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/id-utils-4.6.28/gnulib-tests/localename.c:1444: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/id-utils-4.6.28/gnulib-tests/localename.c:2623: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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/snprintf.c:37:1: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf (char *str, size_t size, const char *format, ...) data/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-fprintf-posix.c:24: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. SIGNATURE_CHECK (fprintf, int, (FILE *, char const *, ...)); data/id-utils-4.6.28/gnulib-tests/test-fprintf-posix.c:38: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. test_function (fprintf); data/id-utils-4.6.28/gnulib-tests/test-fstatat.c:75: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/id-utils-4.6.28/gnulib-tests/test-lock.c:129: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/id-utils-4.6.28/gnulib-tests/test-lock.c:131: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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-mbrtowc-w32.c:44:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (name_with_codepage, "%s.%d", name, codepage); data/id-utils-4.6.28/gnulib-tests/test-mkdir.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/id-utils-4.6.28/gnulib-tests/test-printf-posix.c:24: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. SIGNATURE_CHECK (printf, int, (char const *, ...)); data/id-utils-4.6.28/gnulib-tests/test-printf-posix.c:37: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. test_function (printf); data/id-utils-4.6.28/gnulib-tests/test-printf-posix.c:46:34: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((__format__ (printf, 3, 4))); data/id-utils-4.6.28/gnulib-tests/test-printf-posix.c:50:30: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 3, 4))); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-snprintf.c:24: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. SIGNATURE_CHECK (snprintf, int, (char *, size_t, char const *, ...)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.c:24:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. SIGNATURE_CHECK (sprintf, int, (char *, char const *, ...)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.c:39:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. test_function (sprintf); data/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-vfprintf-posix.c:24: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. SIGNATURE_CHECK (vfprintf, int, (FILE *, char const *, va_list)); data/id-utils-4.6.28/gnulib-tests/test-vfprintf-posix.c:42:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ret = vfprintf (fp, format, args); data/id-utils-4.6.28/gnulib-tests/test-wcrtomb-w32.c:42:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (name_with_codepage, "%s.%d", name, codepage); data/id-utils-4.6.28/gnulib-tests/tmpdir.c:157:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (tmpl + dlen, &"/%.*sXXXXXX"[!add_slash], (int) plen, pfx); data/id-utils-4.6.28/lib/chdir-long.c:249:7: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp (cmd, (char *) NULL); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/exclude.c:435: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 (buffer, f); data/id-utils-4.6.28/lib/fnmatch.c:165:23: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). # define STRCAT(D, S) strcat (D, S) data/id-utils-4.6.28/lib/fnmatch.c:195:25: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). # define STRCAT(D, S) wcscat (D, S) data/id-utils-4.6.28/lib/fprintf.c:36:1: [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 (FILE *fp, const char *format, ...) data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/localcharset.c:905:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (resultbuf, buf); data/id-utils-4.6.28/lib/localcharset.c:929:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "CP%s", pdot + 1); data/id-utils-4.6.28/lib/localcharset.c:947: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/id-utils-4.6.28/lib/localcharset.c:1007: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 (resultbuf, buf); data/id-utils-4.6.28/lib/nl_langinfo.c:103: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 (result, buf); data/id-utils-4.6.28/lib/nl_langinfo.c:107:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result, codeset); data/id-utils-4.6.28/lib/nl_langinfo.c:244:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result, buf); data/id-utils-4.6.28/lib/nl_langinfo.c:253:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result, buf); data/id-utils-4.6.28/lib/nl_langinfo.c:272:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result[item - DAY_1], buf); data/id-utils-4.6.28/lib/nl_langinfo.c:290:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result[item - ABDAY_1], buf); data/id-utils-4.6.28/lib/nl_langinfo.c:315: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 (result[item - MON_1], buf); data/id-utils-4.6.28/lib/nl_langinfo.c:340: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 (result[item - ALTMON_1], buf); data/id-utils-4.6.28/lib/nl_langinfo.c:365:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result[item - ABMON_1], buf); data/id-utils-4.6.28/lib/openat-proc.c:88:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (dotdot_buf, PROC_SELF_FD_FORMAT "../fd", proc_self_fd); data/id-utils-4.6.28/lib/openat-proc.c:89:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. proc_status = access (dotdot_buf, F_OK) ? -1 : 1; data/id-utils-4.6.28/lib/openat-proc.c:106:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. dirlen = sprintf (result, PROC_SELF_FD_FORMAT, fd); data/id-utils-4.6.28/lib/openat-proc.c:127:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result, dir); data/id-utils-4.6.28/lib/openat-proc.c:132:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result + dirlen, file); data/id-utils-4.6.28/lib/opendir.c:151:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (dirp->dir_name_mask, dir_name_mask); data/id-utils-4.6.28/lib/printf.c:30:1: [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 (const char *format, ...) data/id-utils-4.6.28/lib/printf.c:36: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. retval = vfprintf (stdout, format, args); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/sprintf.c:40:1: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (char *str, const char *format, ...) data/id-utils-4.6.28/lib/stdio.in.h:327: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/id-utils-4.6.28/lib/stdio.in.h:331: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/id-utils-4.6.28/lib/stdio.in.h:336: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/id-utils-4.6.28/lib/stdio.in.h:341: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/id-utils-4.6.28/lib/stdio.in.h:344: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/id-utils-4.6.28/lib/stdio.in.h:348: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/id-utils-4.6.28/lib/stdio.in.h:353: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/id-utils-4.6.28/lib/stdio.in.h:356: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/id-utils-4.6.28/lib/stdio.in.h:480: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/id-utils-4.6.28/lib/stdio.in.h:481: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/id-utils-4.6.28/lib/stdio.in.h:483: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/id-utils-4.6.28/lib/stdio.in.h:487: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/id-utils-4.6.28/lib/stdio.in.h:490: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/id-utils-4.6.28/lib/stdio.in.h:494: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/id-utils-4.6.28/lib/stdio.in.h:916: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/id-utils-4.6.28/lib/stdio.in.h:917: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/id-utils-4.6.28/lib/stdio.in.h:919: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/id-utils-4.6.28/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_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); data/id-utils-4.6.28/lib/stdio.in.h:924: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/id-utils-4.6.28/lib/stdio.in.h:927: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/id-utils-4.6.28/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_CXXALIASWARN (popen); data/id-utils-4.6.28/lib/stdio.in.h:931: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/id-utils-4.6.28/lib/stdio.in.h:933: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/id-utils-4.6.28/lib/stdio.in.h:944: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/id-utils-4.6.28/lib/stdio.in.h:961: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/id-utils-4.6.28/lib/stdio.in.h:964: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/id-utils-4.6.28/lib/stdio.in.h:966: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/id-utils-4.6.28/lib/stdio.in.h:970: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/id-utils-4.6.28/lib/stdio.in.h:974: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/id-utils-4.6.28/lib/stdio.in.h:977: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/id-utils-4.6.28/lib/stdio.in.h:982: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/id-utils-4.6.28/lib/stdio.in.h:985: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/id-utils-4.6.28/lib/stdio.in.h:1117: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/id-utils-4.6.28/lib/stdio.in.h:1119: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/id-utils-4.6.28/lib/stdio.in.h:1127: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/id-utils-4.6.28/lib/stdio.in.h:1130: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/id-utils-4.6.28/lib/stdio.in.h:1131: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/id-utils-4.6.28/lib/stdio.in.h:1133: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/id-utils-4.6.28/lib/stdio.in.h:1136: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/id-utils-4.6.28/lib/stdio.in.h:1139: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/id-utils-4.6.28/lib/stdio.in.h:1142: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/id-utils-4.6.28/lib/stdio.in.h:1149: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/id-utils-4.6.28/lib/stdio.in.h:1151: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/id-utils-4.6.28/lib/stdio.in.h:1156: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/id-utils-4.6.28/lib/stdio.in.h:1161: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/id-utils-4.6.28/lib/stdio.in.h:1167: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/id-utils-4.6.28/lib/stdio.in.h:1171: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/id-utils-4.6.28/lib/stdio.in.h:1173: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/id-utils-4.6.28/lib/stdio.in.h:1175: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/id-utils-4.6.28/lib/stdio.in.h:1192:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define sprintf rpl_sprintf data/id-utils-4.6.28/lib/stdio.in.h:1194:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (sprintf, int, data/id-utils-4.6.28/lib/stdio.in.h:1198:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (sprintf, int, data/id-utils-4.6.28/lib/stdio.in.h:1201:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS (sprintf, int, data/id-utils-4.6.28/lib/stdio.in.h:1205:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (sprintf); data/id-utils-4.6.28/lib/stdio.in.h:1208:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef sprintf data/id-utils-4.6.28/lib/stdio.in.h:1210: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/id-utils-4.6.28/lib/stdio.in.h:1323: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/id-utils-4.6.28/lib/stdio.in.h:1327: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/id-utils-4.6.28/lib/stdio.in.h:1333: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/id-utils-4.6.28/lib/stdio.in.h:1339: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/id-utils-4.6.28/lib/stdio.in.h:1346: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/id-utils-4.6.28/lib/stdio.in.h:1351: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/id-utils-4.6.28/lib/stdio.in.h:1356: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/id-utils-4.6.28/lib/stdio.in.h:1359: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/id-utils-4.6.28/lib/stdio.in.h:1367: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/id-utils-4.6.28/lib/stdio.in.h:1368: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/id-utils-4.6.28/lib/stdio.in.h:1370: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/id-utils-4.6.28/lib/stdio.in.h:1375: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/id-utils-4.6.28/lib/stdio.in.h:1379: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/id-utils-4.6.28/lib/stdio.in.h:1383: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/id-utils-4.6.28/lib/stdio.in.h:1390: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/id-utils-4.6.28/lib/stdio.in.h:1394: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/id-utils-4.6.28/lib/stdio.in.h:1398: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/id-utils-4.6.28/lib/stdio.in.h:1402: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/id-utils-4.6.28/lib/stdio.in.h:1407: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/id-utils-4.6.28/lib/stdio.in.h:1411: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/id-utils-4.6.28/lib/stdio.in.h:1416: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/id-utils-4.6.28/lib/stdio.in.h:1419: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/id-utils-4.6.28/lib/stdio.in.h:1427: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/id-utils-4.6.28/lib/stdio.in.h:1428: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/id-utils-4.6.28/lib/stdio.in.h:1430: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/id-utils-4.6.28/lib/stdio.in.h:1433: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/id-utils-4.6.28/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_SYS (vscanf, int, (const char *restrict format, va_list args)); data/id-utils-4.6.28/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_CXXALIASWARN (vscanf); data/id-utils-4.6.28/lib/stdio.in.h:1443: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/id-utils-4.6.28/lib/stdio.in.h:1445: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/id-utils-4.6.28/lib/stdio.in.h:1450: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/id-utils-4.6.28/lib/stdio.in.h:1455: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/id-utils-4.6.28/lib/stdio.in.h:1461: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/id-utils-4.6.28/lib/stdio.in.h:1465: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/id-utils-4.6.28/lib/stdio.in.h:1467: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/id-utils-4.6.28/lib/stdio.in.h:1469: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/id-utils-4.6.28/lib/stdio.in.h:1477:12: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define vsprintf rpl_vsprintf data/id-utils-4.6.28/lib/stdio.in.h:1479:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (vsprintf, int, data/id-utils-4.6.28/lib/stdio.in.h:1484:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (vsprintf, int, data/id-utils-4.6.28/lib/stdio.in.h:1491: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/id-utils-4.6.28/lib/stdio.in.h:1496:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (vsprintf); data/id-utils-4.6.28/lib/stdio.in.h:1499:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef vsprintf data/id-utils-4.6.28/lib/stdio.in.h:1501: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/id-utils-4.6.28/lib/strerror.c:33:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/id-utils-4.6.28/lib/strerror.c:59:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf, fmt, n); data/id-utils-4.6.28/lib/unistd.in.h:259: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/id-utils-4.6.28/lib/unistd.in.h:260: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/id-utils-4.6.28/lib/unistd.in.h:262: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/id-utils-4.6.28/lib/unistd.in.h:264: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/id-utils-4.6.28/lib/unistd.in.h:266: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/id-utils-4.6.28/lib/unistd.in.h:268: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/id-utils-4.6.28/lib/unistd.in.h:270: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/id-utils-4.6.28/lib/unistd.in.h:273: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/id-utils-4.6.28/lib/unistd.in.h:846: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/id-utils-4.6.28/lib/unistd.in.h:848: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/id-utils-4.6.28/lib/unistd.in.h:849: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/id-utils-4.6.28/lib/unistd.in.h:851: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/id-utils-4.6.28/lib/unistd.in.h:853: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/id-utils-4.6.28/lib/unistd.in.h:994: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/id-utils-4.6.28/lib/unistd.in.h:995: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/id-utils-4.6.28/lib/unistd.in.h:997: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/id-utils-4.6.28/lib/unistd.in.h:999: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/id-utils-4.6.28/lib/unistd.in.h:1002: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/id-utils-4.6.28/lib/unistd.in.h:1005: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/id-utils-4.6.28/lib/unistd.in.h:1007: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/id-utils-4.6.28/lib/unistd.in.h:1009: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/id-utils-4.6.28/lib/unistd.in.h:1011: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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/lib/vasnprintf.c:4258:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/id-utils-4.6.28/lib/vasnprintf.c:4266:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/id-utils-4.6.28/lib/vasnprintf.c:4451:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/id-utils-4.6.28/lib/vasnprintf.c:4459:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/id-utils-4.6.28/lib/vasnprintf.c:4988:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/id-utils-4.6.28/lib/vasnprintf.c:4991:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/id-utils-4.6.28/lib/vasnprintf.c:4994:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/id-utils-4.6.28/lib/vfprintf.c:36:1: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (FILE *fp, const char *format, va_list args) data/id-utils-4.6.28/lib/wchar.in.h:681: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/id-utils-4.6.28/lib/wchar.in.h:684: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/id-utils-4.6.28/lib/wchar.in.h:687: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/id-utils-4.6.28/lib/wchar.in.h:690: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/id-utils-4.6.28/lib/wchar.in.h:692: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/id-utils-4.6.28/lib/wchar.in.h:762: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/id-utils-4.6.28/lib/wchar.in.h:765: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/id-utils-4.6.28/lib/wchar.in.h:768:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcscat); data/id-utils-4.6.28/lib/wchar.in.h:771:9: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). # undef wcscat data/id-utils-4.6.28/lib/wchar.in.h:773: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/id-utils-4.6.28/libidu/fnprint.c:51:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (file_name_buffer, file_name); data/id-utils-4.6.28/libidu/idfile.c:81: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 (buf, arg); data/id-utils-4.6.28/libidu/walker.c:804:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (flink->fl_name, dirent->d_name); data/id-utils-4.6.28/libidu/walker.c:818:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (flink->fl_name, name); data/id-utils-4.6.28/libidu/walker.c:879:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (buf_0, to_link->fl_name); data/id-utils-4.6.28/libidu/walker.c:886: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 (buf_0, DOT_DOT_SLASH); data/id-utils-4.6.28/libidu/walker.c:887: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 (&buf_0[3], to_link->fl_name); data/id-utils-4.6.28/libidu/walker.c:922:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (buf, (*to_link_vec)->fl_name); data/id-utils-4.6.28/libidu/walker.c:944: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 (buf, DOT_DOT_SLASH); data/id-utils-4.6.28/libidu/walker.c:985:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (end, flink->fl_name); data/id-utils-4.6.28/src/fnid.c:178:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (pat, "*/%s", arg); data/id-utils-4.6.28/src/lid.c:760:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (regexp_buf, "%s%s%s", eid_left_del, name, eid_right_del); data/id-utils-4.6.28/src/lid.c:779:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (ed_arg_buffer, eid_arg, pattern); data/id-utils-4.6.28/src/lid.c:787:2: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp (editor_argv[0], argv); data/id-utils-4.6.28/src/lid.c:959:2: [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 (pattern, pattern_0); data/id-utils-4.6.28/src/lid.c:964:4: [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 (pattern + 2, pattern_0); data/id-utils-4.6.28/src/lid.c:1164:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (pat_buf, "%s0*[Xx]*0*%d[Ll]*%s", left_delimit, stoi (name), right_delimit); data/id-utils-4.6.28/src/lid.c:1182:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (pat_buf, "%s%s%s", left_delimit, name_0, right_delimit); data/id-utils-4.6.28/src/lid.c:1267:4: [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, name + 1); data/id-utils-4.6.28/src/mkid.c:492:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (filename, 06) < 0) data/id-utils-4.6.28/src/mkid.c:497:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (dirname, 06) < 0) data/id-utils-4.6.28/gnulib-tests/argmatch.c:260:13: [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 ((cp = getenv ("VERSION_CONTROL"))) data/id-utils-4.6.28/gnulib-tests/argmatch.h:281:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const int screen_width = getenv ("HELP2MAN") ? INT_MAX : 80; \ data/id-utils-4.6.28/gnulib-tests/gettimeofday.c:48:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE kernel32 = LoadLibrary ("kernel32.dll"); data/id-utils-4.6.28/gnulib-tests/locale.c:36: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 *value = getenv (variable); data/id-utils-4.6.28/gnulib-tests/localename.c:1504: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/id-utils-4.6.28/gnulib-tests/localename.c:3316: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/id-utils-4.6.28/gnulib-tests/localename.c:3320: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/id-utils-4.6.28/gnulib-tests/localename.c:3324: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/id-utils-4.6.28/gnulib-tests/secure_getenv.c:36:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv (name); data/id-utils-4.6.28/gnulib-tests/secure_getenv.c:40:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv (name); data/id-utils-4.6.28/gnulib-tests/secure_getenv.c:50:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv (name); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-hash.c:106:7: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (seed); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/lib/fnmatch_loop.c:209:33: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/id-utils-4.6.28/lib/fnmatch_loop.c:999:29: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/id-utils-4.6.28/lib/fnmatch_loop.c:1052:29: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/localcharset.c:858:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/id-utils-4.6.28/lib/localcharset.c:861:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/id-utils-4.6.28/lib/localcharset.c:863:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/id-utils-4.6.28/lib/localcharset.c:962:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/id-utils-4.6.28/lib/localcharset.c:965:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/id-utils-4.6.28/lib/localcharset.c:967:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/id-utils-4.6.28/lib/localcharset.c:1090:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/id-utils-4.6.28/lib/localcharset.c:1093:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/id-utils-4.6.28/lib/localcharset.c:1095:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/id-utils-4.6.28/lib/mbtowc-lock.c:76:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock); data/id-utils-4.6.28/lib/mbtowc-lock.h:45:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (lock); data/id-utils-4.6.28/lib/setlocale-lock.c:76:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/stat-w32.c:64:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE kernel32 = LoadLibrary ("kernel32.dll"); data/id-utils-4.6.28/lib/stdlib.in.h:604: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/id-utils-4.6.28/lib/stdlib.in.h:605: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/id-utils-4.6.28/lib/stdlib.in.h:607: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/id-utils-4.6.28/lib/stdlib.in.h:608: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/id-utils-4.6.28/lib/stdlib.in.h:611: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/id-utils-4.6.28/lib/stdlib.in.h:615: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/id-utils-4.6.28/lib/stdlib.in.h:617: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/id-utils-4.6.28/lib/stdlib.in.h:619: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/id-utils-4.6.28/lib/stdlib.in.h:621: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/id-utils-4.6.28/lib/stdlib.in.h:629: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/id-utils-4.6.28/lib/stdlib.in.h:630: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/id-utils-4.6.28/lib/stdlib.in.h:632: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/id-utils-4.6.28/lib/stdlib.in.h:633: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/id-utils-4.6.28/lib/stdlib.in.h:636: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/id-utils-4.6.28/lib/stdlib.in.h:640: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/id-utils-4.6.28/lib/stdlib.in.h:642: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/id-utils-4.6.28/lib/stdlib.in.h:644: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/id-utils-4.6.28/lib/stdlib.in.h:646: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/id-utils-4.6.28/lib/stdlib.in.h:685: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/id-utils-4.6.28/lib/stdlib.in.h:686: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/id-utils-4.6.28/lib/stdlib.in.h:688: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/id-utils-4.6.28/lib/stdlib.in.h:689: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/id-utils-4.6.28/lib/stdlib.in.h:692: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/id-utils-4.6.28/lib/stdlib.in.h:696: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/id-utils-4.6.28/lib/stdlib.in.h:698: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/id-utils-4.6.28/lib/stdlib.in.h:700: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/id-utils-4.6.28/lib/stdlib.in.h:702: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/id-utils-4.6.28/lib/stdlib.in.h:871: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/id-utils-4.6.28/lib/stdlib.in.h:873: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/id-utils-4.6.28/lib/stdlib.in.h:876: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/id-utils-4.6.28/lib/stdlib.in.h:880: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/id-utils-4.6.28/lib/stdlib.in.h:884: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/id-utils-4.6.28/lib/stdlib.in.h:887: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/id-utils-4.6.28/lib/stdlib.in.h:889: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/id-utils-4.6.28/lib/stdlib.in.h:891: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/id-utils-4.6.28/lib/windows-mutex.c:30:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&mutex->lock); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/lib/windows-recmutex.c:32:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&mutex->lock); data/id-utils-4.6.28/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/id-utils-4.6.28/lib/windows-rwlock.c:122:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/id-utils-4.6.28/lib/windows-rwlock.c:147:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/id-utils-4.6.28/lib/windows-rwlock.c:179:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/id-utils-4.6.28/lib/windows-rwlock.c:207:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/id-utils-4.6.28/lib/windows-rwlock.c:236:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/id-utils-4.6.28/lib/windows-rwlock.c:266:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/id-utils-4.6.28/lib/windows-rwlock.c:302:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/id-utils-4.6.28/lib/windows-rwlock.c:320:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/id-utils-4.6.28/libidu/idfile.c:53:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. id_path = getenv ("IDPATH"); data/id-utils-4.6.28/libidu/scanners.c:506: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. int optc = getopt_long (argc, argv, "k:i:u", data/id-utils-4.6.28/libidu/scanners.c:896: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. int optc = getopt_long (argc, argv, "c:k:i:un", data/id-utils-4.6.28/libidu/scanners.c:1162: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. int optc = getopt_long (argc, argv, "i:x:", data/id-utils-4.6.28/libidu/scanners.c:1369: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. int optc = getopt_long (argc, argv, "i:x:d", data/id-utils-4.6.28/libidu/walker.c:610:9: [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. cwd = getenv ("PWD"); data/id-utils-4.6.28/src/fid.c:118: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. int optc = getopt_long (argc, argv, "f:", data/id-utils-4.6.28/src/fnid.c:103: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. int optc = getopt_long (argc, argv, "f:S:", data/id-utils-4.6.28/src/lid.c:330: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. int optc = getopt_long (argc, argv, "f:F:a:k:R:S:ilrwsxdo", data/id-utils-4.6.28/src/lid.c:667: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. if (!(editor = getenv ("VISUAL"))) data/id-utils-4.6.28/src/lid.c:668:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!(editor = getenv ("EDITOR"))) data/id-utils-4.6.28/src/lid.c:679:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. eid_arg = getenv ("EIDARG"); data/id-utils-4.6.28/src/lid.c:683:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. eid_left_del = getenv ("EIDLDEL"); data/id-utils-4.6.28/src/lid.c:687: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. eid_right_del = getenv ("EIDRDEL"); data/id-utils-4.6.28/src/mkid.c:240: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. int optc = getopt_long (argc, argv, "o:f:i:x:l:m:d:p:vVs", data/id-utils-4.6.28/src/xtokid.c:131: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. int optc = getopt_long (argc, argv, "i:x:l:m:d:p:", data/id-utils-4.6.28/gnulib-tests/ftruncate.c:90:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char zero_bytes[1024]; data/id-utils-4.6.28/gnulib-tests/get-rusage-as.c:179: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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/localename.c:1182: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/id-utils-4.6.28/gnulib-tests/localename.c:1182: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/id-utils-4.6.28/gnulib-tests/localename.c:1320: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/id-utils-4.6.28/gnulib-tests/localename.c:1320: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/id-utils-4.6.28/gnulib-tests/localename.c:1372: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/id-utils-4.6.28/gnulib-tests/localename.c:1372: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/id-utils-4.6.28/gnulib-tests/localename.c:1506: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/id-utils-4.6.28/gnulib-tests/localename.c:2563: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/id-utils-4.6.28/gnulib-tests/localename.c:2570: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/id-utils-4.6.28/gnulib-tests/localename.c:2606: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/id-utils-4.6.28/gnulib-tests/localename.c:2663:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/id-utils-4.6.28/gnulib-tests/localename.c:2694: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/id-utils-4.6.28/gnulib-tests/localename.c:3172: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/id-utils-4.6.28/gnulib-tests/localename.c:3190: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/id-utils-4.6.28/gnulib-tests/localename.c:3206: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/id-utils-4.6.28/gnulib-tests/localename.c:3404: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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/putenv.c:81:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (name_, name, len); data/id-utils-4.6.28/gnulib-tests/putenv.c:145:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (name_x, string, name_end - string + 1); data/id-utils-4.6.28/gnulib-tests/putenv.c:186:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_environ + 1, environ, (size + 1) * sizeof *new_environ); data/id-utils-4.6.28/gnulib-tests/select.c:55:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char in[FD_SETSIZE / CHAR_BIT]; data/id-utils-4.6.28/gnulib-tests/select.c:56:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char out[FD_SETSIZE / CHAR_BIT]; data/id-utils-4.6.28/gnulib-tests/select.c:261:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char anyfds_in[FD_SETSIZE / CHAR_BIT]; data/id-utils-4.6.28/gnulib-tests/select.c:418:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_rfds, rfds, sizeof (fd_set)); data/id-utils-4.6.28/gnulib-tests/select.c:419:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_wfds, wfds, sizeof (fd_set)); data/id-utils-4.6.28/gnulib-tests/select.c:420:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_xfds, xfds, sizeof (fd_set)); data/id-utils-4.6.28/gnulib-tests/select.c:494:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_rfds, rfds, sizeof (fd_set)); data/id-utils-4.6.28/gnulib-tests/select.c:495:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_wfds, wfds, sizeof (fd_set)); data/id-utils-4.6.28/gnulib-tests/select.c:496:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_xfds, xfds, sizeof (fd_set)); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/snprintf.c:57:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (str, output, pruned_len); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/tempname.c:70:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define __open open data/id-utils-4.6.28/gnulib-tests/tempname.c:170:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx); data/id-utils-4.6.28/gnulib-tests/test-alignof.c:29: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/id-utils-4.6.28/gnulib-tests/test-alignof.c:30: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/id-utils-4.6.28/gnulib-tests/test-alignof.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[3]; } struct3; data/id-utils-4.6.28/gnulib-tests/test-alignof.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[4]; } struct4; data/id-utils-4.6.28/gnulib-tests/test-argv-iter.c:34:14: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *fp = tmpfile (); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-fchdir.c:44: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 (".", O_RDONLY); data/id-utils-4.6.28/gnulib-tests/test-fchdir.c:62:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int bad_fd = open ("/dev/null", O_RDONLY); data/id-utils-4.6.28/gnulib-tests/test-fdopendir.c:39: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 ("test-fdopendir.tmp", O_RDONLY | O_CREAT, 0600); data/id-utils-4.6.28/gnulib-tests/test-fdopendir.c:61: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 (".", O_RDONLY); data/id-utils-4.6.28/gnulib-tests/test-fflush.c:38:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10]; data/id-utils-4.6.28/gnulib-tests/test-fflush.c:42:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen ("test-fflush.txt", "w"); data/id-utils-4.6.28/gnulib-tests/test-fflush.c:51:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen ("test-fflush.txt", "r"); data/id-utils-4.6.28/gnulib-tests/test-fflush.c:152: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 ("test-fflush.txt", "w"); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-fopen.c:24: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). SIGNATURE_CHECK (fopen, FILE *, (char const *, char const *)); data/id-utils-4.6.28/gnulib-tests/test-fopen.h:37: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). ASSERT (fopen (BASE "file", "r") == NULL); data/id-utils-4.6.28/gnulib-tests/test-fopen.h:41:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen (BASE "file", "w"); data/id-utils-4.6.28/gnulib-tests/test-fopen.h:47: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). ASSERT (fopen (BASE "file/", "r") == NULL); data/id-utils-4.6.28/gnulib-tests/test-fopen.h:52: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). ASSERT (fopen ("nonexist.ent/", "w") == NULL); data/id-utils-4.6.28/gnulib-tests/test-fopen.h:58: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). ASSERT (fopen (".", "w") == NULL); data/id-utils-4.6.28/gnulib-tests/test-fopen.h:62:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen ("/dev/null", "r"); data/id-utils-4.6.28/gnulib-tests/test-fopen.h:65:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen ("/dev/null", "w"); data/id-utils-4.6.28/gnulib-tests/test-fprintf-posix2.c:74:9: [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). arg = atoi (argv[1]); data/id-utils-4.6.28/gnulib-tests/test-fprintf-posix3.c:80:9: [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). arg = atoi (argv[1]); data/id-utils-4.6.28/gnulib-tests/test-fpurge.c:42: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). fp = fopen (TESTFILE, "w"); data/id-utils-4.6.28/gnulib-tests/test-fpurge.c:53: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). fp = fopen (TESTFILE, "r+"); data/id-utils-4.6.28/gnulib-tests/test-fpurge.c:73: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). fp = fopen (TESTFILE, "r"); data/id-utils-4.6.28/gnulib-tests/test-fpurge.c:79: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[8]; data/id-utils-4.6.28/gnulib-tests/test-fpurge.c:98: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). fp = fopen (TESTFILE, "r+"); data/id-utils-4.6.28/gnulib-tests/test-fpurge.c:114: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). fp = fopen (TESTFILE, "r"); data/id-utils-4.6.28/gnulib-tests/test-fpurge.c:118: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[10]; data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-freading.c:38:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "w"); data/id-utils-4.6.28/gnulib-tests/test-freading.c:46:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r"); data/id-utils-4.6.28/gnulib-tests/test-freading.c:69:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r+"); data/id-utils-4.6.28/gnulib-tests/test-freading.c:96:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r+"); data/id-utils-4.6.28/gnulib-tests/test-freading.c:122:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "a"); data/id-utils-4.6.28/gnulib-tests/test-freopen.c:46: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/id-utils-4.6.28/gnulib-tests/test-fseeko3.c:30:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int do_initial_ftell = atoi (argv[1]); data/id-utils-4.6.28/gnulib-tests/test-fseeko3.c:32:14: [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/id-utils-4.6.28/gnulib-tests/test-fseeko4.c:34: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/id-utils-4.6.28/gnulib-tests/test-fstatat.c:96: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). dfd = open (".", O_RDONLY); data/id-utils-4.6.28/gnulib-tests/test-ftell3.c:36:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "w"); data/id-utils-4.6.28/gnulib-tests/test-ftell3.c:47:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r+"); data/id-utils-4.6.28/gnulib-tests/test-ftell3.c:59:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r"); data/id-utils-4.6.28/gnulib-tests/test-ftell3.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[10]; data/id-utils-4.6.28/gnulib-tests/test-ftello3.c:36:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "w"); data/id-utils-4.6.28/gnulib-tests/test-ftello3.c:47:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r+"); data/id-utils-4.6.28/gnulib-tests/test-ftello3.c:59:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (TESTFILE, "r"); data/id-utils-4.6.28/gnulib-tests/test-ftello3.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[10]; data/id-utils-4.6.28/gnulib-tests/test-ftello4.c:34: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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-getcwd.c:141: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[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) data/id-utils-4.6.28/gnulib-tests/test-getdelim.c:40:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen ("test-getdelim.txt", "wb"); data/id-utils-4.6.28/gnulib-tests/test-getdelim.c:47:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen ("test-getdelim.txt", "rb"); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-hash.c:77:11: [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). *seed = atoi (str); data/id-utils-4.6.28/gnulib-tests/test-hash.c:209:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/id-utils-4.6.28/gnulib-tests/test-inttostr.c:43: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 ref[100]; \ data/id-utils-4.6.28/gnulib-tests/test-iswdigit.c:52:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/id-utils-4.6.28/gnulib-tests/test-iswxdigit.c:52:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-lock.c:184: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/id-utils-4.6.28/gnulib-tests/test-lock.c:190: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/id-utils-4.6.28/gnulib-tests/test-lock.c:692: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/id-utils-4.6.28/gnulib-tests/test-mbrtowc-w32.c:42:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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_with_codepage[1024]; data/id-utils-4.6.28/gnulib-tests/test-mbrtowc-w32.c: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 buf[1]; data/id-utils-4.6.28/gnulib-tests/test-mbrtowc-w32.c:704:18: [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 codepage = atoi (argv[argc - 1]); data/id-utils-4.6.28/gnulib-tests/test-mbrtowc.c:69:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/id-utils-4.6.28/gnulib-tests/test-mbsinit.c:41:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char input[1] = "\303"; data/id-utils-4.6.28/gnulib-tests/test-mbsrtowcs.c:82:11: [2] (buffer) wchar_t: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. wchar_t buf[BUFSIZE]; data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo-mt.c:233:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). duration.tv_sec = (argc > 1 ? atoi (argv[1]) : 2); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:43:14: [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 pass = atoi (argv[1]); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-openat.c:80: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). dfd = open (".", O_RDONLY); data/id-utils-4.6.28/gnulib-tests/test-openat.c:91: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). dfd = open (".", O_RDONLY); data/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-printf-posix2.c:74:9: [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). arg = atoi (argv[1]); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-quotearg-simple.c:340: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[10]; data/id-utils-4.6.28/gnulib-tests/test-quotearg-simple.c:350: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 (z, str, s_len + 1); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:104: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[100]; data/id-utils-4.6.28/gnulib-tests/test-regex.c:37: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 folded_chars[UCHAR_MAX + 1]; data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-snprintf.c:33: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/id-utils-4.6.28/gnulib-tests/test-snprintf.c:42: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/id-utils-4.6.28/gnulib-tests/test-snprintf.c:65:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result[100]; data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:80: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 result[5000]; data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:81: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/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:88:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, "DEADBEEF", 8); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2732:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char input[5000]; data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2759: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 (block, "abcdefgh", i); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-strcasestr.c:246: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 (haystack, h, h_len + 1); data/id-utils-4.6.28/gnulib-tests/test-strcasestr.c:247: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 (haystack + i, needle, strlen (needle) + 1); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-wcrtomb-w32.c:34: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[64]; data/id-utils-4.6.28/gnulib-tests/test-wcrtomb-w32.c:40:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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_with_codepage[1024]; data/id-utils-4.6.28/gnulib-tests/test-wcrtomb-w32.c:307:18: [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 codepage = atoi (argv[argc - 1]); data/id-utils-4.6.28/gnulib-tests/test-wcrtomb.c:37:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/id-utils-4.6.28/gnulib-tests/test-wcrtomb.c:57: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[64]; data/id-utils-4.6.28/gnulib-tests/tmpdir.c:119:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dirbuf[PATH_MAX]; data/id-utils-4.6.28/gnulib-tests/tmpdir.c:156:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmpl, dir, dlen); data/id-utils-4.6.28/gnulib-tests/tmpfile.c:83:1: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile (void) data/id-utils-4.6.28/gnulib-tests/tmpfile.c:85:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir[PATH_MAX]; data/id-utils-4.6.28/gnulib-tests/tmpfile.c:95:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char xtemplate[PATH_MAX]; data/id-utils-4.6.28/gnulib-tests/tmpfile.c:105:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&xtemplate[len - 6], "XXXXXX", 6); data/id-utils-4.6.28/gnulib-tests/tmpfile.c:149:1: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile (void) data/id-utils-4.6.28/gnulib-tests/tmpfile.c:151: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[PATH_MAX]; data/id-utils-4.6.28/gnulib-tests/vma-iter.c:166:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stack_allocated_buffer[STACK_ALLOCATED_BUFFER_SIZE]; data/id-utils-4.6.28/gnulib-tests/vma-iter.c:177: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/id-utils-4.6.28/gnulib-tests/vma-iter.c:270: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 (filename, O_RDONLY); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:510: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 fnamebuf[6+10+4+1]; data/id-utils-4.6.28/gnulib-tests/vma-iter.c:516: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 (fname, "/map", 4 + 1); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:524: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 (fname, "/proc/", 6); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:895: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 fnamebuf[6+10+1]; data/id-utils-4.6.28/gnulib-tests/vma-iter.c:925: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 (fname, "/proc/", 6); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:927: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 (fname, O_RDONLY); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:942:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). zero_fd = open ("/dev/zero", O_RDONLY, 0644); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:1020: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 fnamebuf[6+10+1]; data/id-utils-4.6.28/gnulib-tests/vma-iter.c:1050: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 (fname, "/proc/", 6); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:1052: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 (fname, O_RDONLY); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:1067:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). zero_fd = open ("/dev/zero", O_RDONLY, 0644); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:1138: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 fnamebuf[6+10+4+1]; data/id-utils-4.6.28/gnulib-tests/vma-iter.c:1161: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 (fname, "/map", 4 + 1); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:1169: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 (fname, "/proc/", 6); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:1171: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 (fname, O_RDONLY); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:1190:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). zero_fd = open ("/dev/zero", O_RDONLY, 0644); data/id-utils-4.6.28/gnulib-tests/wctob.c:29: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[64]; data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/lib/alloca.c:122:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char align[ALIGN_SIZE]; /* To force sizeof(header). */ data/id-utils-4.6.28/lib/at-func.c:89:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char proc_buf[OPENAT_BUFFER_SIZE]; data/id-utils-4.6.28/lib/basename.c:51:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p + 2, base, length); data/id-utils-4.6.28/lib/btowc.c:31: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[1]; data/id-utils-4.6.28/lib/dirent-private.h:37:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir_name_mask[1]; data/id-utils-4.6.28/lib/dirent.in.h:41:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char d_name[1]; data/id-utils-4.6.28/lib/dirname-lgpl.c:81:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dir, file, length); data/id-utils-4.6.28/lib/dup.c:66:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[_MAX_PATH]; data/id-utils-4.6.28/lib/dup.c:70:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dupfd = open (path, O_RDONLY); data/id-utils-4.6.28/lib/dup2.c:118:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tempfd = open ("NUL", O_RDONLY); data/id-utils-4.6.28/lib/dup2.c:126:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[_MAX_PATH]; data/id-utils-4.6.28/lib/dup2.c:130:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open(path, O_RDONLY); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/exclude.c:560:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, pattern, len); data/id-utils-4.6.28/lib/exclude.c:561:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (tmp + len, "(/.*)?"); data/id-utils-4.6.28/lib/exclude.c:686:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). else if (! (in = fopen (file_name, "r"))) data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/lib/fdopendir.c:71:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[_MAX_PATH]; data/id-utils-4.6.28/lib/fdopendir.c:182:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[OPENAT_BUFFER_SIZE]; data/id-utils-4.6.28/lib/filenamecat-lgpl.c:31:47: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N))) data/id-utils-4.6.28/lib/fnmatch.c:172:49: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define MEMPCPY(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N))) data/id-utils-4.6.28/lib/fnmatch.c:215:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[CHAR_CLASS_MAX_LENGTH + 1]; data/id-utils-4.6.28/lib/fnmatch_loop.c:472:29: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[c1]; data/id-utils-4.6.28/lib/fnmatch_loop.c:693:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[c1]; data/id-utils-4.6.28/lib/fopen.c:32:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return fopen (filename, mode); data/id-utils-4.6.28/lib/fopen.c:83:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (filename, O_RDONLY); data/id-utils-4.6.28/lib/fprintf.c:38:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2000]; data/id-utils-4.6.28/lib/freopen.c:78:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int nullfd = open (null_device, O_RDONLY | O_CLOEXEC); data/id-utils-4.6.28/lib/fseeko.c:62:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *tmp = fopen ("/dev/null", "r"); data/id-utils-4.6.28/lib/ftello.c:76:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *tmp = fopen ("/dev/null", "r"); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/getcwd.c:160:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dots[DEEP_NESTING * sizeof ".." + BIG_FILE_NAME_COMPONENT_LENGTH + 1]; data/id-utils-4.6.28/lib/getcwd.c:200:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char big_buffer[BIG_FILE_NAME_LENGTH + 1]; data/id-utils-4.6.28/lib/getcwd.c:377:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dotlist + dotlen, d->d_name, _D_ALLOC_NAMLEN (d)); data/id-utils-4.6.28/lib/getcwd.c:413:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. dirp = memcpy (tmp + allocated - (oldsize - dirroom), data/id-utils-4.6.28/lib/getcwd.c:420:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dirp, d->d_name, namlen); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/hard-locale.c:29: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 locale[SETLOCALE_NULL_MAX]; data/id-utils-4.6.28/lib/localcharset.c:88:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char alias[11+1]; data/id-utils-4.6.28/lib/localcharset.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. const char canonical[11+1]; data/id-utils-4.6.28/lib/localcharset.c:579:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char locale[17+1]; data/id-utils-4.6.28/lib/localcharset.c:580:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char canonical[11+1]; data/id-utils-4.6.28/lib/localcharset.c:856: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[2 + 10 + 1]; data/id-utils-4.6.28/lib/localcharset.c:883:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (resultbuf, dot, modifier - dot); data/id-utils-4.6.28/lib/localcharset.c:902: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[2 + 10 + 1]; data/id-utils-4.6.28/lib/localcharset.c:904:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/id-utils-4.6.28/lib/localcharset.c:917: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[2 + 10 + 1]; data/id-utils-4.6.28/lib/localcharset.c:918: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 resultbuf[2 + 10 + 1]; data/id-utils-4.6.28/lib/localcharset.c:939:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/id-utils-4.6.28/lib/localcharset.c:954: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 resultbuf[2 + 10 + 1]; data/id-utils-4.6.28/lib/localcharset.c:986: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 (resultbuf, dot, modifier - dot); data/id-utils-4.6.28/lib/localcharset.c:1004:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2 + 10 + 1]; data/id-utils-4.6.28/lib/localcharset.c:1006:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", cp[0]); data/id-utils-4.6.28/lib/mbchar.h:175: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[MBCHAR_BUF_SIZE]; /* room for the bytes, used for file input only */ data/id-utils-4.6.28/lib/mbchar.h:272: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_mbc->buf[0], &old_mbc->buf[0], old_mbc->bytes); data/id-utils-4.6.28/lib/mbrtowc-impl.h:41:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/id-utils-4.6.28/lib/mbrtowc.c:66:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char internal_state[4]; data/id-utils-4.6.28/lib/mbuiter.h:202:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_iter->state, &old_iter->state, sizeof (mbstate_t)); data/id-utils-4.6.28/lib/mempcpy.c:27:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (char *) memcpy (dest, src, n) + n; data/id-utils-4.6.28/lib/nl_langinfo.c:48: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 result[2 + 10 + 1]; data/id-utils-4.6.28/lib/nl_langinfo.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 buf[2 + 10 + 1]; data/id-utils-4.6.28/lib/nl_langinfo.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 locale[SETLOCALE_NULL_MAX]; data/id-utils-4.6.28/lib/nl_langinfo.c:78: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. codeset = memcpy (buf, codeset_start, codesetlen); data/id-utils-4.6.28/lib/nl_langinfo.c:95:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf + 2, "%u", GetACP ()); data/id-utils-4.6.28/lib/nl_langinfo.c:102: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, "CP", 2); data/id-utils-4.6.28/lib/nl_langinfo.c:200: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/id-utils-4.6.28/lib/nl_langinfo.c:241:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char result[80]; data/id-utils-4.6.28/lib/nl_langinfo.c:249:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char result[80]; data/id-utils-4.6.28/lib/nl_langinfo.c:264:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char result[7][50]; data/id-utils-4.6.28/lib/nl_langinfo.c:271:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return (char *) days[item - DAY_1]; data/id-utils-4.6.28/lib/nl_langinfo.c:283:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char result[7][30]; data/id-utils-4.6.28/lib/nl_langinfo.c:289:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return (char *) abdays[item - ABDAY_1]; data/id-utils-4.6.28/lib/nl_langinfo.c:311: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 result[12][50]; data/id-utils-4.6.28/lib/nl_langinfo.c:314: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. return (char *) months[item - MON_1]; data/id-utils-4.6.28/lib/nl_langinfo.c:331: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 result[12][50]; data/id-utils-4.6.28/lib/nl_langinfo.c:339: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. return (char *) months[item - ALTMON_1]; data/id-utils-4.6.28/lib/nl_langinfo.c:357:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char result[12][30]; data/id-utils-4.6.28/lib/nl_langinfo.c:364:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return (char *) abmonths[item - ABMON_1]; data/id-utils-4.6.28/lib/obstack.c:212: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 (object_base, h->object_base, obj_size); data/id-utils-4.6.28/lib/obstack.h:171: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 contents[__FLEXIBLE_ARRAY_MEMBER]; /* objects begin here */ data/id-utils-4.6.28/lib/obstack.h:330:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (__o->next_free, where, __len); \ data/id-utils-4.6.28/lib/obstack.h:340:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (__o->next_free, where, __len); \ data/id-utils-4.6.28/lib/obstack.h:468:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((h)->next_free, where, (h)->temp.i), \ data/id-utils-4.6.28/lib/obstack.h:476:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((h)->next_free, where, (h)->temp.i), \ data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/openat-priv.h:47:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file); data/id-utils-4.6.28/lib/openat-priv.h:47:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file); data/id-utils-4.6.28/lib/openat-proc.c:43:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * data/id-utils-4.6.28/lib/openat-proc.c:44:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file) data/id-utils-4.6.28/lib/openat-proc.c:76:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int proc_self_fd = open ("/proc/self/fd", data/id-utils-4.6.28/lib/openat-proc.c:87:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dotdot_buf[PROC_SELF_FD_DIR_SIZE_BOUND + sizeof "../fd" - 1]; data/id-utils-4.6.28/lib/openat-proc.c:112:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir[_MAX_PATH]; data/id-utils-4.6.28/lib/openat.c:223:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open (file, flags, mode); data/id-utils-4.6.28/lib/openat.c:226:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[OPENAT_BUFFER_SIZE]; data/id-utils-4.6.28/lib/openat.c:230:27: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open_result = open (proc_file, flags, mode); data/id-utils-4.6.28/lib/openat.c:267:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). err = open (file, flags, mode); data/id-utils-4.6.28/lib/openat.c:294:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open ("/", O_SEARCH); data/id-utils-4.6.28/lib/openat.c:298:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[OPENAT_BUFFER_SIZE]; data/id-utils-4.6.28/lib/opendir.c:61:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open (dir_name, O_RDONLY); data/id-utils-4.6.28/lib/opendir.c:77:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir_name_mask[MAX_PATH + 1 + 1 + 1]; data/id-utils-4.6.28/lib/opendir.c:150:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&dirp->entry, &entry, sizeof (WIN32_FIND_DATA)); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/lib/quotearg.c:842: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 slot0[256]; data/id-utils-4.6.28/lib/regcomp.c:312:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[MB_LEN_MAX]; data/id-utils-4.6.28/lib/regcomp.c:395:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/id-utils-4.6.28/lib/regcomp.c:545: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 (errbuf, msg, cpy_size); data/id-utils-4.6.28/lib/regcomp.c:3170:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char start_name_buf[BRACKET_NAME_BUF_SIZE]; data/id-utils-4.6.28/lib/regcomp.c:3171:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char end_name_buf[BRACKET_NAME_BUF_SIZE]; data/id-utils-4.6.28/lib/regcomp.c:3493:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char char_buf[2]; data/id-utils-4.6.28/lib/regex.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 *_Restrict_ __String, size_t __nmatch, data/id-utils-4.6.28/lib/regex_internal.c:214: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 buf[MB_LEN_MAX]; data/id-utils-4.6.28/lib/regex_internal.c:217: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 buf[64]; data/id-utils-4.6.28/lib/regex_internal.c:287: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[MB_LEN_MAX]; data/id-utils-4.6.28/lib/regex_internal.c:290: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[64]; data/id-utils-4.6.28/lib/regex_internal.c:331: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 (pstr->mbs + byte_idx, buf, mbclen); data/id-utils-4.6.28/lib/regex_internal.c:339: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 (pstr->mbs + byte_idx, data/id-utils-4.6.28/lib/regex_internal.c:400: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 (pstr->mbs + byte_idx, buf, mbclen); data/id-utils-4.6.28/lib/regex_internal.c:425: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 (pstr->mbs + byte_idx, buf, mbcdlen); data/id-utils-4.6.28/lib/regex_internal.c:444: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 (pstr->mbs + byte_idx, p, mbclen); data/id-utils-4.6.28/lib/regex_internal.c:447:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pstr->mbs + byte_idx, p, mbclen); data/id-utils-4.6.28/lib/regex_internal.c:739: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. unsigned char buf[6]; data/id-utils-4.6.28/lib/regex_internal.c:1039: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 (dest->elems, src->elems, src->nelem * sizeof (Idx)); data/id-utils-4.6.28/lib/regex_internal.c:1133: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 (dest->elems, dest->elems + sbase, delta * sizeof (Idx)); data/id-utils-4.6.28/lib/regex_internal.c:1177: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 (dest->elems + id, src1->elems + i1, data/id-utils-4.6.28/lib/regex_internal.c:1183:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest->elems + id, src2->elems + i2, data/id-utils-4.6.28/lib/regex_internal.c:1214: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 (dest->elems, src->elems, src->nelem * sizeof (Idx)); data/id-utils-4.6.28/lib/regex_internal.c:1235: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 (dest->elems + sbase, src->elems, (is + 1) * sizeof (Idx)); data/id-utils-4.6.28/lib/regex_internal.c:1263:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest->elems, dest->elems + sbase, data/id-utils-4.6.28/lib/regex_internal.h:758: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 (dest, src, sizeof (bitset_t)); data/id-utils-4.6.28/lib/regexec.c:344:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (__mempcpy (s, string1, length1), string2, length2); data/id-utils-4.6.28/lib/regexec.c:346:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (s, string1, length1); data/id-utils-4.6.28/lib/regexec.c:347:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (s + length1, string2, length2); data/id-utils-4.6.28/lib/regexec.c:1339: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 (fs->stack[num].regs, regs, sizeof (regmatch_t) * nregs); data/id-utils-4.6.28/lib/regexec.c:1351: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 (regs, fs->stack[num].regs, sizeof (regmatch_t) * nregs); data/id-utils-4.6.28/lib/regexec.c:1403: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 (prev_idx_match, pmatch, sizeof (regmatch_t) * nmatch); data/id-utils-4.6.28/lib/regexec.c:1511:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (prev_idx_match, pmatch, sizeof (regmatch_t) * nmatch); data/id-utils-4.6.28/lib/regexec.c:1522: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 (pmatch, prev_idx_match, sizeof (regmatch_t) * nmatch); data/id-utils-4.6.28/lib/save-cwd.c:66:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). cwd->desc = open (".", O_SEARCH | O_CLOEXEC); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/stat-w32.c:196:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&buf->st_ino, &id.FileId, sizeof (ino_t)); data/id-utils-4.6.28/lib/stat-w32.c:249:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fpath[PATH_MAX]; data/id-utils-4.6.28/lib/stat.c:172: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/id-utils-4.6.28/lib/stdio-impl.h:56:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _ubuf[3]; \ data/id-utils-4.6.28/lib/stdio-impl.h:57:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _nbuf[1]; \ data/id-utils-4.6.28/lib/stdio-impl.h:95:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _ubuf[3]; \ data/id-utils-4.6.28/lib/stdio-impl.h:96:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _nbuf[1]; \ data/id-utils-4.6.28/lib/stdio.in.h:301: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/id-utils-4.6.28/lib/stdio.in.h:302: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/id-utils-4.6.28/lib/stdio.in.h:304: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/id-utils-4.6.28/lib/stdio.in.h:307: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/id-utils-4.6.28/lib/stdio.in.h:310: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/id-utils-4.6.28/lib/stdio.in.h:314: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/id-utils-4.6.28/lib/stdio.in.h:317: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/id-utils-4.6.28/lib/stdio.in.h:319: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/id-utils-4.6.28/lib/stdio.in.h:1218: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/id-utils-4.6.28/lib/stdio.in.h:1220: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/id-utils-4.6.28/lib/stdio.in.h:1221: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/id-utils-4.6.28/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_SYS (tmpfile, FILE *, (void)); data/id-utils-4.6.28/lib/stdio.in.h:1226: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/id-utils-4.6.28/lib/stdio.in.h:1229:9: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # undef tmpfile data/id-utils-4.6.28/lib/stdio.in.h:1231: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/id-utils-4.6.28/lib/stdlib.in.h:425: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/id-utils-4.6.28/lib/stdlib.in.h:427: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/id-utils-4.6.28/lib/stdlib.in.h:428: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/id-utils-4.6.28/lib/stdlib.in.h:431: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/id-utils-4.6.28/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_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); data/id-utils-4.6.28/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_CXXALIASWARN (mkstemp); data/id-utils-4.6.28/lib/stdlib.in.h:437: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/id-utils-4.6.28/lib/stdlib.in.h:439: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/id-utils-4.6.28/lib/strdup.c:47:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (char *) memcpy (new, s, len); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/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/id-utils-4.6.28/lib/sys_stat.in.h:796: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/id-utils-4.6.28/lib/sys_stat.in.h:799:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, data/id-utils-4.6.28/lib/sys_stat.in.h:803: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/id-utils-4.6.28/lib/sys_stat.in.h:807: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/id-utils-4.6.28/lib/uniwidth/width.c:35:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char nonspacing_table_data[38*64] = { data/id-utils-4.6.28/lib/uniwidth/width.c:379:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const signed char nonspacing_table_ind[248] = { data/id-utils-4.6.28/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/id-utils-4.6.28/lib/vasnprintf.c:295:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pointbuf[5]; data/id-utils-4.6.28/lib/vasnprintf.c:296:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (pointbuf, "%#.0f", 1.0); data/id-utils-4.6.28/lib/vasnprintf.c:520:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/id-utils-4.6.28/lib/vasnprintf.c:656:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/id-utils-4.6.28/lib/vasnprintf.c:2666: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/id-utils-4.6.28/lib/vasnprintf.c:2711: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/id-utils-4.6.28/lib/vasnprintf.c:2761: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/id-utils-4.6.28/lib/vasnprintf.c:2774: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/id-utils-4.6.28/lib/vasnprintf.c:2842: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/id-utils-4.6.28/lib/vasnprintf.c:2855: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/id-utils-4.6.28/lib/vasnprintf.c:2871: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/id-utils-4.6.28/lib/vasnprintf.c:2893: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/id-utils-4.6.28/lib/vasnprintf.c:3174: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/id-utils-4.6.28/lib/vasnprintf.c:3180: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/id-utils-4.6.28/lib/vasnprintf.c:3182: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/id-utils-4.6.28/lib/vasnprintf.c:3325: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/id-utils-4.6.28/lib/vasnprintf.c:3331: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/id-utils-4.6.28/lib/vasnprintf.c:3333: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/id-utils-4.6.28/lib/vasnprintf.c:3400: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/id-utils-4.6.28/lib/vasnprintf.c:3785: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/id-utils-4.6.28/lib/vasnprintf.c:3791: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/id-utils-4.6.28/lib/vasnprintf.c:3793: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/id-utils-4.6.28/lib/vasnprintf.c:3966: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/id-utils-4.6.28/lib/vasnprintf.c:3972: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/id-utils-4.6.28/lib/vasnprintf.c:3974: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/id-utils-4.6.28/lib/vasnprintf.c:4264: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/id-utils-4.6.28/lib/vasnprintf.c:4457: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/id-utils-4.6.28/lib/vasnprintf.c:4583: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/id-utils-4.6.28/lib/vasnprintf.c:4791: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/id-utils-4.6.28/lib/vasnprintf.c:4812: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/id-utils-4.6.28/lib/vasnprintf.c:5526: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/id-utils-4.6.28/lib/vfprintf.c:38:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2000]; data/id-utils-4.6.28/lib/xmalloc.c:113:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy (xmalloc (s), p, s); data/id-utils-4.6.28/libidu/fnprint.c:45: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 file_name_buffer[BUFSIZ]; data/id-utils-4.6.28/libidu/idfile.c:45: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 file_name_buffer[BUFSIZ]; data/id-utils-4.6.28/libidu/idfile.c:79:7: [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, "../"); data/id-utils-4.6.28/libidu/idfile.h:39: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 idh_magic[2]; data/id-utils-4.6.28/libidu/idfile.h: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 fl_name[1]; data/id-utils-4.6.28/libidu/idread.c:62:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). idhp->idh_FILE = fopen (id_file_name, "rb"); data/id-utils-4.6.28/libidu/iduglobal.h:42:31: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define CLONE(o, t, n) ((t *) memcpy (xmalloc (sizeof(t) * (n)), (o), sizeof (t) * (n))) data/id-utils-4.6.28/libidu/scanners.c:287: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). map_fd = open (file_name, O_RDONLY); data/id-utils-4.6.28/libidu/scanners.c:816:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char ctype_asm[257] = data/id-utils-4.6.28/libidu/scanners.c:1077:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char ctype_text[257] = data/id-utils-4.6.28/libidu/scanners.c:1574:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char ctype_lisp[257] = data/id-utils-4.6.28/libidu/scanners.h:31: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 tok_hits_name[1]; data/id-utils-4.6.28/libidu/scanners.h:49:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *lg_argv[16]; data/id-utils-4.6.28/libidu/walker.c:883:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf_0, ".."); data/id-utils-4.6.28/src/lid.c:565: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 line[1<<020]; data/id-utils-4.6.28/src/lid.c:579: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. char buf[BUFSIZ]; data/id-utils-4.6.28/src/lid.c:593:21: [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). source_FILE = fopen (file_name, "r"); data/id-utils-4.6.28/src/lid.c:660: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 regexp_buf[BUFSIZ]; data/id-utils-4.6.28/src/lid.c:661: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 ed_arg_buffer[BUFSIZ]; data/id-utils-4.6.28/src/lid.c:827: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 pattern[BUFSIZ]; data/id-utils-4.6.28/src/lid.c:912: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[BUFSIZ]; data/id-utils-4.6.28/src/lid.c:963:4: [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 (pattern, "\\<"); data/id-utils-4.6.28/src/lid.c:967:2: [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 (pattern + length, "\\>"); data/id-utils-4.6.28/src/lid.c:1024: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[1024]; data/id-utils-4.6.28/src/lid.c:1122:23: [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). frequency_low = atoi (arg); data/id-utils-4.6.28/src/lid.c:1132:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). frequency_high = atoi (arg); data/id-utils-4.6.28/src/lid.c:1159: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 pat_buf[BUFSIZ]; data/id-utils-4.6.28/src/mkid.c:331: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 *cwd_only[2]; data/id-utils-4.6.28/src/mkid.c:528:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char offstr[INT_BUFSIZE_BOUND(off_t)]; data/id-utils-4.6.28/src/mkid.c:571:17: [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). source_FILE = fopen (flink->fl_name, "r"); data/id-utils-4.6.28/src/mkid.c:709:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). idhp->idh_FILE = fopen (idhp->idh_file_name, "w+b"); data/id-utils-4.6.28/src/xtokid.c:207: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 *cwd_only[2]; data/id-utils-4.6.28/src/xtokid.c:324:17: [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). source_FILE = fopen (flink->fl_name, "r"); data/id-utils-4.6.28/gnulib-tests/argmatch.c:90:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). arglen = strlen (arg); data/id-utils-4.6.28/gnulib-tests/argmatch.c:97: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 (arglist[i]) == arglen) data/id-utils-4.6.28/gnulib-tests/argmatch.h:181:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t arglen = strlen (arg); \ data/id-utils-4.6.28/gnulib-tests/argmatch.h:188: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 (g->args[i].arg) == arglen) \ data/id-utils-4.6.28/gnulib-tests/argmatch.h:261: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). col += strlen (g->docs[i].arg); \ data/id-utils-4.6.28/gnulib-tests/argmatch.h:266: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). col += (col == 4 ? 0 : 2) + strlen (g->args[j].arg); \ data/id-utils-4.6.28/gnulib-tests/argmatch.h:299: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). && screen_width < col + 2 + strlen (g->args[j].arg)) \ data/id-utils-4.6.28/gnulib-tests/localename.c:1406: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/id-utils-4.6.28/gnulib-tests/localename.c:2576: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/id-utils-4.6.28/gnulib-tests/localename.c:2578: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/id-utils-4.6.28/gnulib-tests/localename.c:2580: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/id-utils-4.6.28/gnulib-tests/localename.c:2616: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/id-utils-4.6.28/gnulib-tests/localename.c:2687: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/id-utils-4.6.28/gnulib-tests/mkdir.c:55:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (dir); data/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/putenv.c:75:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (name); data/id-utils-4.6.28/gnulib-tests/select.c:123:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). BOOL read, write, except; data/id-utils-4.6.28/gnulib-tests/select.c:230:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read && (rbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/tempname.c:131:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). plen = strlen (pfx); data/id-utils-4.6.28/gnulib-tests/tempname.c:159:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dlen = strlen (dir); data/id-utils-4.6.28/gnulib-tests/tempname.c:207:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (tmpl); data/id-utils-4.6.28/gnulib-tests/test-argv-iter.c:38: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 (*argv) + 1; data/id-utils-4.6.28/gnulib-tests/test-dirname.c:148: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). && (dirlen == strlen (dir) data/id-utils-4.6.28/gnulib-tests/test-dirname.c:149: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). || (dirlen + 1 == strlen (dir) && dir[dirlen] == '.')))) data/id-utils-4.6.28/gnulib-tests/test-dirname.c:155: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). t->dir, (unsigned long) strlen (t->dir)); data/id-utils-4.6.28/gnulib-tests/test-dirname.c:164: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). && (baselen == strlen (base) data/id-utils-4.6.28/gnulib-tests/test-dirname.c:165: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). || (baselen + 1 == strlen (base) data/id-utils-4.6.28/gnulib-tests/test-dirname.c:172:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). t->base, (unsigned long) strlen (t->base)); data/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-exclude.c:94: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 (s) > 3 && memcmp (s, "no-", 3) == 0) data/id-utils-4.6.28/gnulib-tests/test-fchdir.c:76: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 len = strlen (cwd) + 1; data/id-utils-4.6.28/gnulib-tests/test-fflush.c:99:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (fgetc (f) != '6') data/id-utils-4.6.28/gnulib-tests/test-fflush.c:140:7: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (fgetc (f) != '7') data/id-utils-4.6.28/gnulib-tests/test-fflush2.c:42:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fflush2.c:45:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fflush2.c:57:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fflush2.c:60:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fflush2.c:77:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fflush2.c:80:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fflush2.c:92:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fflush2.c:95:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-fpurge.c:92:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == EOF); data/id-utils-4.6.28/gnulib-tests/test-fpurge.c:103:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == 'h'); data/id-utils-4.6.28/gnulib-tests/test-fpurge.c:104:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == EOF); data/id-utils-4.6.28/gnulib-tests/test-freading.c:49:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == 'f'); data/id-utils-4.6.28/gnulib-tests/test-freading.c:53:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == 'b'); data/id-utils-4.6.28/gnulib-tests/test-freading.c:57:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == 'a'); data/id-utils-4.6.28/gnulib-tests/test-freading.c:72:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == 'f'); data/id-utils-4.6.28/gnulib-tests/test-freading.c:76:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == 'b'); data/id-utils-4.6.28/gnulib-tests/test-freading.c:99:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == 'f'); data/id-utils-4.6.28/gnulib-tests/test-freading.c:103:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == 'b'); data/id-utils-4.6.28/gnulib-tests/test-freading.c:107:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (fp) == 'x'); data/id-utils-4.6.28/gnulib-tests/test-freopen.c:38:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getchar () == EOF); data/id-utils-4.6.28/gnulib-tests/test-fseek.c:45:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fseek.c:49:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fseek.c:63:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (stdin) == EOF); data/id-utils-4.6.28/gnulib-tests/test-fseeko.c:49:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fseeko.c:53:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-fseeko.c:67:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (stdin) == EOF); data/id-utils-4.6.28/gnulib-tests/test-ftell.c:53:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-ftell.c:62:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-ftell.c:71:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-ftell.c:77:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-ftell3.c:52:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == 'h'); data/id-utils-4.6.28/gnulib-tests/test-ftell3.c:53:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == EOF); data/id-utils-4.6.28/gnulib-tests/test-ftello.c:55:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-ftello.c:66:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-ftello.c:77:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-ftello.c:84:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (stdin); data/id-utils-4.6.28/gnulib-tests/test-ftello3.c:52:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == 'h'); data/id-utils-4.6.28/gnulib-tests/test-ftello3.c:53:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (getc (fp) == EOF); data/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-getcwd.c:69: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). initial_cwd_len = strlen (cwd); data/id-utils-4.6.28/gnulib-tests/test-getcwd.c:152:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cwd_len = initial_cwd_len = strlen (cwd); data/id-utils-4.6.28/gnulib-tests/test-getcwd.c:227: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). if (c && strlen (c) != cwd_len) data/id-utils-4.6.28/gnulib-tests/test-hash.c:73: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 (str); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:53: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 (nl_langinfo (CODESET)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:60: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 (nl_langinfo (RADIXCHAR)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:61: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 (nl_langinfo (THOUSEP)) >= 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:63: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 (nl_langinfo (D_T_FMT)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:64: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 (nl_langinfo (D_FMT)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:65: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 (nl_langinfo (T_FMT)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:66: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 (nl_langinfo (T_FMT_AMPM)) >= (pass == 0 ? 1 : 0)); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:67: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 (nl_langinfo (AM_STR)) >= (pass == 0 ? 1 : 0)); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:68: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 (nl_langinfo (PM_STR)) >= (pass == 0 ? 1 : 0)); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:69: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 (nl_langinfo (DAY_1)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:70: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 (nl_langinfo (DAY_2)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:71: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 (nl_langinfo (DAY_3)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:72: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 (nl_langinfo (DAY_4)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:73: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 (nl_langinfo (DAY_5)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:74: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 (nl_langinfo (DAY_6)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:75: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 (nl_langinfo (DAY_7)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:76: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 (nl_langinfo (ABDAY_1)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:77: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 (nl_langinfo (ABDAY_2)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:78: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 (nl_langinfo (ABDAY_3)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:79: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 (nl_langinfo (ABDAY_4)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.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 (nl_langinfo (ABDAY_5)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:81: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 (nl_langinfo (ABDAY_6)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:82: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 (nl_langinfo (ABDAY_7)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:83: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 (nl_langinfo (MON_1)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:84: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 (nl_langinfo (MON_2)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:85: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 (nl_langinfo (MON_3)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:86: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 (nl_langinfo (MON_4)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:87: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 (nl_langinfo (MON_5)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:88: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 (nl_langinfo (MON_6)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:89: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 (nl_langinfo (MON_7)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:90: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 (nl_langinfo (MON_8)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:91: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 (nl_langinfo (MON_9)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:92: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 (nl_langinfo (MON_10)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:93: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 (nl_langinfo (MON_11)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:94: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 (nl_langinfo (MON_12)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:95: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 (nl_langinfo (ALTMON_1)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:96: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 (nl_langinfo (ALTMON_2)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:97: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 (nl_langinfo (ALTMON_3)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:98: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 (nl_langinfo (ALTMON_4)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:99: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 (nl_langinfo (ALTMON_5)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:100: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 (nl_langinfo (ALTMON_6)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:101: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 (nl_langinfo (ALTMON_7)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:102: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 (nl_langinfo (ALTMON_8)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:103: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 (nl_langinfo (ALTMON_9)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:104: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 (nl_langinfo (ALTMON_10)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:105: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 (nl_langinfo (ALTMON_11)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:106: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 (nl_langinfo (ALTMON_12)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:121: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 (nl_langinfo (ABMON_1)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:122: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 (nl_langinfo (ABMON_2)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:123: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 (nl_langinfo (ABMON_3)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:124: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 (nl_langinfo (ABMON_4)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:125: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 (nl_langinfo (ABMON_5)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:126: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 (nl_langinfo (ABMON_6)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:127: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 (nl_langinfo (ABMON_7)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:128: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 (nl_langinfo (ABMON_8)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:129: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 (nl_langinfo (ABMON_9)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:130: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 (nl_langinfo (ABMON_10)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:131: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 (nl_langinfo (ABMON_11)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:132: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 (nl_langinfo (ABMON_12)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:133: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 (nl_langinfo (ERA)) >= 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:134: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 (nl_langinfo (ERA_D_FMT)) >= 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:135: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 (nl_langinfo (ERA_D_T_FMT)) >= 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:136: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 (nl_langinfo (ERA_T_FMT)) >= 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:141:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (currency) >= 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:144: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 (currency) >= 1); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:148: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 (nl_langinfo (YESEXPR)) > 0); data/id-utils-4.6.28/gnulib-tests/test-nl_langinfo.c:149: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 (nl_langinfo (NOEXPR)) > 0); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-quotearg-simple.c:253:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *len = strlen (p); data/id-utils-4.6.28/gnulib-tests/test-quotearg-simple.c:348: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 s_len = strlen (str); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:67:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). compare (results->str1, strlen (results->str1), p, len); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:75:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). compare (results->str3, strlen (results->str3), p, len); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:77: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 (inputs.str4); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:79:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). compare (results->str4, strlen (results->str4), p, len); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:83:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). compare (results->str5, strlen (results->str5), p, len); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:85: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 (inputs.str6); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:87:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). compare (results->str6, strlen (results->str6), p, len); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:89: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 (inputs.str7); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:91:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). compare (results->str7, strlen (results->str7), p, len); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:93: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 (inputs.str8a); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:96: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). compare (results->str8a, strlen (results->str8a), p, len); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:98: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). compare (results->str8b, strlen (results->str8b), p, len); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:117:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *len = strlen (p); data/id-utils-4.6.28/gnulib-tests/test-quotearg.h:126:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *len = strlen (p); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/test-snprintf.c:68: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:48: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 (pattern) != strlen (string)) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:48:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (pattern) != strlen (string)) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:100: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:107: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:114: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:121: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:134: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:144: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:151: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:159: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:166: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:173: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:179:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:180: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:181:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:182: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:192: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:202: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:212: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:222: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:232: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:242: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:253: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:263: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:273: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:283: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:293: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:303: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:313: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:323: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:333: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:343: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:352: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:360:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) == 50 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:361:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:362:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:363: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:373: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:383: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:390: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:398: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:405: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:412: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:418:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:419: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:420:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:421: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:429:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:430: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:431:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:432: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:440:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:441: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:442:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:443: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:451: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:459: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:467: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:475: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:483: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:495: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:505: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:515: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:525: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:535: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:545: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:557: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:567: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:577: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:587: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:597: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:607: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:617: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:627: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:637: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:647: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:656: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:664:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) == 50 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:665:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:666:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:667: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:676: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:683: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:770:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:778: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:785: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:793: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:801: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:809: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:815:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:816: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:817:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:818: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:825: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:832: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:839: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:846: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:853: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:860: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:867: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:875: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:881:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) == 50 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:882:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:883:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:884: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:891: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:898: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:905: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:912: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:919: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1006:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1014: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1021: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1029: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1037: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1045: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1051:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1052: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1053:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1054: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1062:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1063: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1064:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1065: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1073:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1074: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1075:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1076: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1084: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1092: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1100: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1108: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1116: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1125: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1132: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1139: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1146: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1153: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1160: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1167: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1175: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1181:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) == 50 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1182:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1183:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1184: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1191: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1198: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1205:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1214: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1221: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1228: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1235: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1243: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1251: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1259: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1265:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1266: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). && strisnan (result, 0, strlen (result) - 3, 1) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1267:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1268: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1275: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1283: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1290: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1297: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1304: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1311: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1318: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1325: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1332: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1340: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1348: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1356: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1362:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1363: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). && strisnan (result, 0, strlen (result) - 3, 1) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1364:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1365: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1372: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1380: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1387: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1394: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1401: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1411: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1419: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1508: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). || (strlen (result) == strlen (expected) + 1 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1508:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). || (strlen (result) == strlen (expected) + 1 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1509:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && memcmp (result, expected, strlen (expected) - 2) == 0 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1510:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && result[strlen (expected) - 2] == '0' data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1511: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). && strcmp (result + strlen (expected) - 1, data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1512: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). expected + strlen (expected) - 2) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1514:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1523: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1531: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1540: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1548: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1556: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1562:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1563: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1564:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1565: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1573: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1581: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1589: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1597: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1605: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1613: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1621: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1629: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1637: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1643:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) == 50 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1644:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1645:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1646: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1654: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1662: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1670: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1678: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1686: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1775: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). || (strlen (result) == strlen (expected) + 1 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1775:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). || (strlen (result) == strlen (expected) + 1 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1776:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && memcmp (result, expected, strlen (expected) - 2) == 0 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1777:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && result[strlen (expected) - 2] == '0' data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1778: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). && strcmp (result + strlen (expected) - 1, data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1779: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). expected + strlen (expected) - 2) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1781:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1790: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1798: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1807: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1815: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1823: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1829:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1830: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1831:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1832: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1840:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1841: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1842:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1843: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1851:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1852: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1853:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1854: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1862: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1870: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1878: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1886: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1894: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1904: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1912: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1920: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1928: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1936: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1944: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1952: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1960: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1968: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1974:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) == 50 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1975:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1976:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1977: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1985: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:1993: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2001: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2010: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2018: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2107: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). || (expected[strlen (expected) - 4] == 'e' data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2108: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). && strlen (result) == strlen (expected) + 1 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2108: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). && strlen (result) == strlen (expected) + 1 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2109:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && memcmp (result, expected, strlen (expected) - 2) == 0 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2110:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && result[strlen (expected) - 2] == '0' data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2111: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). && strcmp (result + strlen (expected) - 1, data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2112: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). expected + strlen (expected) - 2) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2114:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2122: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2129: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2137: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2145: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2153: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2159:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2160: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2161:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2162: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2169: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2176: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2183: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2190: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2197: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2204: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2212: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2219: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2227: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2233:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) == 50 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2234:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2235:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2236: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2244: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2251: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2258: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2265: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2273: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2362: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). || (expected[strlen (expected) - 4] == 'e' data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2363: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). && strlen (result) == strlen (expected) + 1 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2363: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). && strlen (result) == strlen (expected) + 1 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2364:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && memcmp (result, expected, strlen (expected) - 2) == 0 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2365:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && result[strlen (expected) - 2] == '0' data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2366: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). && strcmp (result + strlen (expected) - 1, data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2367: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). expected + strlen (expected) - 2) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2369:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2377: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2384: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2392: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2400: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2408: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2414:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2415: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2416:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2417: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2425:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2426: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2427:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2428: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2436:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) >= 3 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2437: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). && strisnan (result, 0, strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2438:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2439: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2447: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2455: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2463: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2471: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2479: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2488: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2495: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2502: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2509: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2516: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2523: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2531: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2538: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2546: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2552:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (strlen (result) == 50 + 3 data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2553:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2554:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strcmp (result + strlen (result) - 3, " 33") == 0); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2555: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2563: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2570: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2577: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2587: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2597: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2605: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). ASSERT (result[strlen (result) - 1] == '9'); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2606: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2615: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2622: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2629: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2641: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2651: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2662: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2672: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2682: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2692: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2704: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2716: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2728: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2742: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). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2763:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-sprintf-posix.h:2783:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (retval == strlen (result)); data/id-utils-4.6.28/gnulib-tests/test-strcasestr.c:239: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 h_len = strlen (h); data/id-utils-4.6.28/gnulib-tests/test-strcasestr.c:243: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). for (i = 0; i < h_len - strlen (needle); i++) data/id-utils-4.6.28/gnulib-tests/test-strcasestr.c:247: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). memcpy (haystack + i, needle, strlen (needle) + 1); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/tmpdir.c:101:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). plen = strlen (pfx); data/id-utils-4.6.28/gnulib-tests/tmpdir.c:142:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dlen = strlen (dir); data/id-utils-4.6.28/gnulib-tests/tmpfile.c:99:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (xtemplate); data/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/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/id-utils-4.6.28/gnulib-tests/vma-iter.c:194:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int n = read (fd, rof->buffer, size); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:213:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read (fd, rof->buffer + rof->filled, size - rof->filled); data/id-utils-4.6.28/gnulib-tests/vma-iter.c:1213:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t nread = read (fd, ptr, remaining); data/id-utils-4.6.28/lib/basename-lgpl.c:63:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--) data/id-utils-4.6.28/lib/chdir-long.c:117:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (dir); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/exclude.c:341:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t patlen = strlen (pattern); data/id-utils-4.6.28/lib/exclude.c:488:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename = xmalloc (strlen (f) + 1); data/id-utils-4.6.28/lib/exclude.c:550: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 len = strlen (pattern); data/id-utils-4.6.28/lib/exclude.c:625:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc (fp)) != EOF) data/id-utils-4.6.28/lib/filenamecat-lgpl.c:52:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t baselen = strlen (base); data/id-utils-4.6.28/lib/fnmatch.c:164:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define STRLEN(S) strlen (S) data/id-utils-4.6.28/lib/fnmatch.c:194:22: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define STRLEN(S) wcslen (S) data/id-utils-4.6.28/lib/fnmatch.c:342:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return internal_fnmatch (pattern, string, string + strlen (string), data/id-utils-4.6.28/lib/fopen.c:70: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 (filename); data/id-utils-4.6.28/lib/fstatat.c:84:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (file); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/getcwd.c:45:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define _D_EXACT_NAMLEN(d) strlen ((d)->d_name) data/id-utils-4.6.28/lib/getdelim.c:39:41: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc_maybe_unlocked(fp) getc(fp) data/id-utils-4.6.28/lib/getdelim.c:45:41: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc_maybe_unlocked(fp) getc(fp) data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/localcharset.c:928:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pdot && 2 + strlen (pdot + 1) + 1 <= sizeof (buf)) data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/mbuiter.h:167: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). iter->cur.bytes = strlen (iter->cur.ptr); data/id-utils-4.6.28/lib/nl_langinfo.c:91: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). codesetlen = strlen (codeset); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/openat-proc.c:98:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t bufsize = PROC_SELF_FD_DIR_SIZE_BOUND + strlen (file); data/id-utils-4.6.28/lib/openat-proc.c:118:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dirlen = strlen (dir); data/id-utils-4.6.28/lib/openat-proc.c:119:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bufsize = dirlen + 1 + strlen (file) + 1; /* 1 for '/', 1 for null */ data/id-utils-4.6.28/lib/openat.c:107:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (filename); data/id-utils-4.6.28/lib/openat.c:150: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/id-utils-4.6.28/lib/opendir.c:103:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = dir_name_mask + strlen (dir_name_mask); data/id-utils-4.6.28/lib/opendir.c:139:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen (dir_name_mask) + 1); data/id-utils-4.6.28/lib/quotearg.c:370: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). quote_string_len = strlen (quote_string); data/id-utils-4.6.28/lib/quotearg.c:416: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). ? (argsize = strlen (arg)) : argsize)) data/id-utils-4.6.28/lib/quotearg.c:627: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). argsize = strlen (arg); data/id-utils-4.6.28/lib/regcomp.c:491: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). ret = re_compile_internal (preg, pattern, strlen (pattern), syntax); data/id-utils-4.6.28/lib/regcomp.c:535: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). msg_size = strlen (msg) + 1; /* Includes the null. */ data/id-utils-4.6.28/lib/regcomp.c:703:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ret = re_compile_internal (&re_comp_buf, s, strlen (s), re_syntax_options); data/id-utils-4.6.28/lib/regcomp.c:771:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dfa->re_str, pattern, length + 1); data/id-utils-4.6.28/lib/regcomp.c:2715:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && strlen ((char *) start_elem->opr.name) > 1) data/id-utils-4.6.28/lib/regcomp.c:2717: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). && strlen ((char *) end_elem->opr.name) > 1))) data/id-utils-4.6.28/lib/regcomp.c:2825:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t name_len = strlen ((const char *) name); data/id-utils-4.6.28/lib/regcomp.c:2906: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 sym_name_len = strlen ((char *) br_elem->opr.name); data/id-utils-4.6.28/lib/regcomp.c:3041: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 name_len = strlen ((const char *) name); data/id-utils-4.6.28/lib/regcomp.c:3551:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (__glibc_unlikely (strlen ((const char *) name) != 1)) data/id-utils-4.6.28/lib/regexec.c:210: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). length = strlen (string); data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/stat.c:126: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/id-utils-4.6.28/lib/stat.c:421: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/id-utils-4.6.28/lib/stdio.in.h:265:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef fgetc data/id-utils-4.6.28/lib/stdio.in.h:266:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define fgetc rpl_fgetc data/id-utils-4.6.28/lib/stdio.in.h:268: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/id-utils-4.6.28/lib/stdio.in.h:269: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/id-utils-4.6.28/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_SYS (fgetc, int, (FILE *stream)); data/id-utils-4.6.28/lib/stdio.in.h:274:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (fgetc); data/id-utils-4.6.28/lib/stdio.in.h:704:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/id-utils-4.6.28/lib/stdio.in.h:705:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc rpl_fgetc data/id-utils-4.6.28/lib/stdio.in.h:707: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/id-utils-4.6.28/lib/stdio.in.h:708: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/id-utils-4.6.28/lib/stdio.in.h:710: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/id-utils-4.6.28/lib/stdio.in.h:713:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getc); data/id-utils-4.6.28/lib/stdio.in.h:720:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/id-utils-4.6.28/lib/stdio.in.h:721:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar rpl_getchar data/id-utils-4.6.28/lib/stdio.in.h:723: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/id-utils-4.6.28/lib/stdio.in.h:724: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/id-utils-4.6.28/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_SYS (getchar, int, (void)); data/id-utils-4.6.28/lib/stdio.in.h:729:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getchar); data/id-utils-4.6.28/lib/strdup.c:41:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (s) + 1; data/id-utils-4.6.28/lib/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/id-utils-4.6.28/lib/string.in.h:411:11: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/id-utils-4.6.28/lib/string.in.h:412:12: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # define strncat rpl_strncat data/id-utils-4.6.28/lib/string.in.h:414:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_FUNCDECL_RPL (strncat, char *, data/id-utils-4.6.28/lib/string.in.h:417: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/id-utils-4.6.28/lib/string.in.h:420:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_SYS (strncat, char *, data/id-utils-4.6.28/lib/string.in.h:424: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/id-utils-4.6.28/lib/string.in.h:427: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/id-utils-4.6.28/lib/string.in.h:429: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/id-utils-4.6.28/lib/unistd.in.h:1346:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/id-utils-4.6.28/lib/unistd.in.h:1347:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read rpl_read data/id-utils-4.6.28/lib/unistd.in.h:1349: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/id-utils-4.6.28/lib/unistd.in.h:1351: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/id-utils-4.6.28/lib/unistd.in.h:1356: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/id-utils-4.6.28/lib/unistd.in.h:1358:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (read); data/id-utils-4.6.28/lib/unistd.in.h:1679: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/id-utils-4.6.28/lib/unistd.in.h:1680: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/id-utils-4.6.28/lib/unistd.in.h:1682: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/id-utils-4.6.28/lib/unistd.in.h:1683: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/id-utils-4.6.28/lib/unistd.in.h:1686: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/id-utils-4.6.28/lib/unistd.in.h:1690: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/id-utils-4.6.28/lib/unistd.in.h:1692: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/id-utils-4.6.28/lib/unistd.in.h:1694: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/id-utils-4.6.28/lib/unistd.in.h:1696: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/id-utils-4.6.28/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/id-utils-4.6.28/lib/vasnprintf.c:1735: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/id-utils-4.6.28/lib/vasnprintf.c:2565: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/id-utils-4.6.28/lib/vasnprintf.c:3652: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/id-utils-4.6.28/lib/vasnprintf.c:3712: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/id-utils-4.6.28/lib/vasnprintf.c:3748: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/id-utils-4.6.28/lib/vasnprintf.c:3848: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/id-utils-4.6.28/lib/vasnprintf.c:3884: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/id-utils-4.6.28/lib/vasnprintf.c:4114: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/id-utils-4.6.28/lib/vasnprintf.c:4171: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/id-utils-4.6.28/lib/vasnprintf.c:4206: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/id-utils-4.6.28/lib/vasnprintf.c:4319: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/id-utils-4.6.28/lib/vasnprintf.c:4354: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/id-utils-4.6.28/lib/wchar.in.h:646: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/id-utils-4.6.28/lib/wchar.in.h:648: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/id-utils-4.6.28/lib/wchar.in.h:650: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/id-utils-4.6.28/lib/wchar.in.h:653: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/id-utils-4.6.28/lib/wchar.in.h:655: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/id-utils-4.6.28/lib/wchar.in.h:719: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/id-utils-4.6.28/lib/wchar.in.h:723: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/id-utils-4.6.28/lib/wchar.in.h:727: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/id-utils-4.6.28/lib/wchar.in.h:730:9: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). # undef wcsncpy data/id-utils-4.6.28/lib/wchar.in.h:732: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/id-utils-4.6.28/lib/wchar.in.h:782: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/id-utils-4.6.28/lib/wchar.in.h:786: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/id-utils-4.6.28/lib/wchar.in.h:790: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/id-utils-4.6.28/lib/wchar.in.h:793: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/id-utils-4.6.28/lib/wchar.in.h:795: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/id-utils-4.6.28/lib/xmalloc.c:121:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return xmemdup (string, strlen (string) + 1); data/id-utils-4.6.28/libidu/idread.c:102:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (idhp->idh_FILE); data/id-utils-4.6.28/libidu/idread.c:109:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (idhp->idh_FILE); data/id-utils-4.6.28/libidu/idread.c:158:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc (in_FILE)) > 0 && buf < end) data/id-utils-4.6.28/libidu/idread.c:172:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *(unsigned long *)addr = getc (input_FILE); data/id-utils-4.6.28/libidu/idread.c:173:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *(unsigned long *)addr += getc (input_FILE) << 010; data/id-utils-4.6.28/libidu/idread.c:174:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *(unsigned long *)addr += getc (input_FILE) << 020; data/id-utils-4.6.28/libidu/idread.c:175:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *(unsigned long *)addr += getc (input_FILE) << 030; data/id-utils-4.6.28/libidu/idread.c:178:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *(unsigned long *)addr = getc (input_FILE); data/id-utils-4.6.28/libidu/idread.c:179:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *(unsigned long *)addr += getc (input_FILE) << 010; data/id-utils-4.6.28/libidu/idread.c:180:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *(unsigned long *)addr += getc (input_FILE) << 020; data/id-utils-4.6.28/libidu/idread.c:183:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *(unsigned short *)addr = getc (input_FILE); data/id-utils-4.6.28/libidu/idread.c:184:31: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *(unsigned short *)addr += getc (input_FILE) << 010; data/id-utils-4.6.28/libidu/idread.c:187:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *(unsigned char *)addr = getc (input_FILE); data/id-utils-4.6.28/libidu/idread.c:210: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). return *(unsigned char const *)&buf[strlen (buf) + 1]; data/id-utils-4.6.28/libidu/idread.c:216:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned char const *flags = (unsigned char const *)&buf[strlen (buf) + 1]; data/id-utils-4.6.28/libidu/idread.c:227:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned char const *flags = (unsigned char const *)&buf[strlen (buf) + 1]; data/id-utils-4.6.28/libidu/idread.c:258:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (input_FILE); data/id-utils-4.6.28/libidu/idread.c:263:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (input_FILE); data/id-utils-4.6.28/libidu/idread.c:278:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (getc (input_FILE) > 0); data/id-utils-4.6.28/libidu/idread.c:281:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (getc (input_FILE) > 0); data/id-utils-4.6.28/libidu/idwrite.c:58: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). name_length = strlen (flink->fl_name); data/id-utils-4.6.28/libidu/scanners.c:157:72: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_args->la_pattern = obstack_copy0 (&lang_args_obstack, lang_name, strlen(lang_name)+1); data/id-utils-4.6.28/libidu/scanners.c:299:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = read (map_fd, lang_map_buffer, st.st_size); data/id-utils-4.6.28/libidu/scanners.c:316:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char **argv_0 = xmalloc (sizeof(char *) * strlen (args_string) / 2); data/id-utils-4.6.28/libidu/scanners.c:546:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:554:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:556:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:561:28: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ISIDREST (c = getc (in_FILE))) \ data/id-utils-4.6.28/libidu/scanners.c:567:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:576:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:580:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:586:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:590:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:597:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ISIDREST (c = getc (in_FILE))) \ data/id-utils-4.6.28/libidu/scanners.c:604:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:609:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:621:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); \ data/id-utils-4.6.28/libidu/scanners.c:642:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:648:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:654:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *id++ = c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:658:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *id++ = c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:661:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *id++ = c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:674:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:685:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:689:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:692:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:696:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:701:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:705:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:711:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:715:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:716:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:719:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:746:25: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ISIDREST (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:752:25: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ISNUMBER (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:952:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:958:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:963:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:982:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((c = getc (in_FILE)) != '*') data/id-utils-4.6.28/libidu/scanners.c:984:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:988:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:989:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:992:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1006:59: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (ARGS->strip_underscore && c == '_' && !ISID1ST (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:1015:28: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ISIDREST (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:1021:28: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ISNUMBER (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:1204:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1206:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1217:28: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ISIDREST (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:1224:28: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ISNUMBER (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:1418:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1420:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1431:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); /* Skip next character */ data/id-utils-4.6.28/libidu/scanners.c:1484:28: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ISIDREST (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:1491:28: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ISNUMBER (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:1625:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1638:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1645:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1652:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1655:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1664:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1667:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1677:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1689:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1697:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1701:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (is_LETTER (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:1716:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (is_LETTER (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:1727:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1730:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (c = getc (in_FILE)) == '|') data/id-utils-4.6.28/libidu/scanners.c:1741:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1764:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (is_IDENT (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/scanners.c:1768:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (in_FILE); data/id-utils-4.6.28/libidu/scanners.c:1792:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (is_NUMBER (c = getc (in_FILE))) data/id-utils-4.6.28/libidu/walker.c:524:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). vector_0 = xnrealloc (vector_0, length + 2 + strlen (string) / 2, data/id-utils-4.6.28/libidu/walker.c:529: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). vector = vector_0 = xnmalloc (2 + strlen (string) / 2, sizeof *vector); data/id-utils-4.6.28/libidu/walker.c:688:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char **vector_0 = xmalloc (sizeof(char *) * (2 + strlen (string) / 2)); data/id-utils-4.6.28/libidu/walker.c:803:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sizeof (struct file_link) + strlen (dirent->d_name)); data/id-utils-4.6.28/libidu/walker.c:817:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sizeof (struct file_link) + strlen (name)); data/id-utils-4.6.28/libidu/walker.c:877:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (buf_0, "."); data/id-utils-4.6.28/libidu/walker.c:897:8: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (buf_0, "."); data/id-utils-4.6.28/libidu/walker.c:923: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). buf += strlen (buf); data/id-utils-4.6.28/libidu/walker.c:932: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). buf_0 = xrealloc (buf_0, (1 + strlen (buf_0))); data/id-utils-4.6.28/libidu/walker.c:990: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). end += strlen (end); data/id-utils-4.6.28/src/fid.c:216:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t file_name_length = strlen (file_name); data/id-utils-4.6.28/src/fid.c:234: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). member_length = strlen (file_name_buf); data/id-utils-4.6.28/src/fnid.c:177:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *pat = xmalloc (strlen (arg) + 2); data/id-utils-4.6.28/src/lid.c:700:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = (getchar () & 0177); data/id-utils-4.6.28/src/lid.c:875:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen (arg); data/id-utils-4.6.28/src/lid.c:950: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). int length = strlen (pattern_0); data/id-utils-4.6.28/src/lid.c:1083: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). arg_length = strlen (arg); data/id-utils-4.6.28/src/lid.c:1098:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (match > hits_buf_1 || strlen (hits_buf_1) > arg_length)) data/id-utils-4.6.28/src/lid.c:1212:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (*token == (c = getc (idh.idh_FILE)) && *token && c) data/id-utils-4.6.28/src/mkid.c:764: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). tok_size = strlen (TOKEN_NAME (token)) + 1; ANALYSIS SUMMARY: Hits = 1913 Lines analyzed = 130131 in approximately 3.77 seconds (34525 lines/second) Physical Source Lines of Code (SLOC) = 90541 Hits@level = [0] 294 [1] 817 [2] 708 [3] 135 [4] 231 [5] 22 Hits@level+ = [0+] 2207 [1+] 1913 [2+] 1096 [3+] 388 [4+] 253 [5+] 22 Hits/KSLOC@level+ = [0+] 24.3757 [1+] 21.1285 [2+] 12.105 [3+] 4.28535 [4+] 2.79431 [5+] 0.242984 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.