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/wget2-1.99.1/tests/test-iri-forced-remote.c
Examining data/wget2-1.99.1/tests/test-iri-list.c
Examining data/wget2-1.99.1/tests/test-compression.c
Examining data/wget2-1.99.1/tests/test-idn-meta.c
Examining data/wget2-1.99.1/tests/test-np.c
Examining data/wget2-1.99.1/tests/test-gzip.c
Examining data/wget2-1.99.1/tests/test-redirection.c
Examining data/wget2-1.99.1/tests/test-iri.c
Examining data/wget2-1.99.1/tests/test--page-requisites.c
Examining data/wget2-1.99.1/tests/test--filter-mime-type.c
Examining data/wget2-1.99.1/tests/test-gpg-save-failed.c
Examining data/wget2-1.99.1/tests/test-bad-chunk.c
Examining data/wget2-1.99.1/tests/test-stats-site.c
Examining data/wget2-1.99.1/tests/test-wget-1.c
Examining data/wget2-1.99.1/tests/test--https-enforce-hard1.c
Examining data/wget2-1.99.1/tests/test-iri-subdir.c
Examining data/wget2-1.99.1/tests/test-parse-html-css.c
Examining data/wget2-1.99.1/tests/test-k.c
Examining data/wget2-1.99.1/tests/test-idn-robots.c
Examining data/wget2-1.99.1/tests/test-directory-clash.c
Examining data/wget2-1.99.1/tests/test-restrict-ascii.c
Examining data/wget2-1.99.1/tests/test-gpg-invalid.c
Examining data/wget2-1.99.1/tests/test-auth-digest.c
Examining data/wget2-1.99.1/tests/test-iri-percent.c
Examining data/wget2-1.99.1/tests/test-auth-basic.c
Examining data/wget2-1.99.1/tests/test-i-https.c
Examining data/wget2-1.99.1/tests/test-robots.c
Examining data/wget2-1.99.1/tests/libtest.h
Examining data/wget2-1.99.1/tests/test--https-enforce-hard3.c
Examining data/wget2-1.99.1/tests/test-stats-ocsp.c
Examining data/wget2-1.99.1/tests/test-gpg-bad.c
Examining data/wget2-1.99.1/tests/test--https-enforce-soft2.c
Examining data/wget2-1.99.1/tests/test-parse-rss.c
Examining data/wget2-1.99.1/tests/test-stats-all.c
Examining data/wget2-1.99.1/tests/test--spider-r.c
Examining data/wget2-1.99.1/tests/test--https-enforce-soft3.c
Examining data/wget2-1.99.1/tests/test--accept.c
Examining data/wget2-1.99.1/tests/test-metalink.c
Examining data/wget2-1.99.1/tests/test-plugin-failure.c
Examining data/wget2-1.99.1/tests/test-gpg-styles.c
Examining data/wget2-1.99.1/tests/test-gpg-valid.c
Examining data/wget2-1.99.1/tests/test--follow-tags.c
Examining data/wget2-1.99.1/tests/test-c-r.c
Examining data/wget2-1.99.1/tests/test-plugin-dummy.c
Examining data/wget2-1.99.1/tests/test-base.c
Examining data/wget2-1.99.1/tests/test--https-enforce-soft1.c
Examining data/wget2-1.99.1/tests/stats-test-util.h
Examining data/wget2-1.99.1/tests/test-plugin.c
Examining data/wget2-1.99.1/tests/test-gpg-missing.c
Examining data/wget2-1.99.1/tests/test--https-enforce-hard2.c
Examining data/wget2-1.99.1/tests/test-cut-dirs.c
Examining data/wget2-1.99.1/tests/test-plugin-nonexistance.c
Examining data/wget2-1.99.1/tests/test-stats-tls.c
Examining data/wget2-1.99.1/tests/test-meta-robots.c
Examining data/wget2-1.99.1/tests/libtest.c
Examining data/wget2-1.99.1/tests/test-i-http.c
Examining data/wget2-1.99.1/tests/test-chunked.c
Examining data/wget2-1.99.1/tests/test-plugin-interception.c
Examining data/wget2-1.99.1/tests/test-stats-dns.c
Examining data/wget2-1.99.1/tests/gpg-test-util.h
Examining data/wget2-1.99.1/tests/test-parse-css.c
Examining data/wget2-1.99.1/tests/test-idn-cmd.c
Examining data/wget2-1.99.1/fuzz/libwget_http_client_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_hsts_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_iri_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_xml_parse_buffer_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_robots_parse_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_atom_url_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_base64_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_tlssess_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_metalink_parse_fuzzer.c
Examining data/wget2-1.99.1/fuzz/wget_options_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_ocsp_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_cookie_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_css_url_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_sitemap_url_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_html_url_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_netrc_fuzzer.c
Examining data/wget2-1.99.1/fuzz/main.c
Examining data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c
Examining data/wget2-1.99.1/fuzz/fuzzer.h
Examining data/wget2-1.99.1/fuzz/libwget_bar_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_http_parse_fuzzer.c
Examining data/wget2-1.99.1/fuzz/libwget_hpkp_fuzzer.c
Examining data/wget2-1.99.1/lib/mbsrtowcs-impl.h
Examining data/wget2-1.99.1/lib/inttypes.in.h
Examining data/wget2-1.99.1/lib/sha512.h
Examining data/wget2-1.99.1/lib/glob_pattern_p.c
Examining data/wget2-1.99.1/lib/stdint.in.h
Examining data/wget2-1.99.1/lib/pipe-safer.c
Examining data/wget2-1.99.1/lib/gl_openssl.h
Examining data/wget2-1.99.1/lib/sys_socket.in.h
Examining data/wget2-1.99.1/lib/gai_strerror.c
Examining data/wget2-1.99.1/lib/fcntl.c
Examining data/wget2-1.99.1/lib/assure.h
Examining data/wget2-1.99.1/lib/dirent-private.h
Examining data/wget2-1.99.1/lib/select.c
Examining data/wget2-1.99.1/lib/localename.h
Examining data/wget2-1.99.1/lib/exitfail.c
Examining data/wget2-1.99.1/lib/md2.c
Examining data/wget2-1.99.1/lib/close.c
Examining data/wget2-1.99.1/lib/mkstemp.c
Examining data/wget2-1.99.1/lib/memchr.c
Examining data/wget2-1.99.1/lib/spawn_faction_init.c
Examining data/wget2-1.99.1/lib/tempname.h
Examining data/wget2-1.99.1/lib/locale.in.h
Examining data/wget2-1.99.1/lib/getline.c
Examining data/wget2-1.99.1/lib/stat.c
Examining data/wget2-1.99.1/lib/gettime.c
Examining data/wget2-1.99.1/lib/dirent.in.h
Examining data/wget2-1.99.1/lib/basename-lgpl.c
Examining data/wget2-1.99.1/lib/dirname.h
Examining data/wget2-1.99.1/lib/sched.in.h
Examining data/wget2-1.99.1/lib/stdalign.in.h
Examining data/wget2-1.99.1/lib/pathmax.h
Examining data/wget2-1.99.1/lib/sha1.h
Examining data/wget2-1.99.1/lib/cdefs.h
Examining data/wget2-1.99.1/lib/futimens.c
Examining data/wget2-1.99.1/lib/vasnprintf.c
Examining data/wget2-1.99.1/lib/fclose.c
Examining data/wget2-1.99.1/lib/errno.in.h
Examining data/wget2-1.99.1/lib/raise.c
Examining data/wget2-1.99.1/lib/dirfd.c
Examining data/wget2-1.99.1/lib/md5.c
Examining data/wget2-1.99.1/lib/c-strncasecmp.c
Examining data/wget2-1.99.1/lib/isatty.c
Examining data/wget2-1.99.1/lib/btowc.c
Examining data/wget2-1.99.1/lib/sha1.c
Examining data/wget2-1.99.1/lib/gettext.h
Examining data/wget2-1.99.1/lib/fpurge.c
Examining data/wget2-1.99.1/lib/fd-hook.h
Examining data/wget2-1.99.1/lib/stat-w32.h
Examining data/wget2-1.99.1/lib/unistd--.h
Examining data/wget2-1.99.1/lib/pipe2-safer.c
Examining data/wget2-1.99.1/lib/msvc-nothrow.h
Examining data/wget2-1.99.1/lib/dup-safer.c
Examining data/wget2-1.99.1/lib/strchrnul.c
Examining data/wget2-1.99.1/lib/mbtowc-impl.h
Examining data/wget2-1.99.1/lib/error.h
Examining data/wget2-1.99.1/lib/strdup.c
Examining data/wget2-1.99.1/lib/opendir.c
Examining data/wget2-1.99.1/lib/mbsrtowcs.c
Examining data/wget2-1.99.1/lib/sys_socket.c
Examining data/wget2-1.99.1/lib/scratch_buffer.h
Examining data/wget2-1.99.1/lib/stat-time.c
Examining data/wget2-1.99.1/lib/lseek.c
Examining data/wget2-1.99.1/lib/netinet_in.in.h
Examining data/wget2-1.99.1/lib/filename.h
Examining data/wget2-1.99.1/lib/connect.c
Examining data/wget2-1.99.1/lib/setlocale.c
Examining data/wget2-1.99.1/lib/spawn-pipe.h
Examining data/wget2-1.99.1/lib/printf-args.h
Examining data/wget2-1.99.1/lib/pthread_sigmask.c
Examining data/wget2-1.99.1/lib/float.c
Examining data/wget2-1.99.1/lib/strings.in.h
Examining data/wget2-1.99.1/lib/safe-write.c
Examining data/wget2-1.99.1/lib/unlink.c
Examining data/wget2-1.99.1/lib/spawn_int.h
Examining data/wget2-1.99.1/lib/xstrndup.c
Examining data/wget2-1.99.1/lib/fcntl.in.h
Examining data/wget2-1.99.1/lib/fnmatch.in.h
Examining data/wget2-1.99.1/lib/getpass.h
Examining data/wget2-1.99.1/lib/mkdir.c
Examining data/wget2-1.99.1/lib/wchar.in.h
Examining data/wget2-1.99.1/lib/string.in.h
Examining data/wget2-1.99.1/lib/xalloc-die.c
Examining data/wget2-1.99.1/lib/fstat.c
Examining data/wget2-1.99.1/lib/calloc.c
Examining data/wget2-1.99.1/lib/nanosleep.c
Examining data/wget2-1.99.1/lib/md5.h
Examining data/wget2-1.99.1/lib/stdarg.in.h
Examining data/wget2-1.99.1/lib/spawnattr_destroy.c
Examining data/wget2-1.99.1/lib/stdio-impl.h
Examining data/wget2-1.99.1/lib/sig-handler.c
Examining data/wget2-1.99.1/lib/tempname.c
Examining data/wget2-1.99.1/lib/regcomp.c
Examining data/wget2-1.99.1/lib/utimens.c
Examining data/wget2-1.99.1/lib/spawn_faction_adddup2.c
Examining data/wget2-1.99.1/lib/strerror-override.h
Examining data/wget2-1.99.1/lib/c-strcasestr.c
Examining data/wget2-1.99.1/lib/sockets.c
Examining data/wget2-1.99.1/lib/safe-write.h
Examining data/wget2-1.99.1/lib/stdbool.in.h
Examining data/wget2-1.99.1/lib/wait-process.c
Examining data/wget2-1.99.1/lib/sha256.c
Examining data/wget2-1.99.1/lib/sigprocmask.c
Examining data/wget2-1.99.1/lib/strerror.c
Examining data/wget2-1.99.1/lib/rmdir.c
Examining data/wget2-1.99.1/lib/malloca.c
Examining data/wget2-1.99.1/lib/glob_internal.h
Examining data/wget2-1.99.1/lib/readdir.c
Examining data/wget2-1.99.1/lib/inet_ntop.c
Examining data/wget2-1.99.1/lib/xstrndup.h
Examining data/wget2-1.99.1/lib/poll.in.h
Examining data/wget2-1.99.1/lib/malloc/scratch_buffer.h
Examining data/wget2-1.99.1/lib/malloc/scratch_buffer_set_array_size.c
Examining data/wget2-1.99.1/lib/malloc/scratch_buffer_grow.c
Examining data/wget2-1.99.1/lib/malloc/scratch_buffer_grow_preserve.c
Examining data/wget2-1.99.1/lib/c-strcasestr.h
Examining data/wget2-1.99.1/lib/mempcpy.c
Examining data/wget2-1.99.1/lib/mbsinit.c
Examining data/wget2-1.99.1/lib/langinfo.in.h
Examining data/wget2-1.99.1/lib/socket.c
Examining data/wget2-1.99.1/lib/spawn_faction_addclose.c
Examining data/wget2-1.99.1/lib/fd-safer-flag.c
Examining data/wget2-1.99.1/lib/w32spawn.h
Examining data/wget2-1.99.1/lib/c++defs.h
Examining data/wget2-1.99.1/lib/utimens.h
Examining data/wget2-1.99.1/lib/readlink.c
Examining data/wget2-1.99.1/lib/rawmemchr.c
Examining data/wget2-1.99.1/lib/hard-locale.h
Examining data/wget2-1.99.1/lib/alloca.c
Examining data/wget2-1.99.1/lib/wcrtomb.c
Examining data/wget2-1.99.1/lib/float+.h
Examining data/wget2-1.99.1/lib/spawn.in.h
Examining data/wget2-1.99.1/lib/mbtowc.c
Examining data/wget2-1.99.1/lib/timespec.c
Examining data/wget2-1.99.1/lib/sys_stat.in.h
Examining data/wget2-1.99.1/lib/spawn-pipe.c
Examining data/wget2-1.99.1/lib/regex.h
Examining data/wget2-1.99.1/lib/spawnattr_setflags.c
Examining data/wget2-1.99.1/lib/dirname.c
Examining data/wget2-1.99.1/lib/flexmember.h
Examining data/wget2-1.99.1/lib/getsockname.c
Examining data/wget2-1.99.1/lib/sys_time.in.h
Examining data/wget2-1.99.1/lib/unistd.in.h
Examining data/wget2-1.99.1/lib/random_r.c
Examining data/wget2-1.99.1/lib/spawn_faction_addopen.c
Examining data/wget2-1.99.1/lib/md2.h
Examining data/wget2-1.99.1/lib/pipe.c
Examining data/wget2-1.99.1/lib/open.c
Examining data/wget2-1.99.1/lib/regex_internal.h
Examining data/wget2-1.99.1/lib/sha512.c
Examining data/wget2-1.99.1/lib/binary-io.c
Examining data/wget2-1.99.1/lib/hard-locale.c
Examining data/wget2-1.99.1/lib/spawnattr_init.c
Examining data/wget2-1.99.1/lib/spawni.c
Examining data/wget2-1.99.1/lib/printf-parse.h
Examining data/wget2-1.99.1/lib/netdb.in.h
Examining data/wget2-1.99.1/lib/utime.in.h
Examining data/wget2-1.99.1/lib/str-two-way.h
Examining data/wget2-1.99.1/lib/fseek.c
Examining data/wget2-1.99.1/lib/u64.h
Examining data/wget2-1.99.1/lib/write.c
Examining data/wget2-1.99.1/lib/snprintf.c
Examining data/wget2-1.99.1/lib/signal.in.h
Examining data/wget2-1.99.1/lib/localtime-buffer.h
Examining data/wget2-1.99.1/lib/fatal-signal.h
Examining data/wget2-1.99.1/lib/localtime-buffer.c
Examining data/wget2-1.99.1/lib/stdio.in.h
Examining data/wget2-1.99.1/lib/localcharset.h
Examining data/wget2-1.99.1/lib/waitpid.c
Examining data/wget2-1.99.1/lib/warn-on-use.h
Examining data/wget2-1.99.1/lib/listen.c
Examining data/wget2-1.99.1/lib/glob.in.h
Examining data/wget2-1.99.1/lib/getprogname.h
Examining data/wget2-1.99.1/lib/binary-io.h
Examining data/wget2-1.99.1/lib/xalloc-oversized.h
Examining data/wget2-1.99.1/lib/freading.c
Examining data/wget2-1.99.1/lib/stddef.in.h
Examining data/wget2-1.99.1/lib/spawnattr_setsigmask.c
Examining data/wget2-1.99.1/lib/streq.h
Examining data/wget2-1.99.1/lib/read.c
Examining data/wget2-1.99.1/lib/exitfail.h
Examining data/wget2-1.99.1/lib/sig-handler.h
Examining data/wget2-1.99.1/lib/xsize.h
Examining data/wget2-1.99.1/lib/libc-config.h
Examining data/wget2-1.99.1/lib/fseeko.c
Examining data/wget2-1.99.1/lib/spawn_faction_destroy.c
Examining data/wget2-1.99.1/lib/spawn.c
Examining data/wget2-1.99.1/lib/nl_langinfo.c
Examining data/wget2-1.99.1/lib/safe-read.c
Examining data/wget2-1.99.1/lib/getlogin_r.c
Examining data/wget2-1.99.1/lib/canonicalize-lgpl.c
Examining data/wget2-1.99.1/lib/fflush.c
Examining data/wget2-1.99.1/lib/dirname-lgpl.c
Examining data/wget2-1.99.1/lib/globfree.c
Examining data/wget2-1.99.1/lib/strtoll.c
Examining data/wget2-1.99.1/lib/sys_ioctl.in.h
Examining data/wget2-1.99.1/lib/asnprintf.c
Examining data/wget2-1.99.1/lib/accept.c
Examining data/wget2-1.99.1/lib/sockets.h
Examining data/wget2-1.99.1/lib/c-strcasecmp.c
Examining data/wget2-1.99.1/lib/popen.c
Examining data/wget2-1.99.1/lib/gettimeofday.c
Examining data/wget2-1.99.1/lib/ioctl.c
Examining data/wget2-1.99.1/lib/stat-time.h
Examining data/wget2-1.99.1/lib/malloc.c
Examining data/wget2-1.99.1/lib/strcasecmp.c
Examining data/wget2-1.99.1/lib/time_r.c
Examining data/wget2-1.99.1/lib/safe-read.h
Examining data/wget2-1.99.1/lib/mbrtowc.c
Examining data/wget2-1.99.1/lib/minmax.h
Examining data/wget2-1.99.1/lib/basename.c
Examining data/wget2-1.99.1/lib/qsort.c
Examining data/wget2-1.99.1/lib/cloexec.c
Examining data/wget2-1.99.1/lib/strerror-override.c
Examining data/wget2-1.99.1/lib/pwrite.c
Examining data/wget2-1.99.1/lib/send.c
Examining data/wget2-1.99.1/lib/verify.h
Examining data/wget2-1.99.1/lib/error.c
Examining data/wget2-1.99.1/lib/msvc-inval.h
Examining data/wget2-1.99.1/lib/fsync.c
Examining data/wget2-1.99.1/lib/fopen.c
Examining data/wget2-1.99.1/lib/limits.in.h
Examining data/wget2-1.99.1/lib/malloca.h
Examining data/wget2-1.99.1/lib/glob.c
Examining data/wget2-1.99.1/lib/ftell.c
Examining data/wget2-1.99.1/lib/strnlen.c
Examining data/wget2-1.99.1/lib/getdtablesize.c
Examining data/wget2-1.99.1/lib/sys_wait.in.h
Examining data/wget2-1.99.1/lib/size_max.h
Examining data/wget2-1.99.1/lib/c-ctype.c
Examining data/wget2-1.99.1/lib/regex_internal.c
Examining data/wget2-1.99.1/lib/spawnp.c
Examining data/wget2-1.99.1/lib/dosname.h
Examining data/wget2-1.99.1/lib/wctype-h.c
Examining data/wget2-1.99.1/lib/sha256.h
Examining data/wget2-1.99.1/lib/sys_file.in.h
Examining data/wget2-1.99.1/lib/sys_select.in.h
Examining data/wget2-1.99.1/lib/stdlib.in.h
Examining data/wget2-1.99.1/lib/fd-hook.c
Examining data/wget2-1.99.1/lib/xalloc.h
Examining data/wget2-1.99.1/lib/intprops.h
Examining data/wget2-1.99.1/lib/flock.c
Examining data/wget2-1.99.1/lib/sys_uio.in.h
Examining data/wget2-1.99.1/lib/recvfrom.c
Examining data/wget2-1.99.1/lib/stripslash.c
Examining data/wget2-1.99.1/lib/ftello.c
Examining data/wget2-1.99.1/lib/glthread/cond.h
Examining data/wget2-1.99.1/lib/glthread/lock.c
Examining data/wget2-1.99.1/lib/glthread/cond.c
Examining data/wget2-1.99.1/lib/glthread/lock.h
Examining data/wget2-1.99.1/lib/glthread/thread.h
Examining data/wget2-1.99.1/lib/glthread/threadlib.c
Examining data/wget2-1.99.1/lib/glthread/thread.c
Examining data/wget2-1.99.1/lib/freading.h
Examining data/wget2-1.99.1/lib/timespec.h
Examining data/wget2-1.99.1/lib/unused-parameter.h
Examining data/wget2-1.99.1/lib/strnlen1.h
Examining data/wget2-1.99.1/lib/printf-parse.c
Examining data/wget2-1.99.1/lib/getpeername.c
Examining data/wget2-1.99.1/lib/getaddrinfo.c
Examining data/wget2-1.99.1/lib/regex.c
Examining data/wget2-1.99.1/lib/inet_pton.c
Examining data/wget2-1.99.1/lib/arg-nonnull.h
Examining data/wget2-1.99.1/lib/strncasecmp.c
Examining data/wget2-1.99.1/lib/strnlen1.c
Examining data/wget2-1.99.1/lib/realloc.c
Examining data/wget2-1.99.1/lib/qsort_r.c
Examining data/wget2-1.99.1/lib/fdopen.c
Examining data/wget2-1.99.1/lib/wait-process.h
Examining data/wget2-1.99.1/lib/bind.c
Examining data/wget2-1.99.1/lib/regexec.c
Examining data/wget2-1.99.1/lib/progname.c
Examining data/wget2-1.99.1/lib/printf-args.c
Examining data/wget2-1.99.1/lib/strstr.c
Examining data/wget2-1.99.1/lib/rename.c
Examining data/wget2-1.99.1/lib/lstat.c
Examining data/wget2-1.99.1/lib/unistd.c
Examining data/wget2-1.99.1/lib/time.in.h
Examining data/wget2-1.99.1/lib/c-strcase.h
Examining data/wget2-1.99.1/lib/_Noreturn.h
Examining data/wget2-1.99.1/lib/fatal-signal.c
Examining data/wget2-1.99.1/lib/float.in.h
Examining data/wget2-1.99.1/lib/fnmatch_loop.c
Examining data/wget2-1.99.1/lib/poll.c
Examining data/wget2-1.99.1/lib/u64.c
Examining data/wget2-1.99.1/lib/fd-safer.c
Examining data/wget2-1.99.1/lib/vasnprintf.h
Examining data/wget2-1.99.1/lib/getdelim.c
Examining data/wget2-1.99.1/lib/c-ctype.h
Examining data/wget2-1.99.1/lib/mbsrtowcs-state.c
Examining data/wget2-1.99.1/lib/arpa_inet.in.h
Examining data/wget2-1.99.1/lib/unistd-safer.h
Examining data/wget2-1.99.1/lib/xmalloc.c
Examining data/wget2-1.99.1/lib/getprogname.c
Examining data/wget2-1.99.1/lib/stat-w32.c
Examining data/wget2-1.99.1/lib/xsize.c
Examining data/wget2-1.99.1/lib/same-inode.h
Examining data/wget2-1.99.1/lib/sys_types.in.h
Examining data/wget2-1.99.1/lib/sigaction.c
Examining data/wget2-1.99.1/lib/utime.c
Examining data/wget2-1.99.1/lib/wctype.in.h
Examining data/wget2-1.99.1/lib/cloexec.h
Examining data/wget2-1.99.1/lib/alloca.in.h
Examining data/wget2-1.99.1/lib/fnmatch.c
Examining data/wget2-1.99.1/lib/pipe2.c
Examining data/wget2-1.99.1/lib/dup2.c
Examining data/wget2-1.99.1/lib/msvc-nothrow.c
Examining data/wget2-1.99.1/lib/itold.c
Examining data/wget2-1.99.1/lib/closedir.c
Examining data/wget2-1.99.1/lib/setsockopt.c
Examining data/wget2-1.99.1/lib/progname.h
Examining data/wget2-1.99.1/lib/dup-safer-flag.c
Examining data/wget2-1.99.1/lib/msvc-inval.c
Examining data/wget2-1.99.1/lib/sendto.c
Examining data/wget2-1.99.1/lib/strndup.c
Examining data/wget2-1.99.1/lib/localename.c
Examining data/wget2-1.99.1/lib/glob-libc.h
Examining data/wget2-1.99.1/lib/recv.c
Examining data/wget2-1.99.1/lib/ftruncate.c
Examining data/wget2-1.99.1/lib/w32sock.h
Examining data/wget2-1.99.1/lib/localeconv.c
Examining data/wget2-1.99.1/lib/getpass.c
Examining data/wget2-1.99.1/lib/strtol.c
Examining data/wget2-1.99.1/lib/localcharset.c
Examining data/wget2-1.99.1/src/wget_options.h
Examining data/wget2-1.99.1/src/wget_bar.h
Examining data/wget2-1.99.1/src/stats_ocsp.c
Examining data/wget2-1.99.1/src/stats_server.c
Examining data/wget2-1.99.1/src/wget_host.h
Examining data/wget2-1.99.1/src/wget_testing.h
Examining data/wget2-1.99.1/src/wget_stats.h
Examining data/wget2-1.99.1/src/wget_blacklist.h
Examining data/wget2-1.99.1/src/dl.c
Examining data/wget2-1.99.1/src/options.c
Examining data/wget2-1.99.1/src/wget_job.h
Examining data/wget2-1.99.1/src/testing.c
Examining data/wget2-1.99.1/src/bar.c
Examining data/wget2-1.99.1/src/wget_gpgme.h
Examining data/wget2-1.99.1/src/wget_dl.h
Examining data/wget2-1.99.1/src/gpgme.c
Examining data/wget2-1.99.1/src/blacklist.c
Examining data/wget2-1.99.1/src/host.c
Examining data/wget2-1.99.1/src/stats_dns.c
Examining data/wget2-1.99.1/src/wget_log.h
Examining data/wget2-1.99.1/src/job.c
Examining data/wget2-1.99.1/src/plugin.c
Examining data/wget2-1.99.1/src/wget_plugin.h
Examining data/wget2-1.99.1/src/wget.c
Examining data/wget2-1.99.1/src/log.c
Examining data/wget2-1.99.1/src/stats_tls.c
Examining data/wget2-1.99.1/src/utils.c
Examining data/wget2-1.99.1/src/stats.c
Examining data/wget2-1.99.1/src/wget_main.h
Examining data/wget2-1.99.1/src/wget_xattr.h
Examining data/wget2-1.99.1/src/wget_utils.h
Examining data/wget2-1.99.1/src/stats_site.c
Examining data/wget2-1.99.1/examples/http_get2.c
Examining data/wget2-1.99.1/examples/check_url_types.c
Examining data/wget2-1.99.1/examples/http_get.c
Examining data/wget2-1.99.1/examples/print_css_urls2.c
Examining data/wget2-1.99.1/examples/print_css_urls3.c
Examining data/wget2-1.99.1/examples/http_multi_get.c
Examining data/wget2-1.99.1/examples/websequencediagram.c
Examining data/wget2-1.99.1/examples/getstream.c
Examining data/wget2-1.99.1/examples/print_css_urls.c
Examining data/wget2-1.99.1/examples/print_html_urls.c
Examining data/wget2-1.99.1/examples/websequencediagram_high.c
Examining data/wget2-1.99.1/include/wget/wgetver.h
Examining data/wget2-1.99.1/include/wget/wget.h
Examining data/wget2-1.99.1/unit-tests/test-dl-dummy.c
Examining data/wget2-1.99.1/unit-tests/stringmap_perf.c
Examining data/wget2-1.99.1/unit-tests/test.c
Examining data/wget2-1.99.1/unit-tests/test-cond.c
Examining data/wget2-1.99.1/unit-tests/test-dl.c
Examining data/wget2-1.99.1/unit-tests/test-parse-html.c
Examining data/wget2-1.99.1/unit-tests/buffer_printf_perf.c
Examining data/wget2-1.99.1/libwget/printf.c
Examining data/wget2-1.99.1/libwget/http.c
Examining data/wget2-1.99.1/libwget/console.c
Examining data/wget2-1.99.1/libwget/net.h
Examining data/wget2-1.99.1/libwget/buffer_printf.c
Examining data/wget2-1.99.1/libwget/io.c
Examining data/wget2-1.99.1/libwget/logger.h
Examining data/wget2-1.99.1/libwget/iri.c
Examining data/wget2-1.99.1/libwget/netrc.c
Examining data/wget2-1.99.1/libwget/vector.c
Examining data/wget2-1.99.1/libwget/html_url.c
Examining data/wget2-1.99.1/libwget/bar.c
Examining data/wget2-1.99.1/libwget/test_linking.c
Examining data/wget2-1.99.1/libwget/pipe.c
Examining data/wget2-1.99.1/libwget/hsts.c
Examining data/wget2-1.99.1/libwget/xml.c
Examining data/wget2-1.99.1/libwget/metalink.c
Examining data/wget2-1.99.1/libwget/stringmap.c
Examining data/wget2-1.99.1/libwget/init.c
Examining data/wget2-1.99.1/libwget/buffer.c
Examining data/wget2-1.99.1/libwget/private.h
Examining data/wget2-1.99.1/libwget/xalloc.c
Examining data/wget2-1.99.1/libwget/tls_session.c
Examining data/wget2-1.99.1/libwget/http_highlevel.c
Examining data/wget2-1.99.1/libwget/ssl_gnutls.c
Examining data/wget2-1.99.1/libwget/base64.c
Examining data/wget2-1.99.1/libwget/hashmap.c
Examining data/wget2-1.99.1/libwget/hash_printf.c
Examining data/wget2-1.99.1/libwget/cookie.c
Examining data/wget2-1.99.1/libwget/mem.c
Examining data/wget2-1.99.1/libwget/css_tokenizer.h
Examining data/wget2-1.99.1/libwget/plugin.c
Examining data/wget2-1.99.1/libwget/list.c
Examining data/wget2-1.99.1/libwget/css_url.c
Examining data/wget2-1.99.1/libwget/random.c
Examining data/wget2-1.99.1/libwget/log.c
Examining data/wget2-1.99.1/libwget/atom_url.c
Examining data/wget2-1.99.1/libwget/ocsp.c
Examining data/wget2-1.99.1/libwget/hpkp.c
Examining data/wget2-1.99.1/libwget/css.c
Examining data/wget2-1.99.1/libwget/http.h
Examining data/wget2-1.99.1/libwget/hashfile.c
Examining data/wget2-1.99.1/libwget/utils.c
Examining data/wget2-1.99.1/libwget/logger.c
Examining data/wget2-1.99.1/libwget/ip.c
Examining data/wget2-1.99.1/libwget/dns_cache.c
Examining data/wget2-1.99.1/libwget/css_tokenizer.c
Examining data/wget2-1.99.1/libwget/http_parse.c
Examining data/wget2-1.99.1/libwget/net.c
Examining data/wget2-1.99.1/libwget/strlcpy.c
Examining data/wget2-1.99.1/libwget/sitemap_url.c
Examining data/wget2-1.99.1/libwget/thread.c
Examining data/wget2-1.99.1/libwget/strscpy.c
Examining data/wget2-1.99.1/libwget/rss_url.c
Examining data/wget2-1.99.1/libwget/encoding.c
Examining data/wget2-1.99.1/libwget/robots.c
Examining data/wget2-1.99.1/libwget/decompressor.c

FINAL RESULTS:

data/wget2-1.99.1/lib/canonicalize-lgpl.c:73:21:  [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 readlink
data/wget2-1.99.1/lib/readlink.c:32:1:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
readlink (const char *name, char *buf _GL_UNUSED,
data/wget2-1.99.1/lib/readlink.c:47:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
# undef readlink
data/wget2-1.99.1/lib/readlink.c:71:10:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  return readlink (name, buf, bufsize);
data/wget2-1.99.1/lib/stdio.in.h:745:8:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
#undef gets
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/unistd.in.h:1291: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/wget2-1.99.1/lib/unistd.in.h:1293: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/wget2-1.99.1/lib/unistd.in.h:1296: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/wget2-1.99.1/lib/unistd.in.h:1300: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/wget2-1.99.1/lib/unistd.in.h:1304: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/wget2-1.99.1/lib/unistd.in.h:1307: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/wget2-1.99.1/lib/unistd.in.h:1309: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/wget2-1.99.1/lib/unistd.in.h:1311: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/wget2-1.99.1/fuzz/main.c:82:13:  [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.
			  return system(cmd) != 0;
data/wget2-1.99.1/fuzz/main.c:87:13:  [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.
			  return system(cmd) != 0;
data/wget2-1.99.1/fuzz/main.c:114:3:  [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(corporadir, sizeof(corporadir), SRCDIR "/%.*s.in", (int) target_len, target);
data/wget2-1.99.1/fuzz/main.c:120:3:  [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(corporadir, sizeof(corporadir), SRCDIR "/%.*s.repro", (int) target_len, target);
data/wget2-1.99.1/include/wget/wget.h:94:66:  [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 G_GNUC_WGET_PRINTF_FORMAT(a, b) __attribute__ ((format (printf, a, b)))
data/wget2-1.99.1/lib/error.c:274:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, message, args);
data/wget2-1.99.1/lib/error.c:389:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf (stderr, file_name != NULL ? "%s:%u: " : " ",
data/wget2-1.99.1/lib/fnmatch.c:165:23:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
# define STRCAT(D, S) strcat (D, S)
data/wget2-1.99.1/lib/fnmatch.c:195:25:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
#   define STRCAT(D, S) wcscat (D, S)
data/wget2-1.99.1/lib/getlogin_r.c:35:14:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
extern char *getlogin (void);
data/wget2-1.99.1/lib/getlogin_r.c:96:7:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
  n = getlogin ();
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/getpass.h:26:7:  [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.
char *getpass (const char *prompt);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/localcharset.c:243:23:  [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 (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
data/wget2-1.99.1/lib/localcharset.c:244:23:  [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 (res_ptr + res_size - (l2 + 1), buf2);
data/wget2-1.99.1/lib/localcharset.c:515: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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/opendir.c:151:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (dirp->dir_name_mask, dir_name_mask);
data/wget2-1.99.1/lib/popen.c:30:1:  [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.
popen (const char *filename, const char *mode)
data/wget2-1.99.1/lib/popen.c:48: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/wget2-1.99.1/lib/popen.c:92: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.
  result = popen (filename, mode);
data/wget2-1.99.1/lib/setlocale.c:711: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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/strerror.c:33:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/wget2-1.99.1/lib/strerror.c:59:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (buf, fmt, n);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/vasnprintf.c:171:20:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define SNPRINTF swprintf
data/wget2-1.99.1/lib/vasnprintf.c:189:21:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   define SNPRINTF snprintf
data/wget2-1.99.1/lib/vasnprintf.c:191:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   undef snprintf
data/wget2-1.99.1/lib/vasnprintf.c:194:21:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   define SNPRINTF _snprintf
data/wget2-1.99.1/lib/vasnprintf.c:199:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF snprintf
data/wget2-1.99.1/lib/vasnprintf.c:201:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  undef snprintf
data/wget2-1.99.1/lib/vasnprintf.c:205:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/wget2-1.99.1/lib/vasnprintf.c:4267:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                      sprintf ((char *) p, decimal_format, exponent);
data/wget2-1.99.1/lib/vasnprintf.c:4275:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                      sprintf (expbuf, decimal_format, exponent);
data/wget2-1.99.1/lib/vasnprintf.c:4460:47:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                              sprintf ((char *) p, decimal_format, exponent);
data/wget2-1.99.1/lib/vasnprintf.c:4468:47:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                              sprintf (expbuf, decimal_format, exponent);
data/wget2-1.99.1/lib/vasnprintf.c:4990:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, arg);                    \
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/libwget/log.c:48: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.
	if (_info.vprintf)
data/wget2-1.99.1/libwget/log.c:49:9:  [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.
		_info.vprintf(&_info, fmt, args);
data/wget2-1.99.1/libwget/log.c:54: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.
	if (_info.vprintf) {
data/wget2-1.99.1/libwget/log.c:58:9:  [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.
		_info.vprintf(&_info, fmt, args);
data/wget2-1.99.1/libwget/log.c:65:13:  [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.
	if (_error.vprintf)
data/wget2-1.99.1/libwget/log.c:66: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.
		_error.vprintf(&_error, fmt, args);
data/wget2-1.99.1/libwget/log.c:71:13:  [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.
	if (_error.vprintf) {
data/wget2-1.99.1/libwget/log.c:75: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.
		_error.vprintf(&_error, fmt, args);
data/wget2-1.99.1/libwget/log.c:82:13:  [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.
	if (_error.vprintf) {
data/wget2-1.99.1/libwget/log.c:86: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.
		_error.vprintf(&_error, fmt, args);
data/wget2-1.99.1/libwget/log.c:95:13:  [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.
	if (_debug.vprintf)
data/wget2-1.99.1/libwget/log.c:96: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.
		_debug.vprintf(&_debug, fmt, args);
data/wget2-1.99.1/libwget/log.c:101:13:  [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.
	if (_debug.vprintf) {
data/wget2-1.99.1/libwget/log.c:105: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.
		_debug.vprintf(&_debug, fmt, args);
data/wget2-1.99.1/libwget/logger.c:149: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.
	return !!logger->vprintf;
data/wget2-1.99.1/libwget/logger.h:37:9:  [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.
	void (*vprintf)(const wget_logger_t *logger, const char *fmt, va_list args) G_GNUC_WGET_PRINTF_FORMAT(2,0);
data/wget2-1.99.1/libwget/pipe.c:53:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	fp = popen(buf.data, type);
data/wget2-1.99.1/libwget/pipe.c:146:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(argv[0], (char *const *)argv); // does only return on error
data/wget2-1.99.1/src/options.c:2524:10:  [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.
		return getpass("");
data/wget2-1.99.1/src/options.c:2672:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(cfgfile, R_OK) == 0)
data/wget2-1.99.1/src/wget.c:197: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.
					if (access(dst, F_OK) != 0 && rename(fname, dst) == 0)
data/wget2-1.99.1/src/wget.c:1025:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				if (access(filename, W_OK) == 0) {
data/wget2-1.99.1/tests/libtest.c:640:2:  [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.
	system(cmd);
data/wget2-1.99.1/tests/libtest.c:1102: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.
	if ((pp = popen(cmd->data, "r"))) {
data/wget2-1.99.1/tests/test-compression.c:230:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(test_option, "--compression=%s", compressions[i].type);
data/wget2-1.99.1/tests/test-idn-cmd.c:62:2:  [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(options, sizeof(options),
data/wget2-1.99.1/tests/test-idn-cmd.c:79:2:  [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(options, sizeof(options),
data/wget2-1.99.1/tests/test-plugin-failure.c:186:6:  [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(".libs/libpluginname.so", R_OK) != 0
data/wget2-1.99.1/tests/test-plugin-failure.c:187:6:  [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.
		&& access(".libs/libpluginname.dll", R_OK) != 0
data/wget2-1.99.1/tests/test-plugin-failure.c:188:6:  [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.
		&& access(".libs/cygpluginname.dll", R_OK) != 0)
data/wget2-1.99.1/tests/test-plugin-interception.c:189:6:  [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(".libs/libpluginname.so", R_OK) != 0
data/wget2-1.99.1/tests/test-plugin-interception.c:190:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    && access(".libs/libpluginname.dll", R_OK) != 0
data/wget2-1.99.1/tests/test-plugin-interception.c:191:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    && access(".libs/cygpluginname.dll", R_OK) != 0)
data/wget2-1.99.1/tests/test-plugin-nonexistance.c:193:6:  [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(".libs/libpluginname.so", R_OK) != 0
data/wget2-1.99.1/tests/test-plugin-nonexistance.c:194:6:  [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.
		&& access(".libs/libpluginname.dll", R_OK) != 0
data/wget2-1.99.1/tests/test-plugin-nonexistance.c:195:6:  [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.
		&& access(".libs/cygpluginname.dll", R_OK) != 0)
data/wget2-1.99.1/tests/test-plugin.c:194:6:  [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(".libs/libpluginname.so", R_OK) != 0
data/wget2-1.99.1/tests/test-plugin.c:195:6:  [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.
		&& access(".libs/libpluginname.dll", R_OK) != 0
data/wget2-1.99.1/tests/test-plugin.c:196:6:  [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.
		&& access(".libs/cygpluginname.dll", R_OK) != 0)
data/wget2-1.99.1/tests/test-wget-1.c:180:6:  [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("/dev/full", W_OK)) {
data/wget2-1.99.1/unit-tests/test-dl.c:41:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(__FILE__ ":%d: error: ", __LINE__); \
data/wget2-1.99.1/unit-tests/test-dl.c:42:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(__VA_ARGS__); \
data/wget2-1.99.1/unit-tests/test-dl.c:307:10:  [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.
		return system(cmd) != 0;
data/wget2-1.99.1/unit-tests/test-dl.c:313:10:  [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.
		return system(cmd) != 0;
data/wget2-1.99.1/unit-tests/test.c:391:7:  [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(result, sizeof(result), fmt, string);
data/wget2-1.99.1/unit-tests/test.c:430: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(result, sizeof(result), fmt, string);
data/wget2-1.99.1/unit-tests/test.c:433: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(result, sizeof(result), fmt, precision, string);
data/wget2-1.99.1/unit-tests/test.c:438: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(result, sizeof(result), fmt, width, string);
data/wget2-1.99.1/unit-tests/test.c:441: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(result, sizeof(result), fmt, width, precision, string);
data/wget2-1.99.1/unit-tests/test.c:482:8:  [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(result, sizeof(result), fmt, number[n]);
data/wget2-1.99.1/unit-tests/test.c:2388:10:  [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.
		return system(cmd) != 0;
data/wget2-1.99.1/unit-tests/test.c:2393:10:  [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.
		return system(cmd) != 0;
data/wget2-1.99.1/fuzz/main.c:71:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *valgrind = getenv("VALGRIND_TESTS");
data/wget2-1.99.1/lib/canonicalize-lgpl.c:51:21:  [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 realpath
data/wget2-1.99.1/lib/canonicalize-lgpl.c:71:30:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#  define __getcwd(buf, max) getwd (buf)
data/wget2-1.99.1/lib/canonicalize-lgpl.c:394:37:  [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.
versioned_symbol (libc, __realpath, realpath, GLIBC_2_3);
data/wget2-1.99.1/lib/canonicalize-lgpl.c:411:38:  [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.
compat_symbol (libc, __old_realpath, realpath, GLIBC_2_0);
data/wget2-1.99.1/lib/fnmatch_loop.c:209:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
              posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1;
data/wget2-1.99.1/lib/fnmatch_loop.c:999:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
          posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1;
data/wget2-1.99.1/lib/fnmatch_loop.c:1052:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
          posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1;
data/wget2-1.99.1/lib/gettimeofday.c:44: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/wget2-1.99.1/lib/glob.c:582:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
          char *home_dir = getenv ("HOME");
data/wget2-1.99.1/lib/glob.c:589:40:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
              const char *home_drive = getenv ("HOMEDRIVE");
data/wget2-1.99.1/lib/glob.c:590:39:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
              const char *home_path = getenv ("HOMEPATH");
data/wget2-1.99.1/lib/glthread/cond.c:215:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&cond->lock);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/glthread/lock.c:801:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/glthread/lock.c:938:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/glthread/lock.c:1121:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/glthread/lock.c:1190:11:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
          InitializeCriticalSection (&once_control->lock);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/glthread/thread.c:128:7:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
      InitializeCriticalSection (&thread->handle_lock);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/glthread/thread.c:167:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&thread->handle_lock);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/localcharset.c:140:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      dir = getenv ("CHARSETALIASDIR");
data/wget2-1.99.1/lib/localcharset.c:418: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/wget2-1.99.1/lib/localcharset.c:421: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/wget2-1.99.1/lib/localcharset.c:423: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/wget2-1.99.1/lib/localcharset.c:479: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/wget2-1.99.1/lib/localcharset.c:482: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/wget2-1.99.1/lib/localcharset.c:484: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/wget2-1.99.1/lib/localcharset.c:540: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/wget2-1.99.1/lib/localcharset.c:543: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/wget2-1.99.1/lib/localcharset.c:545: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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/localename.c:2859: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/wget2-1.99.1/lib/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 (categoryname);
data/wget2-1.99.1/lib/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 ("LANG");
data/wget2-1.99.1/lib/spawni.c:304: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.
  path = getenv ("PATH");
data/wget2-1.99.1/lib/stat-w32.c:60: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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/libwget/io.c:420:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!(tmpdir = getenv("TMPDIR")) && !(tmpdir = getenv("TMP"))
data/wget2-1.99.1/libwget/io.c:420:49:  [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 (!(tmpdir = getenv("TMPDIR")) && !(tmpdir = getenv("TMP"))
data/wget2-1.99.1/libwget/io.c:421:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		&& !(tmpdir = getenv("TEMP")) && !(tmpdir = getenv("TEMPDIR")))
data/wget2-1.99.1/libwget/io.c:421:47:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		&& !(tmpdir = getenv("TEMP")) && !(tmpdir = getenv("TEMPDIR")))
data/wget2-1.99.1/src/dl.c:167:17:  [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.
	dm_st.handle = LoadLibrary(buf ? buf : filename);
data/wget2-1.99.1/src/gpgme.c:162:22:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		char *canon_home = realpath(config.gnupg_homedir, NULL);
data/wget2-1.99.1/src/log.c:124:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&g_crit);
data/wget2-1.99.1/src/log.c:198:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection (&g_crit);
data/wget2-1.99.1/src/options.c:2665:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((env = getenv ("SYSTEM_WGET2RC")) && *env)
data/wget2-1.99.1/src/options.c:2667:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((env = getenv ("WGET2RC")) && *env)
data/wget2-1.99.1/src/options.c:2723: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.
		path = getenv("WGET2_PLUGIN_DIRS");
data/wget2-1.99.1/src/options.c:2803:36:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			config.http_proxy = wget_strdup(getenv("http_proxy"));
data/wget2-1.99.1/src/options.c:2805:37:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			config.https_proxy = wget_strdup(getenv("https_proxy"));
data/wget2-1.99.1/src/options.c:2807:34:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			config.no_proxy = wget_strdup(getenv("no_proxy"));
data/wget2-1.99.1/src/plugin.c:424:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	str = getenv(plugin_list_envvar);
data/wget2-1.99.1/tests/libtest.c:1067:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *valgrind = getenv("VALGRIND_TESTS");
data/wget2-1.99.1/tests/libtest.c:1071: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.
		const char *emulator = getenv("EMULATOR");
data/wget2-1.99.1/unit-tests/test-dl.c:295:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *valgrind = getenv("VALGRIND_TESTS");
data/wget2-1.99.1/unit-tests/test.c:2379:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *valgrind = getenv("VALGRIND_TESTS");
data/wget2-1.99.1/unit-tests/test.c:2399:2:  [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) time(NULL));
data/wget2-1.99.1/examples/check_url_types.c:41: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
data/wget2-1.99.1/examples/check_url_types.c:51: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).
	if ((fp = fopen("out.csv", "a"))) {
data/wget2-1.99.1/examples/check_url_types.c:95: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 sbuf[1024], *norm_url = NULL;
data/wget2-1.99.1/examples/check_url_types.c:119: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 sbuf[1024];
data/wget2-1.99.1/examples/getstream.c:51: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 metadata[255*16];
data/wget2-1.99.1/examples/getstream.c:62: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 key[64], value[128];
data/wget2-1.99.1/examples/getstream.c:192:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *p, url[128];
data/wget2-1.99.1/examples/getstream.c:201:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *p, url[128];
data/wget2-1.99.1/examples/getstream.c:210: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 *p, url[128];
data/wget2-1.99.1/examples/websequencediagram.c:101:13:  [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 ((fp = fopen("out.png", "wb"))) {
data/wget2-1.99.1/fuzz/libwget_atom_url_fuzzer.c:41: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_bar_fuzzer.c:38: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_bar_fuzzer.c:50: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).
	wget_bar_slot_downloaded(bar, 1, (unsigned) atoi(in));
data/wget2-1.99.1/fuzz/libwget_base64_fuzzer.c:39: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_cookie_fuzzer.c:46: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_cookie_fuzzer.c:60: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 fname[64];
data/wget2-1.99.1/fuzz/libwget_css_url_fuzzer.c:40: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_hpkp_fuzzer.c:36: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).
FILE *fopen(const char *pathname, const char *mode)
data/wget2-1.99.1/fuzz/libwget_hsts_fuzzer.c:36: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).
FILE *fopen(const char *pathname, const char *mode)
data/wget2-1.99.1/fuzz/libwget_html_url_fuzzer.c:40: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_http_client_fuzzer.c:106: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, g_data, len);
data/wget2-1.99.1/fuzz/libwget_http_client_fuzzer.c:145: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.
	static const char *header[3] = {
data/wget2-1.99.1/fuzz/libwget_http_client_fuzzer.c:174:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(g_data, header[type], hlen);
data/wget2-1.99.1/fuzz/libwget_http_client_fuzzer.c:175:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(g_data + hlen, data, size);
data/wget2-1.99.1/fuzz/libwget_http_parse_fuzzer.c:40: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_iri_fuzzer.c:80: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_metalink_parse_fuzzer.c:41: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_netrc_fuzzer.c:36: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).
FILE *fopen(const char *pathname, const char *mode)
data/wget2-1.99.1/fuzz/libwget_ocsp_fuzzer.c:36: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).
FILE *fopen(const char *pathname, const char *mode)
data/wget2-1.99.1/fuzz/libwget_robots_parse_fuzzer.c:42: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_sitemap_url_fuzzer.c:41: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(in, data, size);
data/wget2-1.99.1/fuzz/libwget_tlssess_fuzzer.c:36: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).
FILE *fopen(const char *pathname, const char *mode)
data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c:32: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 dst1[1];
data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c:33: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 dst2[2];
data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c:34: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 dst3[3];
data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c:35: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 dst4[4];
data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c:36: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 dst5[8];
data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c:45: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(data0, data, size);
data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c:81: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(data0, (char *) data, size); // restore
data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c:87: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(data0, data, size); // restore
data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c:105: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[16];
data/wget2-1.99.1/fuzz/libwget_utils_fuzzer.c:115: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 esc[size * 3 + 1];
data/wget2-1.99.1/fuzz/libwget_xml_parse_buffer_fuzzer.c:53: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(in, data, size);
data/wget2-1.99.1/fuzz/main.c:50:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char fname[strlen(dirname) + strlen(dp->d_name) + 2];
data/wget2-1.99.1/fuzz/main.c:79:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			  char cmd[strlen(argv[0]) + 256];
data/wget2-1.99.1/fuzz/main.c:84:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			  char cmd[strlen(valgrind) + strlen(argv[0]) + 32];
data/wget2-1.99.1/fuzz/main.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 corporadir[sizeof(SRCDIR) + 1 + target_len + 8];
data/wget2-1.99.1/fuzz/main.c:150: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.
	unsigned char buf[64 * 1024];
data/wget2-1.99.1/fuzz/wget_options_fuzzer.c:79: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).
FILE *fopen(const char *pathname, const char *mode)
data/wget2-1.99.1/include/wget/wget.h:1624: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
data/wget2-1.99.1/include/wget/wget.h:1626: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
data/wget2-1.99.1/include/wget/wget.h:1959: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
data/wget2-1.99.1/include/wget/wget.h:1961: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
data/wget2-1.99.1/include/wget/wget.h:1963: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
data/wget2-1.99.1/include/wget/wget.h:2014: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
data/wget2-1.99.1/include/wget/wget.h:2280: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
data/wget2-1.99.1/include/wget/wget.h:2285: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
data/wget2-1.99.1/lib/alloca.c:122:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char align[ALIGN_SIZE];       /* To force sizeof(header).  */
data/wget2-1.99.1/lib/basename.c:51:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (p + 2, base, length);
data/wget2-1.99.1/lib/btowc.c:31:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[1];
data/wget2-1.99.1/lib/canonicalize-lgpl.c:184: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 (rpath, name, prefix_len);
data/wget2-1.99.1/lib/canonicalize-lgpl.c:268: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 (dest, start, end - start);
data/wget2-1.99.1/lib/canonicalize-lgpl.c:333:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              name = end = memcpy (extra_buf, buf, n);
data/wget2-1.99.1/lib/canonicalize-lgpl.c:340: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 (rpath, buf, pfxlen);
data/wget2-1.99.1/lib/dirent-private.h:37:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char dir_name_mask[1];
data/wget2-1.99.1/lib/dirent.in.h:41:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char d_name[1];
data/wget2-1.99.1/lib/dirname-lgpl.c:81:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (dir, file, length);
data/wget2-1.99.1/lib/dup2.c:118:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  tempfd = open ("NUL", O_RDONLY);
data/wget2-1.99.1/lib/dup2.c:126:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char path[_MAX_PATH];
data/wget2-1.99.1/lib/dup2.c:130:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      return open(path, O_RDONLY);
data/wget2-1.99.1/lib/error.c:180:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char errbuf[1024];
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/fnmatch.c:172:49:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#   define MEMPCPY(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
data/wget2-1.99.1/lib/fnmatch.c:215:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[CHAR_CLASS_MAX_LENGTH + 1];
data/wget2-1.99.1/lib/fnmatch_loop.c:472:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            char str[c1];
data/wget2-1.99.1/lib/fnmatch_loop.c:693:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char str[c1];
data/wget2-1.99.1/lib/fopen.c:32:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return fopen (filename, mode);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/fseeko.c:62:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *tmp = fopen ("/dev/null", "r");
data/wget2-1.99.1/lib/ftello.c:76:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *tmp = fopen ("/dev/null", "r");
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/getaddrinfo.c:253: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/wget2-1.99.1/lib/getaddrinfo.c:277: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/wget2-1.99.1/lib/getlogin_r.c:104:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (name, n, nlen + 1);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/getprogname.c:154:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char filename[50];
data/wget2-1.99.1/lib/getprogname.c:157:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (filename, "/proc/pinfo/%d", (int) getpid ());
data/wget2-1.99.1/lib/getprogname.c:158:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open (filename, O_RDONLY);
data/wget2-1.99.1/lib/getprogname.c:174:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              return memcpy (namecopy, name, namelen);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/glob.c:598:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy (mem, home_drive, home_drive_len);
data/wget2-1.99.1/lib/glob.c:599:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy (mem + home_drive_len, home_path, home_path_len + 1);
data/wget2-1.99.1/lib/glob.c:1226:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    struct globnames *next; size_t count; char *name[nnames];
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/localcharset.c:152: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 (file_name, dir, dir_len);
data/wget2-1.99.1/lib/localcharset.c:155:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (file_name + dir_len + add_slash, base, base_len + 1);
data/wget2-1.99.1/lib/localcharset.c:175: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 (file_name,
data/wget2-1.99.1/lib/localcharset.c:200:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      char buf1[50+1];
data/wget2-1.99.1/lib/localcharset.c:201:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      char buf2[50+1];
data/wget2-1.99.1/lib/localcharset.c:416: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/wget2-1.99.1/lib/localcharset.c:442: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/wget2-1.99.1/lib/localcharset.c:460: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/wget2-1.99.1/lib/localcharset.c:497: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/wget2-1.99.1/lib/localcharset.c:525: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/wget2-1.99.1/lib/localcharset.c:532: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/wget2-1.99.1/lib/localcharset.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 (buf, dot, modifier - dot);
data/wget2-1.99.1/lib/localcharset.c:581: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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/localename.c:2938: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/wget2-1.99.1/lib/malloc/scratch_buffer_grow_preserve.c:40:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (new_ptr, buffer->__space, buffer->length);
data/wget2-1.99.1/lib/mbrtowc.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.
static char internal_state[4];
data/wget2-1.99.1/lib/mbrtowc.c: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 buf[4];
data/wget2-1.99.1/lib/md2.c:60:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (resbuf, ctx->X, 16);
data/wget2-1.99.1/lib/md2.c:84:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (ctx->buf, ctx->chksum, 16);
data/wget2-1.99.1/lib/md2.c:191:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (ctx->buf + ctx->curlen, in, (size_t) n);
data/wget2-1.99.1/lib/md2.c:206:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char PI_SUBST[256] = {
data/wget2-1.99.1/lib/md2.h:34:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char chksum[16], X[48], buf[16];
data/wget2-1.99.1/lib/md5.c:70:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ...  */ };
data/wget2-1.99.1/lib/md5.c:93:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (cp, &v, sizeof v);
data/wget2-1.99.1/lib/md5.c:128:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes);
data/wget2-1.99.1/lib/md5.c:241:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&((char *) ctx->buffer)[left_over], buffer, add);
data/wget2-1.99.1/lib/md5.c:251:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ctx->buffer,
data/wget2-1.99.1/lib/md5.c:268:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
data/wget2-1.99.1/lib/md5.c:286:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&((char *) ctx->buffer)[left_over], buffer, len);
data/wget2-1.99.1/lib/md5.c:294:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ctx->buffer, &ctx->buffer[16], left_over);
data/wget2-1.99.1/lib/mempcpy.c:27:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (char *) memcpy (dest, src, n) + n;
data/wget2-1.99.1/lib/mkstemp.c:47:1:  [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).
mkstemp (char *xtemplate)
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/nl_langinfo.c:232: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/wget2-1.99.1/lib/nl_langinfo.c:248: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/wget2-1.99.1/lib/nl_langinfo.c:270: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/wget2-1.99.1/lib/nl_langinfo.c:291: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/wget2-1.99.1/lib/nl_langinfo.c:313: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/wget2-1.99.1/lib/open.c:33:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return open (filename, flags, mode);
data/wget2-1.99.1/lib/open.c:55:1:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
open (const char *filename, int flags, ...)
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/opendir.c:61:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open (dir_name, O_RDONLY);
data/wget2-1.99.1/lib/opendir.c:77:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char dir_name_mask[MAX_PATH + 1 + 1 + 1];
data/wget2-1.99.1/lib/opendir.c:150:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&dirp->entry, &entry, sizeof (WIN32_FIND_DATA));
data/wget2-1.99.1/lib/poll.c:256:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char data[64];
data/wget2-1.99.1/lib/poll.c:305: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/wget2-1.99.1/lib/popen.c:80: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).
      if (open ("/dev/null", O_RDONLY) != STDIN_FILENO
data/wget2-1.99.1/lib/popen.c:87: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).
      if (open ("/dev/null", O_RDONLY) != STDOUT_FILENO
data/wget2-1.99.1/lib/printf-parse.c:122:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (memory, a->arg, a->count * sizeof (argument));        \
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/regcomp.c:3182: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/wget2-1.99.1/lib/regcomp.c:3183: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/wget2-1.99.1/lib/regcomp.c:3505: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/wget2-1.99.1/lib/regex.h:645:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/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/wget2-1.99.1/lib/regex_internal.c:203: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/wget2-1.99.1/lib/regex_internal.c:206: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/wget2-1.99.1/lib/regex_internal.c:275:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MB_LEN_MAX];
data/wget2-1.99.1/lib/regex_internal.c:278: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/wget2-1.99.1/lib/regex_internal.c:319:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (pstr->mbs + byte_idx, buf, mbclen);
data/wget2-1.99.1/lib/regex_internal.c:327: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/wget2-1.99.1/lib/regex_internal.c:388: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/wget2-1.99.1/lib/regex_internal.c:413: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/wget2-1.99.1/lib/regex_internal.c:432: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/wget2-1.99.1/lib/regex_internal.c:435: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/wget2-1.99.1/lib/regex_internal.c:728: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/wget2-1.99.1/lib/regex_internal.c:1029: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/wget2-1.99.1/lib/regex_internal.c:1123: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/wget2-1.99.1/lib/regex_internal.c:1167: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/wget2-1.99.1/lib/regex_internal.c:1173: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/wget2-1.99.1/lib/regex_internal.c:1204: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/wget2-1.99.1/lib/regex_internal.c:1225: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/wget2-1.99.1/lib/regex_internal.c:1253: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/wget2-1.99.1/lib/regex_internal.h:796: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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/regexec.c:347:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (s, string1, length1);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/select.c:51: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/wget2-1.99.1/lib/select.c:52: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/wget2-1.99.1/lib/select.c:257: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/wget2-1.99.1/lib/select.c:414: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/wget2-1.99.1/lib/select.c:415: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/wget2-1.99.1/lib/select.c:416: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/wget2-1.99.1/lib/select.c:490: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/wget2-1.99.1/lib/select.c:491: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/wget2-1.99.1/lib/select.c:492: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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/setlocale.c:710: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/wget2-1.99.1/lib/setlocale.c:713: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/wget2-1.99.1/lib/setlocale.c:746: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/wget2-1.99.1/lib/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, part1_len);
data/wget2-1.99.1/lib/setlocale.c:752: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/wget2-1.99.1/lib/setlocale.c:793: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/wget2-1.99.1/lib/sha1.c:55:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ...  */ };
data/wget2-1.99.1/lib/sha1.c:80:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (cp, &v, sizeof v);
data/wget2-1.99.1/lib/sha1.c:116:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes);
data/wget2-1.99.1/lib/sha1.c:228:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&((char *) ctx->buffer)[left_over], buffer, add);
data/wget2-1.99.1/lib/sha1.c:238:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ctx->buffer,
data/wget2-1.99.1/lib/sha1.c:255:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            sha1_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
data/wget2-1.99.1/lib/sha1.c:273:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&((char *) ctx->buffer)[left_over], buffer, len);
data/wget2-1.99.1/lib/sha1.c:281:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ctx->buffer, &ctx->buffer[16], left_over);
data/wget2-1.99.1/lib/sha256.c:54:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ...  */ };
data/wget2-1.99.1/lib/sha256.c:100:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (cp, &v, sizeof v);
data/wget2-1.99.1/lib/sha256.c:151:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes);
data/wget2-1.99.1/lib/sha256.c:361:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&((char *) ctx->buffer)[left_over], buffer, add);
data/wget2-1.99.1/lib/sha256.c:371:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ctx->buffer,
data/wget2-1.99.1/lib/sha256.c:388:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            sha256_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
data/wget2-1.99.1/lib/sha256.c:406:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&((char *) ctx->buffer)[left_over], buffer, len);
data/wget2-1.99.1/lib/sha256.c:414:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ctx->buffer, &ctx->buffer[16], left_over);
data/wget2-1.99.1/lib/sha512.c:61:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char fillbuf[128] = { 0x80, 0 /* , 0, 0, ...  */ };
data/wget2-1.99.1/lib/sha512.c:107:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (cp, &v, sizeof v);
data/wget2-1.99.1/lib/sha512.c:159:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 8 - bytes);
data/wget2-1.99.1/lib/sha512.c:369:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&((char *) ctx->buffer)[left_over], buffer, add);
data/wget2-1.99.1/lib/sha512.c:379:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ctx->buffer,
data/wget2-1.99.1/lib/sha512.c:396:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            sha512_process_block (memcpy (ctx->buffer, buffer, 128), 128, ctx);
data/wget2-1.99.1/lib/sha512.c:414:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&((char *) ctx->buffer)[left_over], buffer, len);
data/wget2-1.99.1/lib/sha512.c:422:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ctx->buffer, &ctx->buffer[16], left_over);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/spawn-pipe.c:84: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).
    retval = open (pathname, oflag, mode);
data/wget2-1.99.1/lib/spawn-pipe.c:89: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 /* avoid warning on VMS */
data/wget2-1.99.1/lib/spawn-pipe.c:90: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).
# define open nonintr_open
data/wget2-1.99.1/lib/spawn-pipe.c:110: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.
create_pipe (const char *progname,
data/wget2-1.99.1/lib/spawn-pipe.c:111: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.
             const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.c:111: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.
             const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.c:113: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.
             const char *prog_stdin, const char *prog_stdout,
data/wget2-1.99.1/lib/spawn-pipe.c:113: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.
             const char *prog_stdin, const char *prog_stdout,
data/wget2-1.99.1/lib/spawn-pipe.c:171:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          || ((nulloutfd = open ("NUL", O_RDWR, 0)) >= 0
data/wget2-1.99.1/lib/spawn-pipe.c:177:26:  [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).
          || ((stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0
data/wget2-1.99.1/lib/spawn-pipe.c:183:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          || ((stdoutfd = open (prog_stdout, O_WRONLY, 0)) >= 0
data/wget2-1.99.1/lib/spawn-pipe.c:395: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.
create_pipe_bidi (const char *progname,
data/wget2-1.99.1/lib/spawn-pipe.c:396: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.
                  const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.c:396:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.c:416:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
create_pipe_in (const char *progname,
data/wget2-1.99.1/lib/spawn-pipe.c:417:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.c:417:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.c:418:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                const char *prog_stdin, bool null_stderr,
data/wget2-1.99.1/lib/spawn-pipe.c:440:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
create_pipe_out (const char *progname,
data/wget2-1.99.1/lib/spawn-pipe.c:441:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                 const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.c:441: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.
                 const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.c:442:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                 const char *prog_stdout, bool null_stderr,
data/wget2-1.99.1/lib/spawn-pipe.h:85: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.
extern pid_t create_pipe_out (const char *progname,
data/wget2-1.99.1/lib/spawn-pipe.h:86: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.
                              const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.h:86:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                              const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.h:87: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.
                              const char *prog_stdout, bool null_stderr,
data/wget2-1.99.1/lib/spawn-pipe.h:98:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern pid_t create_pipe_in (const char *progname,
data/wget2-1.99.1/lib/spawn-pipe.h:99:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                             const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.h:99:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                             const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.h:100:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                             const char *prog_stdin, bool null_stderr,
data/wget2-1.99.1/lib/spawn-pipe.h:126:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 pid_t create_pipe_bidi (const char *progname,
data/wget2-1.99.1/lib/spawn-pipe.h:127:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                               const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn-pipe.h:127:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                               const char *prog_path, char **prog_argv,
data/wget2-1.99.1/lib/spawn.in.h:181: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.
                   const char *_Restrict_ __path,
data/wget2-1.99.1/lib/spawn.in.h:184: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.
                   char *const argv[_Restrict_arr_],
data/wget2-1.99.1/lib/spawn.in.h:185: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.
                   char *const envp[_Restrict_arr_])
data/wget2-1.99.1/lib/spawn.in.h:189: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.
                   const char *_Restrict_ __path,
data/wget2-1.99.1/lib/spawn.in.h:192: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.
                   char *const argv[_Restrict_arr_],
data/wget2-1.99.1/lib/spawn.in.h:193: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.
                   char *const envp[_Restrict_arr_]));
data/wget2-1.99.1/lib/spawn.in.h:198: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.
                   const char *_Restrict_ __path,
data/wget2-1.99.1/lib/spawn.in.h:201: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.
                   char *const argv[_Restrict_arr_],
data/wget2-1.99.1/lib/spawn.in.h:202: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.
                   char *const envp[_Restrict_arr_])
data/wget2-1.99.1/lib/spawn.in.h:207: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.
                   const char *_Restrict_ __path,
data/wget2-1.99.1/lib/spawn.in.h:210: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.
                   char *const argv[_Restrict_arr_],
data/wget2-1.99.1/lib/spawn.in.h:211: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.
                   char *const envp[_Restrict_arr_]));
data/wget2-1.99.1/lib/spawnattr_setsigmask.c:30: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 (&attr->_ss, sigmask, sizeof (sigset_t));
data/wget2-1.99.1/lib/spawni.c:47:26:  [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_not_cancel open
data/wget2-1.99.1/lib/spawni.c:77:10:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
# define vfork __vfork
data/wget2-1.99.1/lib/spawni.c:167:15:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
    new_pid = vfork ();
data/wget2-1.99.1/lib/spawni.c:325: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.
  name = (char *) memcpy (name + pathlen + 1, file, len);
data/wget2-1.99.1/lib/spawni.c:342: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.
        startp = (char *) memcpy (name - (p - path), path, p - path);
data/wget2-1.99.1/lib/stat-w32.c:192: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/wget2-1.99.1/lib/stat-w32.c:245: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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/strdup.c:47:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (char *) memcpy (new, s, len);
data/wget2-1.99.1/lib/strerror.c:39:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[STACKBUF_LEN];
data/wget2-1.99.1/lib/strerror.c:69:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, msg, len + 1);
data/wget2-1.99.1/lib/strndup.c:35:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return memcpy (new, s, len);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/sys_stat.in.h:799:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
_GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name,
data/wget2-1.99.1/lib/tempname.c:70:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
# define __open open
data/wget2-1.99.1/lib/tempname.c:170:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx);
data/wget2-1.99.1/lib/unlink.c:72:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (short_name, name, len);
data/wget2-1.99.1/lib/utime.c:33: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.
_gl_utimens_windows (const char *name, struct timespec ts[2])
data/wget2-1.99.1/lib/utime.c:77: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/wget2-1.99.1/lib/utime.in.h:83: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.
extern int _gl_utimens_windows (const char *filename, struct timespec ts[2]);
data/wget2-1.99.1/lib/utimens.c:171: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.
fdutimens (int fd, char const *file, struct timespec const timespec[2])
data/wget2-1.99.1/lib/utimens.c:506: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.
utimens (char const *file, struct timespec const timespec[2])
data/wget2-1.99.1/lib/utimens.c:516: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.
lutimens (char const *file, struct timespec const timespec[2])
data/wget2-1.99.1/lib/utimens.h:21: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.
int fdutimens (int, char const *, struct timespec const [2]);
data/wget2-1.99.1/lib/utimens.h:22: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.
int utimens (char const *, struct timespec const [2]);
data/wget2-1.99.1/lib/utimens.h:23: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.
int lutimens (char const *, struct timespec const [2]);
data/wget2-1.99.1/lib/utimens.h:37: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.
int fdutimensat (int fd, int dir, char const *name, struct timespec const [2],
data/wget2-1.99.1/lib/utimens.h:42: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.
lutimensat (int dir, char const *file, struct timespec const times[2])
data/wget2-1.99.1/lib/vasnprintf.c:151:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define DCHAR_CPY memcpy
data/wget2-1.99.1/lib/vasnprintf.c:295:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pointbuf[5];
data/wget2-1.99.1/lib/vasnprintf.c:296:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (pointbuf, "%#.0f", 1.0);
data/wget2-1.99.1/lib/vasnprintf.c:520:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t));
data/wget2-1.99.1/lib/vasnprintf.c:656:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t));
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/wait-process.c:156: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_slaves, old_slaves,
data/wget2-1.99.1/lib/xmalloc.c:113:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return memcpy (xmalloc (s), p, s);
data/wget2-1.99.1/libwget/bar.c:89: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
data/wget2-1.99.1/libwget/bar.c:134: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
data/wget2-1.99.1/libwget/bar.c:196: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(slotp->progress, bar->known_size, cols - 1);
data/wget2-1.99.1/libwget/bar.c:213: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(slotp->progress + pre_space, "<=>", 3);
data/wget2-1.99.1/libwget/bar.c:547: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 text[bar->max_width + 1];
data/wget2-1.99.1/libwget/base64.c:45:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char base64_2_bin[256] = {
data/wget2-1.99.1/libwget/base64.c:178: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.
	static const char base64[64] =
data/wget2-1.99.1/libwget/buffer.c:143:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf->data, old_data, buf->length + 1);
data/wget2-1.99.1/libwget/buffer.c:310:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf->data + buf->length, data, length);
data/wget2-1.99.1/libwget/buffer_printf.c:92: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 str[32]; // long enough to hold decimal long long
data/wget2-1.99.1/libwget/buffer_printf.c:117: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 str[32], minus = 0; // long enough to hold decimal long long
data/wget2-1.99.1/libwget/buffer_printf.c:234: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.
	static const char HEX[16] = "0123456789abcdef";
data/wget2-1.99.1/libwget/buffer_printf.c:235: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 str[32]; // long enough to hold hexadecimal pointer
data/wget2-1.99.1/libwget/buffer_printf.c:460:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[2] = { (char) va_arg(args, int), 0 };
data/wget2-1.99.1/libwget/cookie.c:296: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 expires[32] = "";
data/wget2-1.99.1/libwget/cookie.c:412: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).
						long offset = atol(p);
data/wget2-1.99.1/libwget/css.c:170:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(fname, O_RDONLY|O_BINARY)) != -1) {
data/wget2-1.99.1/libwget/css.c:198: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[4096];
data/wget2-1.99.1/libwget/decompressor.c:113: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 dst[10240];
data/wget2-1.99.1/libwget/decompressor.c:185: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 dst[10240];
data/wget2-1.99.1/libwget/decompressor.c:298: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 dst[10240];
data/wget2-1.99.1/libwget/decompressor.c:439: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 _encoding_names[wget_content_encoding_max][9] = {
data/wget2-1.99.1/libwget/dns_cache.c:165:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)entryp->host, host, hostlen); // ugly cast, but semantically ok
data/wget2-1.99.1/libwget/hash_printf.c:67:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char digest[wget_hash_get_len(algorithm)];
data/wget2-1.99.1/libwget/hashfile.c:362: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(digest, ret, gcry_md_get_algo_dlen(dig->algorithm));
data/wget2-1.99.1/libwget/hashfile.c:539: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 digest[wget_hash_get_len(algorithm)];
data/wget2-1.99.1/libwget/hashfile.c:555:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[65536];
data/wget2-1.99.1/libwget/hashfile.c:608:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(fname, O_RDONLY|O_BINARY)) == -1) {
data/wget2-1.99.1/libwget/hpkp.c:398: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 digest[wget_hash_get_len(WGET_DIGTYPE_SHA256)];
data/wget2-1.99.1/libwget/hpkp.c:496: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 hash_type[32], host[256], pin_b64[256];
data/wget2-1.99.1/libwget/hsts.c:355:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			hsts.port = (uint16_t) atoi(p);
data/wget2-1.99.1/libwget/hsts.c:364: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).
			hsts.include_subdomains = atoi(p) ? 1 : 0;
data/wget2-1.99.1/libwget/html_url.c:60: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 maybe[256] = {
data/wget2-1.99.1/libwget/html_url.c:141:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char valbuf[len + 1], *value = valbuf;
data/wget2-1.99.1/libwget/html_url.c:143: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(value, val, len);
data/wget2-1.99.1/libwget/html_url.c:165:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char valbuf[len + 1], *value = valbuf;
data/wget2-1.99.1/libwget/html_url.c:167:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(value, val, len);
data/wget2-1.99.1/libwget/http.c:328: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 a1buf[hashlen * 2 + 1], a2buf[hashlen * 2 + 1];
data/wget2-1.99.1/libwget/http.c:329: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 response_digest[hashlen * 2 + 1], cnonce[16] = "";
data/wget2-1.99.1/libwget/http.c:845: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 resource[req->esc_resource.length + 2];
data/wget2-1.99.1/libwget/http.c:848: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(resource + 1, req->esc_resource.data, req->esc_resource.length + 1);
data/wget2-1.99.1/libwget/http.c:1392:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char host[p - s + 1];
data/wget2-1.99.1/libwget/http.c:1394:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(host, s, p - s);
data/wget2-1.99.1/libwget/http_highlevel.c:238: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).
					if ((fp = fopen(saveas_name, "wb"))) {
data/wget2-1.99.1/libwget/http_highlevel.c:293:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char uri_sbuf[1024];
data/wget2-1.99.1/libwget/http_parse.c:44:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char
data/wget2-1.99.1/libwget/http_parse.c:301:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						link->pri = atoi(value);
data/wget2-1.99.1/libwget/http_parse.c:815: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.
	static const char *mnames[12] = {
data/wget2-1.99.1/libwget/http_parse.c:827: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 mname[4] = "";
data/wget2-1.99.1/libwget/http_parse.c:883: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.
	static const char *dnames[7] = {
data/wget2-1.99.1/libwget/http_parse.c:886: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.
	static const char *mnames[12] = {
data/wget2-1.99.1/libwget/http_parse.c:1036: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 valuebuf[256];
data/wget2-1.99.1/libwget/http_parse.c:1094: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).
			resp->icy_metaint = atoi(value0);
data/wget2-1.99.1/libwget/io.c:344:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(fname, O_RDONLY|O_BINARY)) != -1) {
data/wget2-1.99.1/libwget/io.c:371: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[4096];
data/wget2-1.99.1/libwget/io.c:416: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 tmpfile[strlen(fname) + 6 + 1];
data/wget2-1.99.1/libwget/io.c:416:7:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	char tmpfile[strlen(fname) + 6 + 1];
data/wget2-1.99.1/libwget/io.c:417:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	wget_snprintf(tmpfile, sizeof(tmpfile), "%sXXXXXX", fname);
data/wget2-1.99.1/libwget/io.c:417:32:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	wget_snprintf(tmpfile, sizeof(tmpfile), "%sXXXXXX", fname);
data/wget2-1.99.1/libwget/io.c:445:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((lockfd = open(lockfile, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) == -1) {
data/wget2-1.99.1/libwget/io.c:463: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).
		if (!(fp = fopen(fname, "r"))) {
data/wget2-1.99.1/libwget/io.c:487:13:  [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).
		if ((fd = mkstemp(tmpfile)) == -1) {
data/wget2-1.99.1/libwget/io.c:487:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		if ((fd = mkstemp(tmpfile)) == -1) {
data/wget2-1.99.1/libwget/io.c:489:58:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			error_printf(_("Failed to open tmpfile '%s' (%d)\n"), tmpfile, errno);
data/wget2-1.99.1/libwget/io.c:495:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			unlink(tmpfile);
data/wget2-1.99.1/libwget/io.c:498:56:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			error_printf(_("Failed to write open '%s' (%d)\n"), tmpfile, errno);
data/wget2-1.99.1/libwget/io.c:504:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			unlink(tmpfile);
data/wget2-1.99.1/libwget/io.c:512:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			unlink(tmpfile);
data/wget2-1.99.1/libwget/io.c:514:57:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			error_printf(_("Failed to write/close '%s' (%d)\n"), tmpfile, errno);
data/wget2-1.99.1/libwget/io.c:519:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		if (rename(tmpfile, fname) == -1) {
data/wget2-1.99.1/libwget/io.c:521:60:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			error_printf(_("Failed to rename '%s' to '%s' (%d)\n"), tmpfile, fname, errno);
data/wget2-1.99.1/libwget/io.c:522:53:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			error_printf(_("Take manually care for '%s'\n"), tmpfile);
data/wget2-1.99.1/libwget/io.c:553:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(path, O_RDWR|O_BINARY)) == -1)
data/wget2-1.99.1/libwget/iri.c:95:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char
data/wget2-1.99.1/libwget/iri.c:397:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		iri->uri = memcpy(((char *)iri) + sizeof(wget_iri_t), url, iri->msize);
data/wget2-1.99.1/libwget/iri.c:398: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.
		iri->scheme = s = memcpy((char *)iri->uri + iri->msize, url, iri->msize);
data/wget2-1.99.1/libwget/iri.c:416:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		iri->uri = memcpy(((char *)iri) + sizeof(wget_iri_t), "http://", extra);
data/wget2-1.99.1/libwget/iri.c:417:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(((char *)iri) + sizeof(wget_iri_t) + extra, url, slen + 1);
data/wget2-1.99.1/libwget/iri.c:419: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.
		s = memcpy((char *)iri->uri + iri->msize, "http://", extra);
data/wget2-1.99.1/libwget/iri.c:420:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)iri->uri + iri->msize + extra, url, slen + 1);
data/wget2-1.99.1/libwget/iri.c:505: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).
				int port = atoi(s + 1);
data/wget2-1.99.1/libwget/iri.c:589: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(clone, iri, sizeof(wget_iri_t));
data/wget2-1.99.1/libwget/iri.c:590: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.
	clone->uri = memcpy(((char *)clone) + sizeof(wget_iri_t), iri->uri, slen + 1);
data/wget2-1.99.1/libwget/iri.c:591: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((char *)clone->uri + slen + 1, (char *)iri->uri + slen + 1, iri->msize);
data/wget2-1.99.1/libwget/iri.c:760:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[len + 1];
data/wget2-1.99.1/libwget/iri.c:849: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 sbuf[256];
data/wget2-1.99.1/libwget/list.c:101: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(node + 1, data, size);
data/wget2-1.99.1/libwget/logger.c:41: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 sbuf[4096];
data/wget2-1.99.1/libwget/logger.c:61: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 sbuf[4096];
data/wget2-1.99.1/libwget/logger.c:87:13:  [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(logger->fname, "a");
data/wget2-1.99.1/libwget/logger.c:97:13:  [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(logger->fname, "a");
data/wget2-1.99.1/libwget/mem.c:56: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.
	return m ? memcpy(xmalloc(n), m, n) : NULL;
data/wget2-1.99.1/libwget/mem.c:88:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	char *ret = memcpy(xmalloc(n + 1), m, n);
data/wget2-1.99.1/libwget/metalink.c:57: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
data/wget2-1.99.1/libwget/metalink.c:155: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 value[len + 1];
data/wget2-1.99.1/libwget/metalink.c:165:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(value, val, len);
data/wget2-1.99.1/libwget/net.c:237: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 s_port[NI_MAXSERV];
data/wget2-1.99.1/libwget/net.c:306:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char s_port[NI_MAXSERV];
data/wget2-1.99.1/libwget/net.c:356: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 adr[NI_MAXHOST], sport[NI_MAXSERV];
data/wget2-1.99.1/libwget/net.c:656:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char s_port[NI_MAXSERV];
data/wget2-1.99.1/libwget/net.c:659:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			return atoi(s_port);
data/wget2-1.99.1/libwget/net.c:785: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 copy[strlen(bind_address) + 1], *s = copy;
data/wget2-1.99.1/libwget/net.c:811:65:  [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).
				tcp->bind_addrinfo = wget_tcp_resolve(tcp, host, (uint16_t) atoi(s));
data/wget2-1.99.1/libwget/net.c:1003: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 adr[NI_MAXHOST], s_port[NI_MAXSERV];
data/wget2-1.99.1/libwget/net.c:1293: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 sbuf[4096];
data/wget2-1.99.1/libwget/netrc.c:170: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).
	if ((fp = fopen(fname, "r"))) {
data/wget2-1.99.1/libwget/netrc.c:230: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).
					netrc.port = (uint16_t) atoi(p);
data/wget2-1.99.1/libwget/ocsp.c:450:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ocsp.valid = !!atoi(p);
data/wget2-1.99.1/libwget/ocsp.c:509: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 fname_hosts[strlen(ocsp_db_priv->fname) + 6 + 1];
data/wget2-1.99.1/libwget/ocsp.c:602: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 fname_hosts[strlen(ocsp_db_priv->fname) + 6 + 1];
data/wget2-1.99.1/libwget/pipe.c:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sbuf[1024];
data/wget2-1.99.1/libwget/printf.c:138: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 sbuf[1024];
data/wget2-1.99.1/libwget/printf.c:189: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 sbuf[1024];
data/wget2-1.99.1/libwget/printf.c:196:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(str, buf.data, len + 1);
data/wget2-1.99.1/libwget/printf.c:198:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(str, buf.data, size - 1);
data/wget2-1.99.1/libwget/random.c:51: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 statebuf[64];
data/wget2-1.99.1/libwget/ssl_gnutls.c:300: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 dn[128];
data/wget2-1.99.1/libwget/ssl_gnutls.c:301: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.
	unsigned char digest[20];
data/wget2-1.99.1/libwget/ssl_gnutls.c:302: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.
	unsigned char serial[40];
data/wget2-1.99.1/libwget/ssl_gnutls.c:336:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char digest_hex[digest_size * 2 + 1];
data/wget2-1.99.1/libwget/ssl_gnutls.c:344:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char serial_hex[digest_size * 2 + 1];
data/wget2-1.99.1/libwget/ssl_gnutls.c:777: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.
	unsigned char fingerprint[64];
data/wget2-1.99.1/libwget/ssl_gnutls.c:797: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 fingerprint_hex[64 * 2 +1];
data/wget2-1.99.1/libwget/ssl_gnutls.c:815: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.
	unsigned char noncebuf[23];
data/wget2-1.99.1/libwget/ssl_gnutls.c:1082:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char fingerprint[64 * 2 +1];
data/wget2-1.99.1/libwget/ssl_gnutls.c:1283:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
							char fname[dirlen + 1 + len + 1];
data/wget2-1.99.1/libwget/test_linking.c:13:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1];
data/wget2-1.99.1/libwget/tls_session.c:342: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 session_b64[((tls_session->data_size + 2) / 3) * 4 + 1];
data/wget2-1.99.1/libwget/vector.c:102: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(elemp, elem, size);
data/wget2-1.99.1/libwget/xml.c:353: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 directory[256] = "";
data/wget2-1.99.1/libwget/xml.c:385:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(directory, tok, context->token_len);
data/wget2-1.99.1/libwget/xml.c:422:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char attribute[context->token_len + 1];
data/wget2-1.99.1/libwget/xml.c:423:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(attribute, tok, context->token_len);
data/wget2-1.99.1/libwget/xml.c:451: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 tag[context->token_len + 1]; // we need to \0 terminate tok
data/wget2-1.99.1/libwget/xml.c:452: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(tag, tok, context->token_len);
data/wget2-1.99.1/libwget/xml.c:559:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(fname, O_RDONLY|O_BINARY)) != -1) {
data/wget2-1.99.1/libwget/xml.c:587: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[4096];
data/wget2-1.99.1/src/gpgme.c:140:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/wget2-1.99.1/src/job.c:99: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 sum[128 + 1]; // large enough for sha-512 hex
data/wget2-1.99.1/src/job.c:126: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 sum[128 + 1]; // large enough for sha-512 hex
data/wget2-1.99.1/src/job.c:192:54:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (wget_vector_size(metalink->hashes) > 0 && (fd = open(metalink->name, O_RDONLY|O_BINARY)) != -1) {
data/wget2-1.99.1/src/log.c:81: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).
			fd = open(config.logfile, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
data/wget2-1.99.1/src/log.c:86: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 sbuf[4096];
data/wget2-1.99.1/src/options.c:128: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.
	const char
data/wget2-1.99.1/src/options.c:237:29:  [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 *)opt->var) = val ? atoi(val) : 0;
data/wget2-1.99.1/src/options.c:244:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int port = val ? atoi(val) : 0;
data/wget2-1.99.1/src/options.c:2103: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 namebuf[strlen(name) + 1], *p;
data/wget2-1.99.1/src/options.c:2108: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(namebuf, name, p - name);
data/wget2-1.99.1/src/options.c:2323: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).
	if ((fp = fopen(cfgfile, "r")) == NULL) {
data/wget2-1.99.1/src/options.c:2331: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 tmp[1024];
data/wget2-1.99.1/src/options.c:2532: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 tmp[1024];
data/wget2-1.99.1/src/options.c:2612: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 question[1024];
data/wget2-1.99.1/src/options.c:2694: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(config.logfile, O_WRONLY | O_TRUNC);
data/wget2-1.99.1/src/options.c:2763: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(config.logfile, O_WRONLY | O_TRUNC);
data/wget2-1.99.1/src/options.c:2786: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(config.output_document, O_WRONLY | O_TRUNC | O_BINARY);
data/wget2-1.99.1/src/options.c:3157: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.
			const char
data/wget2-1.99.1/src/options.c:3178: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.
			const char
data/wget2-1.99.1/src/options.c:3219: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.
			const char
data/wget2-1.99.1/src/options.c:3255: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.
			const char
data/wget2-1.99.1/src/options.c:3294: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.
			const char
data/wget2-1.99.1/src/options.c:3296: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.
			const char
data/wget2-1.99.1/src/options.c:3327: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.
			const char
data/wget2-1.99.1/src/options.c:3355: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.
			const char
data/wget2-1.99.1/src/options.c:3377: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.
			const char
data/wget2-1.99.1/src/plugin.c:226: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(file->filename, "rb");
data/wget2-1.99.1/src/stats.c:133: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).
				fp = fopen(filename, "a");
data/wget2-1.99.1/src/stats.c:135: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).
				fp = fopen(filename, "w");
data/wget2-1.99.1/src/wget.c:194:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char dst[strlen(fname) + 1 + 32];
data/wget2-1.99.1/src/wget.c:269:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char sbuf[256];
data/wget2-1.99.1/src/wget.c:310: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 fname_esc[buf.length * 3 + 1];
data/wget2-1.99.1/src/wget.c:987: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 sbuf[1024];
data/wget2-1.99.1/src/wget.c:1057:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
							char dstfile[strlen(conversion->filename) + 5 + 1];
data/wget2-1.99.1/src/wget.c:1065:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
						if (!(fpout = fopen(conversion->filename, "wb")))
data/wget2-1.99.1/src/wget.c:1107: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 quota_buf[16];
data/wget2-1.99.1/src/wget.c:1108: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 speed_buf[16];
data/wget2-1.99.1/src/wget.c:1135: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 quota_buf[16];
data/wget2-1.99.1/src/wget.c:1208:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((fd = open(config.input_file, O_RDONLY|O_BINARY)) >= 0) {
data/wget2-1.99.1/src/wget.c:1605: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 uri_sbuf[1024];
data/wget2-1.99.1/src/wget.c:2273: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 sbuf[1024];
data/wget2-1.99.1/src/wget.c:2552:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char url[len + 1];
data/wget2-1.99.1/src/wget.c:2554: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(url, line, len);
data/wget2-1.99.1/src/wget.c:2724: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 sbuf[1024];
data/wget2-1.99.1/src/wget.c:2743: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 sbuf[1024];
data/wget2-1.99.1/src/wget.c:2795: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).
	int fd = open(fname, flags, mode);
data/wget2-1.99.1/src/wget.c:2948: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(alloced_fname, fname, fname_length);
data/wget2-1.99.1/src/wget.c:2949: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(alloced_fname + fname_length, ext, ext_length + 1);
data/wget2-1.99.1/src/wget.c:2989:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char src[fname_length + 1], dst[fname_length + 1];
data/wget2-1.99.1/src/wget.c:3007: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 unique[fname_length + 1];
data/wget2-1.99.1/src/wget.c:3069:13:  [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 ((fp = fopen(fname, "ab"))) {
data/wget2-1.99.1/src/wget.c:3112: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).
		ctx->outfd = open(ctx->job->metalink->name, O_WRONLY | O_CREAT | O_NONBLOCK | O_BINARY, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
data/wget2-1.99.1/src/wget.c:3282: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 sbuf[256];
data/wget2-1.99.1/src/wget.c:3312:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char http_date[32];
data/wget2-1.99.1/tests/libtest.c:73: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
data/wget2-1.99.1/tests/libtest.c:189: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 (buf, param->response_data + pos, size_to_copy);
data/wget2-1.99.1/tests/libtest.c:216: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 content_len[100], content_range[100];
data/wget2-1.99.1/tests/libtest.c:245:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			to_bytes = (ssize_t) atoi(to_bytes_string + 1);
data/wget2-1.99.1/tests/libtest.c:247: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).
		from_bytes = (ssize_t) atoi(from_bytes_string + 1);
data/wget2-1.99.1/tests/libtest.c:502: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 server_version[50];
data/wget2-1.99.1/tests/libtest.c:531: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 rnd[8] = "realrnd"; // fixed 'random' value
data/wget2-1.99.1/tests/libtest.c:616:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char s_port[NI_MAXSERV];
data/wget2-1.99.1/tests/libtest.c:619: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).
				port_num = (uint16_t)atoi(s_port);
data/wget2-1.99.1/tests/libtest.c:637: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 cmd[strlen(dirname) + 16];
data/wget2-1.99.1/tests/libtest.c:665:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char fname[dirlen + 1 + strlen(dp->d_name) + 1];
data/wget2-1.99.1/tests/libtest.c:898:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char fname[dirlen + 1 + strlen(dp->d_name) + 1];
data/wget2-1.99.1/tests/libtest.c:925:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[strlen(expected_files[it].name) * 3 + 1];
data/wget2-1.99.1/tests/libtest.c:1044:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((fd = open(existing_files[it].name, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, 0644)) != -1) {
data/wget2-1.99.1/tests/libtest.c:1103: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[4096];
data/wget2-1.99.1/tests/libtest.c:1128:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[strlen(expected_files[it].name) * 3 + 1];
data/wget2-1.99.1/tests/libtest.c:1141:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if ((fd = open(fname, O_RDONLY | O_BINARY)) != -1) {
data/wget2-1.99.1/tests/libtest.c:1190: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.
	static char fname[3][3] = { "Ab", "ab", "AB" };
data/wget2-1.99.1/tests/libtest.c:1191:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[sizeof(fname[0])];
data/wget2-1.99.1/tests/libtest.c:1200:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(fname[it], O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0644)) != -1) {
data/wget2-1.99.1/tests/libtest.c:1216:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(fname[it], O_RDONLY | O_BINARY, 0644)) != -1) {
data/wget2-1.99.1/tests/libtest.h:116: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.
	const char *
data/wget2-1.99.1/tests/libtest.h:118: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.
	const char *
data/wget2-1.99.1/tests/libtest.h:120: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.
	const char *
data/wget2-1.99.1/tests/libtest.h:122: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.
	const char *
data/wget2-1.99.1/tests/stats-test-util.h:97: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 options[128];
data/wget2-1.99.1/tests/test-idn-cmd.c:52: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 options[256];
data/wget2-1.99.1/tests/test-idn-meta.c:72: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 options[256];
data/wget2-1.99.1/tests/test-idn-robots.c:66: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 options[256];
data/wget2-1.99.1/tests/test-iri.c:132: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 request_header[256];
data/wget2-1.99.1/tests/test-metalink.c:123: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 md5hex[hashlen * 2 + 1], md5hex_p1[hashlen * 2 + 1], md5hex_p2[hashlen * 2 + 1];
data/wget2-1.99.1/tests/test-metalink.c:124: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.
	unsigned char digest[hashlen];
data/wget2-1.99.1/tests/test-parse-css.c:97: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 options[128];
data/wget2-1.99.1/tests/test-parse-html-css.c:89: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 options[128];
data/wget2-1.99.1/tests/test-plugin-dummy.c:42: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).
	FILE *stream = fopen("plugin-loaded.txt", "wb");
data/wget2-1.99.1/tests/test-plugin-dummy.c:53: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).
	FILE *stream = fopen("exit-status.txt", "wb");
data/wget2-1.99.1/tests/test-plugin-dummy.c:73: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).
	FILE *stream = fopen("exit-status.txt", "wb");
data/wget2-1.99.1/tests/test-plugin-dummy.c:142: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).
	FILE *stream = fopen("options.txt", "ab");
data/wget2-1.99.1/tests/test-plugin-dummy.c:307:25:  [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).
		test_assert((stream = fopen("files_processed.txt", "wb")));
data/wget2-1.99.1/tests/test-plugin-failure.c:107: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 data[129] = "\
data/wget2-1.99.1/tests/test-plugin-interception.c:107: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 data[129] = "\
data/wget2-1.99.1/tests/test-plugin-interception.c:111: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 data_part[65] = "\
data/wget2-1.99.1/tests/test-plugin-nonexistance.c:114: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 data[129] = "\
data/wget2-1.99.1/tests/test-plugin.c:115: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 data[129] = "\
data/wget2-1.99.1/tests/test-wget-1.c:339: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 modified[strlen(urls[3].body) + 1];
data/wget2-1.99.1/unit-tests/buffer_printf_perf.c:37: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 sbuf[128];
data/wget2-1.99.1/unit-tests/stringmap_perf.c:59:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(argv[it], O_RDONLY | O_BINARY)) == -1) {
data/wget2-1.99.1/unit-tests/test-dl.c:135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/wget2-1.99.1/unit-tests/test-dl.c:143: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).
	libassert((sfd = open(src, O_RDONLY | O_BINARY)) >= 0);
data/wget2-1.99.1/unit-tests/test-dl.c:144: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).
	libassert((dfd = open(dst, O_WRONLY | O_CREAT | O_BINARY, statbuf.st_mode)) >= 0);
data/wget2-1.99.1/unit-tests/test-dl.c:163:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	libassert(stream = fopen(rpl_filename, "w"));
data/wget2-1.99.1/unit-tests/test-dl.c:179: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.
typedef void (*test_fn)(char buf[16]);
data/wget2-1.99.1/unit-tests/test-dl.c:182:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/wget2-1.99.1/unit-tests/test-dl.c:301: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 cmd[strlen(argv[0]) + 256];
data/wget2-1.99.1/unit-tests/test-dl.c:309: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 cmd[strlen(valgrind) + strlen(argv[0]) + 32];
data/wget2-1.99.1/unit-tests/test-parse-html.c:168:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char fname[strlen(SRCDIR) + strlen(dp->d_name) + 8];
data/wget2-1.99.1/unit-tests/test.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32] = "x";
data/wget2-1.99.1/unit-tests/test.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4] = "x";
data/wget2-1.99.1/unit-tests/test.c:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4] = "x";
data/wget2-1.99.1/unit-tests/test.c:147: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 test[256];
data/wget2-1.99.1/unit-tests/test.c:197: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 sbuf[16];
data/wget2-1.99.1/unit-tests/test.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 expected[16];
data/wget2-1.99.1/unit-tests/test.c:323:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf_static[32];
data/wget2-1.99.1/unit-tests/test.c:333: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 fmt[32], result[64], string[32];
data/wget2-1.99.1/unit-tests/test.c:942: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 uri_buf_static[32]; // use a size that forces allocation in some cases
data/wget2-1.99.1/unit-tests/test.c:1046:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char fname[strlen(SRCDIR) + strlen(dp->d_name) + 8];
data/wget2-1.99.1/unit-tests/test.c:1415: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 hpkp_pins_binary[countof(hpkp_pins)][HPKP_PIN_SIZE + 1];
data/wget2-1.99.1/unit-tests/test.c:1456: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.
			const char *pin_types[countof(hpkp_pins)], *pins[countof(hpkp_pins)];
data/wget2-1.99.1/unit-tests/test.c:1542: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 *
data/wget2-1.99.1/unit-tests/test.c:1616: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.
	unsigned char src[1];
data/wget2-1.99.1/unit-tests/test.c:1617: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 dst1[3], dst2[3];
data/wget2-1.99.1/unit-tests/test.c:1709: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 s1[8], s2[8];
data/wget2-1.99.1/unit-tests/test.c:1745: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.
	unsigned char digest[64];
data/wget2-1.99.1/unit-tests/test.c:1746: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 digest_hex[sizeof(digest) * 2 + 1];
data/wget2-1.99.1/unit-tests/test.c:1830: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 key[128], value[128], *val;
data/wget2-1.99.1/unit-tests/test.c:2089:13:  [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 ((fp = fopen(".test/.netrc", "w"))) {
data/wget2-1.99.1/unit-tests/test.c:2137: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 *
data/wget2-1.99.1/unit-tests/test.c:2139: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 *
data/wget2-1.99.1/unit-tests/test.c:2385: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 cmd[strlen(argv[0]) + 256];
data/wget2-1.99.1/unit-tests/test.c:2390: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 cmd[strlen(valgrind) + strlen(argv[0]) + 32];
data/wget2-1.99.1/examples/check_url_types.c:75: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).
	rc = wget_memiconv(encoding, urlpart, strlen(urlpart), "utf-8", &urlpart_encoded, &urlpart_encoded_length);
data/wget2-1.99.1/examples/check_url_types.c:93: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).
	wget_string_t url_s = { .p = url, .len = strlen(url) };
data/wget2-1.99.1/examples/check_url_types.c:258:9:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	while (fscanf(stdin, "%d,%255s", &stats.id, stats.host) == 2) {
data/wget2-1.99.1/examples/getstream.c:126: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 needle_len = strlen(needle);
data/wget2-1.99.1/fuzz/libwget_http_client_fuzzer.c:170: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 hlen = strlen(header[type]);
data/wget2-1.99.1/fuzz/main.c:50: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).
			char fname[strlen(dirname) + strlen(dp->d_name) + 2];
data/wget2-1.99.1/fuzz/main.c:50:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			char fname[strlen(dirname) + strlen(dp->d_name) + 2];
data/wget2-1.99.1/fuzz/main.c:79: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).
			  char cmd[strlen(argv[0]) + 256];
data/wget2-1.99.1/fuzz/main.c:84: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).
			  char cmd[strlen(valgrind) + strlen(argv[0]) + 32];
data/wget2-1.99.1/fuzz/main.c:84: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).
			  char cmd[strlen(valgrind) + strlen(argv[0]) + 32];
data/wget2-1.99.1/fuzz/main.c:105: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).
	target_len = strlen(target);
data/wget2-1.99.1/lib/basename-lgpl.c:63:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (len = strlen (name);  1 < len && ISSLASH (name[len - 1]);  len--)
data/wget2-1.99.1/lib/canonicalize-lgpl.c:322:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              len = strlen (end);
data/wget2-1.99.1/lib/error.c:211:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (message) + 1;
data/wget2-1.99.1/lib/fnmatch.c:164:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# define STRLEN(S) strlen (S)
data/wget2-1.99.1/lib/fnmatch.c:194:22:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define STRLEN(S) wcslen (S)
data/wget2-1.99.1/lib/fnmatch.c:342:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return internal_fnmatch (pattern, string, string + strlen (string),
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/getdelim.c:39:41:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc_maybe_unlocked(fp)        getc(fp)
data/wget2-1.99.1/lib/getdelim.c:45:41:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc_maybe_unlocked(fp)        getc(fp)
data/wget2-1.99.1/lib/getlogin_r.c:101:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  nlen = strlen (n);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/glob.c:284:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (pattern[0] && pattern[strlen (pattern) - 1] == '/')
data/wget2-1.99.1/lib/glob.c:351:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t pattern_len = strlen (pattern) - 1;
data/wget2-1.99.1/lib/glob.c:389:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          rest_len = strlen (++rest) + 1;
data/wget2-1.99.1/lib/glob.c:466:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          dirlen = strlen (pattern);
data/wget2-1.99.1/lib/glob.c:594:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  size_t home_drive_len = strlen (home_drive);
data/wget2-1.99.1/lib/glob.c:595:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  size_t home_path_len = strlen (home_path);
data/wget2-1.99.1/lib/glob.c:617:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      size_t ssize = strlen (s.data) + 1;
data/wget2-1.99.1/lib/glob.c:670:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              dirlen = strlen (dirname);
data/wget2-1.99.1/lib/glob.c:676:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              size_t home_len = strlen (home_dir);
data/wget2-1.99.1/lib/glob.c:802:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t home_len = strlen (p->pw_dir);
data/wget2-1.99.1/lib/glob.c:803:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t rest_len = end_name == NULL ? 0 : strlen (end_name);
data/wget2-1.99.1/lib/glob.c:1110:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t len = strlen (pglob->gl_pathv[i]) + 2;
data/wget2-1.99.1/lib/glob.c:1119:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy (&new[len - 2], "/");
data/wget2-1.99.1/lib/glob.c:1168:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t dirlen = strlen (dirname);
data/wget2-1.99.1/lib/glob.c:1193:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t eltlen = strlen (array[i]) + 1;
data/wget2-1.99.1/lib/glob.c:1223:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t dirlen = strlen (directory);
data/wget2-1.99.1/lib/glob.c:1260:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t patlen = strlen (pattern);
data/wget2-1.99.1/lib/glob.c:1372:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (pattern);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/localcharset.c:105:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef getc
data/wget2-1.99.1/lib/localcharset.c:106:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc getc_unlocked
data/wget2-1.99.1/lib/localcharset.c:146: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 dir_len = strlen (dir);
data/wget2-1.99.1/lib/localcharset.c:147: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 base_len = strlen (base);
data/wget2-1.99.1/lib/localcharset.c:205:27:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                      c = getc (fp);
data/wget2-1.99.1/lib/localcharset.c:214:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            c = getc (fp);
data/wget2-1.99.1/lib/localcharset.c:221:27:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
                      if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
data/wget2-1.99.1/lib/localcharset.c:223: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).
                      l1 = strlen (buf1);
data/wget2-1.99.1/lib/localcharset.c:224: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).
                      l2 = strlen (buf2);
data/wget2-1.99.1/lib/localcharset.c:514: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/wget2-1.99.1/lib/localcharset.c:595: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).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/wget2-1.99.1/lib/localcharset.c:595:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/wget2-1.99.1/lib/localcharset.c:599: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).
        codeset = aliases + strlen (aliases) + 1;
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/mkdir.c:55:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (dir);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/opendir.c:103:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p = dir_name_mask + strlen (dir_name_mask);
data/wget2-1.99.1/lib/opendir.c:139:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            + strlen (dir_name_mask) + 1);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/read.c:40:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef read
data/wget2-1.99.1/lib/read.c:50:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      result = read (fd, buf, count);
data/wget2-1.99.1/lib/read.c:62:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  define read_nothrow read
data/wget2-1.99.1/lib/readlink.c:57:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (name);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/regcomp.c:2733: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/wget2-1.99.1/lib/regcomp.c:2735: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/wget2-1.99.1/lib/regcomp.c:2841: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/wget2-1.99.1/lib/regcomp.c:2922: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/wget2-1.99.1/lib/regcomp.c:3053: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/wget2-1.99.1/lib/regcomp.c:3571: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/wget2-1.99.1/lib/regexec.c:210:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      length = strlen (string);
data/wget2-1.99.1/lib/rename.c:49: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 src_len = strlen (src);
data/wget2-1.99.1/lib/rename.c:50: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 dst_len = strlen (dst);
data/wget2-1.99.1/lib/rename.c:148: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).
      src_len = strlen (src_temp);
data/wget2-1.99.1/lib/rename.c:282: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 src_len = strlen (src);
data/wget2-1.99.1/lib/rename.c:283: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 dst_len = strlen (dst);
data/wget2-1.99.1/lib/rename.c:448: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).
      src_len = strlen (src_temp);
data/wget2-1.99.1/lib/rmdir.c:37:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (dir);
data/wget2-1.99.1/lib/safe-read.c:47:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define rw read
data/wget2-1.99.1/lib/select.c:119:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  BOOL read, write, except;
data/wget2-1.99.1/lib/select.c:226: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/wget2-1.99.1/lib/setlocale.c:651: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/wget2-1.99.1/lib/setlocale.c:708: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/wget2-1.99.1/lib/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 part1_len = strlen (part1);
data/wget2-1.99.1/lib/setlocale.c:745: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/wget2-1.99.1/lib/setlocale.c:804: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/wget2-1.99.1/lib/spawni.c:321:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (file) + 1;
data/wget2-1.99.1/lib/spawni.c:322: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).
  pathlen = strlen (path);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/strdup.c:41:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (s) + 1;
data/wget2-1.99.1/lib/strerror.c:65:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (msg);
data/wget2-1.99.1/lib/string.in.h:411:11:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
#   undef strncat
data/wget2-1.99.1/lib/string.in.h:412:12:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
#   define strncat rpl_strncat
data/wget2-1.99.1/lib/string.in.h:414:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n)
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/string.in.h:418:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n));
data/wget2-1.99.1/lib/string.in.h:420:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_CXXALIASWARN (strncat);
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/tempname.c:131:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      plen = strlen (pfx);
data/wget2-1.99.1/lib/tempname.c:159:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  dlen = strlen (dir);
data/wget2-1.99.1/lib/tempname.c:207:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (tmpl);
data/wget2-1.99.1/lib/unistd.in.h:1267:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef read
data/wget2-1.99.1/lib/unistd.in.h:1268:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define read rpl_read
data/wget2-1.99.1/lib/unistd.in.h:1270: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/wget2-1.99.1/lib/unistd.in.h:1272: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/wget2-1.99.1/lib/unistd.in.h:1277: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/wget2-1.99.1/lib/unistd.in.h:1279:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (read);
data/wget2-1.99.1/lib/unistd.in.h:1592: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/wget2-1.99.1/lib/unistd.in.h:1593: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/wget2-1.99.1/lib/unistd.in.h:1595: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/wget2-1.99.1/lib/unistd.in.h:1596: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/wget2-1.99.1/lib/unistd.in.h:1599: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/wget2-1.99.1/lib/unistd.in.h:1601: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/wget2-1.99.1/lib/unistd.in.h:1603: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/wget2-1.99.1/lib/unistd.in.h:1605: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/wget2-1.99.1/lib/unistd.in.h:1607: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/wget2-1.99.1/lib/unlink.c:38:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (name);
data/wget2-1.99.1/lib/utime.c:45:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (name);
data/wget2-1.99.1/lib/vasnprintf.c:240:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define local_wcslen wcslen
data/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/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/wget2-1.99.1/lib/xmalloc.c:121:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return xmemdup (string, strlen (string) + 1);
data/wget2-1.99.1/libwget/buffer.c:340: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 wget_buffer_memcat(buf, s, likely(s) ? strlen(s) : 0);
data/wget2-1.99.1/libwget/buffer.c:359: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 wget_buffer_memcat(buf, s, likely(s) ? strlen(s) : 0);
data/wget2-1.99.1/libwget/buffer_printf.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).
	length = strlen(arg);
data/wget2-1.99.1/libwget/cookie.c:138: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 len1 = strlen(c1->path);
data/wget2-1.99.1/libwget/cookie.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 len2 = strlen(c2->path);
data/wget2-1.99.1/libwget/cookie.c:166: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).
	domain_length = strlen(domain);
data/wget2-1.99.1/libwget/cookie.c:167: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).
	host_length = strlen(host);
data/wget2-1.99.1/libwget/cookie.c:207:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cookie_path_length = strlen(cookie_path);
data/wget2-1.99.1/libwget/css.c:178:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				size_t nread=read(fd,buf,st.st_size);
data/wget2-1.99.1/libwget/css.c:202:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((nbytes = read(STDIN_FILENO, tmp, sizeof(tmp))) > 0) {
data/wget2-1.99.1/libwget/css_tokenizer.c:2551: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/wget2-1.99.1/libwget/css_tokenizer.c:3688:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
data/wget2-1.99.1/libwget/dns_cache.c:159: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 hostlen = host ? strlen(host) + 1 : 0;
data/wget2-1.99.1/libwget/encoding.c:138: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).
	if (wget_memiconv(src_encoding, src, strlen(src), dst_encoding, &dst, NULL))
data/wget2-1.99.1/libwget/hashfile.c:386:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	_hash_read_t read;
data/wget2-1.99.1/libwget/hashfile.c:563:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while (length > 0 && (nbytes = read(fd, tmp, sizeof(tmp))) > 0) {
data/wget2-1.99.1/libwget/hpkp.c:139: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_b64 = strlen(pin_b64);
data/wget2-1.99.1/libwget/hpkp.c:525:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			if (sscanf(linep, "%255s %d %lld %lld", host, &include_subdomains, &_created, &_max_age) == 4) {
data/wget2-1.99.1/libwget/hpkp.c:545:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			if (sscanf(linep, "*%31s %255s", hash_type, pin_b64) == 2) {
data/wget2-1.99.1/libwget/http.c:830: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).
	nv->namelen = strlen(name);
data/wget2-1.99.1/libwget/http.c:832: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).
	nv->valuelen = strlen(value);
data/wget2-1.99.1/libwget/http_highlevel.c:298:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			wget_iri_relative_to_abs(uri, resp->location, strlen(resp->location), &uri_buf);
data/wget2-1.99.1/libwget/http_parse.c:829:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if (sscanf(s, " %*[a-zA-Z], %02d %3s %4d %2d:%2d:%2d", &day, mname, &year, &hour, &min, &sec) >= 6) {
data/wget2-1.99.1/libwget/http_parse.c:832:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	else if (sscanf(s, " %*[a-zA-Z], %2d-%3s-%4d %2d:%2d:%2d", &day, mname, &year, &hour, &min, &sec) >= 6) {
data/wget2-1.99.1/libwget/http_parse.c:835:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	else if (sscanf(s, " %*[a-zA-Z] %3s %2d %2d:%2d:%2d %4d", mname, &day, &hour, &min, &sec, &year) >= 6) {
data/wget2-1.99.1/libwget/http_parse.c:838:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	else if (sscanf(s, " %d %3s %4d %2d:%2d:%2d", &day, mname, &year, &hour, &min, &sec) >= 6) {
data/wget2-1.99.1/libwget/http_parse.c:1247: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).
			valuelen = strlen(value);
data/wget2-1.99.1/libwget/io.c:65:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(*fd, dst, len);
data/wget2-1.99.1/libwget/io.c:352:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				while (total < st.st_size && (nread = read(fd, buf + total, st.st_size - total)) > 0) {
data/wget2-1.99.1/libwget/io.c:376:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((nread = read(STDIN_FILENO, tmp, sizeof(tmp))) > 0) {
data/wget2-1.99.1/libwget/io.c:416: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).
	char tmpfile[strlen(fname) + 6 + 1];
data/wget2-1.99.1/libwget/io.c:427: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 tmplen = strlen(tmpdir);
data/wget2-1.99.1/libwget/iri.c:389: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).
	slen = strlen(url);
data/wget2-1.99.1/libwget/iri.c:467: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).
		s += strlen(s);
data/wget2-1.99.1/libwget/iri.c:496: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).
				s += strlen(s);
data/wget2-1.99.1/libwget/iri.c:587: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 slen = strlen(iri->uri);
data/wget2-1.99.1/libwget/iri.c:722: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).
		p1 += strlen(p1);
data/wget2-1.99.1/libwget/iri.c:852:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		iri = wget_iri_parse(wget_iri_relative_to_abs(base, url, strlen(url), &buf), encoding);
data/wget2-1.99.1/libwget/iri.c:856:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		iri = wget_iri_parse(wget_iri_relative_to_abs(NULL, url, strlen(url), NULL), encoding);
data/wget2-1.99.1/libwget/iri.c:1250: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).
	default_page_length = default_page ? strlen(default_page) : 0;
data/wget2-1.99.1/libwget/iri.c:1300: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 old_scheme_len = strlen(old_scheme);
data/wget2-1.99.1/libwget/mem.c:70:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return s ? wget_memdup(s, strlen(s) + 1) : NULL;
data/wget2-1.99.1/libwget/metalink.c:74:2:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	sscanf(value, "%127s", ctx->hash);
data/wget2-1.99.1/libwget/metalink.c:105:2:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	sscanf(value, "%127s", ctx->hash);
data/wget2-1.99.1/libwget/metalink.c:179:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
					sscanf(value, "%15s", ctx->hash_type);
data/wget2-1.99.1/libwget/metalink.c:189:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
					sscanf(value, "%15s", ctx->hash_type);
data/wget2-1.99.1/libwget/metalink.c:224:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
					sscanf(value, "%15s", ctx->hash_type);
data/wget2-1.99.1/libwget/metalink.c:230:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
					sscanf(value, "%15s", ctx->hash_type);
data/wget2-1.99.1/libwget/net.c:785: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).
		char copy[strlen(bind_address) + 1], *s = copy;
data/wget2-1.99.1/libwget/ocsp.c:509: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).
	char fname_hosts[strlen(ocsp_db_priv->fname) + 6 + 1];
data/wget2-1.99.1/libwget/ocsp.c:602: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).
	char fname_hosts[strlen(ocsp_db_priv->fname) + 6 + 1];
data/wget2-1.99.1/libwget/robots.c:67:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t client_length = client ? strlen(client) : 0;
data/wget2-1.99.1/libwget/ssl_gnutls.c:1276: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 dirlen = strlen(_config.ca_directory);
data/wget2-1.99.1/libwget/ssl_gnutls.c:1279: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(dp->d_name);
data/wget2-1.99.1/libwget/ssl_gnutls.c:1594:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		gnutls_server_name_set(session, GNUTLS_NAME_DNS, hostname, strlen(hostname));
data/wget2-1.99.1/libwget/stringmap.c:155: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).
	return wget_hashmap_put(h, key, strlen(key) + 1, value, valuesize);
data/wget2-1.99.1/libwget/strlcpy.c:55: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).
		return strlen(src);
data/wget2-1.99.1/libwget/utils.c:349:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(s) < strlen(tail))
data/wget2-1.99.1/libwget/utils.c:349: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).
	if (strlen(s) < strlen(tail))
data/wget2-1.99.1/libwget/utils.c:352:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const char *p = s + (strlen(s) - strlen(tail));
data/wget2-1.99.1/libwget/utils.c:352:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const char *p = s + (strlen(s) - strlen(tail));
data/wget2-1.99.1/libwget/utils.c:367:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(s) < strlen(tail))
data/wget2-1.99.1/libwget/utils.c:367: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).
	if (strlen(s) < strlen(tail))
data/wget2-1.99.1/libwget/utils.c:370:23:  [1] (buffer) strlen:
  Does not handle 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 = s + (strlen(s) - strlen(tail));
data/wget2-1.99.1/libwget/utils.c:370:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const char *p = s + (strlen(s) - strlen(tail));
data/wget2-1.99.1/libwget/vector.c:287: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).
	return v && s ? _vec_insert_private(v, s, strlen(s) + 1, v->cur, 0, 1) : -1;
data/wget2-1.99.1/libwget/xml.c:567:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				size_t nread=read(fd, buf, st.st_size);
data/wget2-1.99.1/libwget/xml.c:591:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((nbytes = read(STDIN_FILENO, tmp, sizeof(tmp))) > 0) {
data/wget2-1.99.1/src/dl.c:259: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).
		size_t pl = strlen(p);
data/wget2-1.99.1/src/dl.c:260: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).
		size_t sl = strlen(s);
data/wget2-1.99.1/src/gpgme.c:101: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 base_len = strlen(base_filename);
data/wget2-1.99.1/src/gpgme.c:102: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 real_len = strlen(real_filename);
data/wget2-1.99.1/src/options.c:1972:6:  [1] (buffer) strlen:
  Does not handle 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(l) > 18) {
data/wget2-1.99.1/src/options.c:2103: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).
	char namebuf[strlen(name) + 1], *p;
data/wget2-1.99.1/src/options.c:2309: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 (globbuf.gl_pathv[it][strlen(globbuf.gl_pathv[it])-1] != '/') {
data/wget2-1.99.1/src/options.c:2575:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes = read(com[0], tmp, sizeof(tmp) - 1);
data/wget2-1.99.1/src/plugin.c:339: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).
	name_len = strlen(name);
data/wget2-1.99.1/src/wget.c:194: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).
					char dst[strlen(fname) + 1 + 32];
data/wget2-1.99.1/src/wget.c:546: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).
	rc = pcre2_match(re, (PCRE2_SPTR) string, strlen(string), 0, 0, match_data, NULL);
data/wget2-1.99.1/src/wget.c:576: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).
	rc = pcre_exec(re, extra, string, (int) strlen(string), 0, 0, offsets, 8);
data/wget2-1.99.1/src/wget.c:1057: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).
							char dstfile[strlen(conversion->filename) + 5 + 1];
data/wget2-1.99.1/src/wget.c:1612: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).
		wget_iri_relative_to_abs(iri, resp->location, strlen(resp->location), &uri_buf);
data/wget2-1.99.1/src/wget.c:2248: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).
	rc = wget_memiconv(encoding, urlpart, strlen(urlpart), "utf-8", &urlpart_encoded, &urlpart_encoded_length);
data/wget2-1.99.1/src/wget.c:2444: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).
			baselen = strlen(base->uri);
data/wget2-1.99.1/src/wget.c:2536: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).
			baselen = strlen(base->uri);
data/wget2-1.99.1/src/wget.c:2540:79:  [1] (buffer) strlen:
  Does not handle 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 (line = end = data; *end && (end = (p = strchr(line, '\n')) ? p : line + strlen(line)); line = end + 1) {
data/wget2-1.99.1/src/wget.c:2576: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).
			baselen = strlen(base->uri);
data/wget2-1.99.1/src/wget.c:2819: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).
		fname_len = strlen(fname);
data/wget2-1.99.1/src/wget.c:2879: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).
	fname_length = strlen(fname);
data/wget2-1.99.1/src/wget.c:2944: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 ext_length = strlen(ext);
data/wget2-1.99.1/src/wget.c:3127: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).
		fname_allocated = wget_malloc(strlen(resp->content_filename) * 3 + 1);
data/wget2-1.99.1/src/wget.c:3452: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 length = strlen(config.post_data);
data/wget2-1.99.1/src/wget.c:3568: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).
		retval = fsetxattr(fileno (fname), name, value, strlen (value), 0);
data/wget2-1.99.1/tests/libtest.c:288: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).
				: (urls[it1].body ? strlen(urls[it1].body) : 0);
data/wget2-1.99.1/tests/libtest.c:403: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).
					response = MHD_create_response_from_buffer(strlen ("DENIED"),
data/wget2-1.99.1/tests/libtest.c:421: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).
					response = MHD_create_response_from_buffer(strlen ("DENIED"),
data/wget2-1.99.1/tests/libtest.c:432: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).
					response = MHD_create_response_from_buffer(strlen ("DENIED"),
data/wget2-1.99.1/tests/libtest.c:637: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).
	char cmd[strlen(dirname) + 16];
data/wget2-1.99.1/tests/libtest.c:656: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 dirlen = strlen(dirname);
data/wget2-1.99.1/tests/libtest.c:665: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).
			char fname[dirlen + 1 + strlen(dp->d_name) + 1];
data/wget2-1.99.1/tests/libtest.c:727: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 srclen = strlen(src) + 1;
data/wget2-1.99.1/tests/libtest.c:890: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 dirlen = strlen(dirname);
data/wget2-1.99.1/tests/libtest.c:898: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).
			char fname[dirlen + 1 + strlen(dp->d_name) + 1];
data/wget2-1.99.1/tests/libtest.c:925: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).
					char buf[strlen(expected_files[it].name) * 3 + 1];
data/wget2-1.99.1/tests/libtest.c:1045:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				ssize_t nbytes = write(fd, existing_files[it].content, strlen(existing_files[it].content));
data/wget2-1.99.1/tests/libtest.c:1048: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).
				if (nbytes != (ssize_t)strlen(existing_files[it].content))
data/wget2-1.99.1/tests/libtest.c:1050: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).
						strlen(existing_files[it].content), tmpdir, existing_files[it].name, options);
data/wget2-1.99.1/tests/libtest.c:1128: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).
			char buf[strlen(expected_files[it].name) * 3 + 1];
data/wget2-1.99.1/tests/libtest.c:1142:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					ssize_t nbytes = read(fd, content, st.st_size);
data/wget2-1.99.1/tests/libtest.c:1149:102:  [1] (buffer) strlen:
  Does not handle 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 content_length = expected_files[it].content_length ? expected_files[it].content_length : strlen(expected_files[it].content);
data/wget2-1.99.1/tests/libtest.c:1217:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rc = read(fd, buf, sizeof(fname[0]));
data/wget2-1.99.1/tests/test-metalink.c:144: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).
		urls[1].name + 1, strlen(urls[1].body), md5hex, urls[1].name + 1);
data/wget2-1.99.1/tests/test-metalink.c:157: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).
		urls[3].name + 1, strlen(urls[3].body), md5hex, urls[3].name + 1);
data/wget2-1.99.1/tests/test-metalink.c:176: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).
		urls[5].name + 1, strlen(urls[5].body), md5hex, strlen(urls[5].body) / 2,
data/wget2-1.99.1/tests/test-metalink.c:176: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).
		urls[5].name + 1, strlen(urls[5].body), md5hex, strlen(urls[5].body) / 2,
data/wget2-1.99.1/tests/test-metalink.c:196: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).
		urls[6].name + 1, strlen(urls[8].body), md5hex, strlen(urls[8].body) / 2,
data/wget2-1.99.1/tests/test-metalink.c:196: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).
		urls[6].name + 1, strlen(urls[8].body), md5hex, strlen(urls[8].body) / 2,
data/wget2-1.99.1/tests/test-metalink.c:270: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).
	wget_hash_fast(WGET_DIGTYPE_MD5, urls[8].body, strlen(urls[8].body), digest);
data/wget2-1.99.1/tests/test-metalink.c:286:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	wget_hash_fast(WGET_DIGTYPE_MD5, urls[10].body, strlen(urls[10].body), digest);
data/wget2-1.99.1/tests/test-plugin-dummy.c:339: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).
		find_len = strlen(d->replace.l);
data/wget2-1.99.1/tests/test-plugin-dummy.c:441:34:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				test_assert((int) data[i] == getc(stream));
data/wget2-1.99.1/tests/test-plugin-dummy.c:442:78:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			test_assert("At end of stream, wget_downloaded_file_open_stream(file)" && getc(stream) == EOF);
data/wget2-1.99.1/tests/test-wget-1.c:339: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).
		char modified[strlen(urls[3].body) + 1];
data/wget2-1.99.1/tests/test-wget-1.c:517: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 *partial = wget_strmemdup(urls[3].body, strlen(urls[3].body)-2);
data/wget2-1.99.1/unit-tests/stringmap_perf.c:79:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!(buf = wget_malloc(length + 1)) || read(fd, buf, length) != (signed)length) {
data/wget2-1.99.1/unit-tests/test-dl.c:150:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		libassert(read(sfd, buf, io_size) == io_size);
data/wget2-1.99.1/unit-tests/test-dl.c:301: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).
		char cmd[strlen(argv[0]) + 256];
data/wget2-1.99.1/unit-tests/test-dl.c:309: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).
		char cmd[strlen(valgrind) + strlen(argv[0]) + 32];
data/wget2-1.99.1/unit-tests/test-dl.c:309: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).
		char cmd[strlen(valgrind) + strlen(argv[0]) + 32];
data/wget2-1.99.1/unit-tests/test-parse-html.c:168:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				char fname[strlen(SRCDIR) + strlen(dp->d_name) + 8];
data/wget2-1.99.1/unit-tests/test-parse-html.c:168:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				char fname[strlen(SRCDIR) + strlen(dp->d_name) + 8];
data/wget2-1.99.1/unit-tests/test.c:950: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).
		wget_iri_relative_to_abs(base, t->relative, strlen(t->relative), uri_buf);
data/wget2-1.99.1/unit-tests/test.c:1046: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).
				char fname[strlen(SRCDIR) + strlen(dp->d_name) + 8];
data/wget2-1.99.1/unit-tests/test.c:1046:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				char fname[strlen(SRCDIR) + strlen(dp->d_name) + 8];
data/wget2-1.99.1/unit-tests/test.c:1417: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).
		wget_base64_decode(hpkp_pins_binary[it], hpkp_pins[it], strlen(hpkp_pins[it]));
data/wget2-1.99.1/unit-tests/test.c:1524:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		n = wget_hpkp_db_check_pubkey(hpkp_db, t->host, t->pubkey, strlen(t->pubkey));
data/wget2-1.99.1/unit-tests/test.c:1752: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).
		if ((rc = wget_hash_fast(t->algo, t->text, strlen(t->text), digest)) == 0) {
data/wget2-1.99.1/unit-tests/test.c:1981:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (wget_memiconv("utf-8", utf8, strlen(utf8), "UTF-16BE", &utf16be, &n) ||
data/wget2-1.99.1/unit-tests/test.c:2090:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			fwrite(t->text, 1, strlen(t->text), fp);
data/wget2-1.99.1/unit-tests/test.c:2385: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).
		char cmd[strlen(argv[0]) + 256];
data/wget2-1.99.1/unit-tests/test.c:2390: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).
		char cmd[strlen(valgrind) + strlen(argv[0]) + 32];
data/wget2-1.99.1/unit-tests/test.c:2390: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).
		char cmd[strlen(valgrind) + strlen(argv[0]) + 32];

ANALYSIS SUMMARY:

Hits = 1330
Lines analyzed = 137362 in approximately 3.73 seconds (36803 lines/second)
Physical Source Lines of Code (SLOC) = 91491
Hits@level = [0] 287 [1] 324 [2] 672 [3]  96 [4] 212 [5]  26
Hits@level+ = [0+] 1617 [1+] 1330 [2+] 1006 [3+] 334 [4+] 238 [5+]  26
Hits/KSLOC@level+ = [0+] 17.6739 [1+] 14.5369 [2+] 10.9956 [3+] 3.65063 [4+] 2.60135 [5+] 0.284181
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.