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/icoutils-0.32.3/lib/xalloc-oversized.h
Examining data/icoutils-0.32.3/lib/float+.h
Examining data/icoutils-0.32.3/lib/dirname.h
Examining data/icoutils-0.32.3/lib/pathmax.h
Examining data/icoutils-0.32.3/lib/size_max.h
Examining data/icoutils-0.32.3/lib/getopt1.c
Examining data/icoutils-0.32.3/lib/string.in.h
Examining data/icoutils-0.32.3/lib/verify.h
Examining data/icoutils-0.32.3/lib/gettimeofday.c
Examining data/icoutils-0.32.3/lib/warn-on-use.h
Examining data/icoutils-0.32.3/lib/progname.h
Examining data/icoutils-0.32.3/lib/msvc-nothrow.h
Examining data/icoutils-0.32.3/lib/msvc-nothrow.c
Examining data/icoutils-0.32.3/lib/stripslash.c
Examining data/icoutils-0.32.3/lib/asnprintf.c
Examining data/icoutils-0.32.3/lib/stdbool.in.h
Examining data/icoutils-0.32.3/lib/strerror-override.h
Examining data/icoutils-0.32.3/lib/vasnprintf.h
Examining data/icoutils-0.32.3/lib/strstr.c
Examining data/icoutils-0.32.3/lib/getopt-cdefs.in.h
Examining data/icoutils-0.32.3/lib/strerror-override.c
Examining data/icoutils-0.32.3/lib/getopt-pfx-core.h
Examining data/icoutils-0.32.3/lib/strdup.c
Examining data/icoutils-0.32.3/lib/msvc-inval.c
Examining data/icoutils-0.32.3/lib/float.c
Examining data/icoutils-0.32.3/lib/malloca.c
Examining data/icoutils-0.32.3/lib/getopt_int.h
Examining data/icoutils-0.32.3/lib/getprogname.h
Examining data/icoutils-0.32.3/lib/unistd.c
Examining data/icoutils-0.32.3/lib/sys_types.in.h
Examining data/icoutils-0.32.3/lib/xvasprintf.h
Examining data/icoutils-0.32.3/lib/sys_time.in.h
Examining data/icoutils-0.32.3/lib/version-etc.h
Examining data/icoutils-0.32.3/lib/getprogname.c
Examining data/icoutils-0.32.3/lib/xalloc-die.c
Examining data/icoutils-0.32.3/lib/stdio.in.h
Examining data/icoutils-0.32.3/lib/asprintf.c
Examining data/icoutils-0.32.3/lib/minmax.h
Examining data/icoutils-0.32.3/lib/basename-lgpl.c
Examining data/icoutils-0.32.3/lib/localtime-buffer.h
Examining data/icoutils-0.32.3/lib/errno.in.h
Examining data/icoutils-0.32.3/lib/str-two-way.h
Examining data/icoutils-0.32.3/lib/getopt-pfx-ext.h
Examining data/icoutils-0.32.3/lib/version-etc.c
Examining data/icoutils-0.32.3/lib/stdint.in.h
Examining data/icoutils-0.32.3/lib/stat-time.h
Examining data/icoutils-0.32.3/lib/strcasecmp.c
Examining data/icoutils-0.32.3/lib/error.h
Examining data/icoutils-0.32.3/lib/stat-time.c
Examining data/icoutils-0.32.3/lib/xasprintf.c
Examining data/icoutils-0.32.3/lib/intprops.h
Examining data/icoutils-0.32.3/lib/printf-parse.h
Examining data/icoutils-0.32.3/lib/printf-parse.c
Examining data/icoutils-0.32.3/lib/stat.c
Examining data/icoutils-0.32.3/lib/float.in.h
Examining data/icoutils-0.32.3/lib/getdelim.c
Examining data/icoutils-0.32.3/lib/strerror.c
Examining data/icoutils-0.32.3/lib/unistd.in.h
Examining data/icoutils-0.32.3/lib/stat-w32.h
Examining data/icoutils-0.32.3/lib/msvc-inval.h
Examining data/icoutils-0.32.3/lib/strings.in.h
Examining data/icoutils-0.32.3/lib/stddef.in.h
Examining data/icoutils-0.32.3/lib/wchar.in.h
Examining data/icoutils-0.32.3/lib/filename.h
Examining data/icoutils-0.32.3/lib/getopt.c
Examining data/icoutils-0.32.3/lib/arg-nonnull.h
Examining data/icoutils-0.32.3/lib/xalloc.h
Examining data/icoutils-0.32.3/lib/localtime-buffer.c
Examining data/icoutils-0.32.3/lib/byteswap.in.h
Examining data/icoutils-0.32.3/lib/itold.c
Examining data/icoutils-0.32.3/lib/error.c
Examining data/icoutils-0.32.3/lib/printf-args.h
Examining data/icoutils-0.32.3/lib/_Noreturn.h
Examining data/icoutils-0.32.3/lib/getopt-ext.h
Examining data/icoutils-0.32.3/lib/exitfail.c
Examining data/icoutils-0.32.3/lib/xstrndup.h
Examining data/icoutils-0.32.3/lib/alloca.in.h
Examining data/icoutils-0.32.3/lib/dosname.h
Examining data/icoutils-0.32.3/lib/getopt.in.h
Examining data/icoutils-0.32.3/lib/progname.c
Examining data/icoutils-0.32.3/lib/stdlib.in.h
Examining data/icoutils-0.32.3/lib/malloc.c
Examining data/icoutils-0.32.3/lib/xsize.c
Examining data/icoutils-0.32.3/lib/time.in.h
Examining data/icoutils-0.32.3/lib/memchr.c
Examining data/icoutils-0.32.3/lib/xvasprintf.c
Examining data/icoutils-0.32.3/lib/strnlen.c
Examining data/icoutils-0.32.3/lib/dirname.c
Examining data/icoutils-0.32.3/lib/gettext.h
Examining data/icoutils-0.32.3/lib/sys_stat.in.h
Examining data/icoutils-0.32.3/lib/c++defs.h
Examining data/icoutils-0.32.3/lib/vasprintf.c
Examining data/icoutils-0.32.3/lib/limits.in.h
Examining data/icoutils-0.32.3/lib/strncasecmp.c
Examining data/icoutils-0.32.3/lib/malloca.h
Examining data/icoutils-0.32.3/lib/vasnprintf.c
Examining data/icoutils-0.32.3/lib/lstat.c
Examining data/icoutils-0.32.3/lib/stat-w32.c
Examining data/icoutils-0.32.3/lib/dirname-lgpl.c
Examining data/icoutils-0.32.3/lib/dup2.c
Examining data/icoutils-0.32.3/lib/basename.c
Examining data/icoutils-0.32.3/lib/stdarg.in.h
Examining data/icoutils-0.32.3/lib/xmalloc.c
Examining data/icoutils-0.32.3/lib/strndup.c
Examining data/icoutils-0.32.3/lib/xsize.h
Examining data/icoutils-0.32.3/lib/getline.c
Examining data/icoutils-0.32.3/lib/exitfail.h
Examining data/icoutils-0.32.3/lib/xstrndup.c
Examining data/icoutils-0.32.3/lib/getopt-core.h
Examining data/icoutils-0.32.3/lib/printf-args.c
Examining data/icoutils-0.32.3/wrestool/restable.c
Examining data/icoutils-0.32.3/wrestool/fileread.c
Examining data/icoutils-0.32.3/wrestool/wrestool.h
Examining data/icoutils-0.32.3/wrestool/main.c
Examining data/icoutils-0.32.3/wrestool/extract.c
Examining data/icoutils-0.32.3/wrestool/fileread.h
Examining data/icoutils-0.32.3/icotool/create.c
Examining data/icoutils-0.32.3/icotool/icotool.h
Examining data/icoutils-0.32.3/icotool/win32-endian.h
Examining data/icoutils-0.32.3/icotool/main.c
Examining data/icoutils-0.32.3/icotool/extract.c
Examining data/icoutils-0.32.3/icotool/palette.c
Examining data/icoutils-0.32.3/icotool/win32.h
Examining data/icoutils-0.32.3/icotool/win32-endian.c
Examining data/icoutils-0.32.3/common/common.h
Examining data/icoutils-0.32.3/common/string-utils.c
Examining data/icoutils-0.32.3/common/intutil.h
Examining data/icoutils-0.32.3/common/tmap.c
Examining data/icoutils-0.32.3/common/io-utils.h
Examining data/icoutils-0.32.3/common/string-utils.h
Examining data/icoutils-0.32.3/common/strbuf.c
Examining data/icoutils-0.32.3/common/llist.h
Examining data/icoutils-0.32.3/common/error.h
Examining data/icoutils-0.32.3/common/intutil.c
Examining data/icoutils-0.32.3/common/error.c
Examining data/icoutils-0.32.3/common/hmap.h
Examining data/icoutils-0.32.3/common/io-utils.c
Examining data/icoutils-0.32.3/common/strbuf.h
Examining data/icoutils-0.32.3/common/comparison.h
Examining data/icoutils-0.32.3/common/tmap.h
Examining data/icoutils-0.32.3/common/hmap.c
Examining data/icoutils-0.32.3/common/llist.c

FINAL RESULTS:

data/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/common/error.c:56:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, msg, ap);
data/icoutils-0.32.3/common/error.c:65:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, msg, ap);
data/icoutils-0.32.3/common/error.c:111:2:  [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, msg, ap);
data/icoutils-0.32.3/common/intutil.c:29:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(intstr, "%" m, value); \
data/icoutils-0.32.3/common/io-utils.c:211: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(program, args);
data/icoutils-0.32.3/common/strbuf.h:53:83:  [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.
StrBuf *strbuf_newf_n(size_t times, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
data/icoutils-0.32.3/common/strbuf.h:54:91:  [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.
StrBuf *strbuf_vnewf_n(size_t times, const char *fmt, va_list ap) __attribute__ ((format (printf, 2, 0)));
data/icoutils-0.32.3/common/strbuf.h:127:119:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int strbuf_replacef_n(StrBuf *sb, ssize_t sp, ssize_t ep, size_t times, const char *fmt, ...) __attribute__ ((format (printf, 5, 6)));
data/icoutils-0.32.3/common/strbuf.h:128:127:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int strbuf_vreplacef_n(StrBuf *sb, ssize_t sp, ssize_t ep, size_t times, const char *fmt, va_list ap) __attribute__ ((format (printf, 5, 0)));
data/icoutils-0.32.3/icotool/extract.c:187:25:  [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(_("--%s --index=%d --width=%d --height=%d --bit-depth=%" PRIu32 " --palette-size=%" PRIu32),
data/icoutils-0.32.3/icotool/extract.c:364:25:  [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(_("--%s --index=%d --width=%d --height=%d --bit-depth=%" PRIu32 " --palette-size=%" PRIu32),
data/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/lib/getopt.c:40:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define fprintf __fxprintf_nocancel
data/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/lib/strerror.c:59:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (buf, fmt, n);
data/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/lib/vasnprintf.c:4275:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                      sprintf (expbuf, decimal_format, exponent);
data/icoutils-0.32.3/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/icoutils-0.32.3/lib/vasnprintf.c:4468:47:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                              sprintf (expbuf, decimal_format, exponent);
data/icoutils-0.32.3/lib/vasnprintf.c:4990:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, arg);                    \
data/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/lib/version-etc.c:84: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 (stream, version_etc_copyright, _("(C)"), COPYRIGHT_YEAR);
data/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/wrestool/restable.c:159:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp, "'%s'", wr->id);
data/icoutils-0.32.3/wrestool/restable.c:205: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(wr->id, WINRES_ID_MAXLEN, "%" PRIu32, value);
data/icoutils-0.32.3/common/io-utils.c:166: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.
			tmpdir = getenv("TMPDIR");
data/icoutils-0.32.3/icotool/main.c:263:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL)) != -1) {
data/icoutils-0.32.3/lib/getopt-core.h:91:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
data/icoutils-0.32.3/lib/getopt-ext.h:66:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,
data/icoutils-0.32.3/lib/getopt-pfx-core.h:40:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt
data/icoutils-0.32.3/lib/getopt-pfx-core.h:45:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/icoutils-0.32.3/lib/getopt-pfx-core.h:45:30:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/icoutils-0.32.3/lib/getopt-pfx-ext.h:40:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt_long
data/icoutils-0.32.3/lib/getopt-pfx-ext.h:44:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long __GETOPT_ID (getopt_long)
data/icoutils-0.32.3/lib/getopt-pfx-ext.h:44:35:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long __GETOPT_ID (getopt_long)
data/icoutils-0.32.3/lib/getopt.c:405:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  else if (posixly_correct || !!getenv ("POSIXLY_CORRECT"))
data/icoutils-0.32.3/lib/getopt.c:736:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
GETOPT_ENTRY(getopt, 0)
data/icoutils-0.32.3/lib/getopt.c:739:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
GETOPT_ENTRY(getopt, 1)
data/icoutils-0.32.3/lib/getopt.c:758:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/icoutils-0.32.3/lib/getopt1.c:28:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
data/icoutils-0.32.3/lib/getopt1.c:94:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/wrestool/main.c:242:6:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	c = getopt_long (argc, argv, "t:n:L:o:aRxlv", long_options, &option_index);
data/icoutils-0.32.3/common/intutil.c:35: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 intstr[23];
data/icoutils-0.32.3/common/io-utils.c:176:7:  [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).
	fd = mkstemp(name);
data/icoutils-0.32.3/common/strbuf.c:129: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(sb->buf + len*(times-1), mem, len);
data/icoutils-0.32.3/common/strbuf.c:219: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.
    	    memcpy(sb->buf+sp, mem, len);
data/icoutils-0.32.3/common/strbuf.c:337: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(str, sb->buf+sp, (ep-sp+1) * sizeof(char));
data/icoutils-0.32.3/common/string-utils.c:259: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(pos, to, s2);
data/icoutils-0.32.3/icotool/create.c:100: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 header[8];
data/icoutils-0.32.3/icotool/create.c:116: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).
        img[c].in = fopen(real_filev, "rb");
data/icoutils-0.32.3/icotool/extract.c:89:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (data, io->ptr, size);
data/icoutils-0.32.3/icotool/main.c:121: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).
        return fopen(output, "wb");
data/icoutils-0.32.3/icotool/main.c:151: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).
        return fopen(*outname_ptr, "wb");
data/icoutils-0.32.3/icotool/main.c:159: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).
    return fopen(output, "wb");
data/icoutils-0.32.3/icotool/main.c:199:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        *outfile = fopen(name, "rb");
data/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/lib/version-etc.c:201: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 *authtab[10];
data/icoutils-0.32.3/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/icoutils-0.32.3/lib/xvasprintf.c:67: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, next, len);
data/icoutils-0.32.3/wrestool/extract.c:57: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).
		out = fopen(outname, "wb");
data/icoutils-0.32.3/wrestool/extract.c:147:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[14];
data/icoutils-0.32.3/wrestool/extract.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 name[14];
data/icoutils-0.32.3/wrestool/extract.c:226: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(&fileicondir->entries[c-skipped], &icondir->entries[c],
data/icoutils-0.32.3/wrestool/extract.c:244: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(&memory[offset], data, size);
data/icoutils-0.32.3/wrestool/extract.c:248: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(&memory[offset], data+sizeof(uint16_t)*2,
data/icoutils-0.32.3/wrestool/extract.c:345: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(result+14,resentry,size);
data/icoutils-0.32.3/wrestool/main.c:140:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char filename[1024];
data/icoutils-0.32.3/wrestool/main.c:308: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).
		fi.file = fopen(fi.name, "rb");
data/icoutils-0.32.3/wrestool/restable.c:98: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(WINRESOURCE_BY_LEVEL(wr[c].level), wr+c, sizeof(WinResource));
data/icoutils-0.32.3/wrestool/restable.c:154:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char tmp[WINRES_ID_MAXLEN+2];
data/icoutils-0.32.3/wrestool/restable.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(wr->id, &mem[1], len);
data/icoutils-0.32.3/wrestool/restable.c:587: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(return_wr, &wr[c], sizeof(WinResource));
data/icoutils-0.32.3/wrestool/wrestool.h: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 id[256];
data/icoutils-0.32.3/common/io-utils.c:25: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).
# define NAMLEN(dirent) strlen((dirent)->d_name)
data/icoutils-0.32.3/common/io-utils.c:276:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (fgetc(file) == EOF)
data/icoutils-0.32.3/common/strbuf.c:61: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).
    pos += 1 + strlen(str);
data/icoutils-0.32.3/common/string-utils.c:52: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).
	len = strlen(str);
data/icoutils-0.32.3/common/string-utils.c:115:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int diff = strlen(str) - strlen(end);
data/icoutils-0.32.3/common/string-utils.c:115: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).
	int diff = strlen(str) - strlen(end);
data/icoutils-0.32.3/common/string-utils.c:141:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int diff = strlen(str) - strlen(end);
data/icoutils-0.32.3/common/string-utils.c:141: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).
	int diff = strlen(str) - strlen(end);
data/icoutils-0.32.3/common/string-utils.c:256: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).
	s1 = strlen(from);
data/icoutils-0.32.3/common/string-utils.c:257: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).
	s2 = strlen(to);
data/icoutils-0.32.3/common/string-utils.c:258: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).
	memmove(pos+s2, pos+s1, strlen(pos)-s2+1);
data/icoutils-0.32.3/common/string-utils.c:291: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).
	int len = strlen(buf);
data/icoutils-0.32.3/common/string-utils.c:311: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).
	int a = strlen(str)-1;
data/icoutils-0.32.3/common/string-utils.c:331: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).
	int a = strlen(str-1);
data/icoutils-0.32.3/icotool/main.c:145:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strbuf_append_substring(outname, inbase, 0, strlen(inbase)-4);
data/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/lib/getopt.c:214:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	&& namelen == strlen (p->name))
data/icoutils-0.32.3/lib/getopt.c:301:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  d->__nextchar += strlen (d->__nextchar);
data/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/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/icoutils-0.32.3/lib/xvasprintf.c:47:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      totalsize = xsum (totalsize, strlen (next));
data/icoutils-0.32.3/lib/xvasprintf.c:66: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 (next);

ANALYSIS SUMMARY:

Hits = 430
Lines analyzed = 34145 in approximately 0.99 seconds (34646 lines/second)
Physical Source Lines of Code (SLOC) = 23440
Hits@level = [0] 141 [1] 102 [2] 116 [3]  42 [4] 148 [5]  22
Hits@level+ = [0+] 571 [1+] 430 [2+] 328 [3+] 212 [4+] 170 [5+]  22
Hits/KSLOC@level+ = [0+] 24.3601 [1+] 18.3447 [2+] 13.9932 [3+] 9.04437 [4+] 7.25256 [5+] 0.938567
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.