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/libprelude-5.2.0/bindings/perl/Prelude.cxx Examining data/libprelude-5.2.0/bindings/c++/prelude-error.cxx Examining data/libprelude-5.2.0/bindings/c++/idmef.cxx Examining data/libprelude-5.2.0/bindings/c++/idmef-class.cxx Examining data/libprelude-5.2.0/bindings/c++/idmef-criteria.cxx Examining data/libprelude-5.2.0/bindings/c++/idmef-path.cxx Examining data/libprelude-5.2.0/bindings/c++/idmef-time.cxx Examining data/libprelude-5.2.0/bindings/c++/idmef-value.cxx Examining data/libprelude-5.2.0/bindings/c++/prelude.cxx Examining data/libprelude-5.2.0/bindings/c++/prelude-client.cxx Examining data/libprelude-5.2.0/bindings/c++/prelude-client-easy.cxx Examining data/libprelude-5.2.0/bindings/c++/prelude-client-profile.cxx Examining data/libprelude-5.2.0/bindings/c++/prelude-connection.cxx Examining data/libprelude-5.2.0/bindings/c++/prelude-connection-pool.cxx Examining data/libprelude-5.2.0/bindings/c++/prelude-log.cxx Examining data/libprelude-5.2.0/bindings/lua/prelude.cxx Examining data/libprelude-5.2.0/bindings/python/_prelude.cxx Examining data/libprelude-5.2.0/bindings/ruby/Prelude.cxx Examining data/libprelude-5.2.0/libmissing/glthread/cond.h Examining data/libprelude-5.2.0/libmissing/glthread/cond.c Examining data/libprelude-5.2.0/libmissing/glthread/lock.h Examining data/libprelude-5.2.0/libmissing/glthread/lock.c Examining data/libprelude-5.2.0/libmissing/glthread/thread.h Examining data/libprelude-5.2.0/libmissing/glthread/thread.c Examining data/libprelude-5.2.0/libmissing/glthread/threadlib.c Examining data/libprelude-5.2.0/libmissing/glthread/tls.h Examining data/libprelude-5.2.0/libmissing/glthread/tls.c Examining data/libprelude-5.2.0/libmissing/alloca.c Examining data/libprelude-5.2.0/libmissing/c-ctype.h Examining data/libprelude-5.2.0/libmissing/c-ctype.c Examining data/libprelude-5.2.0/libmissing/fd-hook.c Examining data/libprelude-5.2.0/libmissing/freading.c Examining data/libprelude-5.2.0/libmissing/ftw_.h Examining data/libprelude-5.2.0/libmissing/gettext.h Examining data/libprelude-5.2.0/libmissing/hard-locale.c Examining data/libprelude-5.2.0/libmissing/localcharset.c Examining data/libprelude-5.2.0/libmissing/malloca.c Examining data/libprelude-5.2.0/libmissing/minmax.h Examining data/libprelude-5.2.0/libmissing/size_max.h Examining data/libprelude-5.2.0/libmissing/sockets.h Examining data/libprelude-5.2.0/libmissing/sockets.c Examining data/libprelude-5.2.0/libmissing/stat-time.c Examining data/libprelude-5.2.0/libmissing/sys_socket.c Examining data/libprelude-5.2.0/libmissing/unistd.c Examining data/libprelude-5.2.0/libmissing/wctype-h.c Examining data/libprelude-5.2.0/libmissing/xsize.h Examining data/libprelude-5.2.0/libmissing/xsize.c Examining data/libprelude-5.2.0/libmissing/accept.c Examining data/libprelude-5.2.0/libmissing/bind.c Examining data/libprelude-5.2.0/libmissing/btowc.c Examining data/libprelude-5.2.0/libmissing/close.c Examining data/libprelude-5.2.0/libmissing/connect.c Examining data/libprelude-5.2.0/libmissing/dup2.c Examining data/libprelude-5.2.0/libmissing/fclose.c Examining data/libprelude-5.2.0/libmissing/fflush.c Examining data/libprelude-5.2.0/libmissing/float.c Examining data/libprelude-5.2.0/libmissing/itold.c Examining data/libprelude-5.2.0/libmissing/fopen.c Examining data/libprelude-5.2.0/libmissing/fpurge.c Examining data/libprelude-5.2.0/libmissing/fseek.c Examining data/libprelude-5.2.0/libmissing/fseeko.c Examining data/libprelude-5.2.0/libmissing/fstat.c Examining data/libprelude-5.2.0/libmissing/stat-w32.c Examining data/libprelude-5.2.0/libmissing/ftell.c Examining data/libprelude-5.2.0/libmissing/ftello.c Examining data/libprelude-5.2.0/libmissing/ftw.c Examining data/libprelude-5.2.0/libmissing/gai_strerror.c Examining data/libprelude-5.2.0/libmissing/getaddrinfo.c Examining data/libprelude-5.2.0/libmissing/getdelim.c Examining data/libprelude-5.2.0/libmissing/gethostname.c Examining data/libprelude-5.2.0/libmissing/getline.c Examining data/libprelude-5.2.0/libmissing/getpass.c Examining data/libprelude-5.2.0/libmissing/getsockname.c Examining data/libprelude-5.2.0/libmissing/gettimeofday.c Examining data/libprelude-5.2.0/libmissing/inet_ntop.c Examining data/libprelude-5.2.0/libmissing/inet_pton.c Examining data/libprelude-5.2.0/libmissing/ioctl.c Examining data/libprelude-5.2.0/libmissing/listen.c Examining data/libprelude-5.2.0/libmissing/localeconv.c Examining data/libprelude-5.2.0/libmissing/localtime-buffer.c Examining data/libprelude-5.2.0/libmissing/lseek.c Examining data/libprelude-5.2.0/libmissing/malloc.c Examining data/libprelude-5.2.0/libmissing/mbrtowc.c Examining data/libprelude-5.2.0/libmissing/mbsinit.c Examining data/libprelude-5.2.0/libmissing/mbtowc.c Examining data/libprelude-5.2.0/libmissing/memchr.c Examining data/libprelude-5.2.0/libmissing/memmem.c Examining data/libprelude-5.2.0/libmissing/mktime.c Examining data/libprelude-5.2.0/libmissing/msvc-inval.c Examining data/libprelude-5.2.0/libmissing/msvc-nothrow.c Examining data/libprelude-5.2.0/libmissing/nl_langinfo.c Examining data/libprelude-5.2.0/libmissing/perror.c Examining data/libprelude-5.2.0/libmissing/poll.c Examining data/libprelude-5.2.0/libmissing/pthread_sigmask.c Examining data/libprelude-5.2.0/libmissing/raise.c Examining data/libprelude-5.2.0/libmissing/regcomp.c Examining data/libprelude-5.2.0/libmissing/regex.c Examining data/libprelude-5.2.0/libmissing/regex_internal.c Examining data/libprelude-5.2.0/libmissing/regexec.c Examining data/libprelude-5.2.0/libmissing/relocatable.c Examining data/libprelude-5.2.0/libmissing/select.c Examining data/libprelude-5.2.0/libmissing/setsockopt.c Examining data/libprelude-5.2.0/libmissing/sigprocmask.c Examining data/libprelude-5.2.0/libmissing/sleep.c Examining data/libprelude-5.2.0/libmissing/snprintf.c Examining data/libprelude-5.2.0/libmissing/socket.c Examining data/libprelude-5.2.0/libmissing/stat.c Examining data/libprelude-5.2.0/libmissing/strcasecmp.c Examining data/libprelude-5.2.0/libmissing/strncasecmp.c Examining data/libprelude-5.2.0/libmissing/strcasestr.c Examining data/libprelude-5.2.0/libmissing/strdup.c Examining data/libprelude-5.2.0/libmissing/strerror.c Examining data/libprelude-5.2.0/libmissing/strerror-override.c Examining data/libprelude-5.2.0/libmissing/strerror_r.c Examining data/libprelude-5.2.0/libmissing/strndup.c Examining data/libprelude-5.2.0/libmissing/strnlen.c Examining data/libprelude-5.2.0/libmissing/strptime.c Examining data/libprelude-5.2.0/libmissing/strsep.c Examining data/libprelude-5.2.0/libmissing/time_r.c Examining data/libprelude-5.2.0/libmissing/timegm.c Examining data/libprelude-5.2.0/libmissing/uname.c Examining data/libprelude-5.2.0/libmissing/asnprintf.c Examining data/libprelude-5.2.0/libmissing/printf-args.c Examining data/libprelude-5.2.0/libmissing/printf-parse.c Examining data/libprelude-5.2.0/libmissing/vasnprintf.c Examining data/libprelude-5.2.0/libmissing/vsnprintf.c Examining data/libprelude-5.2.0/libmissing/wcrtomb.c Examining data/libprelude-5.2.0/libmissing/write.c Examining data/libprelude-5.2.0/libmissing/w32sock.h Examining data/libprelude-5.2.0/libmissing/alloca.in.h Examining data/libprelude-5.2.0/libmissing/arpa_inet.in.h Examining data/libprelude-5.2.0/libmissing/assure.h Examining data/libprelude-5.2.0/libmissing/errno.in.h Examining data/libprelude-5.2.0/libmissing/fd-hook.h Examining data/libprelude-5.2.0/libmissing/stdio-impl.h Examining data/libprelude-5.2.0/libmissing/filename.h Examining data/libprelude-5.2.0/libmissing/float.in.h Examining data/libprelude-5.2.0/libmissing/freading.h Examining data/libprelude-5.2.0/libmissing/stat-w32.h Examining data/libprelude-5.2.0/libmissing/getpass.h Examining data/libprelude-5.2.0/libmissing/hard-locale.h Examining data/libprelude-5.2.0/libmissing/intprops.h Examining data/libprelude-5.2.0/libmissing/langinfo.in.h Examining data/libprelude-5.2.0/libmissing/limits.in.h Examining data/libprelude-5.2.0/libmissing/localcharset.h Examining data/libprelude-5.2.0/libmissing/locale.in.h Examining data/libprelude-5.2.0/libmissing/localtime-buffer.h Examining data/libprelude-5.2.0/libmissing/malloca.h Examining data/libprelude-5.2.0/libmissing/mbtowc-impl.h Examining data/libprelude-5.2.0/libmissing/str-two-way.h Examining data/libprelude-5.2.0/libmissing/mktime-internal.h Examining data/libprelude-5.2.0/libmissing/msvc-inval.h Examining data/libprelude-5.2.0/libmissing/msvc-nothrow.h Examining data/libprelude-5.2.0/libmissing/netdb.in.h Examining data/libprelude-5.2.0/libmissing/netinet_in.in.h Examining data/libprelude-5.2.0/libmissing/pathmax.h Examining data/libprelude-5.2.0/libmissing/poll.in.h Examining data/libprelude-5.2.0/libmissing/regex.h Examining data/libprelude-5.2.0/libmissing/regex_internal.h Examining data/libprelude-5.2.0/libmissing/relocatable.h Examining data/libprelude-5.2.0/libmissing/signal.in.h Examining data/libprelude-5.2.0/libmissing/_Noreturn.h Examining data/libprelude-5.2.0/libmissing/arg-nonnull.h Examining data/libprelude-5.2.0/libmissing/c++defs.h Examining data/libprelude-5.2.0/libmissing/unused-parameter.h Examining data/libprelude-5.2.0/libmissing/warn-on-use.h Examining data/libprelude-5.2.0/libmissing/stat-time.h Examining data/libprelude-5.2.0/libmissing/stdalign.in.h Examining data/libprelude-5.2.0/libmissing/stdbool.in.h Examining data/libprelude-5.2.0/libmissing/stddef.in.h Examining data/libprelude-5.2.0/libmissing/stdint.in.h Examining data/libprelude-5.2.0/libmissing/stdio.in.h Examining data/libprelude-5.2.0/libmissing/stdlib.in.h Examining data/libprelude-5.2.0/libmissing/streq.h Examining data/libprelude-5.2.0/libmissing/strerror-override.h Examining data/libprelude-5.2.0/libmissing/string.in.h Examining data/libprelude-5.2.0/libmissing/strings.in.h Examining data/libprelude-5.2.0/libmissing/sys_ioctl.in.h Examining data/libprelude-5.2.0/libmissing/sys_select.in.h Examining data/libprelude-5.2.0/libmissing/sys_socket.in.h Examining data/libprelude-5.2.0/libmissing/sys_stat.in.h Examining data/libprelude-5.2.0/libmissing/sys_time.in.h Examining data/libprelude-5.2.0/libmissing/tests/glthread/yield.h Examining data/libprelude-5.2.0/libmissing/tests/binary-io.h Examining data/libprelude-5.2.0/libmissing/tests/binary-io.c Examining data/libprelude-5.2.0/libmissing/tests/c-strcase.h Examining data/libprelude-5.2.0/libmissing/tests/c-strcasecmp.c Examining data/libprelude-5.2.0/libmissing/tests/c-strncasecmp.c Examining data/libprelude-5.2.0/libmissing/tests/cloexec.c Examining data/libprelude-5.2.0/libmissing/tests/localename.c Examining data/libprelude-5.2.0/libmissing/tests/sig-handler.c Examining data/libprelude-5.2.0/libmissing/tests/fcntl.c Examining data/libprelude-5.2.0/libmissing/tests/fdopen.c Examining data/libprelude-5.2.0/libmissing/tests/ftruncate.c Examining data/libprelude-5.2.0/libmissing/tests/getcwd-lgpl.c Examining data/libprelude-5.2.0/libmissing/tests/getdtablesize.c Examining data/libprelude-5.2.0/libmissing/tests/getpagesize.c Examining data/libprelude-5.2.0/libmissing/tests/isblank.c Examining data/libprelude-5.2.0/libmissing/tests/lstat.c Examining data/libprelude-5.2.0/libmissing/tests/nanosleep.c Examining data/libprelude-5.2.0/libmissing/tests/open.c Examining data/libprelude-5.2.0/libmissing/tests/pipe.c Examining data/libprelude-5.2.0/libmissing/tests/putenv.c Examining data/libprelude-5.2.0/libmissing/tests/setenv.c Examining data/libprelude-5.2.0/libmissing/tests/setlocale.c Examining data/libprelude-5.2.0/libmissing/tests/sigaction.c Examining data/libprelude-5.2.0/libmissing/tests/symlink.c Examining data/libprelude-5.2.0/libmissing/tests/unsetenv.c Examining data/libprelude-5.2.0/libmissing/tests/usleep.c Examining data/libprelude-5.2.0/libmissing/tests/wctob.c Examining data/libprelude-5.2.0/libmissing/tests/wctomb.c Examining data/libprelude-5.2.0/libmissing/tests/test-accept.c Examining data/libprelude-5.2.0/libmissing/tests/test-alloca-opt.c Examining data/libprelude-5.2.0/libmissing/tests/test-arpa_inet.c Examining data/libprelude-5.2.0/libmissing/tests/test-binary-io.c Examining data/libprelude-5.2.0/libmissing/tests/test-bind.c Examining data/libprelude-5.2.0/libmissing/tests/test-btowc.c Examining data/libprelude-5.2.0/libmissing/tests/test-c-ctype.c Examining data/libprelude-5.2.0/libmissing/tests/test-c-strcasecmp.c Examining data/libprelude-5.2.0/libmissing/tests/test-c-strncasecmp.c Examining data/libprelude-5.2.0/libmissing/tests/test-cloexec.c Examining data/libprelude-5.2.0/libmissing/tests/test-close.c Examining data/libprelude-5.2.0/libmissing/tests/test-cond.c Examining data/libprelude-5.2.0/libmissing/tests/test-connect.c Examining data/libprelude-5.2.0/libmissing/tests/test-ctype.c Examining data/libprelude-5.2.0/libmissing/tests/test-dup2.c Examining data/libprelude-5.2.0/libmissing/tests/test-environ.c Examining data/libprelude-5.2.0/libmissing/tests/test-errno.c Examining data/libprelude-5.2.0/libmissing/tests/test-fclose.c Examining data/libprelude-5.2.0/libmissing/tests/test-fcntl.c Examining data/libprelude-5.2.0/libmissing/tests/test-fcntl-h.c Examining data/libprelude-5.2.0/libmissing/tests/test-fdopen.c Examining data/libprelude-5.2.0/libmissing/tests/test-fflush.c Examining data/libprelude-5.2.0/libmissing/tests/test-fflush2.c Examining data/libprelude-5.2.0/libmissing/tests/test-fgetc.c Examining data/libprelude-5.2.0/libmissing/tests/test-float.c Examining data/libprelude-5.2.0/libmissing/tests/test-fopen.c Examining data/libprelude-5.2.0/libmissing/tests/test-fpurge.c Examining data/libprelude-5.2.0/libmissing/tests/test-fputc.c Examining data/libprelude-5.2.0/libmissing/tests/test-fread.c Examining data/libprelude-5.2.0/libmissing/tests/test-freading.c Examining data/libprelude-5.2.0/libmissing/tests/test-fseek.c Examining data/libprelude-5.2.0/libmissing/tests/test-fseeko.c Examining data/libprelude-5.2.0/libmissing/tests/test-fseeko3.c Examining data/libprelude-5.2.0/libmissing/tests/test-fseeko4.c Examining data/libprelude-5.2.0/libmissing/tests/test-fstat.c Examining data/libprelude-5.2.0/libmissing/tests/test-ftell.c Examining data/libprelude-5.2.0/libmissing/tests/test-ftell3.c Examining data/libprelude-5.2.0/libmissing/tests/test-ftello.c Examining data/libprelude-5.2.0/libmissing/tests/test-ftello3.c Examining data/libprelude-5.2.0/libmissing/tests/test-ftello4.c Examining data/libprelude-5.2.0/libmissing/tests/test-ftruncate.c Examining data/libprelude-5.2.0/libmissing/tests/test-fwrite.c Examining data/libprelude-5.2.0/libmissing/tests/test-getaddrinfo.c Examining data/libprelude-5.2.0/libmissing/tests/test-getcwd-lgpl.c Examining data/libprelude-5.2.0/libmissing/tests/test-getdelim.c Examining data/libprelude-5.2.0/libmissing/tests/test-getdtablesize.c Examining data/libprelude-5.2.0/libmissing/tests/test-gethostname.c Examining data/libprelude-5.2.0/libmissing/tests/test-getline.c Examining data/libprelude-5.2.0/libmissing/tests/test-getsockname.c Examining data/libprelude-5.2.0/libmissing/tests/test-gettimeofday.c Examining data/libprelude-5.2.0/libmissing/tests/test-ignore-value.c Examining data/libprelude-5.2.0/libmissing/tests/test-inet_ntop.c Examining data/libprelude-5.2.0/libmissing/tests/test-inet_pton.c Examining data/libprelude-5.2.0/libmissing/tests/test-intprops.c Examining data/libprelude-5.2.0/libmissing/tests/test-inttypes.c Examining data/libprelude-5.2.0/libmissing/tests/test-ioctl.c Examining data/libprelude-5.2.0/libmissing/tests/test-isblank.c Examining data/libprelude-5.2.0/libmissing/tests/test-langinfo.c Examining data/libprelude-5.2.0/libmissing/tests/test-limits-h.c Examining data/libprelude-5.2.0/libmissing/tests/test-listen.c Examining data/libprelude-5.2.0/libmissing/tests/test-localcharset.c Examining data/libprelude-5.2.0/libmissing/tests/test-locale.c Examining data/libprelude-5.2.0/libmissing/tests/test-localeconv.c Examining data/libprelude-5.2.0/libmissing/tests/test-localename.c Examining data/libprelude-5.2.0/libmissing/tests/test-lock.c Examining data/libprelude-5.2.0/libmissing/tests/test-lseek.c Examining data/libprelude-5.2.0/libmissing/tests/test-lstat.c Examining data/libprelude-5.2.0/libmissing/tests/test-malloca.c Examining data/libprelude-5.2.0/libmissing/tests/test-mbrtowc.c Examining data/libprelude-5.2.0/libmissing/tests/test-mbrtowc-w32.c Examining data/libprelude-5.2.0/libmissing/tests/test-mbsinit.c Examining data/libprelude-5.2.0/libmissing/tests/test-memchr.c Examining data/libprelude-5.2.0/libmissing/tests/test-memmem.c Examining data/libprelude-5.2.0/libmissing/tests/test-nanosleep.c Examining data/libprelude-5.2.0/libmissing/tests/test-netdb.c Examining data/libprelude-5.2.0/libmissing/tests/test-netinet_in.c Examining data/libprelude-5.2.0/libmissing/tests/test-nl_langinfo.c Examining data/libprelude-5.2.0/libmissing/tests/test-once.c Examining data/libprelude-5.2.0/libmissing/tests/test-open.c Examining data/libprelude-5.2.0/libmissing/tests/test-pathmax.c Examining data/libprelude-5.2.0/libmissing/tests/test-perror.c Examining data/libprelude-5.2.0/libmissing/tests/test-perror2.c Examining data/libprelude-5.2.0/libmissing/tests/test-pipe.c Examining data/libprelude-5.2.0/libmissing/tests/test-poll-h.c Examining data/libprelude-5.2.0/libmissing/tests/test-pthread_sigmask1.c Examining data/libprelude-5.2.0/libmissing/tests/test-pthread_sigmask2.c Examining data/libprelude-5.2.0/libmissing/tests/test-raise.c Examining data/libprelude-5.2.0/libmissing/tests/test-regex.c Examining data/libprelude-5.2.0/libmissing/tests/test-select.c Examining data/libprelude-5.2.0/libmissing/tests/test-select-fd.c Examining data/libprelude-5.2.0/libmissing/tests/test-select-stdin.c Examining data/libprelude-5.2.0/libmissing/tests/test-setenv.c Examining data/libprelude-5.2.0/libmissing/tests/test-setlocale1.c Examining data/libprelude-5.2.0/libmissing/tests/test-setlocale2.c Examining data/libprelude-5.2.0/libmissing/tests/test-setsockopt.c Examining data/libprelude-5.2.0/libmissing/tests/test-sigaction.c Examining data/libprelude-5.2.0/libmissing/tests/test-signal-h.c Examining data/libprelude-5.2.0/libmissing/tests/test-sigprocmask.c Examining data/libprelude-5.2.0/libmissing/tests/test-sleep.c Examining data/libprelude-5.2.0/libmissing/tests/test-snprintf.c Examining data/libprelude-5.2.0/libmissing/tests/test-sockets.c Examining data/libprelude-5.2.0/libmissing/tests/test-stat.c Examining data/libprelude-5.2.0/libmissing/tests/test-stat-time.c Examining data/libprelude-5.2.0/libmissing/tests/test-stdalign.c Examining data/libprelude-5.2.0/libmissing/tests/test-stdbool.c Examining data/libprelude-5.2.0/libmissing/tests/test-stddef.c Examining data/libprelude-5.2.0/libmissing/tests/test-stdint.c Examining data/libprelude-5.2.0/libmissing/tests/test-stdio.c Examining data/libprelude-5.2.0/libmissing/tests/test-stdlib.c Examining data/libprelude-5.2.0/libmissing/tests/test-strcasestr.c Examining data/libprelude-5.2.0/libmissing/tests/test-strerror.c Examining data/libprelude-5.2.0/libmissing/tests/test-strerror_r.c Examining data/libprelude-5.2.0/libmissing/tests/nap.h Examining data/libprelude-5.2.0/libmissing/tests/test-string.c Examining data/libprelude-5.2.0/libmissing/tests/test-strings.c Examining data/libprelude-5.2.0/libmissing/tests/test-strnlen.c Examining data/libprelude-5.2.0/libmissing/tests/test-symlink.c Examining data/libprelude-5.2.0/libmissing/tests/test-sys_ioctl.c Examining data/libprelude-5.2.0/libmissing/tests/test-sys_select.c Examining data/libprelude-5.2.0/libmissing/tests/test-sys_socket.c Examining data/libprelude-5.2.0/libmissing/tests/test-sys_stat.c Examining data/libprelude-5.2.0/libmissing/tests/test-sys_time.c Examining data/libprelude-5.2.0/libmissing/tests/test-sys_types.c Examining data/libprelude-5.2.0/libmissing/tests/test-sys_uio.c Examining data/libprelude-5.2.0/libmissing/tests/test-sys_utsname.c Examining data/libprelude-5.2.0/libmissing/tests/test-thread_create.c Examining data/libprelude-5.2.0/libmissing/tests/test-thread_self.c Examining data/libprelude-5.2.0/libmissing/tests/test-time.c Examining data/libprelude-5.2.0/libmissing/tests/test-tls.c Examining data/libprelude-5.2.0/libmissing/tests/test-uname.c Examining data/libprelude-5.2.0/libmissing/tests/test-unistd.c Examining data/libprelude-5.2.0/libmissing/tests/test-unsetenv.c Examining data/libprelude-5.2.0/libmissing/tests/test-usleep.c Examining data/libprelude-5.2.0/libmissing/tests/test-vasnprintf.c Examining data/libprelude-5.2.0/libmissing/tests/test-verify.c Examining data/libprelude-5.2.0/libmissing/tests/test-verify-try.c Examining data/libprelude-5.2.0/libmissing/tests/test-vsnprintf.c Examining data/libprelude-5.2.0/libmissing/tests/test-wchar.c Examining data/libprelude-5.2.0/libmissing/tests/test-wcrtomb.c Examining data/libprelude-5.2.0/libmissing/tests/test-wcrtomb-w32.c Examining data/libprelude-5.2.0/libmissing/tests/test-wctype-h.c Examining data/libprelude-5.2.0/libmissing/tests/test-write.c Examining data/libprelude-5.2.0/libmissing/tests/signature.h Examining data/libprelude-5.2.0/libmissing/tests/macros.h Examining data/libprelude-5.2.0/libmissing/tests/cloexec.h Examining data/libprelude-5.2.0/libmissing/tests/ctype.in.h Examining data/libprelude-5.2.0/libmissing/tests/dosname.h Examining data/libprelude-5.2.0/libmissing/tests/fcntl.in.h Examining data/libprelude-5.2.0/libmissing/tests/flexmember.h Examining data/libprelude-5.2.0/libmissing/tests/test-fopen.h Examining data/libprelude-5.2.0/libmissing/tests/fpucw.h Examining data/libprelude-5.2.0/libmissing/tests/ignore-value.h Examining data/libprelude-5.2.0/libmissing/tests/inttypes.in.h Examining data/libprelude-5.2.0/libmissing/tests/localename.h Examining data/libprelude-5.2.0/libmissing/tests/test-lstat.h Examining data/libprelude-5.2.0/libmissing/tests/zerosize-ptr.h Examining data/libprelude-5.2.0/libmissing/tests/null-ptr.h Examining data/libprelude-5.2.0/libmissing/tests/test-open.h Examining data/libprelude-5.2.0/libmissing/tests/same-inode.h Examining data/libprelude-5.2.0/libmissing/tests/test-select.h Examining data/libprelude-5.2.0/libmissing/tests/sig-handler.h Examining data/libprelude-5.2.0/libmissing/tests/_Noreturn.h Examining data/libprelude-5.2.0/libmissing/tests/arg-nonnull.h Examining data/libprelude-5.2.0/libmissing/tests/c++defs.h Examining data/libprelude-5.2.0/libmissing/tests/unused-parameter.h Examining data/libprelude-5.2.0/libmissing/tests/warn-on-use.h Examining data/libprelude-5.2.0/libmissing/tests/test-stat.h Examining data/libprelude-5.2.0/libmissing/tests/test-sys_wait.h Examining data/libprelude-5.2.0/libmissing/tests/test-symlink.h Examining data/libprelude-5.2.0/libmissing/tests/wctomb-impl.h Examining data/libprelude-5.2.0/libmissing/tests/test-poll.c Examining data/libprelude-5.2.0/libmissing/tests/test-rwlock1.c Examining data/libprelude-5.2.0/libmissing/sys_types.in.h Examining data/libprelude-5.2.0/libmissing/sys_uio.in.h Examining data/libprelude-5.2.0/libmissing/sys_utsname.in.h Examining data/libprelude-5.2.0/libmissing/time.in.h Examining data/libprelude-5.2.0/libmissing/unistd.in.h Examining data/libprelude-5.2.0/libmissing/float+.h Examining data/libprelude-5.2.0/libmissing/printf-args.h Examining data/libprelude-5.2.0/libmissing/printf-parse.h Examining data/libprelude-5.2.0/libmissing/vasnprintf.h Examining data/libprelude-5.2.0/libmissing/verify.h Examining data/libprelude-5.2.0/libmissing/wchar.in.h Examining data/libprelude-5.2.0/libmissing/wctype.in.h Examining data/libprelude-5.2.0/libmissing/xalloc-oversized.h Examining data/libprelude-5.2.0/prelude-config.h Examining data/libprelude-5.2.0/libltdl/libltdl/lt_system.h Examining data/libprelude-5.2.0/libltdl/libltdl/lt_error.h Examining data/libprelude-5.2.0/libltdl/libltdl/lt_dlloader.h Examining data/libprelude-5.2.0/libltdl/libltdl/lt__alloc.h Examining data/libprelude-5.2.0/libltdl/libltdl/lt__dirent.h Examining data/libprelude-5.2.0/libltdl/libltdl/lt__glibc.h Examining data/libprelude-5.2.0/libltdl/libltdl/lt__private.h Examining data/libprelude-5.2.0/libltdl/libltdl/lt__strl.h Examining data/libprelude-5.2.0/libltdl/libltdl/slist.h Examining data/libprelude-5.2.0/libltdl/loaders/dld_link.c Examining data/libprelude-5.2.0/libltdl/loaders/dlopen.c Examining data/libprelude-5.2.0/libltdl/loaders/dyld.c Examining data/libprelude-5.2.0/libltdl/loaders/preopen.c Examining data/libprelude-5.2.0/libltdl/loaders/load_add_on.c Examining data/libprelude-5.2.0/libltdl/loaders/loadlibrary.c Examining data/libprelude-5.2.0/libltdl/loaders/shl_load.c Examining data/libprelude-5.2.0/libltdl/ltdl.h Examining data/libprelude-5.2.0/libltdl/lt__alloc.c Examining data/libprelude-5.2.0/libltdl/lt_dlloader.c Examining data/libprelude-5.2.0/libltdl/lt_error.c Examining data/libprelude-5.2.0/libltdl/ltdl.c Examining data/libprelude-5.2.0/libltdl/slist.c Examining data/libprelude-5.2.0/libltdl/lt__dirent.c Examining data/libprelude-5.2.0/libltdl/lt__strl.c Examining data/libprelude-5.2.0/libltdl/argz_.h Examining data/libprelude-5.2.0/libltdl/argz.c Examining data/libprelude-5.2.0/src/idmef-criteria-string.yac.h Examining data/libprelude-5.2.0/src/idmef-criteria-string.yac.c Examining data/libprelude-5.2.0/src/idmef-criteria-string.lex.c Examining data/libprelude-5.2.0/src/common.c Examining data/libprelude-5.2.0/src/config-engine.c Examining data/libprelude-5.2.0/src/daemonize.c Examining data/libprelude-5.2.0/src/ntp.c Examining data/libprelude-5.2.0/src/tls-auth.c Examining data/libprelude-5.2.0/src/tls-util.c Examining data/libprelude-5.2.0/src/variable.c Examining data/libprelude-5.2.0/src/prelude.c Examining data/libprelude-5.2.0/src/prelude-async.c Examining data/libprelude-5.2.0/src/prelude-client.c Examining data/libprelude-5.2.0/src/prelude-client-profile.c Examining data/libprelude-5.2.0/src/prelude-connection.c Examining data/libprelude-5.2.0/src/prelude-connection-pool.c Examining data/libprelude-5.2.0/src/prelude-failover.c Examining data/libprelude-5.2.0/src/prelude-hash.c Examining data/libprelude-5.2.0/src/prelude-ident.c Examining data/libprelude-5.2.0/src/prelude-io.c Examining data/libprelude-5.2.0/src/prelude-log.c Examining data/libprelude-5.2.0/src/prelude-msg.c Examining data/libprelude-5.2.0/src/prelude-msgbuf.c Examining data/libprelude-5.2.0/src/prelude-option.c Examining data/libprelude-5.2.0/src/prelude-option-wide.c Examining data/libprelude-5.2.0/src/prelude-plugin.c Examining data/libprelude-5.2.0/src/prelude-string.c Examining data/libprelude-5.2.0/src/prelude-timer.c Examining data/libprelude-5.2.0/src/prelude-thread.c Examining data/libprelude-5.2.0/src/idmef-additional-data.c Examining data/libprelude-5.2.0/src/idmef-class.c Examining data/libprelude-5.2.0/src/idmef-criteria.c Examining data/libprelude-5.2.0/src/idmef-data.c Examining data/libprelude-5.2.0/src/idmef-message-helpers.c Examining data/libprelude-5.2.0/src/idmef-message-read-json.c Examining data/libprelude-5.2.0/src/idmef-message-print.c Examining data/libprelude-5.2.0/src/idmef-message-print-json.c Examining data/libprelude-5.2.0/src/idmef-message-read.c Examining data/libprelude-5.2.0/src/idmef-message-write.c Examining data/libprelude-5.2.0/src/idmef-object.c Examining data/libprelude-5.2.0/src/idmef-path.c Examining data/libprelude-5.2.0/src/idmef-time.c Examining data/libprelude-5.2.0/src/idmef-tree-wrap.c Examining data/libprelude-5.2.0/src/idmef-value.c Examining data/libprelude-5.2.0/src/idmef-value-type.c Examining data/libprelude-5.2.0/src/libprelude-error/prelude-error.h Examining data/libprelude-5.2.0/src/libprelude-error/prelude-error.c Examining data/libprelude-5.2.0/src/libprelude-error/strsource.c Examining data/libprelude-5.2.0/src/libprelude-error/strerror.c Examining data/libprelude-5.2.0/src/libprelude-error/mkerrcodes.c Examining data/libprelude-5.2.0/src/libprelude-error/err-sources.h Examining data/libprelude-5.2.0/src/libprelude-error/err-codes.h Examining data/libprelude-5.2.0/src/jsmn/jsmn.c Examining data/libprelude-5.2.0/src/jsmn/jsmn.h Examining data/libprelude-5.2.0/src/include/common.h Examining data/libprelude-5.2.0/src/include/daemonize.h Examining data/libprelude-5.2.0/src/include/idmef.h Examining data/libprelude-5.2.0/src/include/idmef-additional-data.h Examining data/libprelude-5.2.0/src/include/idmef-class.h Examining data/libprelude-5.2.0/src/include/idmef-criteria.h Examining data/libprelude-5.2.0/src/include/idmef-criterion-value.h Examining data/libprelude-5.2.0/src/include/idmef-data.h Examining data/libprelude-5.2.0/src/include/idmef-message-helpers.h Examining data/libprelude-5.2.0/src/include/idmef-message-id.h Examining data/libprelude-5.2.0/src/include/idmef-message-read.h Examining data/libprelude-5.2.0/src/include/idmef-message-print.h Examining data/libprelude-5.2.0/src/include/idmef-message-write.h Examining data/libprelude-5.2.0/src/include/idmef-message-print-json.h Examining data/libprelude-5.2.0/src/include/idmef-object.h Examining data/libprelude-5.2.0/src/include/idmef-path.h Examining data/libprelude-5.2.0/src/include/idmef-time.h Examining data/libprelude-5.2.0/src/include/idmef-tree-data.h Examining data/libprelude-5.2.0/src/include/idmef-tree-wrap.h Examining data/libprelude-5.2.0/src/include/idmef-value.h Examining data/libprelude-5.2.0/src/include/idmef-value-type.h Examining data/libprelude-5.2.0/src/include/prelude.h Examining data/libprelude-5.2.0/src/include/prelude-async.h Examining data/libprelude-5.2.0/src/include/prelude-extract.h Examining data/libprelude-5.2.0/src/include/prelude-hash.h Examining data/libprelude-5.2.0/src/include/prelude-linked-object.h Examining data/libprelude-5.2.0/src/include/prelude-list.h Examining data/libprelude-5.2.0/src/include/prelude-log.h Examining data/libprelude-5.2.0/src/include/prelude-client.h Examining data/libprelude-5.2.0/src/include/prelude-client-profile.h Examining data/libprelude-5.2.0/src/include/prelude-connection.h Examining data/libprelude-5.2.0/src/include/prelude-connection-pool.h Examining data/libprelude-5.2.0/src/include/prelude-failover.h Examining data/libprelude-5.2.0/src/include/prelude-ident.h Examining data/libprelude-5.2.0/src/include/prelude-io.h Examining data/libprelude-5.2.0/src/include/prelude-macros.h Examining data/libprelude-5.2.0/src/include/prelude-msg.h Examining data/libprelude-5.2.0/src/include/prelude-msgbuf.h Examining data/libprelude-5.2.0/src/include/prelude-message-id.h Examining data/libprelude-5.2.0/src/include/prelude-option.h Examining data/libprelude-5.2.0/src/include/prelude-option-wide.h Examining data/libprelude-5.2.0/src/include/prelude-plugin.h Examining data/libprelude-5.2.0/src/include/prelude-string.h Examining data/libprelude-5.2.0/src/include/prelude-timer.h Examining data/libprelude-5.2.0/src/include/prelude-thread.h Examining data/libprelude-5.2.0/src/include/config-engine.h Examining data/libprelude-5.2.0/src/include/idmef-object-prv.h Examining data/libprelude-5.2.0/src/include/libmissing.h Examining data/libprelude-5.2.0/src/include/ntp.h Examining data/libprelude-5.2.0/src/include/tls-auth.h Examining data/libprelude-5.2.0/src/include/tls-util.h Examining data/libprelude-5.2.0/src/include/variable.h Examining data/libprelude-5.2.0/src/idmef-criterion-value.c Examining data/libprelude-5.2.0/prelude-admin/tls-register.h Examining data/libprelude-5.2.0/prelude-admin/server.h Examining data/libprelude-5.2.0/prelude-admin/prelude-admin.c Examining data/libprelude-5.2.0/prelude-admin/server.c Examining data/libprelude-5.2.0/prelude-admin/tls-register.c Examining data/libprelude-5.2.0/tests/async-timer.c Examining data/libprelude-5.2.0/tests/idmef.c Examining data/libprelude-5.2.0/tests/idmef-criteria.c Examining data/libprelude-5.2.0/tests/idmef-message-helper.c Examining data/libprelude-5.2.0/tests/idmef-path.c Examining data/libprelude-5.2.0/tests/idmef-value.c Examining data/libprelude-5.2.0/tests/prelude-client.c Examining data/libprelude-5.2.0/tests/prelude-string.c Examining data/libprelude-5.2.0/tests/prelude-timer.c FINAL RESULTS: data/libprelude-5.2.0/libmissing/stdio.in.h:745:8: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. #undef gets data/libprelude-5.2.0/libmissing/stdio.in.h:747:18: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); data/libprelude-5.2.0/libmissing/sys_stat.in.h:507:19: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. # define lchmod chmod data/libprelude-5.2.0/libmissing/sys_stat.in.h:511:34: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. _GL_CXXALIAS_RPL_CAST_1 (lchmod, chmod, int, data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/unistd.in.h:263:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - " data/libprelude-5.2.0/libmissing/unistd.in.h:277:11: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/libprelude-5.2.0/libmissing/unistd.in.h:278:12: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # define chown rpl_chown data/libprelude-5.2.0/libmissing/unistd.in.h:280:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) data/libprelude-5.2.0/libmissing/unistd.in.h:282:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); data/libprelude-5.2.0/libmissing/unistd.in.h:285:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) data/libprelude-5.2.0/libmissing/unistd.in.h:288:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); data/libprelude-5.2.0/libmissing/unistd.in.h:290:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIASWARN (chown); data/libprelude-5.2.0/libmissing/unistd.in.h:292:9: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/libprelude-5.2.0/libmissing/unistd.in.h:294:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " data/libprelude-5.2.0/libmissing/unistd.in.h:1321:12: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # define readlink rpl_readlink data/libprelude-5.2.0/libmissing/unistd.in.h:1323:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_FUNCDECL_RPL (readlink, ssize_t, data/libprelude-5.2.0/libmissing/unistd.in.h:1326:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIAS_RPL (readlink, ssize_t, data/libprelude-5.2.0/libmissing/unistd.in.h:1330:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_FUNCDECL_SYS (readlink, ssize_t, data/libprelude-5.2.0/libmissing/unistd.in.h:1334:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIAS_SYS (readlink, ssize_t, data/libprelude-5.2.0/libmissing/unistd.in.h:1337:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIASWARN (readlink); data/libprelude-5.2.0/libmissing/unistd.in.h:1339:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # undef readlink data/libprelude-5.2.0/libmissing/unistd.in.h:1341:18: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_WARN_ON_USE (readlink, "readlink is unportable - " data/libprelude-5.2.0/prelude-admin/prelude-admin.c:75:10: [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(x, y, z) (0) data/libprelude-5.2.0/prelude-admin/prelude-admin.c:138:15: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. ret = chown(filename, uid, gid); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1026:15: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. ret = chown(dirname, prelude_client_profile_get_uid(profile), prelude_client_profile_get_gid(profile)); data/libprelude-5.2.0/bindings/lua/prelude.cxx:700: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(r,name); data/libprelude-5.2.0/bindings/lua/prelude.cxx:2841:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(out, in); data/libprelude-5.2.0/bindings/perl/Prelude.cxx:695: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(r,name); data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1291: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(r,SWIG_Perl_TypeProxyName(type)); data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1519: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. #ifdef access data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1520:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. #undef access data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1800: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. # ifndef snprintf data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1801: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. # define snprintf _snprintf data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1801: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/libprelude-5.2.0/bindings/python/_prelude.cxx:716: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(r,name); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:814: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(r,name); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:1520:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(klass_name, "TYPE%s", type->name); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:1577:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(klass_name, "TYPE%s", type->name); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:1727: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(r, type->name); data/libprelude-5.2.0/libltdl/libltdl/lt__private.h:117: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. void * system; /* system specific data */ data/libprelude-5.2.0/libltdl/loaders/loadlibrary.c:170: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(wpath, filename); data/libprelude-5.2.0/libltdl/ltdl.c:515:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (filename, "%.*s/%s", (int) dirname_len, dirname, dlname); data/libprelude-5.2.0/libltdl/ltdl.c:711: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 (filename, dir_name); data/libprelude-5.2.0/libltdl/ltdl.c:717:6: [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 (filename +lendir, base_name); data/libprelude-5.2.0/libltdl/ltdl.c:778: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. int notfound = access (filename, R_OK); data/libprelude-5.2.0/libltdl/ltdl.c:915:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (name, "lib%s", p+2); data/libprelude-5.2.0/libltdl/ltdl.c:1205:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(attempt, "%s%s", filename, ext); data/libprelude-5.2.0/libltdl/ltdl.c:1300:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (archive_name, "%s%s.%s", libprefix, name + 3, libext); data/libprelude-5.2.0/libltdl/ltdl.c:1304:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (archive_name, "%s.%s", name, libext); data/libprelude-5.2.0/libltdl/ltdl.c:1813:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (buf, dirnam); data/libprelude-5.2.0/libltdl/ltdl.c:2056: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(sym, handle->vtable->sym_prefix); data/libprelude-5.2.0/libltdl/ltdl.c:2057:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sym, handle->info.name); data/libprelude-5.2.0/libltdl/ltdl.c:2061: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(sym, handle->info.name); data/libprelude-5.2.0/libltdl/ltdl.c:2065:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sym, symbol); data/libprelude-5.2.0/libltdl/ltdl.c:2083: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(sym, handle->vtable->sym_prefix); data/libprelude-5.2.0/libltdl/ltdl.c:2084:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sym, symbol); data/libprelude-5.2.0/libltdl/ltdl.c:2088: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(sym, symbol); data/libprelude-5.2.0/libmissing/getpass.c:84:1: [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. getpass (const char *prompt) data/libprelude-5.2.0/libmissing/getpass.c:191:1: [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. getpass (const char *prompt) data/libprelude-5.2.0/libmissing/inet_ntop.c:140:10: [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). return strcpy (dst, tmp); data/libprelude-5.2.0/libmissing/inet_ntop.c:255:10: [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). return strcpy (dst, tmp); data/libprelude-5.2.0/libmissing/localcharset.c:778:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "CP%s", pdot + 1); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/relocatable.c:518:15: [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, curr_prefix); data/libprelude-5.2.0/libmissing/relocatable.c:534:15: [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 + curr_prefix_len, pathname_tail); data/libprelude-5.2.0/libmissing/relocatable.c:564:15: [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 + 2, pathname); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/stdio.in.h:304:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define fprintf rpl_fprintf data/libprelude-5.2.0/libmissing/stdio.in.h:308:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) data/libprelude-5.2.0/libmissing/stdio.in.h:312:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) data/libprelude-5.2.0/libmissing/stdio.in.h:316:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:318:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:320:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (fprintf); data/libprelude-5.2.0/libmissing/stdio.in.h:324:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef fprintf data/libprelude-5.2.0/libmissing/stdio.in.h:327:18: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " data/libprelude-5.2.0/libmissing/stdio.in.h:431:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef fscanf data/libprelude-5.2.0/libmissing/stdio.in.h:432:12: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define fscanf rpl_fscanf data/libprelude-5.2.0/libmissing/stdio.in.h:434:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (fscanf, int, (FILE *stream, const char *format, ...) data/libprelude-5.2.0/libmissing/stdio.in.h:437:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (fscanf, int, (FILE *stream, const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:439:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (fscanf, int, (FILE *stream, const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:441:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (fscanf); data/libprelude-5.2.0/libmissing/stdio.in.h:839:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef popen data/libprelude-5.2.0/libmissing/stdio.in.h:840:12: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # define popen rpl_popen data/libprelude-5.2.0/libmissing/stdio.in.h:842:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) data/libprelude-5.2.0/libmissing/stdio.in.h:844:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); data/libprelude-5.2.0/libmissing/stdio.in.h:847:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) data/libprelude-5.2.0/libmissing/stdio.in.h:850:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); data/libprelude-5.2.0/libmissing/stdio.in.h:852:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIASWARN (popen); data/libprelude-5.2.0/libmissing/stdio.in.h:854:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef popen data/libprelude-5.2.0/libmissing/stdio.in.h:856:18: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " data/libprelude-5.2.0/libmissing/stdio.in.h:867:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf __printf__ data/libprelude-5.2.0/libmissing/stdio.in.h:884:21: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:887:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf rpl_printf data/libprelude-5.2.0/libmissing/stdio.in.h:889:19: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (printf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:893:19: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (printf, int, (const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:897:19: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (printf, int, (const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:899:19: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (printf); data/libprelude-5.2.0/libmissing/stdio.in.h:903:10: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef printf data/libprelude-5.2.0/libmissing/stdio.in.h:906:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " data/libprelude-5.2.0/libmissing/stdio.in.h:1028:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/libprelude-5.2.0/libmissing/stdio.in.h:1030:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf __scanf__ data/libprelude-5.2.0/libmissing/stdio.in.h:1038:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:1041:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/libprelude-5.2.0/libmissing/stdio.in.h:1042:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf rpl_scanf data/libprelude-5.2.0/libmissing/stdio.in.h:1044:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...) data/libprelude-5.2.0/libmissing/stdio.in.h:1047:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:1050:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:1052:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (scanf); data/libprelude-5.2.0/libmissing/stdio.in.h:1058:12: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf rpl_snprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1060:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (snprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1064:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (snprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1068:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_SYS (snprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1073:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (snprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1076:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (snprintf); data/libprelude-5.2.0/libmissing/stdio.in.h:1078:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1080:18: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " data/libprelude-5.2.0/libmissing/stdio.in.h:1097:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define sprintf rpl_sprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1099:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...) data/libprelude-5.2.0/libmissing/stdio.in.h:1102:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:1104:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...)); data/libprelude-5.2.0/libmissing/stdio.in.h:1106:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (sprintf); data/libprelude-5.2.0/libmissing/stdio.in.h:1108:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef sprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1110:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " data/libprelude-5.2.0/libmissing/stdio.in.h:1216:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define vfprintf rpl_vfprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1220:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) data/libprelude-5.2.0/libmissing/stdio.in.h:1224:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) data/libprelude-5.2.0/libmissing/stdio.in.h:1228:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)); data/libprelude-5.2.0/libmissing/stdio.in.h:1233:24: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS_CAST (vfprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1236:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (vfprintf); data/libprelude-5.2.0/libmissing/stdio.in.h:1240:10: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef vfprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1243:18: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " data/libprelude-5.2.0/libmissing/stdio.in.h:1251:11: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vfscanf data/libprelude-5.2.0/libmissing/stdio.in.h:1252:12: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vfscanf rpl_vfscanf data/libprelude-5.2.0/libmissing/stdio.in.h:1254:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vfscanf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1258:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vfscanf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1261:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vfscanf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1264:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vfscanf); data/libprelude-5.2.0/libmissing/stdio.in.h:1271:12: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define vprintf rpl_vprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1275:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) data/libprelude-5.2.0/libmissing/stdio.in.h:1279:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) data/libprelude-5.2.0/libmissing/stdio.in.h:1283:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args)); data/libprelude-5.2.0/libmissing/stdio.in.h:1288:24: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args)); data/libprelude-5.2.0/libmissing/stdio.in.h:1290:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (vprintf); data/libprelude-5.2.0/libmissing/stdio.in.h:1294:10: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef vprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1297:18: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " data/libprelude-5.2.0/libmissing/stdio.in.h:1305:11: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vscanf data/libprelude-5.2.0/libmissing/stdio.in.h:1306:12: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vscanf rpl_vscanf data/libprelude-5.2.0/libmissing/stdio.in.h:1308:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vscanf, int, (const char *format, va_list args) data/libprelude-5.2.0/libmissing/stdio.in.h:1311:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vscanf, int, (const char *format, va_list args)); data/libprelude-5.2.0/libmissing/stdio.in.h:1313:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vscanf, int, (const char *format, va_list args)); data/libprelude-5.2.0/libmissing/stdio.in.h:1315:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vscanf); data/libprelude-5.2.0/libmissing/stdio.in.h:1321:12: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf rpl_vsnprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1323:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vsnprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1327:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vsnprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1331:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_SYS (vsnprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1336:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (vsnprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1339:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (vsnprintf); data/libprelude-5.2.0/libmissing/stdio.in.h:1341:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef vsnprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1343:18: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " data/libprelude-5.2.0/libmissing/stdio.in.h:1351:12: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define vsprintf rpl_vsprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1353:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (vsprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1357:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (vsprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1363:24: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS_CAST (vsprintf, int, data/libprelude-5.2.0/libmissing/stdio.in.h:1366:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (vsprintf); data/libprelude-5.2.0/libmissing/stdio.in.h:1368:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef vsprintf data/libprelude-5.2.0/libmissing/stdio.in.h:1370:18: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " data/libprelude-5.2.0/libmissing/strerror.c:33:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/libprelude-5.2.0/libmissing/strerror.c:59:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf, fmt, n); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/localename.c:1362: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/libprelude-5.2.0/libmissing/tests/localename.c:1386: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/libprelude-5.2.0/libmissing/tests/localename.c:1406: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/libprelude-5.2.0/libmissing/tests/localename.c:2585: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/libprelude-5.2.0/libmissing/tests/setlocale.c:709: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/libprelude-5.2.0/libmissing/tests/test-cond.c:47: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/libprelude-5.2.0/libmissing/tests/test-cond.c:49: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/libprelude-5.2.0/libmissing/tests/test-getaddrinfo.c:46: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/libprelude-5.2.0/libmissing/tests/test-getaddrinfo.c:48: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/libprelude-5.2.0/libmissing/tests/test-gethostname.c:47:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (buf, NOHOSTNAME); data/libprelude-5.2.0/libmissing/tests/test-lock.c:123: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/libprelude-5.2.0/libmissing/tests/test-lock.c:125: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-mbrtowc-w32.c:43: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-tls.c:58: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/libprelude-5.2.0/libmissing/tests/test-tls.c:60: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/libprelude-5.2.0/libmissing/tests/test-vsnprintf.c:24: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. SIGNATURE_CHECK (vsnprintf, int, (char *, size_t, char const *, va_list)); data/libprelude-5.2.0/libmissing/tests/test-vsnprintf.c:38: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. ret = vsnprintf (buf, size, format, args); data/libprelude-5.2.0/libmissing/tests/test-wcrtomb-w32.c:41: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/libprelude-5.2.0/libmissing/uname.c:117:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf->sysname, "MINGW32_%s-%u.%u", super_version, data/libprelude-5.2.0/libmissing/uname.c:121:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf->sysname, "Windows%s", super_version); data/libprelude-5.2.0/libmissing/uname.c:173:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf->release, "%s %u.%u", data/libprelude-5.2.0/libmissing/uname.c:178:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (buf->release, base); data/libprelude-5.2.0/libmissing/uname.c:190:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf->release, "Windows %s", super_version); data/libprelude-5.2.0/libmissing/uname.c:192:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (buf->version, version.szCSDVersion); data/libprelude-5.2.0/libmissing/unistd.in.h:252:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_WARN_ON_USE (access, "the access function is a security risk - " data/libprelude-5.2.0/libmissing/unistd.in.h:802:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_FUNCDECL_SYS (getlogin, char *, (void)); data/libprelude-5.2.0/libmissing/unistd.in.h:804:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIAS_SYS (getlogin, char *, (void)); data/libprelude-5.2.0/libmissing/unistd.in.h:805:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIASWARN (getlogin); data/libprelude-5.2.0/libmissing/unistd.in.h:807:9: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. # undef getlogin data/libprelude-5.2.0/libmissing/unistd.in.h:809:18: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_WARN_ON_USE (getlogin, "getlogin is unportable - " data/libprelude-5.2.0/libmissing/unistd.in.h:945:11: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # undef getpass data/libprelude-5.2.0/libmissing/unistd.in.h:946:12: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # define getpass rpl_getpass data/libprelude-5.2.0/libmissing/unistd.in.h:948:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_FUNCDECL_RPL (getpass, char *, (const char *prompt) data/libprelude-5.2.0/libmissing/unistd.in.h:950:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIAS_RPL (getpass, char *, (const char *prompt)); data/libprelude-5.2.0/libmissing/unistd.in.h:953:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_FUNCDECL_SYS (getpass, char *, (const char *prompt) data/libprelude-5.2.0/libmissing/unistd.in.h:956:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIAS_SYS (getpass, char *, (const char *prompt)); data/libprelude-5.2.0/libmissing/unistd.in.h:958:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIASWARN (getpass); data/libprelude-5.2.0/libmissing/unistd.in.h:960:9: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # undef getpass data/libprelude-5.2.0/libmissing/unistd.in.h:962:18: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_WARN_ON_USE (getpass, "getpass is unportable - " data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/vasnprintf.c:205:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/libprelude-5.2.0/libmissing/vasnprintf.c:4267:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/libprelude-5.2.0/libmissing/vasnprintf.c:4275:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/libprelude-5.2.0/libmissing/vasnprintf.c:4460:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/libprelude-5.2.0/libmissing/vasnprintf.c:4468:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/libprelude-5.2.0/libmissing/vasnprintf.c:4990:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/libprelude-5.2.0/libmissing/vasnprintf.c:4993:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/libprelude-5.2.0/libmissing/vasnprintf.c:4996:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/libprelude-5.2.0/libmissing/vsnprintf.c:39:1: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf (char *str, size_t size, const char *format, va_list args) data/libprelude-5.2.0/libmissing/wchar.in.h:607:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_FUNCDECL_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/libprelude-5.2.0/libmissing/wchar.in.h:609:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIAS_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/libprelude-5.2.0/libmissing/wchar.in.h:610:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIASWARN (wcscpy); data/libprelude-5.2.0/libmissing/wchar.in.h:612:9: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. # undef wcscpy data/libprelude-5.2.0/libmissing/wchar.in.h:614:18: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - " data/libprelude-5.2.0/libmissing/wchar.in.h:676:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/libprelude-5.2.0/libmissing/wchar.in.h:678:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src)); data/libprelude-5.2.0/libmissing/wchar.in.h:679:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcscat); data/libprelude-5.2.0/libmissing/wchar.in.h:681:9: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). # undef wcscat data/libprelude-5.2.0/libmissing/wchar.in.h:683:18: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcscat, "wcscat is unportable - " data/libprelude-5.2.0/prelude-admin/prelude-admin.c:722:15: [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. ret = access(filename, F_OK); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:775:25: [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. already_exist = access(filename, F_OK); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:797:24: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if ( ! sscanf(buf, "%" PRELUDE_SCNu64, ident) ) { data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1084:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(askbuf, sizeof(askbuf), ask, ap); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1090:25: [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. pass1 = getpass(str); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1095:25: [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. pass2 = getpass(str); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1196:14: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if ( access(buf, F_OK) < 0 ) { data/libprelude-5.2.0/prelude-admin/tls-register.c:343:15: [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. ret = snprintf(buf, sizeof(buf), "%" PRELUDE_PRIu64, analyzerid); data/libprelude-5.2.0/prelude-admin/tls-register.c:525:15: [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. ret = snprintf((char*) buf, *size, "%" PRELUDE_PRIu64, prelude_client_profile_get_analyzerid(cp)); data/libprelude-5.2.0/prelude-admin/tls-register.c:600:15: [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. ret = access(filename, F_OK); data/libprelude-5.2.0/prelude-admin/tls-register.c:901:15: [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. ret = access(filename, F_OK); data/libprelude-5.2.0/prelude-admin/tls-register.c:931:15: [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. ret = access(filename, F_OK); data/libprelude-5.2.0/prelude-admin/tls-register.c:968:15: [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. ret = access(crlfile, R_OK); data/libprelude-5.2.0/src/common.c:91:23: [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. ret = access(buf, F_OK); data/libprelude-5.2.0/src/common.c:361:15: [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. ret = access(pathname, F_OK); data/libprelude-5.2.0/src/idmef-criteria-string.yac.c:893:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/libprelude-5.2.0/src/idmef-message-print-json.c:51:15: [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. ret = snprintf(buf, sizeof(buf), "%" PRELUDE_PRIu64, value); data/libprelude-5.2.0/src/idmef-message-print-json.c:64:15: [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. ret = snprintf(buf, sizeof(buf), "%" PRELUDE_PRId64, value); data/libprelude-5.2.0/src/idmef-message-print.c:109:15: [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. len = snprintf(buf, sizeof(buf), "%" PRELUDE_PRIu64, i); data/libprelude-5.2.0/src/idmef-path.c:910:15: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = vsnprintf(buffer, sizeof(buffer), format, args); data/libprelude-5.2.0/src/include/prelude-macros.h:44: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. # define __scanf__ scanf data/libprelude-5.2.0/src/include/prelude-macros.h:45:22: [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/libprelude-5.2.0/src/include/tls-auth.h:31:77: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. int tls_auth_connection(prelude_client_profile_t *cp, prelude_io_t *io, int crypt, data/libprelude-5.2.0/src/libprelude-error/prelude-error.c:224:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, sizeof(buf), fmt, ap); data/libprelude-5.2.0/src/prelude-client-profile.c:131:14: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if ( access(filename, R_OK|X_OK) < 0 ) { data/libprelude-5.2.0/src/prelude-client-profile.c:151:15: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buf, "%" PRELUDE_PRIu64, &cp->analyzerid); data/libprelude-5.2.0/src/prelude-client.c:448: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. snprintf(buf, sizeof(buf), "%" PRELUDE_PRIu64, prelude_client_profile_get_analyzerid(client->profile)); data/libprelude-5.2.0/src/prelude-connection-pool.c:483:17: [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(name, sizeof(name), "0x%" PRELUDE_PRIx64, prelude_connection_get_peer_analyzerid(cnx->cnx)); data/libprelude-5.2.0/src/prelude-connection.c:147:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, sizeof(buf), fmt, ap); data/libprelude-5.2.0/src/prelude-connection.c:291:110: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. prelude_connection_permission_t reqperms, prelude_client_profile_t *cp, int crypt) data/libprelude-5.2.0/src/prelude-connection.c:296:48: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. ret = tls_auth_connection(cp, cnx->fd, crypt, &cnx->peer_analyzerid, &cnx->permission); data/libprelude-5.2.0/src/prelude-log.c:231:15: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = vsnprintf(buf + len, sizeof(buf) - len, fmt, ap); data/libprelude-5.2.0/src/prelude-option.c:131:17: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/libprelude-5.2.0/src/prelude-string.c:827:15: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. ret = vsnprintf(string->data.rwbuf + string->index, string->size - string->index, fmt, ap); data/libprelude-5.2.0/src/tls-auth.c:269:77: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. int tls_auth_connection(prelude_client_profile_t *cp, prelude_io_t *io, int crypt, data/libprelude-5.2.0/src/tls-auth.c:327:16: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. if ( ! crypt ) { data/libprelude-5.2.0/src/tls-auth.c:356:15: [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. ret = access(keyfile, F_OK); data/libprelude-5.2.0/src/tls-auth.c:362:15: [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. ret = access(certfile, F_OK); data/libprelude-5.2.0/src/tls-util.c:183:15: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buf, "%" PRELUDE_PRIu64, analyzerid); data/libprelude-5.2.0/libltdl/loaders/loadlibrary.c:199:14: [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. module = LoadLibrary (wpath); data/libprelude-5.2.0/libltdl/ltdl.c:1354: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. search_path = getenv (LTDL_SEARCHPATH_VAR); data/libprelude-5.2.0/libltdl/ltdl.c:1362: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. search_path = getenv (LT_MODULE_PATH_VAR); data/libprelude-5.2.0/libltdl/ltdl.c:1462: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. && !find_handle (getenv (LTDL_SEARCHPATH_VAR), base_name, data/libprelude-5.2.0/libltdl/ltdl.c:1465: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. && !find_handle (getenv (LT_MODULE_PATH_VAR), base_name, data/libprelude-5.2.0/libltdl/ltdl.c:1918: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. is_done = foreach_dirinpath (getenv(LTDL_SEARCHPATH_VAR), 0, data/libprelude-5.2.0/libltdl/ltdl.c:1925: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. is_done = foreach_dirinpath (getenv(LT_MODULE_PATH_VAR), 0, data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/glthread/cond.c:215:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&cond->lock); data/libprelude-5.2.0/libmissing/glthread/cond.c:238:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&cond->lock); data/libprelude-5.2.0/libmissing/glthread/cond.c:257:13: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&cond->lock); data/libprelude-5.2.0/libmissing/glthread/cond.c:309:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&cond->lock); data/libprelude-5.2.0/libmissing/glthread/cond.c:329:13: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&cond->lock); data/libprelude-5.2.0/libmissing/glthread/cond.c:379:13: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&cond->lock); data/libprelude-5.2.0/libmissing/glthread/cond.c:422:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&cond->lock); data/libprelude-5.2.0/libmissing/glthread/cond.c:439:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&cond->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:801:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:819:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:938:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:959:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:991:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:1015:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:1044:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:1059:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:1121:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:1143:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:1190:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&once_control->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:1191:11: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/libprelude-5.2.0/libmissing/glthread/lock.c:1210:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/libprelude-5.2.0/libmissing/glthread/thread.c:128:7: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&thread->handle_lock); data/libprelude-5.2.0/libmissing/glthread/thread.c:142: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/libprelude-5.2.0/libmissing/glthread/thread.c:167:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&thread->handle_lock); data/libprelude-5.2.0/libmissing/glthread/thread.c:186: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/libprelude-5.2.0/libmissing/localcharset.c:707:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/libprelude-5.2.0/libmissing/localcharset.c:710:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/libprelude-5.2.0/libmissing/localcharset.c:712:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/libprelude-5.2.0/libmissing/localcharset.c:803:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/libprelude-5.2.0/libmissing/localcharset.c:806:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/libprelude-5.2.0/libmissing/localcharset.c:808:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/libprelude-5.2.0/libmissing/localcharset.c:927:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/libprelude-5.2.0/libmissing/localcharset.c:930:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/libprelude-5.2.0/libmissing/localcharset.c:932:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/libprelude-5.2.0/libmissing/mktime.c:112:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *tz = getenv ("TZ"); data/libprelude-5.2.0/libmissing/relocatable.c:554:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *unixroot = getenv ("UNIXROOT"); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/stdlib.in.h:576: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/libprelude-5.2.0/libmissing/stdlib.in.h:578:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS (random, long, (void)); data/libprelude-5.2.0/libmissing/stdlib.in.h:579:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (random); data/libprelude-5.2.0/libmissing/stdlib.in.h:581: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/libprelude-5.2.0/libmissing/stdlib.in.h:583: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/libprelude-5.2.0/libmissing/stdlib.in.h:590: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/libprelude-5.2.0/libmissing/stdlib.in.h:592:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS (srandom, void, (unsigned int seed)); data/libprelude-5.2.0/libmissing/stdlib.in.h:593:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (srandom); data/libprelude-5.2.0/libmissing/stdlib.in.h:595: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/libprelude-5.2.0/libmissing/stdlib.in.h:597: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/libprelude-5.2.0/libmissing/stdlib.in.h:621: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/libprelude-5.2.0/libmissing/stdlib.in.h:623:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS (setstate, char *, (char *arg_state)); data/libprelude-5.2.0/libmissing/stdlib.in.h:624:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (setstate); data/libprelude-5.2.0/libmissing/stdlib.in.h:626: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/libprelude-5.2.0/libmissing/stdlib.in.h:628: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/libprelude-5.2.0/libmissing/stdlib.in.h:791: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/libprelude-5.2.0/libmissing/stdlib.in.h:793:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved) data/libprelude-5.2.0/libmissing/stdlib.in.h:795:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved)); data/libprelude-5.2.0/libmissing/stdlib.in.h:798:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved) data/libprelude-5.2.0/libmissing/stdlib.in.h:801:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved)); data/libprelude-5.2.0/libmissing/stdlib.in.h:803: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/libprelude-5.2.0/libmissing/stdlib.in.h:805: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/libprelude-5.2.0/libmissing/stdlib.in.h:807: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/libprelude-5.2.0/libmissing/tests/localename.c:1466: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/libprelude-5.2.0/libmissing/tests/localename.c:2863: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/libprelude-5.2.0/libmissing/tests/localename.c:2867: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/libprelude-5.2.0/libmissing/tests/localename.c:2871: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/prelude-admin/prelude-admin.c:1578:9: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand((unsigned int) getpid() * tv.tv_usec); data/libprelude-5.2.0/src/common.c:77:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *pathenv = strdup(getenv("PATH")), *old = pathenv; data/libprelude-5.2.0/src/prelude-ident.c:184:9: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand((getpid() << 16) ^ tv.tv_sec ^ tv.tv_usec ^ (long) new); data/libprelude-5.2.0/src/prelude.c:136:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv("LIBPRELUDE_DEBUG"); data/libprelude-5.2.0/src/prelude.c:140:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv("LIBPRELUDE_TLS_DEBUG"); data/libprelude-5.2.0/src/prelude.c:146:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv("LIBPRELUDE_LOGFILE"); data/libprelude-5.2.0/src/prelude.c:150:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv("LIBPRELUDE_PREFIX"); data/libprelude-5.2.0/src/prelude.c:154:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv("LIBPRELUDE_PLUGIN_UNLOAD"); data/libprelude-5.2.0/src/prelude.c:158:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv("LIBPRELUDE_ABORT"); data/libprelude-5.2.0/bindings/c++/prelude-client-profile.cxx:34: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[PATH_MAX]; \ data/libprelude-5.2.0/bindings/lua/prelude.cxx:651:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex[17] = "0123456789abcdef"; data/libprelude-5.2.0/bindings/lua/prelude.cxx:1057:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[1]; /* arbitrary amount of data */ data/libprelude-5.2.0/bindings/lua/prelude.cxx:2575: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(raw->data,ptr,size); /* copy the data */ data/libprelude-5.2.0/bindings/lua/prelude.cxx:2587:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr,raw->data,size); /* copy it */ data/libprelude-5.2.0/bindings/lua/prelude.cxx:2645: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. lua_pushstring(L,(char *) constants[i].pvalue); data/libprelude-5.2.0/bindings/lua/prelude.cxx:15245: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 *argv[1024]; data/libprelude-5.2.0/bindings/perl/Prelude.cxx:646:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex[17] = "0123456789abcdef"; data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1286: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[1024]; data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1510: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). #ifdef open data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1511:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #undef open data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1716:38: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size))); data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1815:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[256]; data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1816: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(temp, "%llu", value); data/libprelude-5.2.0/bindings/perl/Prelude.cxx:2288:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[256]; data/libprelude-5.2.0/bindings/perl/Prelude.cxx:2289: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(temp, "%lld", value); data/libprelude-5.2.0/bindings/perl/Prelude.cxx:18196: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. sv_setpv(sv, (const char *) swig_constants[i].pvalue); data/libprelude-5.2.0/bindings/python/_prelude.cxx:667:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex[17] = "0123456789abcdef"; data/libprelude-5.2.0/bindings/python/_prelude.cxx:829: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(newstr, cstr, len+1); data/libprelude-5.2.0/bindings/python/_prelude.cxx:1812: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[SWIG_BUFFER_SIZE]; data/libprelude-5.2.0/bindings/python/_prelude.cxx:1823: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[SWIG_BUFFER_SIZE]; data/libprelude-5.2.0/bindings/python/_prelude.cxx:1953: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(pack, ptr, size); data/libprelude-5.2.0/bindings/python/_prelude.cxx:1971:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, sobj->pack, size); data/libprelude-5.2.0/bindings/python/_prelude.cxx:2515:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mesg[256]; data/libprelude-5.2.0/bindings/python/_prelude.cxx:4744: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 msg[1024]; data/libprelude-5.2.0/bindings/python/_prelude.cxx:4745: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(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); data/libprelude-5.2.0/bindings/python/_prelude.cxx:4760: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 msg[1024]; data/libprelude-5.2.0/bindings/python/_prelude.cxx:4761: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(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); data/libprelude-5.2.0/bindings/python/_prelude.cxx:5100:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/libprelude-5.2.0/bindings/python/_prelude.cxx:5101:2: [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(msg, "in sequence element %d ", (int)_index); data/libprelude-5.2.0/bindings/python/_prelude.cxx:5362:38: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1))); data/libprelude-5.2.0/bindings/python/_prelude.cxx:5404:45: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1))); data/libprelude-5.2.0/bindings/python/_prelude.cxx:22025: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(gv->name, name, size); data/libprelude-5.2.0/bindings/python/_prelude.cxx:22106: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(buff, methods[i].ml_doc, ldoc); data/libprelude-5.2.0/bindings/python/_prelude.cxx:22108: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(buff, "swig_ptr: ", 10); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:765:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex[17] = "0123456789abcdef"; data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:1140: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[128]; data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:1153: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( buf, "%d of type ", argn-1 ); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:1722: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[1024]; data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:3798:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:3799:2: [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(msg, "in sequence element %d ", _index); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:4048:38: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size))); data/libprelude-5.2.0/libltdl/argz.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 (argz + *pargz_len, buf, buf_len); data/libprelude-5.2.0/libltdl/argz.c:166: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 (before, entry, entry_len); data/libprelude-5.2.0/libltdl/libltdl/lt__dirent.h:64: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[LT_FILENAME_MAX]; data/libprelude-5.2.0/libltdl/loaders/dyld.c:326: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 saveError[256] = "Symbol not found"; data/libprelude-5.2.0/libltdl/loaders/loadlibrary.c:139:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wpath[MAX_PATH]; data/libprelude-5.2.0/libltdl/lt__alloc.c:86:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy (newmem, mem, n); data/libprelude-5.2.0/libltdl/lt__dirent.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 file_spec[LT_FILENAME_MAX]; data/libprelude-5.2.0/libltdl/lt_error.c:35:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char error_strings[LT_ERROR_MAX][LT_ERROR_LEN_MAX + 1] = data/libprelude-5.2.0/libltdl/ltdl.c:749: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). if ((*pfile = fopen (filename, LT_READTEXT_MODE))) data/libprelude-5.2.0/libltdl/ltdl.c:1016: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(tmp, &str[1], (end - str) - 1); data/libprelude-5.2.0/libltdl/ltdl.c:1376: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). file = fopen (attempt, LT_READTEXT_MODE); data/libprelude-5.2.0/libltdl/ltdl.c:2009: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 lsym[LT_SYMBOL_LENGTH]; data/libprelude-5.2.0/libltdl/ltdl.c:2064:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(sym, "_LTX_"); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/fopen.c:86: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/ftw.c:69: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 filename[PATH_MAX]; data/libprelude-5.2.0/libmissing/getaddrinfo.c:258: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 (&sinp->sin6_addr, he->h_addr_list[0], sizeof sinp->sin6_addr); data/libprelude-5.2.0/libmissing/getaddrinfo.c:282: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 (&sinp->sin_addr, he->h_addr_list[0], sizeof sinp->sin_addr); data/libprelude-5.2.0/libmissing/getpass.c:99: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). tty = fopen ("/dev/tty", "w+"); data/libprelude-5.2.0/libmissing/getpass.c:193: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 getpassbuf[PASS_MAX + 1]; data/libprelude-5.2.0/libmissing/gettext.h:220:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/libprelude-5.2.0/libmissing/gettext.h:222:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libprelude-5.2.0/libmissing/gettext.h:231:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/libprelude-5.2.0/libmissing/gettext.h:233:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/libprelude-5.2.0/libmissing/gettext.h:268:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/libprelude-5.2.0/libmissing/gettext.h:270:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libprelude-5.2.0/libmissing/gettext.h:279:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/libprelude-5.2.0/libmissing/gettext.h:281:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/libprelude-5.2.0/libmissing/inet_ntop.c:127:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[sizeof "255.255.255.255"]; data/libprelude-5.2.0/libmissing/inet_ntop.c:130: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. len = sprintf (tmp, "%u.%u.%u.%u", src[0], src[1], src[2], src[3]); data/libprelude-5.2.0/libmissing/inet_ntop.c:161:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp; data/libprelude-5.2.0/libmissing/inet_ntop.c:234:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. int len = sprintf (tp, "%x", words[i]); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/localcharset.c:85:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char alias[11+1]; data/libprelude-5.2.0/libmissing/localcharset.c:86:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char canonical[11+1]; data/libprelude-5.2.0/libmissing/localcharset.c:438:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char locale[17+1]; data/libprelude-5.2.0/libmissing/localcharset.c:439:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char canonical[11+1]; data/libprelude-5.2.0/libmissing/localcharset.c:705:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/libprelude-5.2.0/libmissing/localcharset.c:731:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, dot, modifier - dot); data/libprelude-5.2.0/libmissing/localcharset.c:749:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/libprelude-5.2.0/libmissing/localcharset.c:760:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/libprelude-5.2.0/libmissing/localcharset.c:788:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/libprelude-5.2.0/libmissing/localcharset.c:795:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/libprelude-5.2.0/libmissing/localcharset.c:826:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, dot, modifier - dot); data/libprelude-5.2.0/libmissing/localcharset.c:844:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", cp[0]); data/libprelude-5.2.0/libmissing/mbrtowc.c:96:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char internal_state[4]; data/libprelude-5.2.0/libmissing/mbrtowc.c:120:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/libprelude-5.2.0/libmissing/mktime.c:623:38: [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). tm.tm_isdst = argc == 3 ? -1 : atoi (argv[3]); data/libprelude-5.2.0/libmissing/mktime.c:634:21: [2] (integer) atol: 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). time_t from = atol (argv[1]); data/libprelude-5.2.0/libmissing/mktime.c:635:19: [2] (integer) atol: 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). time_t by = atol (argv[2]); data/libprelude-5.2.0/libmissing/mktime.c:636:19: [2] (integer) atol: 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). time_t to = atol (argv[3]); data/libprelude-5.2.0/libmissing/nl_langinfo.c:37:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/libprelude-5.2.0/libmissing/nl_langinfo.c:61: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/libprelude-5.2.0/libmissing/nl_langinfo.c:78: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/libprelude-5.2.0/libmissing/nl_langinfo.c:79: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. codeset = memcpy (buf, "CP", 2); data/libprelude-5.2.0/libmissing/nl_langinfo.c:172: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 nlbuf[100]; data/libprelude-5.2.0/libmissing/nl_langinfo.c:234: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/libprelude-5.2.0/libmissing/nl_langinfo.c:250: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/libprelude-5.2.0/libmissing/nl_langinfo.c:272: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 *) months[item - MON_1]; data/libprelude-5.2.0/libmissing/nl_langinfo.c:293: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 - ALTMON_1]; data/libprelude-5.2.0/libmissing/nl_langinfo.c:315: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/poll.c:260: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 data[64]; data/libprelude-5.2.0/libmissing/poll.c:309: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 data[64]; data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/printf-parse.c:599:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, d->dir, d->count * sizeof (DIRECTIVE)); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/regcomp.c:318: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/libprelude-5.2.0/libmissing/regcomp.c:401:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/libprelude-5.2.0/libmissing/regcomp.c:554: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/libprelude-5.2.0/libmissing/regcomp.c:3177: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/libprelude-5.2.0/libmissing/regcomp.c:3178: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/libprelude-5.2.0/libmissing/regcomp.c:3500: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/regex_internal.c:213: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/libprelude-5.2.0/libmissing/regex_internal.c:216: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/libprelude-5.2.0/libmissing/regex_internal.c:285: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/libprelude-5.2.0/libmissing/regex_internal.c:288: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/libprelude-5.2.0/libmissing/regex_internal.c:329: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/libprelude-5.2.0/libmissing/regex_internal.c:337: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/libprelude-5.2.0/libmissing/regex_internal.c:398: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/libprelude-5.2.0/libmissing/regex_internal.c:423: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/libprelude-5.2.0/libmissing/regex_internal.c:442: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/libprelude-5.2.0/libmissing/regex_internal.c:445: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/libprelude-5.2.0/libmissing/regex_internal.c:738: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/regex_internal.h:804: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/libprelude-5.2.0/libmissing/regexec.c:345: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/libprelude-5.2.0/libmissing/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, string1, length1); data/libprelude-5.2.0/libmissing/regexec.c:348: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/libprelude-5.2.0/libmissing/regexec.c:1349: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/libprelude-5.2.0/libmissing/regexec.c:1361: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/libprelude-5.2.0/libmissing/regexec.c:1415: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/libprelude-5.2.0/libmissing/regexec.c:1523: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/libprelude-5.2.0/libmissing/regexec.c:1534: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/libprelude-5.2.0/libmissing/relocatable.c:142: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, orig_prefix_arg, orig_prefix_len + 1); data/libprelude-5.2.0/libmissing/relocatable.c:145: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, curr_prefix_arg, curr_prefix_len + 1); data/libprelude-5.2.0/libmissing/relocatable.c:227:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (q, curr_pathname, p - curr_pathname); data/libprelude-5.2.0/libmissing/relocatable.c:296: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 (curr_prefix, curr_installdir, curr_prefix_len); data/libprelude-5.2.0/libmissing/relocatable.c:330: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 location[MAX_PATH]; data/libprelude-5.2.0/libmissing/relocatable.c:356: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 location[CCHMAXPATH]; data/libprelude-5.2.0/libmissing/relocatable.c:399: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 ("/proc/self/maps", "r"); data/libprelude-5.2.0/libmissing/relocatable.c:533: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 (result, curr_prefix, curr_prefix_len); data/libprelude-5.2.0/libmissing/relocatable.c:563: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 (result, unixroot, 2); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/stat.c:168:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (malloca_rname, name, rlen); data/libprelude-5.2.0/libmissing/stdio-impl.h:51:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _ubuf[3]; \ data/libprelude-5.2.0/libmissing/stdio-impl.h:52:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _nbuf[1]; \ data/libprelude-5.2.0/libmissing/stdio-impl.h:85:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _ubuf[3]; \ data/libprelude-5.2.0/libmissing/stdio-impl.h:86:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _nbuf[1]; \ data/libprelude-5.2.0/libmissing/stdio.in.h:283:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef fopen data/libprelude-5.2.0/libmissing/stdio.in.h:284:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define fopen rpl_fopen data/libprelude-5.2.0/libmissing/stdio.in.h:286:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode) data/libprelude-5.2.0/libmissing/stdio.in.h:288:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode)); data/libprelude-5.2.0/libmissing/stdio.in.h:290:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode)); data/libprelude-5.2.0/libmissing/stdio.in.h:292:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIASWARN (fopen); data/libprelude-5.2.0/libmissing/stdio.in.h:294:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef fopen data/libprelude-5.2.0/libmissing/stdio.in.h:296:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " data/libprelude-5.2.0/libmissing/stdio.in.h:1118:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # define tmpfile rpl_tmpfile data/libprelude-5.2.0/libmissing/stdio.in.h:1120:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_FUNCDECL_RPL (tmpfile, FILE *, (void)); data/libprelude-5.2.0/libmissing/stdio.in.h:1121:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); data/libprelude-5.2.0/libmissing/stdio.in.h:1123:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); data/libprelude-5.2.0/libmissing/stdio.in.h:1125:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIASWARN (tmpfile); data/libprelude-5.2.0/libmissing/stdio.in.h:1127:9: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # undef tmpfile data/libprelude-5.2.0/libmissing/stdio.in.h:1129:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " data/libprelude-5.2.0/libmissing/stdlib.in.h:401: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/libprelude-5.2.0/libmissing/stdlib.in.h:403: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/libprelude-5.2.0/libmissing/stdlib.in.h:404:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); data/libprelude-5.2.0/libmissing/stdlib.in.h:407: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/libprelude-5.2.0/libmissing/stdlib.in.h:409: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/libprelude-5.2.0/libmissing/stdlib.in.h:411: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/libprelude-5.2.0/libmissing/stdlib.in.h:413: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/libprelude-5.2.0/libmissing/stdlib.in.h:415: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/strerror_r.c:138: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, msg, len + 1); data/libprelude-5.2.0/libmissing/strerror_r.c:143: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, msg, buflen - 1); data/libprelude-5.2.0/libmissing/strerror_r.c:201: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/libprelude-5.2.0/libmissing/strerror_r.c:228: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/libprelude-5.2.0/libmissing/strerror_r.c:247: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/sys_stat.in.h:788:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, data/libprelude-5.2.0/libmissing/sys_stat.in.h:791:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, data/libprelude-5.2.0/libmissing/sys_stat.in.h:795:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, data/libprelude-5.2.0/libmissing/sys_stat.in.h:799:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, data/libprelude-5.2.0/libmissing/sys_utsname.in.h:72:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nodename[_UTSNAME_NODENAME_LENGTH]; data/libprelude-5.2.0/libmissing/sys_utsname.in.h:75:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sysname[_UTSNAME_SYSNAME_LENGTH]; data/libprelude-5.2.0/libmissing/sys_utsname.in.h:77:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char release[_UTSNAME_RELEASE_LENGTH]; data/libprelude-5.2.0/libmissing/sys_utsname.in.h:79:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version[_UTSNAME_VERSION_LENGTH]; data/libprelude-5.2.0/libmissing/sys_utsname.in.h:82:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char machine[_UTSNAME_MACHINE_LENGTH]; data/libprelude-5.2.0/libmissing/tests/fcntl.c:60:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char fds_to_close[OPEN_MAX_MAX / CHAR_BIT]; data/libprelude-5.2.0/libmissing/tests/fcntl.in.h:111:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open data/libprelude-5.2.0/libmissing/tests/fcntl.in.h:112:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open rpl_open data/libprelude-5.2.0/libmissing/tests/fcntl.in.h:114:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) data/libprelude-5.2.0/libmissing/tests/fcntl.in.h:116:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); data/libprelude-5.2.0/libmissing/tests/fcntl.in.h:118:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); data/libprelude-5.2.0/libmissing/tests/fcntl.in.h:123:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIASWARN (open); data/libprelude-5.2.0/libmissing/tests/fcntl.in.h:126:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open data/libprelude-5.2.0/libmissing/tests/fcntl.in.h:128:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/getcwd-lgpl.c:80:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[4032]; data/libprelude-5.2.0/libmissing/tests/localename.c:1167: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/libprelude-5.2.0/libmissing/tests/localename.c:1167: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/libprelude-5.2.0/libmissing/tests/localename.c:1305: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/libprelude-5.2.0/libmissing/tests/localename.c:1305: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/libprelude-5.2.0/libmissing/tests/localename.c:1335: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/libprelude-5.2.0/libmissing/tests/localename.c:1335: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/libprelude-5.2.0/libmissing/tests/localename.c:1468: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/libprelude-5.2.0/libmissing/tests/localename.c:2525: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/libprelude-5.2.0/libmissing/tests/localename.c:2532: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/libprelude-5.2.0/libmissing/tests/localename.c:2568: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/libprelude-5.2.0/libmissing/tests/localename.c:2624:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/libprelude-5.2.0/libmissing/tests/localename.c:2655: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/libprelude-5.2.0/libmissing/tests/localename.c:2753: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/libprelude-5.2.0/libmissing/tests/localename.c:2767: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/libprelude-5.2.0/libmissing/tests/localename.c:2942: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/open.c:33:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open (filename, flags, mode); data/libprelude-5.2.0/libmissing/tests/open.c:55:1: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open (const char *filename, int flags, ...) data/libprelude-5.2.0/libmissing/tests/open.c:162:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open ("/dev/null", flags, mode); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/setlocale.c:632: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/libprelude-5.2.0/libmissing/tests/setlocale.c:633: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/libprelude-5.2.0/libmissing/tests/setlocale.c:634: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/libprelude-5.2.0/libmissing/tests/setlocale.c:708: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/libprelude-5.2.0/libmissing/tests/setlocale.c:711: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/libprelude-5.2.0/libmissing/tests/setlocale.c:744: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/libprelude-5.2.0/libmissing/tests/setlocale.c:748: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/libprelude-5.2.0/libmissing/tests/setlocale.c:750: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/libprelude-5.2.0/libmissing/tests/setlocale.c:791: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-fclose.c:45: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 (BASE, O_RDWR | O_CREAT | O_TRUNC, 0600); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-getaddrinfo.c:63: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[BUFSIZ]; data/libprelude-5.2.0/libmissing/tests/test-getaddrinfo.c:137: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 ipbuf[BUFSIZ]; data/libprelude-5.2.0/libmissing/tests/test-getaddrinfo.c:138: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 portbuf[BUFSIZ]; data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-gethostname.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[HOST_NAME_MAX]; data/libprelude-5.2.0/libmissing/tests/test-getline.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-getline.txt", "wb"); data/libprelude-5.2.0/libmissing/tests/test-getline.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-getline.txt", "rb"); data/libprelude-5.2.0/libmissing/tests/test-inet_ntop.c:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char printable[16]; data/libprelude-5.2.0/libmissing/tests/test-localename.c:417: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/libprelude-5.2.0/libmissing/tests/test-localename.c:420:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/libprelude-5.2.0/libmissing/tests/test-lock.c:178: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/libprelude-5.2.0/libmissing/tests/test-lock.c:184: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/libprelude-5.2.0/libmissing/tests/test-lock.c:683: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/libprelude-5.2.0/libmissing/tests/test-mbrtowc-w32.c: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 name_with_codepage[1024]; data/libprelude-5.2.0/libmissing/tests/test-mbrtowc-w32.c:115:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1]; data/libprelude-5.2.0/libmissing/tests/test-mbrtowc-w32.c:699: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-memmem.c:283: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/libprelude-5.2.0/libmissing/tests/test-memmem.c:284: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-poll.c:250:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[3]; data/libprelude-5.2.0/libmissing/tests/test-poll.c:296: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-select.h:347: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/libprelude-5.2.0/libmissing/tests/test-select.h:388: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-sys_utsname.c:30:3: [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.sysname, "Linux"); data/libprelude-5.2.0/libmissing/tests/test-sys_utsname.c:31:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf.nodename, "hobbybox"); data/libprelude-5.2.0/libmissing/tests/test-sys_utsname.c:32:3: [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.release, "3.141.592"); data/libprelude-5.2.0/libmissing/tests/test-sys_utsname.c:33:3: [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.version, "GENERIC"); data/libprelude-5.2.0/libmissing/tests/test-sys_utsname.c:34:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf.machine, "i586"); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-vsnprintf.c:46: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/libprelude-5.2.0/libmissing/tests/test-vsnprintf.c:55: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/libprelude-5.2.0/libmissing/tests/test-vsnprintf.c:78:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result[100]; data/libprelude-5.2.0/libmissing/tests/test-wcrtomb-w32.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[64]; data/libprelude-5.2.0/libmissing/tests/test-wcrtomb-w32.c:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name_with_codepage[1024]; data/libprelude-5.2.0/libmissing/tests/test-wcrtomb-w32.c:302: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-write.c:37:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (filename, O_CREAT | O_WRONLY, 0600); data/libprelude-5.2.0/libmissing/tests/test-write.c:43:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (filename, O_WRONLY); data/libprelude-5.2.0/libmissing/tests/test-write.c:50:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/libprelude-5.2.0/libmissing/tests/test-write.c:51:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int rfd = open (filename, O_RDONLY); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/uname.c:64:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&version, &versionex, sizeof (OSVERSIONINFO)); data/libprelude-5.2.0/libmissing/uname.c:75:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->nodename, "localhost"); data/libprelude-5.2.0/libmissing/uname.c:183:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf->release, "Windows CE %u.%u", data/libprelude-5.2.0/libmissing/uname.c:208:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "x86_64"); data/libprelude-5.2.0/libmissing/uname.c:211:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "ia64"); data/libprelude-5.2.0/libmissing/uname.c:214:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "i386"); data/libprelude-5.2.0/libmissing/uname.c:220:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "i686"); data/libprelude-5.2.0/libmissing/uname.c:223:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "mips"); data/libprelude-5.2.0/libmissing/uname.c:227:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "alpha"); data/libprelude-5.2.0/libmissing/uname.c:230:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "powerpc"); data/libprelude-5.2.0/libmissing/uname.c:233:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "sh"); data/libprelude-5.2.0/libmissing/uname.c:236:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "arm"); data/libprelude-5.2.0/libmissing/uname.c:239:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "unknown"); data/libprelude-5.2.0/libmissing/uname.c:249:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "x86_64"); data/libprelude-5.2.0/libmissing/uname.c:252:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "ia64"); data/libprelude-5.2.0/libmissing/uname.c:256:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf->machine, "i%u", data/libprelude-5.2.0/libmissing/uname.c:259:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buf->machine, "unknown"); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/vasnprintf.c:2675: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/libprelude-5.2.0/libmissing/vasnprintf.c:2720: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/libprelude-5.2.0/libmissing/vasnprintf.c:2770: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/libprelude-5.2.0/libmissing/vasnprintf.c:2783: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/libprelude-5.2.0/libmissing/vasnprintf.c:2851: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/libprelude-5.2.0/libmissing/vasnprintf.c:2864: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/libprelude-5.2.0/libmissing/vasnprintf.c:2880: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/libprelude-5.2.0/libmissing/vasnprintf.c:2902: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/libprelude-5.2.0/libmissing/vasnprintf.c:3183: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/libprelude-5.2.0/libmissing/vasnprintf.c:3189: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/libprelude-5.2.0/libmissing/vasnprintf.c:3191: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/libprelude-5.2.0/libmissing/vasnprintf.c:3334: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/libprelude-5.2.0/libmissing/vasnprintf.c:3340: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/libprelude-5.2.0/libmissing/vasnprintf.c:3342: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/libprelude-5.2.0/libmissing/vasnprintf.c:3409: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/libprelude-5.2.0/libmissing/vasnprintf.c:3794: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/libprelude-5.2.0/libmissing/vasnprintf.c:3800: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/libprelude-5.2.0/libmissing/vasnprintf.c:3802: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/libprelude-5.2.0/libmissing/vasnprintf.c:3975: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/libprelude-5.2.0/libmissing/vasnprintf.c:3981: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/libprelude-5.2.0/libmissing/vasnprintf.c:3983: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/libprelude-5.2.0/libmissing/vasnprintf.c:4273: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/libprelude-5.2.0/libmissing/vasnprintf.c:4466: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/libprelude-5.2.0/libmissing/vasnprintf.c:4592: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/libprelude-5.2.0/libmissing/vasnprintf.c:4800: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/libprelude-5.2.0/libmissing/vasnprintf.c:4821: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/libprelude-5.2.0/libmissing/vasnprintf.c:5530: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/libprelude-5.2.0/libmissing/vsnprintf.c:56: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/libprelude-5.2.0/prelude-admin/prelude-admin.c:115: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 buf[PATH_MAX]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:149: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 dirname[PATH_MAX]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:221: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 buf1[128], buf2[128]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:417: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). uid = atoi(optarg); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:445: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). gid = atoi(optarg); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:498:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024], *ptr; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:507:22: [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). fd = fopen(optarg, "r"); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:560:30: [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). generated_key_size = atoi(optarg); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:567:42: [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). generated_certificate_lifetime = atoi(optarg); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:574:42: [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). authority_certificate_lifetime = atoi(optarg); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:635:30: [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). generated_key_size = atoi(ptr); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:645:42: [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). authority_certificate_lifetime = atoi(ptr); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:655:42: [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). generated_certificate_lifetime = atoi(ptr); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:715: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 dirname[PATH_MAX], filename[PATH_MAX], buf[8192]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:726:15: [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). tfd = fopen(dirname, "r"); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:732: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). fd = fopen(filename, "w"); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:769: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], filename[256]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:777: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). ret = open(filename, (already_exist == 0) ? O_RDONLY : O_CREAT|O_WRONLY, S_IRUSR|S_IWUSR|S_IRGRP); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:953: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[sizeof("65535")]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1043: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/libprelude-5.2.0/prelude-admin/prelude-admin.c:1081:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024], askbuf[1024]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1193: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[PATH_MAX]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1220: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 spath[256], dpath[256]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1318: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[PATH_MAX]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1832:22: [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). fd = fopen(argv[i], "r"); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1915:22: [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). fd = fopen(argv[i], "r"); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:2068: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 dirname[PATH_MAX]; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:2069:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024], analyzerid[128], uidbuf[128] = { 0 }, gidbuf[128] = { 0 }; data/libprelude-5.2.0/prelude-admin/prelude-admin.c:2116:22: [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). fd = fopen(buf, "r"); data/libprelude-5.2.0/prelude-admin/server.c:213: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[512]; data/libprelude-5.2.0/prelude-admin/server.c:299:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libprelude-5.2.0/prelude-admin/server.c:406: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(dst->data, src->data, dst->size); data/libprelude-5.2.0/prelude-admin/tls-register.c:85:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/libprelude-5.2.0/prelude-admin/tls-register.c:128: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[65536]; data/libprelude-5.2.0/prelude-admin/tls-register.c:153: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). fd = fopen(filename, "w"); data/libprelude-5.2.0/prelude-admin/tls-register.c:210: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 out[512]; data/libprelude-5.2.0/prelude-admin/tls-register.c:291: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_CREAT|O_WRONLY|O_APPEND, S_IRUSR|S_IWUSR|flags); data/libprelude-5.2.0/prelude-admin/tls-register.c:320:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libprelude-5.2.0/prelude-admin/tls-register.c:381:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[65535]; data/libprelude-5.2.0/prelude-admin/tls-register.c:562: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[65535]; data/libprelude-5.2.0/prelude-admin/tls-register.c:595: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 filename[256]; data/libprelude-5.2.0/prelude-admin/tls-register.c:651: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[128], c; data/libprelude-5.2.0/prelude-admin/tls-register.c:669:17: [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). perms = atoi(buf); data/libprelude-5.2.0/prelude-admin/tls-register.c:708: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[65535]; data/libprelude-5.2.0/prelude-admin/tls-register.c:783: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[65535]; data/libprelude-5.2.0/prelude-admin/tls-register.c:872:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[65535]; data/libprelude-5.2.0/prelude-admin/tls-register.c:897: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 filename[256]; data/libprelude-5.2.0/prelude-admin/tls-register.c:924: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 filename[256]; data/libprelude-5.2.0/prelude-admin/tls-register.c:926:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[65535]; data/libprelude-5.2.0/prelude-admin/tls-register.c:963: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 crlfile[PATH_MAX], buf[65535]; data/libprelude-5.2.0/src/common.c:48: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. extern char _prelude_init_cwd[PATH_MAX]; data/libprelude-5.2.0/src/common.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[PATH_MAX]; data/libprelude-5.2.0/src/common.c:229: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[8192]; data/libprelude-5.2.0/src/common.c:334: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 *ptr, pathname[PATH_MAX] = { 0 }; data/libprelude-5.2.0/src/common.c:586: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/libprelude-5.2.0/src/config-engine.c:222: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 line[1024], *ptr, *tmp; data/libprelude-5.2.0/src/config-engine.c:228: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). fd = fopen(cfg->filename, "r"); data/libprelude-5.2.0/src/config-engine.c:320: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[512]; data/libprelude-5.2.0/src/config-engine.c:567: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). fd = fopen(cfg->filename, "w"); data/libprelude-5.2.0/src/config-engine.c:646: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[1024]; data/libprelude-5.2.0/src/daemonize.c:42: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 slockfile[PATH_MAX]; data/libprelude-5.2.0/src/daemonize.c:52: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 dir[PATH_MAX]; data/libprelude-5.2.0/src/daemonize.c:77: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(lockfile, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR); data/libprelude-5.2.0/src/daemonize.c:111: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[50]; data/libprelude-5.2.0/src/daemonize.c:188: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("/dev/null", O_RDWR); data/libprelude-5.2.0/src/idmef-criteria-string.yac.c:186: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[2] = { '\\', c }; data/libprelude-5.2.0/src/idmef-criteria-string.yac.c:1143:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/libprelude-5.2.0/src/idmef-criteria-string.yac.c:1366:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yymsgbuf[128]; data/libprelude-5.2.0/src/idmef-criterion-value.c:96:16: [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). *out = atoi(integer); data/libprelude-5.2.0/src/idmef-criterion-value.c:105:16: [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). *out = atoi(integer) - 1900; data/libprelude-5.2.0/src/idmef-criterion-value.c:130:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *out = atoi(value) - 1; data/libprelude-5.2.0/src/idmef-criterion-value.c:160:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *out = atoi(value) - 1; data/libprelude-5.2.0/src/idmef-criterion-value.c:617:16: [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). *out = atoi(param) * 60 * 60; data/libprelude-5.2.0/src/idmef-criterion-value.c:728: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 errbuf[1024]; data/libprelude-5.2.0/src/idmef-data.c:163:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new, ptr, len); data/libprelude-5.2.0/src/idmef-data.c:305: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(dst->data.rw_data, src->data.ro_data, src->len); data/libprelude-5.2.0/src/idmef-data.c:426:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char b64tbl[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; data/libprelude-5.2.0/src/idmef-message-helpers.c:303:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*data, idmef_data_get_data(dp), *size); data/libprelude-5.2.0/src/idmef-message-print-json.c:49:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/libprelude-5.2.0/src/idmef-message-print-json.c:62:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/libprelude-5.2.0/src/idmef-message-print-json.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[32]; data/libprelude-5.2.0/src/idmef-message-print-json.c:126:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char seq[7]; data/libprelude-5.2.0/src/idmef-message-print.c:63: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[sizeof("255")]; data/libprelude-5.2.0/src/idmef-message-print.c:76: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[sizeof("65535")]; data/libprelude-5.2.0/src/idmef-message-print.c:86:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[sizeof("4294967296")]; data/libprelude-5.2.0/src/idmef-message-print.c:96: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[sizeof("4294967296")]; data/libprelude-5.2.0/src/idmef-message-print.c:107: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[sizeof("18446744073709551616")]; data/libprelude-5.2.0/src/idmef-message-print.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[32]; data/libprelude-5.2.0/src/idmef-message-print.c:132: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 tmp[32], buf[128]; data/libprelude-5.2.0/src/idmef-message-print.c:180: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[512]; data/libprelude-5.2.0/src/idmef-message-print.c:388: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:536: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:727: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:744: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:821: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:1188: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:1341: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:1649: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:1665: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:1693: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:1929: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:2331: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:2405: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:2453: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:2561: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:2631: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:2647: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:2675: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:2746: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[128]; data/libprelude-5.2.0/src/idmef-message-print.c:2804: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[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:279: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:295: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:344:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:427: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:628: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:738: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:827: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:1555: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:1676: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:1890: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2043: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2139: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2158: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2177: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2317: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2333: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2397: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2511: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2932: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2948: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:2964: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:3028: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:3092: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:3540: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:3577: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:3596: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:3835: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-read-json.c:3854: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 buf[128]; data/libprelude-5.2.0/src/idmef-message-write.c:119:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[12]; data/libprelude-5.2.0/src/idmef-message-write.c:125:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &tmp, sizeof(tmp)); data/libprelude-5.2.0/src/idmef-message-write.c:128:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf + 4, &tmp, sizeof(tmp)); data/libprelude-5.2.0/src/idmef-message-write.c:131:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf + 8, &tmp, sizeof(tmp)); data/libprelude-5.2.0/src/idmef-path.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 name[MAX_NAME_LEN]; data/libprelude-5.2.0/src/idmef-path.c:649:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(path->name, buffer, len); data/libprelude-5.2.0/src/idmef-path.c:906: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 buffer[MAX_NAME_LEN]; data/libprelude-5.2.0/src/idmef-path.c:1174: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[16] = { 0 }; data/libprelude-5.2.0/src/idmef-path.c:1353: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(*dst, src, sizeof(**dst)); data/libprelude-5.2.0/src/idmef-value-type.c:176: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(dst, &src->data, size); data/libprelude-5.2.0/src/idmef-value-type.c:185: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(&dst->data, &src->data, size); data/libprelude-5.2.0/src/idmef-value.c:330:71: [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). ret = idmef_value_set_enum_from_numeric(value, class, atoi(buf)); data/libprelude-5.2.0/src/idmef-value.c:375:71: [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). ret = idmef_value_new_enum_from_numeric(value, class, atoi(buf)); data/libprelude-5.2.0/src/libprelude-error/prelude-error.c:221:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libprelude-5.2.0/src/prelude-client-profile.c:128: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 *ptr, filename[256], buf[256]; data/libprelude-5.2.0/src/prelude-client-profile.c:141: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). fd = fopen(filename, "r"); data/libprelude-5.2.0/src/prelude-client.c:140: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. extern char *_prelude_internal_argv[1024]; data/libprelude-5.2.0/src/prelude-client.c:160:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[20], *data; data/libprelude-5.2.0/src/prelude-client.c:373: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 addr[256], *addrp = NULL; data/libprelude-5.2.0/src/prelude-client.c:446: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[PATH_MAX], *name, *path; data/libprelude-5.2.0/src/prelude-client.c:541:56: [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). idmef_address_set_vlan_num(data->addr, atoi(optarg)); data/libprelude-5.2.0/src/prelude-client.c:984:46: [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). _prelude_connection_keepalive_time = atoi(optarg); data/libprelude-5.2.0/src/prelude-client.c:991:48: [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). _prelude_connection_keepalive_probes = atoi(optarg); data/libprelude-5.2.0/src/prelude-client.c:998:47: [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). _prelude_connection_keepalive_intvl = atoi(optarg); data/libprelude-5.2.0/src/prelude-client.c:1012:36: [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). setup_heartbeat_timer(ptr, atoi(optarg)); data/libprelude-5.2.0/src/prelude-client.c:1034: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[PATH_MAX]; data/libprelude-5.2.0/src/prelude-connection-pool.c:346: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 c, buf[512]; data/libprelude-5.2.0/src/prelude-connection-pool.c:467: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 name[128]; data/libprelude-5.2.0/src/prelude-connection-pool.c:669: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 *dirname, buf[PATH_MAX]; data/libprelude-5.2.0/src/prelude-connection-pool.c:940: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 dirname[PATH_MAX], buf[PATH_MAX]; data/libprelude-5.2.0/src/prelude-connection.c:136: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 *tmp, buf[1024]; data/libprelude-5.2.0/src/prelude-connection.c:375: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[512]; data/libprelude-5.2.0/src/prelude-connection.c:509:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024], *addr; data/libprelude-5.2.0/src/prelude-connection.c:583: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(cnx->sa, ai->ai_addr, ai->ai_addrlen); data/libprelude-5.2.0/src/prelude-connection.c:1006:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024], *tmp; data/libprelude-5.2.0/src/prelude-failover.c:72: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. unsigned char checksum[FAILOVER_CHECKSUM_SIZE]; data/libprelude-5.2.0/src/prelude-failover.c:74:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[FAILOVER_JOURNAL_ENTRY_SIZE]; data/libprelude-5.2.0/src/prelude-failover.c:206:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[FAILOVER_CHECKSUM_SIZE]; data/libprelude-5.2.0/src/prelude-failover.c:292:25: [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). failover->jfd = open(filename, O_CREAT|O_RDWR, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP); data/libprelude-5.2.0/src/prelude-failover.c:364: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). *fd = open(filename, flags, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP); data/libprelude-5.2.0/src/prelude-failover.c:510: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 filename[PATH_MAX]; data/libprelude-5.2.0/src/prelude-failover.c:531: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). rfd = open(filename, O_RDONLY); data/libprelude-5.2.0/src/prelude-io.c:85:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, (unsigned char *) pio->fd_ptr + pio->rindex, count); data/libprelude-5.2.0/src/prelude-io.c:104:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new + pio->size, buf, count); data/libprelude-5.2.0/src/prelude-io.c:407:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[8192]; data/libprelude-5.2.0/src/prelude-log.c:220:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libprelude-5.2.0/src/prelude-log.c:381:33: [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). debug_logfile = fopen(filename, "a"); data/libprelude-5.2.0/src/prelude-msg.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. unsigned char hdrbuf[PRELUDE_MSG_HDR_SIZE]; data/libprelude-5.2.0/src/prelude-msg.c:149: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(&msg->payload[hdr_offset], &dlen, sizeof(dlen)); data/libprelude-5.2.0/src/prelude-msg.c:150: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(&msg->payload[hdr_offset + 4], &msg->hdr.tv_sec, sizeof(msg->hdr.tv_sec)); data/libprelude-5.2.0/src/prelude-msg.c:151: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(&msg->payload[hdr_offset + 8], &msg->hdr.tv_usec, sizeof(msg->hdr.tv_usec)); data/libprelude-5.2.0/src/prelude-msg.c:174: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(msg->payload + msg->write_index, buf, remaining); data/libprelude-5.2.0/src/prelude-msg.c:196: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(msg->payload + msg->write_index, buf, size); data/libprelude-5.2.0/src/prelude-msg.c:530:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[PRELUDE_MSG_HDR_SIZE]; data/libprelude-5.2.0/src/prelude-msg.c:537:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buf[4], &dlen, sizeof(dlen)); data/libprelude-5.2.0/src/prelude-msg.c:1042: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(*dst, src, size); data/libprelude-5.2.0/src/prelude-option-wide.c:51:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libprelude-5.2.0/src/prelude-option-wide.c:162: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 pname[256], iname[256]; data/libprelude-5.2.0/src/prelude-option.c:783: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 tmp[2] = { shortopt, 0 }; data/libprelude-5.2.0/src/prelude-option.c:883: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 value[1024]; data/libprelude-5.2.0/src/prelude-option.c:962: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[3]; data/libprelude-5.2.0/src/prelude-plugin.c:365: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(*dst, src, sizeof(**dst)); data/libprelude-5.2.0/src/prelude-plugin.c:415:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libprelude-5.2.0/src/prelude-plugin.c:869: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(&rpl_sym[1], s, len * sizeof(*rpl_sym)); data/libprelude-5.2.0/src/prelude-string.c:129: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(string->data.rwbuf, buf, len); data/libprelude-5.2.0/src/prelude-string.c:144: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(ptr, s->data.robuf, s->index + 1); data/libprelude-5.2.0/src/prelude-string.c:908: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(dst->data.rwbuf + dst->index, str, len); data/libprelude-5.2.0/src/prelude.c: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 *_prelude_internal_argv[1024]; data/libprelude-5.2.0/src/prelude.c:49: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 _prelude_init_cwd[PATH_MAX]; data/libprelude-5.2.0/src/prelude.c:138:45: [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). prelude_log_set_debug_level(atoi(env)); data/libprelude-5.2.0/src/prelude.c:142:45: [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). gnutls_global_set_log_level(atoi(env)); data/libprelude-5.2.0/src/prelude.c:155:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ( env && atoi(env) <= 0 ) data/libprelude-5.2.0/src/prelude.c:262: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 levels[6] = { 0 }; data/libprelude-5.2.0/src/tls-auth.c:351: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 keyfile[PATH_MAX], certfile[PATH_MAX]; data/libprelude-5.2.0/src/tls-util.c:156:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libprelude-5.2.0/src/tls-util.c:200:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libprelude-5.2.0/bindings/c++/idmef-value.cxx:95: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). _InitFromString(value, strlen(value)); data/libprelude-5.2.0/bindings/c++/idmef.cxx:55:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is->read((char *) buf, size); data/libprelude-5.2.0/bindings/lua/prelude.cxx:415: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). const char* te = tb + strlen(tb); data/libprelude-5.2.0/bindings/lua/prelude.cxx:699: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) + 1 > (bsz - (r - buff))) return 0; data/libprelude-5.2.0/bindings/lua/prelude.cxx:720: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 lname = (name ? strlen(name) : 0); data/libprelude-5.2.0/bindings/lua/prelude.cxx:725:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r,name,lname+1); data/libprelude-5.2.0/bindings/lua/prelude.cxx:2840:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *out = new char[strlen(in) + 1]; data/libprelude-5.2.0/bindings/perl/Prelude.cxx:410: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). const char* te = tb + strlen(tb); data/libprelude-5.2.0/bindings/perl/Prelude.cxx:694: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) + 1 > (bsz - (r - buff))) return 0; data/libprelude-5.2.0/bindings/perl/Prelude.cxx:715: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 lname = (name ? strlen(name) : 0); data/libprelude-5.2.0/bindings/perl/Prelude.cxx:720:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r,name,lname+1); data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1288: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 ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1380: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). sv_magic(sv,sv,'U',name,strlen(name)); data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1477:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #ifdef read data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1478:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #undef read data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1731: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). if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; data/libprelude-5.2.0/bindings/perl/Prelude.cxx:1760: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). return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); data/libprelude-5.2.0/bindings/python/_prelude.cxx:431: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). const char* te = tb + strlen(tb); data/libprelude-5.2.0/bindings/python/_prelude.cxx:715: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) + 1 > (bsz - (r - buff))) return 0; data/libprelude-5.2.0/bindings/python/_prelude.cxx:736: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 lname = (name ? strlen(name) : 0); data/libprelude-5.2.0/bindings/python/_prelude.cxx:741:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r,name,lname+1); data/libprelude-5.2.0/bindings/python/_prelude.cxx:3624:18: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. virtual bool equal (const SwigPyIterator &/*x*/) const data/libprelude-5.2.0/bindings/python/_prelude.cxx:3663:14: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return equal(x); data/libprelude-5.2.0/bindings/python/_prelude.cxx:4167:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(ffd, buf, size); data/libprelude-5.2.0/bindings/python/_prelude.cxx:4877:10: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. bool equal (const SwigPyIterator &iter) const data/libprelude-5.2.0/bindings/python/_prelude.cxx:5422: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). if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; data/libprelude-5.2.0/bindings/python/_prelude.cxx:5466: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). return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); data/libprelude-5.2.0/bindings/python/_prelude.cxx:6742:58: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); data/libprelude-5.2.0/bindings/python/_prelude.cxx:22022: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 size = strlen(name)+1; data/libprelude-5.2.0/bindings/python/_prelude.cxx:22091: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(const_table[j].name)) == 0) { data/libprelude-5.2.0/bindings/python/_prelude.cxx:22102: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). size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:529: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). const char* te = tb + strlen(tb); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:813: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) + 1 > (bsz - (r - buff))) return 0; data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:834: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 lname = (name ? strlen(name) : 0); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:839:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r,name,lname+1); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:895:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #ifdef read data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:896:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:1519:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *klass_name = (char *) malloc(4 + strlen(type->name) + 1); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:1576:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). klass_name = (char *) malloc(4 + strlen(type->name) + 1); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:1724: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 ((2*sz + 1 + strlen(type->name)) > 1000) return 0; data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:2228:18: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. virtual bool equal (const ConstIterator &x) const data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:2301:14: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return equal(x); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:2422:14: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return equal(x); data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:3224:18: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. virtual bool equal (const ConstIterator &iter) const data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:3317:18: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. virtual bool equal (const ConstIterator &iter) const data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:4063: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). if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0; data/libprelude-5.2.0/bindings/ruby/Prelude.cxx:4096: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). return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); data/libprelude-5.2.0/libltdl/argz.c:91: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). argz_len = 1+ strlen (str); data/libprelude-5.2.0/libltdl/argz.c:141:53: [1] (buffer) strlen: Does not handle 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 argz_append (pargz, pargz_len, entry, 1+ strlen (entry)); data/libprelude-5.2.0/libltdl/argz.c:150: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). size_t entry_len = 1+ strlen (entry); data/libprelude-5.2.0/libltdl/libltdl/lt__dirent.h: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_NAMLEN(dirent) (strlen((dirent)->d_name)) data/libprelude-5.2.0/libltdl/libltdl/lt__dirent.h:53: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_NAMLEN(dirent) (strlen((dirent)->d_name)) data/libprelude-5.2.0/libltdl/loaders/dyld.c:353:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (saveError, dylderror (LT__STRERROR (SYMBOL_NOT_FOUND)), 255); data/libprelude-5.2.0/libltdl/loaders/loadlibrary.c:179:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (wpath); data/libprelude-5.2.0/libltdl/lt__alloc.c:94: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 (char *) lt__memdup (string, strlen (string) +1); data/libprelude-5.2.0/libltdl/lt__dirent.c:102: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). entry->file_info.d_namlen = strlen (entry->file_info.d_name); data/libprelude-5.2.0/libltdl/lt__strl.c:61: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). length=strlen(dst); data/libprelude-5.2.0/libltdl/ltdl.c:1236:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dir, canonical, dirlen); data/libprelude-5.2.0/libltdl/ltdl.c:1286: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). archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2); data/libprelude-5.2.0/libltdl/ltdl.c:1286:73: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2); data/libprelude-5.2.0/libltdl/ltdl.c:1724:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). error = argz_append (pargz, pargz_len, entry, 1 + strlen (entry)); data/libprelude-5.2.0/libltdl/ltdl.c:1814:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (buf, "/"); data/libprelude-5.2.0/libltdl/ltdl.c:1815:3: [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. strncat (buf, dp->d_name, end_offset); data/libprelude-5.2.0/libltdl/ltdl.c:2159: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). assert ((int) (before - *ppath) <= (int) strlen (*ppath)); data/libprelude-5.2.0/libltdl/ltdl.h:44:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define LT_STRLEN(s) (((s) && (s)[0]) ? strlen (s) : 0) data/libprelude-5.2.0/libmissing/fopen.c:73: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/gethostname.c:55:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (name, uts.nodename, len); data/libprelude-5.2.0/libmissing/gethostname.c:57:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (name, ""); /* Hardcode your system name if you want. */ data/libprelude-5.2.0/libmissing/gettext.h:216:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgctxt_len = strlen (msgctxt) + 1; data/libprelude-5.2.0/libmissing/gettext.h:217:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/libprelude-5.2.0/libmissing/gettext.h:264:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgctxt_len = strlen (msgctxt) + 1; data/libprelude-5.2.0/libmissing/gettext.h:265:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/libprelude-5.2.0/libmissing/inet_ntop.c:230: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). tp += strlen (tp); data/libprelude-5.2.0/libmissing/localcharset.c:777:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pdot && 2 + strlen (pdot + 1) + 1 <= sizeof (buf)) data/libprelude-5.2.0/libmissing/nl_langinfo.c:74: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/regcomp.c:497: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/libprelude-5.2.0/libmissing/regcomp.c:544: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/libprelude-5.2.0/libmissing/regcomp.c:716: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/libprelude-5.2.0/libmissing/regcomp.c:784: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/libprelude-5.2.0/libmissing/regcomp.c:2728: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/libprelude-5.2.0/libmissing/regcomp.c:2730: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), 0)) data/libprelude-5.2.0/libmissing/regcomp.c:2836: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/libprelude-5.2.0/libmissing/regcomp.c:2917: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/libprelude-5.2.0/libmissing/regcomp.c:3048: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/libprelude-5.2.0/libmissing/regcomp.c:3558: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 (BE (strlen ((const char *) name) != 1, 0)) data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/relocatable.c:135: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). orig_prefix_len = strlen (orig_prefix_arg); data/libprelude-5.2.0/libmissing/relocatable.c:136: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). curr_prefix_len = strlen (curr_prefix_arg); data/libprelude-5.2.0/libmissing/relocatable.c:203:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) data/libprelude-5.2.0/libmissing/relocatable.c:207:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rel_installdir = orig_installdir + strlen (orig_installprefix); data/libprelude-5.2.0/libmissing/relocatable.c:212: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). const char *p = curr_pathname + strlen (curr_pathname); data/libprelude-5.2.0/libmissing/relocatable.c:235: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). const char *rp = rel_installdir + strlen (rel_installdir); data/libprelude-5.2.0/libmissing/relocatable.c:236: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). const char *cp = curr_installdir + strlen (curr_installdir); data/libprelude-5.2.0/libmissing/relocatable.c:413:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n' && c != '/') data/libprelude-5.2.0/libmissing/relocatable.c:432:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n') data/libprelude-5.2.0/libmissing/relocatable.c:512: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). char *result = (char *) xmalloc (strlen (curr_prefix) + 1); data/libprelude-5.2.0/libmissing/relocatable.c:527: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). (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); data/libprelude-5.2.0/libmissing/relocatable.c:558: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). char *result = (char *) xmalloc (2 + strlen (pathname) + 1); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/stat.c:122:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (name); data/libprelude-5.2.0/libmissing/stat.c:417:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (name); data/libprelude-5.2.0/libmissing/stdio.in.h:254:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef fgetc data/libprelude-5.2.0/libmissing/stdio.in.h:255:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define fgetc rpl_fgetc data/libprelude-5.2.0/libmissing/stdio.in.h:257:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/libprelude-5.2.0/libmissing/stdio.in.h:258:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (fgetc, int, (FILE *stream)); data/libprelude-5.2.0/libmissing/stdio.in.h:260:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (fgetc, int, (FILE *stream)); data/libprelude-5.2.0/libmissing/stdio.in.h:262:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (fgetc); data/libprelude-5.2.0/libmissing/stdio.in.h:641:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/libprelude-5.2.0/libmissing/stdio.in.h:642:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc rpl_fgetc data/libprelude-5.2.0/libmissing/stdio.in.h:644:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/libprelude-5.2.0/libmissing/stdio.in.h:645:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL_1 (getc, rpl_fgetc, int, (FILE *stream)); data/libprelude-5.2.0/libmissing/stdio.in.h:647:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getc, int, (FILE *stream)); data/libprelude-5.2.0/libmissing/stdio.in.h:649:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getc); data/libprelude-5.2.0/libmissing/stdio.in.h:655:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/libprelude-5.2.0/libmissing/stdio.in.h:656:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar rpl_getchar data/libprelude-5.2.0/libmissing/stdio.in.h:658:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (getchar, int, (void)); data/libprelude-5.2.0/libmissing/stdio.in.h:659:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (getchar, int, (void)); data/libprelude-5.2.0/libmissing/stdio.in.h:661:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getchar, int, (void)); data/libprelude-5.2.0/libmissing/stdio.in.h:663:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getchar); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/strerror_r.c:226: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/libprelude-5.2.0/libmissing/strerror_r.c:231: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/libprelude-5.2.0/libmissing/strerror_r.c:245: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/string.in.h:414:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n) data/libprelude-5.2.0/libmissing/string.in.h:416:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n)); data/libprelude-5.2.0/libmissing/string.in.h:418:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n)); data/libprelude-5.2.0/libmissing/string.in.h:420:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIASWARN (strncat); data/libprelude-5.2.0/libmissing/string.in.h:422:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/libprelude-5.2.0/libmissing/string.in.h:424:18: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_WARN_ON_USE (strncat, "strncat is unportable - " data/libprelude-5.2.0/libmissing/strptime.c:46:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ({ size_t len = strlen (cs1); \ data/libprelude-5.2.0/libmissing/strptime.c:53:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1)) data/libprelude-5.2.0/libmissing/strptime.c:53:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1)) data/libprelude-5.2.0/libmissing/tests/getcwd-lgpl.c:119:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result = realloc (buf, strlen (buf) + 1); data/libprelude-5.2.0/libmissing/tests/localename.c:1368: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/libprelude-5.2.0/libmissing/tests/localename.c:2538: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/libprelude-5.2.0/libmissing/tests/localename.c:2540: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/libprelude-5.2.0/libmissing/tests/localename.c:2542: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/libprelude-5.2.0/libmissing/tests/localename.c:2578: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/libprelude-5.2.0/libmissing/tests/localename.c:2648: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/libprelude-5.2.0/libmissing/tests/lstat.c:80:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (S_ISDIR (sbuf->st_mode) || file[strlen (file) - 1] != '/') data/libprelude-5.2.0/libmissing/tests/open.c:118:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (filename); data/libprelude-5.2.0/libmissing/tests/open.c:187:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (filename); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/setlocale.c:649: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/libprelude-5.2.0/libmissing/tests/setlocale.c:706: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/libprelude-5.2.0/libmissing/tests/setlocale.c:741: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/libprelude-5.2.0/libmissing/tests/setlocale.c:743: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/libprelude-5.2.0/libmissing/tests/setlocale.c:802: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-fclose.c:69:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (fgetc (f) == buf[2]); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-fflush2.c:83:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/libprelude-5.2.0/libmissing/tests/test-fflush2.c:86:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/libprelude-5.2.0/libmissing/tests/test-fflush2.c:98:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/libprelude-5.2.0/libmissing/tests/test-fflush2.c:101:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (stdin); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-gethostname.c:41: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 (NOHOSTNAME) >= HOST_NAME_MAX) data/libprelude-5.2.0/libmissing/tests/test-memmem.c:48: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 char *result = memmem (input, strlen (input), "", 0); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:54: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 char *result = memmem (input, strlen (input), "o", 1); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:60: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 char *result = memmem (input, strlen (input), "ABCDABD", 7); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:66: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 char *result = memmem (input, strlen (input), "ABCDABE", 7); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:72: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 char *result = memmem (input, strlen (input), "ABCDABCD", 8); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:84: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 char *result = memmem (input, strlen (input), null_ptr (), 0); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:94: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 char *result = memmem (input, strlen (input), need, strlen (need)); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:94:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *result = memmem (input, strlen (input), need, strlen (need)); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:103: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 char *result = memmem (input, strlen (input), need, strlen (need)); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:103:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *result = memmem (input, strlen (input), need, strlen (need)); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:115:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen (needle); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:139:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen (haystack); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:243: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). const char* p = memmem (haystack, strlen (haystack), data/libprelude-5.2.0/libmissing/tests/test-memmem.c:244: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). needle, strlen (needle)); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:252: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). const char* p = memmem (haystack, strlen (haystack), data/libprelude-5.2.0/libmissing/tests/test-memmem.c:253: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). needle, strlen (needle)); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:276: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/libprelude-5.2.0/libmissing/tests/test-memmem.c:280: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/libprelude-5.2.0/libmissing/tests/test-memmem.c:284: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/libprelude-5.2.0/libmissing/tests/test-memmem.c:285: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). p = memmem (haystack, strlen (haystack), needle, strlen (needle)); data/libprelude-5.2.0/libmissing/tests/test-memmem.c:285:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = memmem (haystack, strlen (haystack), needle, strlen (needle)); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-open.h:69: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-poll.c:203:3: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getchar (); data/libprelude-5.2.0/libmissing/tests/test-poll.c:264: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/libprelude-5.2.0/libmissing/tests/test-poll.c:281: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/libprelude-5.2.0/libmissing/tests/test-poll.c:314: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/libprelude-5.2.0/libmissing/tests/test-rwlock1.c:85: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/libprelude-5.2.0/libmissing/tests/test-rwlock1.c:101: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-select.h:360: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/libprelude-5.2.0/libmissing/tests/test-select.h:375: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/libprelude-5.2.0/libmissing/tests/test-select.h:400: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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-uname.c:46: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.sysname) < sizeof (buf.sysname)); data/libprelude-5.2.0/libmissing/tests/test-uname.c:47: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.nodename) < sizeof (buf.nodename)); data/libprelude-5.2.0/libmissing/tests/test-uname.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.release) < sizeof (buf.release)); data/libprelude-5.2.0/libmissing/tests/test-uname.c:49: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.version) < sizeof (buf.version)); data/libprelude-5.2.0/libmissing/tests/test-uname.c:50: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.machine) < sizeof (buf.machine)); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/test-vsnprintf.c:81:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASSERT (retval == strlen (result)); data/libprelude-5.2.0/libmissing/tests/test-write.c:53:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ASSERT (read (rfd, buf, sizeof (buf)) == 17); data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/tests/usleep.c:41: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/libprelude-5.2.0/libmissing/tests/usleep.c:53: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/libprelude-5.2.0/libmissing/tests/usleep.c:55: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. # define usleep(x) 0 data/libprelude-5.2.0/libmissing/tests/usleep.c:57: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/libprelude-5.2.0/libmissing/unistd.in.h:1297:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/libprelude-5.2.0/libmissing/unistd.in.h:1298:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read rpl_read data/libprelude-5.2.0/libmissing/unistd.in.h:1300:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count) data/libprelude-5.2.0/libmissing/unistd.in.h:1302:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count)); data/libprelude-5.2.0/libmissing/unistd.in.h:1307:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS_CAST (read, ssize_t, (int fd, void *buf, size_t count)); data/libprelude-5.2.0/libmissing/unistd.in.h:1309:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (read); data/libprelude-5.2.0/libmissing/unistd.in.h:1622:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/libprelude-5.2.0/libmissing/unistd.in.h:1623:12: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # define usleep rpl_usleep data/libprelude-5.2.0/libmissing/unistd.in.h:1625:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); data/libprelude-5.2.0/libmissing/unistd.in.h:1626:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); data/libprelude-5.2.0/libmissing/unistd.in.h:1629:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); data/libprelude-5.2.0/libmissing/unistd.in.h:1631:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_SYS (usleep, int, (useconds_t n)); data/libprelude-5.2.0/libmissing/unistd.in.h:1633:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIASWARN (usleep); data/libprelude-5.2.0/libmissing/unistd.in.h:1635:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/libprelude-5.2.0/libmissing/unistd.in.h:1637:18: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_WARN_ON_USE (usleep, "usleep is unportable - " data/libprelude-5.2.0/libmissing/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/libprelude-5.2.0/libmissing/vasnprintf.c:1742: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/libprelude-5.2.0/libmissing/vasnprintf.c:2574: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/libprelude-5.2.0/libmissing/vasnprintf.c:3661: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/libprelude-5.2.0/libmissing/vasnprintf.c:3721: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/libprelude-5.2.0/libmissing/vasnprintf.c:3757: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/libprelude-5.2.0/libmissing/vasnprintf.c:3857: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/libprelude-5.2.0/libmissing/vasnprintf.c:3893: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/libprelude-5.2.0/libmissing/vasnprintf.c:4123: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/libprelude-5.2.0/libmissing/vasnprintf.c:4180: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/libprelude-5.2.0/libmissing/vasnprintf.c:4215: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/libprelude-5.2.0/libmissing/vasnprintf.c:4328: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/libprelude-5.2.0/libmissing/vasnprintf.c:4363: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/libprelude-5.2.0/libmissing/wchar.in.h:574:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s) _GL_ATTRIBUTE_PURE); data/libprelude-5.2.0/libmissing/wchar.in.h:576:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s)); data/libprelude-5.2.0/libmissing/wchar.in.h:577:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_CXXALIASWARN (wcslen); data/libprelude-5.2.0/libmissing/wchar.in.h:579:9: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # undef wcslen data/libprelude-5.2.0/libmissing/wchar.in.h:581:18: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_WARN_ON_USE (wcslen, "wcslen is unportable - " data/libprelude-5.2.0/libmissing/wchar.in.h:639:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcsncpy, wchar_t *, data/libprelude-5.2.0/libmissing/wchar.in.h:642:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcsncpy, wchar_t *, data/libprelude-5.2.0/libmissing/wchar.in.h:644:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcsncpy); data/libprelude-5.2.0/libmissing/wchar.in.h:646:9: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). # undef wcsncpy data/libprelude-5.2.0/libmissing/wchar.in.h:648:18: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - " data/libprelude-5.2.0/libmissing/wchar.in.h:692:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_FUNCDECL_SYS (wcsncat, wchar_t *, data/libprelude-5.2.0/libmissing/wchar.in.h:695:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIAS_SYS (wcsncat, wchar_t *, data/libprelude-5.2.0/libmissing/wchar.in.h:697:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIASWARN (wcsncat); data/libprelude-5.2.0/libmissing/wchar.in.h:699:9: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. # undef wcsncat data/libprelude-5.2.0/libmissing/wchar.in.h:701:18: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - " data/libprelude-5.2.0/prelude-admin/prelude-admin.c:122: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). snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "/tls.conf"); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:122: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). snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "/tls.conf"); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:184:17: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( getchar() != '\n' ); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:201:17: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( getchar() != '\n' ); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:521: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(buf); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:718: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). snprintf(dirname + strlen(dirname), sizeof(dirname) - strlen(dirname), "/idmef-client.conf"); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:718:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(dirname + strlen(dirname), sizeof(dirname) - strlen(dirname), "/idmef-client.conf"); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:744:23: [1] (buffer) strlen: Does not handle 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(buf); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:825:55: [1] (buffer) strlen: Does not handle 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 = prelude_io_write_delimited(fd, passwd, strlen(passwd) + 1); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:875:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(ptr_to_fd(fd), buf, count); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1097:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memset(pass1, 0, strlen(pass1)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1103: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). memset(pass2, 0, strlen(pass2)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1110: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). memset(pass1, 0, strlen(pass1)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1551: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). memset(one_shot_passwd, 0, strlen(one_shot_passwd)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1675: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). memset(one_shot_passwd, 0, strlen(one_shot_passwd)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1728: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). if ( eptr != argv[i + 1] + strlen(argv[i + 1]) ) { data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1951: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(info); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1961: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). pad -= strlen(info); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1995: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). mlen_name = MAX(mlen_name, strlen(ent->name)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1996:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mlen_uid = MAX(mlen_uid, strlen(ent->uid)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1997:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mlen_gid = MAX(mlen_gid, strlen(ent->gid)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1998: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). mlen_analyzerid = MAX(mlen_analyzerid, strlen(ent->analyzerid)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:1999:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mlen_tanalyzerid = MAX(mlen_tanalyzerid, strlen(ent->tanalyzerid)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:2000: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). mlen_perm = MAX(mlen_perm, strlen(ent->permission)); data/libprelude-5.2.0/prelude-admin/prelude-admin.c:2120:87: [1] (buffer) strlen: Does not handle 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 ( (! fgets(analyzerid, sizeof(analyzerid), fd)) || (size = strlen(analyzerid)) <= 0 ) { data/libprelude-5.2.0/prelude-admin/prelude-admin.c:2261:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(S_IRWXO); data/libprelude-5.2.0/prelude-admin/server.c:93: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). ret = prelude_io_write_delimited(fd, result, strlen(result)); data/libprelude-5.2.0/prelude-admin/server.c:131:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(ptr_to_fd(fd), buf, count); data/libprelude-5.2.0/prelude-admin/server.c:241: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). snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), ":%u", ntohs(ADDR_PORT(addr.addr))); data/libprelude-5.2.0/prelude-admin/server.c:241: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). snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), ":%u", ntohs(ADDR_PORT(addr.addr))); data/libprelude-5.2.0/prelude-admin/tls-register.c:633:32: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (ret = getchar()) != '\n' ) data/libprelude-5.2.0/src/common.c:162:23: [1] (buffer) strlen: Does not handle 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(buf); data/libprelude-5.2.0/src/common.c:312: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). memmove(ptr, end, strlen(end) + 1); data/libprelude-5.2.0/src/common.c:325:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(ptr == path ? ptr + 1 : ptr, end, strlen(end) + 1); data/libprelude-5.2.0/src/common.c:348:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t cwdlen = strlen(_prelude_init_cwd); data/libprelude-5.2.0/src/common.c:358: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. strncat(pathname, str, sizeof(pathname) - strlen(pathname)); data/libprelude-5.2.0/src/common.c:358: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). strncat(pathname, str, sizeof(pathname) - strlen(pathname)); data/libprelude-5.2.0/src/common.c:621:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, dataptr, st.st_size); data/libprelude-5.2.0/src/config-engine.c:239: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). len = strlen(line); data/libprelude-5.2.0/src/config-engine.c:372:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (ptr) ? (size_t) (ptr - str) : strlen(str); data/libprelude-5.2.0/src/config-engine.c:381:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ret = strip_value(&val, ptr + 1, strlen(ptr + 1)); data/libprelude-5.2.0/src/config-engine.c:534:23: [1] (buffer) strlen: Does not handle 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(entry) + strlen(val) + 2; data/libprelude-5.2.0/src/config-engine.c:534: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). len = strlen(entry) + strlen(val) + 2; data/libprelude-5.2.0/src/config-engine.c:536:23: [1] (buffer) strlen: Does not handle 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(entry) + 1; data/libprelude-5.2.0/src/config-engine.c:573:23: [1] (buffer) strlen: Does not handle 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(cfg->content[i]); data/libprelude-5.2.0/src/daemonize.c:126: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). ret = write(fd, buf, strlen(buf)); data/libprelude-5.2.0/src/daemonize.c:186:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0); data/libprelude-5.2.0/src/idmef-additional-data.c:53:74: [1] (buffer) strlen: Does not handle 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 idmef_additional_data_new_ ## name ## _ref_fast(ad, data, strlen(data)); \ data/libprelude-5.2.0/src/idmef-additional-data.c:63:74: [1] (buffer) strlen: Does not handle 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 idmef_additional_data_set_ ## name ## _ref_fast(ad, data, strlen(data)); \ data/libprelude-5.2.0/src/idmef-additional-data.c:73:74: [1] (buffer) strlen: Does not handle 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 idmef_additional_data_new_ ## name ## _dup_fast(ad, data, strlen(data)); \ data/libprelude-5.2.0/src/idmef-additional-data.c:83:74: [1] (buffer) strlen: Does not handle 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 idmef_additional_data_set_ ## name ## _dup_fast(ad, data, strlen(data)); \ data/libprelude-5.2.0/src/idmef-additional-data.c:93:76: [1] (buffer) strlen: Does not handle 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 idmef_additional_data_new_ ## name ## _nodup_fast(ad, data, strlen(data)); \ data/libprelude-5.2.0/src/idmef-additional-data.c:103:76: [1] (buffer) strlen: Does not handle 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 idmef_additional_data_set_ ## name ## _nodup_fast(ad, data, strlen(data)); \ data/libprelude-5.2.0/src/idmef-criteria-string.lex.c:984:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/libprelude-5.2.0/src/idmef-criteria-string.lex.c:2161:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yy_scan_bytes( yystr, (int) strlen(yystr) ); data/libprelude-5.2.0/src/idmef-criteria-string.yac.c:126: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 i = 0, len = strlen(str); data/libprelude-5.2.0/src/idmef-criteria-string.yac.c:1041: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). # define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) data/libprelude-5.2.0/src/idmef-criterion-value.c:381: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). ret = (pcre_exec(rv->regex, NULL, str, strlen(str), 0, 0, NULL, 0) < 0) ? 0 : 1; data/libprelude-5.2.0/src/idmef-criterion-value.c:394: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). prelude_io_write(fd, rv->regex_string, strlen(rv->regex_string)); data/libprelude-5.2.0/src/idmef-data.c:600:63: [1] (buffer) strlen: Does not handle 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 idmef_data_new_char_string_ref_fast(data, ptr, strlen(ptr)); data/libprelude-5.2.0/src/idmef-data.c:606:63: [1] (buffer) strlen: Does not handle 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 idmef_data_new_char_string_dup_fast(data, ptr, strlen(ptr)); data/libprelude-5.2.0/src/idmef-data.c:612:65: [1] (buffer) strlen: Does not handle 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 idmef_data_new_char_string_nodup_fast(data, ptr, strlen(ptr)); data/libprelude-5.2.0/src/idmef-data.c:620:63: [1] (buffer) strlen: Does not handle 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 idmef_data_set_char_string_ref_fast(data, ptr, strlen(ptr)); data/libprelude-5.2.0/src/idmef-data.c:628:63: [1] (buffer) strlen: Does not handle 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 idmef_data_set_char_string_dup_fast(data, ptr, strlen(ptr)); data/libprelude-5.2.0/src/idmef-data.c:636:65: [1] (buffer) strlen: Does not handle 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 idmef_data_set_char_string_nodup_fast(data, ptr, strlen(ptr)); data/libprelude-5.2.0/src/idmef-message-print-json.c:128:73: [1] (buffer) strlen: Does not handle 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 = prelude_io_write(fd, seq, strlen(seq)); data/libprelude-5.2.0/src/idmef-message-print-json.c:194:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return prelude_io_write(fd, str, strlen(str)); data/libprelude-5.2.0/src/idmef-message-read-json.c:187:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(out, input, MIN(size, j->end - j->start)); data/libprelude-5.2.0/src/idmef-message-read-json.c:213:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( tok->type == JSMN_STRING && strlen(wanted) == size && strncmp(start, wanted, size) == 0) data/libprelude-5.2.0/src/idmef-message-read-json.c:4010:65: [1] (buffer) strlen: Does not handle 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 = ctrl.jtoksize = jsmn_parse(&parser, json_message, strlen(json_message), ctrl.jtok, sizeof(ctrl.jtok) / sizeof(*ctrl.jtok)); data/libprelude-5.2.0/src/idmef-path.c:192:25: [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. Risk is low because the source is a constant character. strncat(path->name, ".", sizeof(path->name) - strlen(path->name)); data/libprelude-5.2.0/src/idmef-path.c:192:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat(path->name, ".", sizeof(path->name) - strlen(path->name)); data/libprelude-5.2.0/src/idmef-path.c:198:17: [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. strncat(path->name, name, sizeof(path->name) - strlen(path->name)); data/libprelude-5.2.0/src/idmef-path.c:198:64: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat(path->name, name, sizeof(path->name) - strlen(path->name)); data/libprelude-5.2.0/src/idmef-path.c:201:25: [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. Risk is low because the source is a constant character. strncat(path->name, "(", sizeof(path->name) - strlen(path->name)); data/libprelude-5.2.0/src/idmef-path.c:201:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat(path->name, "(", sizeof(path->name) - strlen(path->name)); data/libprelude-5.2.0/src/idmef-path.c:204:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(path->name + strlen(path->name), sizeof(path->name) - strlen(path->name), "%d", path->elem[i].index); data/libprelude-5.2.0/src/idmef-path.c:204:96: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). snprintf(path->name + strlen(path->name), sizeof(path->name) - strlen(path->name), "%d", path->elem[i].index); data/libprelude-5.2.0/src/idmef-path.c:207:33: [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. strncat(path->name, path->elem[i].index_key, sizeof(path->name) - strlen(path->name)); data/libprelude-5.2.0/src/idmef-path.c:207:99: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat(path->name, path->elem[i].index_key, sizeof(path->name) - strlen(path->name)); data/libprelude-5.2.0/src/idmef-path.c:209:25: [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. Risk is low because the source is a constant character. strncat(path->name, ")", sizeof(path->name) - strlen(path->name)); data/libprelude-5.2.0/src/idmef-path.c:209:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat(path->name, ")", sizeof(path->name) - strlen(path->name)); data/libprelude-5.2.0/src/idmef-path.c:645: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(buffer) + 1; data/libprelude-5.2.0/src/idmef-path.c:762:76: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if ( (*tok == '\'' || *tok == '"') && *(tok + strlen(tok) - 1) == *tok ) { data/libprelude-5.2.0/src/idmef-path.c:764:80: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). path->elem[depth].index_key = strndup(tok + 1, strlen(tok) - 2); data/libprelude-5.2.0/src/idmef-path.c:1197: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). snprintf(path->name + strlen(path->name), sizeof(path->name) - strlen(path->name), "%s%s%s", data/libprelude-5.2.0/src/idmef-path.c:1197: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). snprintf(path->name + strlen(path->name), sizeof(path->name) - strlen(path->name), "%s%s%s", data/libprelude-5.2.0/src/idmef-value-type.c:124:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int (*read)(idmef_value_type_t *dst, const char *buf); data/libprelude-5.2.0/src/idmef-value-type.c:448:78: [1] (buffer) strlen: Does not handle 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 idmef_data_new_char_string_dup_fast(&dst->data.data_val, src, strlen(src)); data/libprelude-5.2.0/src/idmef-value-type.c:819:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( ! ops_tbl[dst->id].read ) data/libprelude-5.2.0/src/idmef-value-type.c:824:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = ops_tbl[dst->id].read(dst, buf); data/libprelude-5.2.0/src/include/prelude-io.h:63:64: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void prelude_io_set_read_callback(prelude_io_t *pio, ssize_t (*read)(prelude_io_t *io, void *buf, size_t count)); data/libprelude-5.2.0/src/include/prelude-string.h:113: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). prelude_string_set_ref_fast((string), (str), strlen((str))) data/libprelude-5.2.0/src/include/prelude-string.h:116: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). prelude_string_new_ref_fast((string), (str), strlen((str))) data/libprelude-5.2.0/src/prelude-connection.c:590:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(un->sun_path, cnx->daddr, sizeof(un->sun_path)); data/libprelude-5.2.0/src/prelude-connection.c:1021:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, permission, sizeof(buf)); data/libprelude-5.2.0/src/prelude-failover.c:188:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(failover->jfd, ent->data + count, sizeof(ent->data) - count); data/libprelude-5.2.0/src/prelude-failover.c:390: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). if ( strlen(de->d_name) <= 4 || ! isdigit(de->d_name[4]) ) data/libprelude-5.2.0/src/prelude-failover.c:513:16: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode = umask(S_IRWXO); data/libprelude-5.2.0/src/prelude-failover.c:517:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(mode); data/libprelude-5.2.0/src/prelude-failover.c:523:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(mode); data/libprelude-5.2.0/src/prelude-failover.c:533:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(mode); data/libprelude-5.2.0/src/prelude-failover.c:544:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(mode); data/libprelude-5.2.0/src/prelude-failover.c:554:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(mode); data/libprelude-5.2.0/src/prelude-failover.c:563:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(mode); data/libprelude-5.2.0/src/prelude-failover.c:573: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). flen = strlen(filename); data/libprelude-5.2.0/src/prelude-failover.c:577:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(mode); data/libprelude-5.2.0/src/prelude-failover.c:584:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(mode); data/libprelude-5.2.0/src/prelude-failover.c:589:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(mode); data/libprelude-5.2.0/src/prelude-io.c:68:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t (*read)(prelude_io_t *pio, void *buf, size_t count); data/libprelude-5.2.0/src/prelude-io.c:143:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(pio->fd, buf, count); data/libprelude-5.2.0/src/prelude-io.c:484:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). prelude_return_val_if_fail(pio->read, prelude_error(PRELUDE_ERROR_ASSERTION)); data/libprelude-5.2.0/src/prelude-io.c:487:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return pio->read(pio, buf, count); data/libprelude-5.2.0/src/prelude-io.c:927:64: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void prelude_io_set_read_callback(prelude_io_t *pio, ssize_t (*read)(prelude_io_t *io, void *buf, size_t count)) data/libprelude-5.2.0/src/prelude-io.c:929:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). pio->read = read; data/libprelude-5.2.0/src/prelude-log.c:416: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). if ( strncasecmp(tbl[i].prefix, level, strlen(tbl[i].prefix)) == 0 ) { data/libprelude-5.2.0/src/prelude-log.c:423: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). if ( eptr != (level + strlen(level)) || lvalue == LONG_MIN || lvalue == LONG_MAX ) { data/libprelude-5.2.0/src/prelude-option-wide.c:436:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). prelude_msgbuf_set(msg, PRELUDE_MSG_OPTION_VALUE, strlen(request) + 1, request); data/libprelude-5.2.0/src/prelude-option.c:160:85: [1] (buffer) strlen: Does not handle 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 ( opt->longopt && strncasecmp(optname, opt->longopt, optnamelen) == 0 && strlen(opt->longopt) == optnamelen ) data/libprelude-5.2.0/src/prelude-option.c:219: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(stuff); data/libprelude-5.2.0/src/prelude-option.c:532: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(*option); data/libprelude-5.2.0/src/prelude-option.c:843:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). prelude_msgbuf_set(msg, PRELUDE_MSG_OPTION_NAME, strlen(name) + 1, name); data/libprelude-5.2.0/src/prelude-option.c:850:66: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). prelude_msgbuf_set(msg, PRELUDE_MSG_OPTION_DESC, strlen(opt->description) + 1, opt->description); data/libprelude-5.2.0/src/prelude-string.c:280:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return prelude_string_new_dup_fast(string, str, strlen(str)); data/libprelude-5.2.0/src/prelude-string.c:333:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return prelude_string_new_nodup_fast(string, str, strlen(str)); data/libprelude-5.2.0/src/prelude-string.c:382:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return prelude_string_new_ref_fast(string, str, strlen(str)); data/libprelude-5.2.0/src/prelude-string.c:434:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return prelude_string_set_dup_fast(string, buf, strlen(buf)); data/libprelude-5.2.0/src/prelude-string.c:485:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return prelude_string_set_nodup_fast(string, buf, strlen(buf)); data/libprelude-5.2.0/src/prelude-string.c:535:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return prelude_string_set_ref_fast(string, buf, strlen(buf)); data/libprelude-5.2.0/src/prelude-string.c:944:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return prelude_string_ncat(dst, str, strlen(str)); data/libprelude-5.2.0/src/tls-auth.c:258:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(ptr_to_fd(fd), buf, count); ANALYSIS SUMMARY: Hits = 1556 Lines analyzed = 251411 in approximately 6.95 seconds (36196 lines/second) Physical Source Lines of Code (SLOC) = 176219 Hits@level = [0] 525 [1] 506 [2] 682 [3] 89 [4] 252 [5] 27 Hits@level+ = [0+] 2081 [1+] 1556 [2+] 1050 [3+] 368 [4+] 279 [5+] 27 Hits/KSLOC@level+ = [0+] 11.8092 [1+] 8.82992 [2+] 5.95849 [3+] 2.08831 [4+] 1.58326 [5+] 0.153218 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.