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/bison-3.7.3+dfsg/tests/testsuite.h Examining data/bison-3.7.3+dfsg/examples/c++/calc++/driver.cc Examining data/bison-3.7.3+dfsg/examples/c++/calc++/calc++.cc Examining data/bison-3.7.3+dfsg/examples/c/mfcalc/calc.h Examining data/bison-3.7.3+dfsg/lib/gl_anylinked_list2.h Examining data/bison-3.7.3+dfsg/lib/close-stream.h Examining data/bison-3.7.3+dfsg/lib/malloca.c Examining data/bison-3.7.3+dfsg/lib/stdlib.in.h Examining data/bison-3.7.3+dfsg/lib/getopt.in.h Examining data/bison-3.7.3+dfsg/lib/stdio-safer.h Examining data/bison-3.7.3+dfsg/lib/mbsinit.c Examining data/bison-3.7.3+dfsg/lib/bitset/list.c Examining data/bison-3.7.3+dfsg/lib/bitset/table.c Examining data/bison-3.7.3+dfsg/lib/bitset/array.c Examining data/bison-3.7.3+dfsg/lib/bitset/vector.c Examining data/bison-3.7.3+dfsg/lib/bitset/stats.c Examining data/bison-3.7.3+dfsg/lib/bitset/list.h Examining data/bison-3.7.3+dfsg/lib/bitset/array.h Examining data/bison-3.7.3+dfsg/lib/bitset/table.h Examining data/bison-3.7.3+dfsg/lib/bitset/vector.h Examining data/bison-3.7.3+dfsg/lib/bitset/stats.h Examining data/bison-3.7.3+dfsg/lib/bitset/base.h Examining data/bison-3.7.3+dfsg/lib/gl_anytree_list2.h Examining data/bison-3.7.3+dfsg/lib/signbitd.c Examining data/bison-3.7.3+dfsg/lib/fseterr.c Examining data/bison-3.7.3+dfsg/lib/strchrnul.c Examining data/bison-3.7.3+dfsg/lib/bitsetv.h Examining data/bison-3.7.3+dfsg/lib/allocator.c Examining data/bison-3.7.3+dfsg/lib/error.h Examining data/bison-3.7.3+dfsg/lib/dup-safer-flag.c Examining data/bison-3.7.3+dfsg/lib/stddef.in.h Examining data/bison-3.7.3+dfsg/lib/getopt1.c Examining data/bison-3.7.3+dfsg/lib/stpcpy.c Examining data/bison-3.7.3+dfsg/lib/printf.c Examining data/bison-3.7.3+dfsg/lib/fstat.c Examining data/bison-3.7.3+dfsg/lib/closeout.h Examining data/bison-3.7.3+dfsg/lib/iconv.c Examining data/bison-3.7.3+dfsg/lib/gl_oset.h Examining data/bison-3.7.3+dfsg/lib/spawnattr_setsigmask.c Examining data/bison-3.7.3+dfsg/lib/unitypes.in.h Examining data/bison-3.7.3+dfsg/lib/basename-lgpl.h Examining data/bison-3.7.3+dfsg/lib/isnand-nolibm.h Examining data/bison-3.7.3+dfsg/lib/bitset.h Examining data/bison-3.7.3+dfsg/lib/xreadlink.c Examining data/bison-3.7.3+dfsg/lib/quote.h Examining data/bison-3.7.3+dfsg/lib/minmax.h Examining data/bison-3.7.3+dfsg/lib/vasnprintf.h Examining data/bison-3.7.3+dfsg/lib/spawn-pipe.h Examining data/bison-3.7.3+dfsg/lib/printf-parse.h Examining data/bison-3.7.3+dfsg/lib/unlocked-io.h Examining data/bison-3.7.3+dfsg/lib/isnand.c Examining data/bison-3.7.3+dfsg/lib/gl_anyrbtree_list2.h Examining data/bison-3.7.3+dfsg/lib/getrusage.c Examining data/bison-3.7.3+dfsg/lib/printf-args.c Examining data/bison-3.7.3+dfsg/lib/gl_xlist.h Examining data/bison-3.7.3+dfsg/lib/gethrxtime.h Examining data/bison-3.7.3+dfsg/lib/sigaction.c Examining data/bison-3.7.3+dfsg/lib/windows-tls.c Examining data/bison-3.7.3+dfsg/lib/xmemdup0.c Examining data/bison-3.7.3+dfsg/lib/c++defs.h Examining data/bison-3.7.3+dfsg/lib/mbchar.c Examining data/bison-3.7.3+dfsg/lib/wctype.in.h Examining data/bison-3.7.3+dfsg/lib/intprops.h Examining data/bison-3.7.3+dfsg/lib/textstyle.in.h Examining data/bison-3.7.3+dfsg/lib/raise.c Examining data/bison-3.7.3+dfsg/lib/alignof.h Examining data/bison-3.7.3+dfsg/lib/strerror-override.c Examining data/bison-3.7.3+dfsg/lib/mbtowc-lock.h Examining data/bison-3.7.3+dfsg/lib/math.c Examining data/bison-3.7.3+dfsg/lib/stdio--.h Examining data/bison-3.7.3+dfsg/lib/spawn.in.h Examining data/bison-3.7.3+dfsg/lib/get-errno.h Examining data/bison-3.7.3+dfsg/lib/quotearg.h Examining data/bison-3.7.3+dfsg/lib/windows-once.h Examining data/bison-3.7.3+dfsg/lib/spawn_faction_addclose.c Examining data/bison-3.7.3+dfsg/lib/fatal-signal.c Examining data/bison-3.7.3+dfsg/lib/dup-safer.c Examining data/bison-3.7.3+dfsg/lib/spawn_faction_addopen.c Examining data/bison-3.7.3+dfsg/lib/rawmemchr.c Examining data/bison-3.7.3+dfsg/lib/timevar.h Examining data/bison-3.7.3+dfsg/lib/gettimeofday.c Examining data/bison-3.7.3+dfsg/lib/gettime.c Examining data/bison-3.7.3+dfsg/lib/c-strcase.h Examining data/bison-3.7.3+dfsg/lib/fpending.c Examining data/bison-3.7.3+dfsg/lib/iconv_close.c Examining data/bison-3.7.3+dfsg/lib/frexp.c Examining data/bison-3.7.3+dfsg/lib/spawnp.c Examining data/bison-3.7.3+dfsg/lib/itold.c Examining data/bison-3.7.3+dfsg/lib/readline.h Examining data/bison-3.7.3+dfsg/lib/timespec.c Examining data/bison-3.7.3+dfsg/lib/gl_linked_list.h Examining data/bison-3.7.3+dfsg/lib/size_max.h Examining data/bison-3.7.3+dfsg/lib/errno.in.h Examining data/bison-3.7.3+dfsg/lib/cloexec.h Examining data/bison-3.7.3+dfsg/lib/rename.c Examining data/bison-3.7.3+dfsg/lib/obstack.c Examining data/bison-3.7.3+dfsg/lib/c-ctype.c Examining data/bison-3.7.3+dfsg/lib/lc-charset-dispatch.c Examining data/bison-3.7.3+dfsg/lib/xtime.c Examining data/bison-3.7.3+dfsg/lib/fopen.c Examining data/bison-3.7.3+dfsg/lib/frexpl.c Examining data/bison-3.7.3+dfsg/lib/xsize.c Examining data/bison-3.7.3+dfsg/lib/stdio.in.h Examining data/bison-3.7.3+dfsg/lib/fstrcmp.h Examining data/bison-3.7.3+dfsg/lib/careadlinkat.c Examining data/bison-3.7.3+dfsg/lib/concat-filename.h Examining data/bison-3.7.3+dfsg/lib/obstack_printf.c Examining data/bison-3.7.3+dfsg/lib/strnlen.c Examining data/bison-3.7.3+dfsg/lib/gl_anylinked_list1.h Examining data/bison-3.7.3+dfsg/lib/fd-safer.c Examining data/bison-3.7.3+dfsg/lib/pathmax.h Examining data/bison-3.7.3+dfsg/lib/gl_rbtree_oset.h Examining data/bison-3.7.3+dfsg/lib/gl_rbtreehash_list.h Examining data/bison-3.7.3+dfsg/lib/gl_anytree_list1.h Examining data/bison-3.7.3+dfsg/lib/mbswidth.c Examining data/bison-3.7.3+dfsg/lib/areadlink.c Examining data/bison-3.7.3+dfsg/lib/unicodeio.c Examining data/bison-3.7.3+dfsg/lib/libc-config.h Examining data/bison-3.7.3+dfsg/lib/_Noreturn.h Examining data/bison-3.7.3+dfsg/lib/gl_anyrbtree_list1.h Examining data/bison-3.7.3+dfsg/lib/printf-frexpl.h Examining data/bison-3.7.3+dfsg/lib/bitrotate.h Examining data/bison-3.7.3+dfsg/lib/argmatch.c Examining data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h Examining data/bison-3.7.3+dfsg/lib/iconv_open-aix.h Examining data/bison-3.7.3+dfsg/lib/wait-process.c Examining data/bison-3.7.3+dfsg/lib/gl_list.h Examining data/bison-3.7.3+dfsg/lib/unistr.in.h Examining data/bison-3.7.3+dfsg/lib/sys_types.in.h Examining data/bison-3.7.3+dfsg/lib/getopt-core.h Examining data/bison-3.7.3+dfsg/lib/sys_times.in.h Examining data/bison-3.7.3+dfsg/lib/termios.in.h Examining data/bison-3.7.3+dfsg/lib/sig-handler.h Examining data/bison-3.7.3+dfsg/lib/msvc-inval.c Examining data/bison-3.7.3+dfsg/lib/uniwidth.in.h Examining data/bison-3.7.3+dfsg/lib/localcharset.h Examining data/bison-3.7.3+dfsg/lib/getopt_int.h Examining data/bison-3.7.3+dfsg/lib/exitfail.h Examining data/bison-3.7.3+dfsg/lib/relocatable.c Examining data/bison-3.7.3+dfsg/lib/yyerror.c Examining data/bison-3.7.3+dfsg/lib/getopt-pfx-ext.h Examining data/bison-3.7.3+dfsg/lib/windows-rwlock.c Examining data/bison-3.7.3+dfsg/lib/vsprintf.c Examining data/bison-3.7.3+dfsg/lib/path-join.c Examining data/bison-3.7.3+dfsg/lib/binary-io.c Examining data/bison-3.7.3+dfsg/lib/float.in.h Examining data/bison-3.7.3+dfsg/lib/glthread/tls.h Examining data/bison-3.7.3+dfsg/lib/glthread/lock.h Examining data/bison-3.7.3+dfsg/lib/glthread/tls.c Examining data/bison-3.7.3+dfsg/lib/glthread/threadlib.c Examining data/bison-3.7.3+dfsg/lib/glthread/lock.c Examining data/bison-3.7.3+dfsg/lib/time.in.h Examining data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c Examining data/bison-3.7.3+dfsg/lib/iconv.in.h Examining data/bison-3.7.3+dfsg/lib/sys_stat.in.h Examining data/bison-3.7.3+dfsg/lib/vfprintf.c Examining data/bison-3.7.3+dfsg/lib/fsync.c Examining data/bison-3.7.3+dfsg/lib/stat-time.c Examining data/bison-3.7.3+dfsg/lib/spawnattr_init.c Examining data/bison-3.7.3+dfsg/lib/asnprintf.c Examining data/bison-3.7.3+dfsg/lib/iconv_open-irix.h Examining data/bison-3.7.3+dfsg/lib/fd-hook.h Examining data/bison-3.7.3+dfsg/lib/pipe2.c Examining data/bison-3.7.3+dfsg/lib/same-inode.h Examining data/bison-3.7.3+dfsg/lib/progreloc.c Examining data/bison-3.7.3+dfsg/lib/sys_time.in.h Examining data/bison-3.7.3+dfsg/lib/windows-mutex.h Examining data/bison-3.7.3+dfsg/lib/mbfile.h Examining data/bison-3.7.3+dfsg/lib/xstrndup.c Examining data/bison-3.7.3+dfsg/lib/thread-optim.h Examining data/bison-3.7.3+dfsg/lib/gl_array_list.h Examining data/bison-3.7.3+dfsg/lib/warn-on-use.h Examining data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h Examining data/bison-3.7.3+dfsg/lib/fprintf.c Examining data/bison-3.7.3+dfsg/lib/printf-frexp.c Examining data/bison-3.7.3+dfsg/lib/iswxdigit.c Examining data/bison-3.7.3+dfsg/lib/spawn_faction_adddup2.c Examining data/bison-3.7.3+dfsg/lib/string.in.h Examining data/bison-3.7.3+dfsg/lib/hard-locale.h Examining data/bison-3.7.3+dfsg/lib/hash.c Examining data/bison-3.7.3+dfsg/lib/sprintf.c Examining data/bison-3.7.3+dfsg/lib/setlocale_null.c Examining data/bison-3.7.3+dfsg/lib/stat-w32.h Examining data/bison-3.7.3+dfsg/lib/getopt-pfx-core.h Examining data/bison-3.7.3+dfsg/lib/dirname.c Examining data/bison-3.7.3+dfsg/lib/windows-recmutex.c Examining data/bison-3.7.3+dfsg/lib/getprogname.h Examining data/bison-3.7.3+dfsg/lib/stdint.in.h Examining data/bison-3.7.3+dfsg/lib/iconv_open.c Examining data/bison-3.7.3+dfsg/lib/progname.h Examining data/bison-3.7.3+dfsg/lib/msvc-nothrow.h Examining data/bison-3.7.3+dfsg/lib/basename.c Examining data/bison-3.7.3+dfsg/lib/setenv.c Examining data/bison-3.7.3+dfsg/lib/getdtablesize.c Examining data/bison-3.7.3+dfsg/lib/gl_xlist.c Examining data/bison-3.7.3+dfsg/lib/printf-args.h Examining data/bison-3.7.3+dfsg/lib/fcntl.in.h Examining data/bison-3.7.3+dfsg/lib/sys_resource.in.h Examining data/bison-3.7.3+dfsg/lib/mbchar.h Examining data/bison-3.7.3+dfsg/lib/vasprintf.c Examining data/bison-3.7.3+dfsg/lib/xmemdup0.h Examining data/bison-3.7.3+dfsg/lib/spawnattr_destroy.c Examining data/bison-3.7.3+dfsg/lib/unsetenv.c Examining data/bison-3.7.3+dfsg/lib/windows-tls.h Examining data/bison-3.7.3+dfsg/lib/strerror_r.c Examining data/bison-3.7.3+dfsg/lib/gethrxtime.c Examining data/bison-3.7.3+dfsg/lib/fd-safer-flag.c Examining data/bison-3.7.3+dfsg/lib/strdup.c Examining data/bison-3.7.3+dfsg/lib/gl_anyhash_primes.h Examining data/bison-3.7.3+dfsg/lib/bitset.c Examining data/bison-3.7.3+dfsg/lib/xreadlink.h Examining data/bison-3.7.3+dfsg/lib/signbitf.c Examining data/bison-3.7.3+dfsg/lib/windows-initguard.h Examining data/bison-3.7.3+dfsg/lib/basename-lgpl.c Examining data/bison-3.7.3+dfsg/lib/dirname-lgpl.c Examining data/bison-3.7.3+dfsg/lib/unlink.c Examining data/bison-3.7.3+dfsg/lib/calloc.c Examining data/bison-3.7.3+dfsg/lib/spawn-pipe.c Examining data/bison-3.7.3+dfsg/lib/printf-parse.c Examining data/bison-3.7.3+dfsg/lib/uniwidth/width.c Examining data/bison-3.7.3+dfsg/lib/uniwidth/cjk.h Examining data/bison-3.7.3+dfsg/lib/signbitl.c Examining data/bison-3.7.3+dfsg/lib/vasnprintf.c Examining data/bison-3.7.3+dfsg/lib/snprintf.c Examining data/bison-3.7.3+dfsg/lib/relocwrapper.c Examining data/bison-3.7.3+dfsg/lib/gl_oset.c Examining data/bison-3.7.3+dfsg/lib/closeout.c Examining data/bison-3.7.3+dfsg/lib/isnanf.c Examining data/bison-3.7.3+dfsg/lib/inttypes.in.h Examining data/bison-3.7.3+dfsg/lib/realloc.c Examining data/bison-3.7.3+dfsg/lib/main.c Examining data/bison-3.7.3+dfsg/lib/mbrtowc-impl-utf8.h Examining data/bison-3.7.3+dfsg/lib/getopt-cdefs.in.h Examining data/bison-3.7.3+dfsg/lib/malloca.h Examining data/bison-3.7.3+dfsg/lib/close-stream.c Examining data/bison-3.7.3+dfsg/lib/error.c Examining data/bison-3.7.3+dfsg/lib/allocator.h Examining data/bison-3.7.3+dfsg/lib/locale.in.h Examining data/bison-3.7.3+dfsg/lib/bitsetv.c Examining data/bison-3.7.3+dfsg/lib/isnanl.c Examining data/bison-3.7.3+dfsg/lib/gettext.h Examining data/bison-3.7.3+dfsg/lib/fseterr.h Examining data/bison-3.7.3+dfsg/lib/alloca.in.h Examining data/bison-3.7.3+dfsg/lib/sched.in.h Examining data/bison-3.7.3+dfsg/lib/xtime.h Examining data/bison-3.7.3+dfsg/lib/strndup.c Examining data/bison-3.7.3+dfsg/lib/isnanf-nolibm.h Examining data/bison-3.7.3+dfsg/lib/c-ctype.h Examining data/bison-3.7.3+dfsg/lib/lc-charset-dispatch.h Examining data/bison-3.7.3+dfsg/lib/waitpid.c Examining data/bison-3.7.3+dfsg/lib/obstack.h Examining data/bison-3.7.3+dfsg/lib/cloexec.c Examining data/bison-3.7.3+dfsg/lib/xsize.h Examining data/bison-3.7.3+dfsg/lib/unistd.in.h Examining data/bison-3.7.3+dfsg/lib/limits.in.h Examining data/bison-3.7.3+dfsg/lib/dup2.c Examining data/bison-3.7.3+dfsg/lib/iconv_open-zos.h Examining data/bison-3.7.3+dfsg/lib/fpending.h Examining data/bison-3.7.3+dfsg/lib/c-strcasecmp.c Examining data/bison-3.7.3+dfsg/lib/readline.c Examining data/bison-3.7.3+dfsg/lib/timespec.h Examining data/bison-3.7.3+dfsg/lib/gl_linked_list.c Examining data/bison-3.7.3+dfsg/lib/assure.h Examining data/bison-3.7.3+dfsg/lib/gl_anyhash1.h Examining data/bison-3.7.3+dfsg/lib/perror.c Examining data/bison-3.7.3+dfsg/lib/getopt-ext.h Examining data/bison-3.7.3+dfsg/lib/xmalloc.c Examining data/bison-3.7.3+dfsg/lib/windows-once.c Examining data/bison-3.7.3+dfsg/lib/quotearg.c Examining data/bison-3.7.3+dfsg/lib/fatal-signal.h Examining data/bison-3.7.3+dfsg/lib/get-errno.c Examining data/bison-3.7.3+dfsg/lib/gl_anytree_oset.h Examining data/bison-3.7.3+dfsg/lib/float.c Examining data/bison-3.7.3+dfsg/lib/sigprocmask.c Examining data/bison-3.7.3+dfsg/lib/readlink.c Examining data/bison-3.7.3+dfsg/lib/wchar.in.h Examining data/bison-3.7.3+dfsg/lib/gl_rbtree_ordered.h Examining data/bison-3.7.3+dfsg/lib/timevar.c Examining data/bison-3.7.3+dfsg/lib/xalloc.h Examining data/bison-3.7.3+dfsg/lib/w32spawn.h Examining data/bison-3.7.3+dfsg/lib/isnanl-nolibm.h Examining data/bison-3.7.3+dfsg/lib/mbrtowc-impl.h Examining data/bison-3.7.3+dfsg/lib/config.in.h Examining data/bison-3.7.3+dfsg/lib/gl_anytreehash_list2.h Examining data/bison-3.7.3+dfsg/lib/stdbool.in.h Examining data/bison-3.7.3+dfsg/lib/malloc.c Examining data/bison-3.7.3+dfsg/lib/float+.h Examining data/bison-3.7.3+dfsg/lib/cdefs.h Examining data/bison-3.7.3+dfsg/lib/strerror.c Examining data/bison-3.7.3+dfsg/lib/strerror-override.h Examining data/bison-3.7.3+dfsg/lib/mbtowc-lock.c Examining data/bison-3.7.3+dfsg/lib/unused-parameter.h Examining data/bison-3.7.3+dfsg/lib/gl_list.c Examining data/bison-3.7.3+dfsg/lib/wait-process.h Examining data/bison-3.7.3+dfsg/lib/stat.c Examining data/bison-3.7.3+dfsg/lib/relocatable.h Examining data/bison-3.7.3+dfsg/lib/exitfail.c Examining data/bison-3.7.3+dfsg/lib/diffseq.h Examining data/bison-3.7.3+dfsg/lib/localcharset.c Examining data/bison-3.7.3+dfsg/lib/sig-handler.c Examining data/bison-3.7.3+dfsg/lib/msvc-inval.h Examining data/bison-3.7.3+dfsg/lib/xalloc-die.c Examining data/bison-3.7.3+dfsg/lib/setlocale-lock.c Examining data/bison-3.7.3+dfsg/lib/argmatch.h Examining data/bison-3.7.3+dfsg/lib/printf-frexpl.c Examining data/bison-3.7.3+dfsg/lib/bitrotate.c Examining data/bison-3.7.3+dfsg/lib/fcntl.c Examining data/bison-3.7.3+dfsg/lib/spawn_faction_destroy.c Examining data/bison-3.7.3+dfsg/lib/memchr.c Examining data/bison-3.7.3+dfsg/lib/ldexpl.c Examining data/bison-3.7.3+dfsg/lib/fopen-safer.c Examining data/bison-3.7.3+dfsg/lib/xconcat-filename.c Examining data/bison-3.7.3+dfsg/lib/c-strncasecmp.c Examining data/bison-3.7.3+dfsg/lib/stripslash.c Examining data/bison-3.7.3+dfsg/lib/unistd.c Examining data/bison-3.7.3+dfsg/lib/c-strcaseeq.h Examining data/bison-3.7.3+dfsg/lib/wcwidth.c Examining data/bison-3.7.3+dfsg/lib/unicodeio.h Examining data/bison-3.7.3+dfsg/lib/iconv_open-osf.h Examining data/bison-3.7.3+dfsg/lib/pipe-safer.c Examining data/bison-3.7.3+dfsg/lib/mbswidth.h Examining data/bison-3.7.3+dfsg/lib/areadlink.h Examining data/bison-3.7.3+dfsg/lib/lstat.c Examining data/bison-3.7.3+dfsg/lib/gl_rbtree_oset.c Examining data/bison-3.7.3+dfsg/lib/xhash.c Examining data/bison-3.7.3+dfsg/lib/gl_rbtreehash_list.c Examining data/bison-3.7.3+dfsg/lib/math.in.h Examining data/bison-3.7.3+dfsg/lib/iswblank.c Examining data/bison-3.7.3+dfsg/lib/spawni.c Examining data/bison-3.7.3+dfsg/lib/arg-nonnull.h Examining data/bison-3.7.3+dfsg/lib/concat-filename.c Examining data/bison-3.7.3+dfsg/lib/careadlinkat.h Examining data/bison-3.7.3+dfsg/lib/attribute.h Examining data/bison-3.7.3+dfsg/lib/fstrcmp.c Examining data/bison-3.7.3+dfsg/lib/sys_ioctl.in.h Examining data/bison-3.7.3+dfsg/lib/filename.h Examining data/bison-3.7.3+dfsg/lib/strverscmp.c Examining data/bison-3.7.3+dfsg/lib/windows-recmutex.h Examining data/bison-3.7.3+dfsg/lib/dirname.h Examining data/bison-3.7.3+dfsg/lib/getprogname.c Examining data/bison-3.7.3+dfsg/lib/spawn_int.h Examining data/bison-3.7.3+dfsg/lib/rmdir.c Examining data/bison-3.7.3+dfsg/lib/stat-w32.c Examining data/bison-3.7.3+dfsg/lib/mbrtowc.c Examining data/bison-3.7.3+dfsg/lib/stdio-impl.h Examining data/bison-3.7.3+dfsg/lib/getopt.c Examining data/bison-3.7.3+dfsg/lib/isnan.c Examining data/bison-3.7.3+dfsg/lib/gl_anyhash2.h Examining data/bison-3.7.3+dfsg/lib/msvc-nothrow.c Examining data/bison-3.7.3+dfsg/lib/progname.c Examining data/bison-3.7.3+dfsg/lib/printf-frexp.h Examining data/bison-3.7.3+dfsg/lib/gl_array_list.c Examining data/bison-3.7.3+dfsg/lib/vsnprintf.c Examining data/bison-3.7.3+dfsg/lib/spawn_faction_init.c Examining data/bison-3.7.3+dfsg/lib/xstrndup.h Examining data/bison-3.7.3+dfsg/lib/getdelim.c Examining data/bison-3.7.3+dfsg/lib/setlocale_null.h Examining data/bison-3.7.3+dfsg/lib/getline.c Examining data/bison-3.7.3+dfsg/lib/pipe2-safer.c Examining data/bison-3.7.3+dfsg/lib/hash.h Examining data/bison-3.7.3+dfsg/lib/hard-locale.c Examining data/bison-3.7.3+dfsg/lib/unistd-safer.h Examining data/bison-3.7.3+dfsg/lib/fpucw.h Examining data/bison-3.7.3+dfsg/lib/signal.in.h Examining data/bison-3.7.3+dfsg/lib/open.c Examining data/bison-3.7.3+dfsg/lib/fd-hook.c Examining data/bison-3.7.3+dfsg/lib/gl_anytreehash_list1.h Examining data/bison-3.7.3+dfsg/lib/streq.h Examining data/bison-3.7.3+dfsg/lib/mbfile.c Examining data/bison-3.7.3+dfsg/lib/iswdigit.c Examining data/bison-3.7.3+dfsg/lib/spawnattr_setflags.c Examining data/bison-3.7.3+dfsg/lib/close.c Examining data/bison-3.7.3+dfsg/lib/windows-mutex.c Examining data/bison-3.7.3+dfsg/lib/path-join.h Examining data/bison-3.7.3+dfsg/lib/binary-io.h Examining data/bison-3.7.3+dfsg/lib/unistd--.h Examining data/bison-3.7.3+dfsg/lib/verify.h Examining data/bison-3.7.3+dfsg/lib/sys_wait.in.h Examining data/bison-3.7.3+dfsg/lib/windows-rwlock.h Examining data/bison-3.7.3+dfsg/lib/wctype-h.c Examining data/bison-3.7.3+dfsg/lib/stat-time.h Examining data/bison-3.7.3+dfsg/lib/unistr/u8-uctomb.c Examining data/bison-3.7.3+dfsg/lib/unistr/u8-mbtoucr.c Examining data/bison-3.7.3+dfsg/lib/unistr/u8-uctomb-aux.c Examining data/bison-3.7.3+dfsg/lib/stpncpy.c Examining data/bison-3.7.3+dfsg/lib/asprintf.c Examining data/bison-3.7.3+dfsg/lib/xalloc-oversized.h Examining data/bison-3.7.3+dfsg/data/skeletons/glr.cc Examining data/bison-3.7.3+dfsg/data/skeletons/glr.c Examining data/bison-3.7.3+dfsg/data/skeletons/location.cc Examining data/bison-3.7.3+dfsg/data/skeletons/yacc.c Examining data/bison-3.7.3+dfsg/data/skeletons/lalr1.cc Examining data/bison-3.7.3+dfsg/src/parse-gram.h Examining data/bison-3.7.3+dfsg/src/counterexample.c Examining data/bison-3.7.3+dfsg/src/scan-gram-c.c Examining data/bison-3.7.3+dfsg/src/AnnotationList.h Examining data/bison-3.7.3+dfsg/src/reader.h Examining data/bison-3.7.3+dfsg/src/graphviz.h Examining data/bison-3.7.3+dfsg/src/tables.c Examining data/bison-3.7.3+dfsg/src/relation.h Examining data/bison-3.7.3+dfsg/src/lssi.c Examining data/bison-3.7.3+dfsg/src/scan-code.h Examining data/bison-3.7.3+dfsg/src/print-graph.c Examining data/bison-3.7.3+dfsg/src/parse-simulation.c Examining data/bison-3.7.3+dfsg/src/conflicts.h Examining data/bison-3.7.3+dfsg/src/derives.h Examining data/bison-3.7.3+dfsg/src/ielr.c Examining data/bison-3.7.3+dfsg/src/print.c Examining data/bison-3.7.3+dfsg/src/scan-code-c.c Examining data/bison-3.7.3+dfsg/src/lalr.h Examining data/bison-3.7.3+dfsg/src/i18n-strings.c Examining data/bison-3.7.3+dfsg/src/InadequacyList.h Examining data/bison-3.7.3+dfsg/src/muscle-tab.h Examining data/bison-3.7.3+dfsg/src/nullable.h Examining data/bison-3.7.3+dfsg/src/getargs.h Examining data/bison-3.7.3+dfsg/src/gram.c Examining data/bison-3.7.3+dfsg/src/reduce.c Examining data/bison-3.7.3+dfsg/src/flex-scanner.h Examining data/bison-3.7.3+dfsg/src/state-item.c Examining data/bison-3.7.3+dfsg/src/state.c Examining data/bison-3.7.3+dfsg/src/lr0.c Examining data/bison-3.7.3+dfsg/src/files.c Examining data/bison-3.7.3+dfsg/src/glyphs.h Examining data/bison-3.7.3+dfsg/src/print-xml.c Examining data/bison-3.7.3+dfsg/src/closure.c Examining data/bison-3.7.3+dfsg/src/derivation.c Examining data/bison-3.7.3+dfsg/src/location.c Examining data/bison-3.7.3+dfsg/src/uniqstr.h Examining data/bison-3.7.3+dfsg/src/complain.c Examining data/bison-3.7.3+dfsg/src/scan-gram.c Examining data/bison-3.7.3+dfsg/src/scan-skel.c Examining data/bison-3.7.3+dfsg/src/assoc.h Examining data/bison-3.7.3+dfsg/src/Sbitset.h Examining data/bison-3.7.3+dfsg/src/fixits.h Examining data/bison-3.7.3+dfsg/src/symlist.h Examining data/bison-3.7.3+dfsg/src/named-ref.h Examining data/bison-3.7.3+dfsg/src/output.h Examining data/bison-3.7.3+dfsg/src/symtab.h Examining data/bison-3.7.3+dfsg/src/print-graph.h Examining data/bison-3.7.3+dfsg/src/scan-code.c Examining data/bison-3.7.3+dfsg/src/lssi.h Examining data/bison-3.7.3+dfsg/src/AnnotationList.c Examining data/bison-3.7.3+dfsg/src/relation.c Examining data/bison-3.7.3+dfsg/src/tables.h Examining data/bison-3.7.3+dfsg/src/graphviz.c Examining data/bison-3.7.3+dfsg/src/scan-skel-c.c Examining data/bison-3.7.3+dfsg/src/reader.c Examining data/bison-3.7.3+dfsg/src/main.c Examining data/bison-3.7.3+dfsg/src/counterexample.h Examining data/bison-3.7.3+dfsg/src/parse-gram.c Examining data/bison-3.7.3+dfsg/src/gram.h Examining data/bison-3.7.3+dfsg/src/getargs.c Examining data/bison-3.7.3+dfsg/src/nullable.c Examining data/bison-3.7.3+dfsg/src/reduce.h Examining data/bison-3.7.3+dfsg/src/muscle-tab.c Examining data/bison-3.7.3+dfsg/src/InadequacyList.c Examining data/bison-3.7.3+dfsg/src/ielr.h Examining data/bison-3.7.3+dfsg/src/derives.c Examining data/bison-3.7.3+dfsg/src/lalr.c Examining data/bison-3.7.3+dfsg/src/print.h Examining data/bison-3.7.3+dfsg/src/conflicts.c Examining data/bison-3.7.3+dfsg/src/parse-simulation.h Examining data/bison-3.7.3+dfsg/src/derivation.h Examining data/bison-3.7.3+dfsg/src/closure.h Examining data/bison-3.7.3+dfsg/src/uniqstr.c Examining data/bison-3.7.3+dfsg/src/complain.h Examining data/bison-3.7.3+dfsg/src/location.h Examining data/bison-3.7.3+dfsg/src/system.h Examining data/bison-3.7.3+dfsg/src/print-xml.h Examining data/bison-3.7.3+dfsg/src/glyphs.c Examining data/bison-3.7.3+dfsg/src/state-item.h Examining data/bison-3.7.3+dfsg/src/files.h Examining data/bison-3.7.3+dfsg/src/lr0.h Examining data/bison-3.7.3+dfsg/src/state.h Examining data/bison-3.7.3+dfsg/src/named-ref.c Examining data/bison-3.7.3+dfsg/src/symlist.c Examining data/bison-3.7.3+dfsg/src/output.c Examining data/bison-3.7.3+dfsg/src/symtab.c Examining data/bison-3.7.3+dfsg/src/scan-skel.h Examining data/bison-3.7.3+dfsg/src/fixits.c Examining data/bison-3.7.3+dfsg/src/Sbitset.c Examining data/bison-3.7.3+dfsg/src/assoc.c Examining data/bison-3.7.3+dfsg/src/scan-gram.h FINAL RESULTS: data/bison-3.7.3+dfsg/lib/areadlink.c:43:10: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. return readlink (filename, buffer, buffer_size); data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c:75:21: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # define __readlink readlink data/bison-3.7.3+dfsg/lib/readlink.c:32:1: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. readlink (const char *name, char *buf _GL_UNUSED, data/bison-3.7.3+dfsg/lib/readlink.c:47:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # undef readlink data/bison-3.7.3+dfsg/lib/readlink.c:71:10: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. return readlink (name, buf, bufsize); data/bison-3.7.3+dfsg/lib/stdio.in.h:841:8: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. #undef gets data/bison-3.7.3+dfsg/lib/stdio.in.h:843: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/bison-3.7.3+dfsg/lib/sys_stat.in.h:395:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. # undef chmod data/bison-3.7.3+dfsg/lib/sys_stat.in.h:396:10: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. # define chmod _chmod data/bison-3.7.3+dfsg/lib/unistd.in.h:315: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/bison-3.7.3+dfsg/lib/unistd.in.h:332: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/bison-3.7.3+dfsg/lib/unistd.in.h:333: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/bison-3.7.3+dfsg/lib/unistd.in.h:335: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/bison-3.7.3+dfsg/lib/unistd.in.h:337: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/bison-3.7.3+dfsg/lib/unistd.in.h:340: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/bison-3.7.3+dfsg/lib/unistd.in.h:343: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/bison-3.7.3+dfsg/lib/unistd.in.h:345: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/bison-3.7.3+dfsg/lib/unistd.in.h:347: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/bison-3.7.3+dfsg/lib/unistd.in.h:349: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/bison-3.7.3+dfsg/lib/unistd.in.h:1520: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/bison-3.7.3+dfsg/lib/unistd.in.h:1522: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/bison-3.7.3+dfsg/lib/unistd.in.h:1526: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/bison-3.7.3+dfsg/lib/unistd.in.h:1531: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/bison-3.7.3+dfsg/lib/unistd.in.h:1536: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/bison-3.7.3+dfsg/lib/unistd.in.h:1540: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/bison-3.7.3+dfsg/lib/unistd.in.h:1542: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/bison-3.7.3+dfsg/lib/unistd.in.h:1544: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/bison-3.7.3+dfsg/data/skeletons/glr.c:643:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/bison-3.7.3+dfsg/data/skeletons/yacc.c:708:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/fprintf.c:36:1: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (FILE *fp, const char *format, ...) data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/getprogname.c:279:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (ret, progname); data/bison-3.7.3+dfsg/lib/localcharset.c:905:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (resultbuf, buf); data/bison-3.7.3+dfsg/lib/localcharset.c:929:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "CP%s", pdot + 1); data/bison-3.7.3+dfsg/lib/localcharset.c:947:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (resultbuf, buf); data/bison-3.7.3+dfsg/lib/localcharset.c:1007:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (resultbuf, buf); data/bison-3.7.3+dfsg/lib/perror.c:30:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef fprintf data/bison-3.7.3+dfsg/lib/printf.c:30:1: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (const char *format, ...) data/bison-3.7.3+dfsg/lib/printf.c:36:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. retval = vfprintf (stdout, format, args); data/bison-3.7.3+dfsg/lib/progreloc.c:110:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/bison-3.7.3+dfsg/lib/progreloc.c:174:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (filename, X_OK) < 0) data/bison-3.7.3+dfsg/lib/progreloc.c:394:19: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (concat_name, argv0); data/bison-3.7.3+dfsg/lib/progreloc.c:399:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (concat_name + p_len + 1, argv0); data/bison-3.7.3+dfsg/lib/relocatable.c:524:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result, curr_prefix); data/bison-3.7.3+dfsg/lib/relocatable.c:540:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result + curr_prefix_len, pathname_tail); data/bison-3.7.3+dfsg/lib/relocatable.c:570:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result + 2, pathname); data/bison-3.7.3+dfsg/lib/relocwrapper.c:71:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef fprintf data/bison-3.7.3+dfsg/lib/relocwrapper.c:175:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p, old_value); data/bison-3.7.3+dfsg/lib/relocwrapper.c:204:3: [4] (shell) execv: 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. execv (argv[0], argv); data/bison-3.7.3+dfsg/lib/setlocale_null.c:327:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (resultbuf, buf); data/bison-3.7.3+dfsg/lib/setlocale_null.c:406:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (resultbuf[i], buf); data/bison-3.7.3+dfsg/lib/snprintf.c:37:1: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf (char *str, size_t size, const char *format, ...) data/bison-3.7.3+dfsg/lib/sprintf.c:40:1: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (char *str, const char *format, ...) data/bison-3.7.3+dfsg/lib/stdio--.h:39: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/bison-3.7.3+dfsg/lib/stdio--.h:40:10: [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 popen_safer data/bison-3.7.3+dfsg/lib/stdio.in.h:348: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/bison-3.7.3+dfsg/lib/stdio.in.h:352:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:357:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:362:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (fprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:365:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (fprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:369: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/bison-3.7.3+dfsg/lib/stdio.in.h:374: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/bison-3.7.3+dfsg/lib/stdio.in.h:377: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/bison-3.7.3+dfsg/lib/stdio.in.h:501: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/bison-3.7.3+dfsg/lib/stdio.in.h:502: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/bison-3.7.3+dfsg/lib/stdio.in.h:504:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (fscanf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:508:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (fscanf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:511:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (fscanf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:515: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/bison-3.7.3+dfsg/lib/stdio.in.h:942: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/bison-3.7.3+dfsg/lib/stdio.in.h:943: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/bison-3.7.3+dfsg/lib/stdio.in.h:945: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/bison-3.7.3+dfsg/lib/stdio.in.h:947: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/bison-3.7.3+dfsg/lib/stdio.in.h:950: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/bison-3.7.3+dfsg/lib/stdio.in.h:953: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/bison-3.7.3+dfsg/lib/stdio.in.h:955: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/bison-3.7.3+dfsg/lib/stdio.in.h:957: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/bison-3.7.3+dfsg/lib/stdio.in.h:959: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/bison-3.7.3+dfsg/lib/stdio.in.h:970: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/bison-3.7.3+dfsg/lib/stdio.in.h:987: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/bison-3.7.3+dfsg/lib/stdio.in.h:990: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/bison-3.7.3+dfsg/lib/stdio.in.h:992: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/bison-3.7.3+dfsg/lib/stdio.in.h:996:19: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (printf, int, (const char *restrict format, ...)); data/bison-3.7.3+dfsg/lib/stdio.in.h:1000:19: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (printf, int, (const char *restrict format, ...)); data/bison-3.7.3+dfsg/lib/stdio.in.h:1003: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/bison-3.7.3+dfsg/lib/stdio.in.h:1008: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/bison-3.7.3+dfsg/lib/stdio.in.h:1011: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/bison-3.7.3+dfsg/lib/stdio.in.h:1148: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/bison-3.7.3+dfsg/lib/stdio.in.h:1150: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/bison-3.7.3+dfsg/lib/stdio.in.h:1158:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *restrict format, ...)); data/bison-3.7.3+dfsg/lib/stdio.in.h:1161: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/bison-3.7.3+dfsg/lib/stdio.in.h:1162: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/bison-3.7.3+dfsg/lib/stdio.in.h:1164:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (scanf, int, (const char *restrict format, ...) data/bison-3.7.3+dfsg/lib/stdio.in.h:1167:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (scanf, int, (const char *restrict format, ...)); data/bison-3.7.3+dfsg/lib/stdio.in.h:1170:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (scanf, int, (const char *restrict format, ...)); data/bison-3.7.3+dfsg/lib/stdio.in.h:1173: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/bison-3.7.3+dfsg/lib/stdio.in.h:1180: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/bison-3.7.3+dfsg/lib/stdio.in.h:1182: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/bison-3.7.3+dfsg/lib/stdio.in.h:1187: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/bison-3.7.3+dfsg/lib/stdio.in.h:1192: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/bison-3.7.3+dfsg/lib/stdio.in.h:1198: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/bison-3.7.3+dfsg/lib/stdio.in.h:1203: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/bison-3.7.3+dfsg/lib/stdio.in.h:1206: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/bison-3.7.3+dfsg/lib/stdio.in.h:1208: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/bison-3.7.3+dfsg/lib/stdio.in.h:1225:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define sprintf rpl_sprintf data/bison-3.7.3+dfsg/lib/stdio.in.h:1227:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (sprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:1231:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (sprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:1234:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS (sprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:1238:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (sprintf); data/bison-3.7.3+dfsg/lib/stdio.in.h:1241:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef sprintf data/bison-3.7.3+dfsg/lib/stdio.in.h:1243: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/bison-3.7.3+dfsg/lib/stdio.in.h:1361: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/bison-3.7.3+dfsg/lib/stdio.in.h:1365:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vfprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:1371:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vfprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:1377:19: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vfprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:1384: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/bison-3.7.3+dfsg/lib/stdio.in.h:1389: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/bison-3.7.3+dfsg/lib/stdio.in.h:1394: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/bison-3.7.3+dfsg/lib/stdio.in.h:1397: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/bison-3.7.3+dfsg/lib/stdio.in.h:1405: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/bison-3.7.3+dfsg/lib/stdio.in.h:1406: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/bison-3.7.3+dfsg/lib/stdio.in.h:1408: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/bison-3.7.3+dfsg/lib/stdio.in.h:1413: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/bison-3.7.3+dfsg/lib/stdio.in.h:1417: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/bison-3.7.3+dfsg/lib/stdio.in.h:1422: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/bison-3.7.3+dfsg/lib/stdio.in.h:1430: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/bison-3.7.3+dfsg/lib/stdio.in.h:1434:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vprintf, int, (const char *restrict format, va_list args) data/bison-3.7.3+dfsg/lib/stdio.in.h:1438:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (vprintf, int, (const char *restrict format, va_list args) data/bison-3.7.3+dfsg/lib/stdio.in.h:1442:19: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (vprintf, int, (const char *restrict format, va_list args)); data/bison-3.7.3+dfsg/lib/stdio.in.h:1447:24: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS_CAST (vprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:1451: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/bison-3.7.3+dfsg/lib/stdio.in.h:1456: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/bison-3.7.3+dfsg/lib/stdio.in.h:1459: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/bison-3.7.3+dfsg/lib/stdio.in.h:1467: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/bison-3.7.3+dfsg/lib/stdio.in.h:1468: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/bison-3.7.3+dfsg/lib/stdio.in.h:1470:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vscanf, int, (const char *restrict format, va_list args) data/bison-3.7.3+dfsg/lib/stdio.in.h:1473:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vscanf, int, (const char *restrict format, va_list args)); data/bison-3.7.3+dfsg/lib/stdio.in.h:1475:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vscanf, int, (const char *restrict format, va_list args)); data/bison-3.7.3+dfsg/lib/stdio.in.h:1478: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/bison-3.7.3+dfsg/lib/stdio.in.h:1485: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/bison-3.7.3+dfsg/lib/stdio.in.h:1487: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/bison-3.7.3+dfsg/lib/stdio.in.h:1492: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/bison-3.7.3+dfsg/lib/stdio.in.h:1497: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/bison-3.7.3+dfsg/lib/stdio.in.h:1503: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/bison-3.7.3+dfsg/lib/stdio.in.h:1508: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/bison-3.7.3+dfsg/lib/stdio.in.h:1511: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/bison-3.7.3+dfsg/lib/stdio.in.h:1513: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/bison-3.7.3+dfsg/lib/stdio.in.h:1521:12: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define vsprintf rpl_vsprintf data/bison-3.7.3+dfsg/lib/stdio.in.h:1523:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (vsprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:1528:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (vsprintf, int, data/bison-3.7.3+dfsg/lib/stdio.in.h:1535: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/bison-3.7.3+dfsg/lib/stdio.in.h:1540:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (vsprintf); data/bison-3.7.3+dfsg/lib/stdio.in.h:1543:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef vsprintf data/bison-3.7.3+dfsg/lib/stdio.in.h:1545: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/bison-3.7.3+dfsg/lib/stdlib.in.h:487:9: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). # undef mktemp data/bison-3.7.3+dfsg/lib/stdlib.in.h:488:10: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). # define mktemp _mktemp data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/strerror.c:59:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf, fmt, n); data/bison-3.7.3+dfsg/lib/strerror_r.c:123: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/bison-3.7.3+dfsg/lib/strerror_r.c:124:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf local_snprintf data/bison-3.7.3+dfsg/lib/unistd.in.h:270:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # undef access data/bison-3.7.3+dfsg/lib/unistd.in.h:271:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # define access rpl_access data/bison-3.7.3+dfsg/lib/unistd.in.h:273:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_FUNCDECL_RPL (access, int, (const char *file, int mode) data/bison-3.7.3+dfsg/lib/unistd.in.h:275:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_CXXALIAS_RPL (access, int, (const char *file, int mode)); data/bison-3.7.3+dfsg/lib/unistd.in.h:278:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # undef access data/bison-3.7.3+dfsg/lib/unistd.in.h:279:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # define access _access data/bison-3.7.3+dfsg/lib/unistd.in.h:281:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_CXXALIAS_MDA (access, int, (const char *file, int mode)); data/bison-3.7.3+dfsg/lib/unistd.in.h:283:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_CXXALIAS_SYS (access, int, (const char *file, int mode)); data/bison-3.7.3+dfsg/lib/unistd.in.h:285:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_CXXALIASWARN (access); data/bison-3.7.3+dfsg/lib/unistd.in.h:287:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # undef access data/bison-3.7.3+dfsg/lib/unistd.in.h:290:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_WARN_ON_USE (access, "access does not always support X_OK - " data/bison-3.7.3+dfsg/lib/unistd.in.h:296:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # undef access data/bison-3.7.3+dfsg/lib/unistd.in.h:297:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # define access _access data/bison-3.7.3+dfsg/lib/unistd.in.h:568:9: [4] (shell) execl: 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 execl data/bison-3.7.3+dfsg/lib/unistd.in.h:569:10: [4] (shell) execl: 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 execl _execl data/bison-3.7.3+dfsg/lib/unistd.in.h:573:9: [4] (shell) execle: 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 execle data/bison-3.7.3+dfsg/lib/unistd.in.h:574:10: [4] (shell) execle: 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 execle _execle data/bison-3.7.3+dfsg/lib/unistd.in.h:578:9: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef execlp data/bison-3.7.3+dfsg/lib/unistd.in.h:579:10: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # define execlp _execlp data/bison-3.7.3+dfsg/lib/unistd.in.h:584:9: [4] (shell) execv: 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 execv data/bison-3.7.3+dfsg/lib/unistd.in.h:585:10: [4] (shell) execv: 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 execv _execv data/bison-3.7.3+dfsg/lib/unistd.in.h:594:9: [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. # undef execvp data/bison-3.7.3+dfsg/lib/unistd.in.h:595:10: [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. # define execvp _execvp data/bison-3.7.3+dfsg/lib/unistd.in.h:963: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/bison-3.7.3+dfsg/lib/unistd.in.h:965: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/bison-3.7.3+dfsg/lib/unistd.in.h:966: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/bison-3.7.3+dfsg/lib/unistd.in.h:968: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/bison-3.7.3+dfsg/lib/unistd.in.h:970: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/bison-3.7.3+dfsg/lib/unistd.in.h:1111:11: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # undef getpass data/bison-3.7.3+dfsg/lib/unistd.in.h:1112:12: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # define getpass rpl_getpass data/bison-3.7.3+dfsg/lib/unistd.in.h:1114:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_FUNCDECL_RPL (getpass, char *, (const char *prompt) data/bison-3.7.3+dfsg/lib/unistd.in.h:1116:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIAS_RPL (getpass, char *, (const char *prompt)); data/bison-3.7.3+dfsg/lib/unistd.in.h:1119:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_FUNCDECL_SYS (getpass, char *, (const char *prompt) data/bison-3.7.3+dfsg/lib/unistd.in.h:1122:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIAS_SYS (getpass, char *, (const char *prompt)); data/bison-3.7.3+dfsg/lib/unistd.in.h:1124:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIASWARN (getpass); data/bison-3.7.3+dfsg/lib/unistd.in.h:1126:9: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # undef getpass data/bison-3.7.3+dfsg/lib/unistd.in.h:1128:18: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_WARN_ON_USE (getpass, "getpass is unportable - " data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/vasnprintf.c:4517:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/bison-3.7.3+dfsg/lib/vasnprintf.c:4525:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/bison-3.7.3+dfsg/lib/vasnprintf.c:4710:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/bison-3.7.3+dfsg/lib/vasnprintf.c:4718:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/bison-3.7.3+dfsg/lib/vasnprintf.c:5244:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/bison-3.7.3+dfsg/lib/vasnprintf.c:5247:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/bison-3.7.3+dfsg/lib/vasnprintf.c:5250:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/bison-3.7.3+dfsg/lib/vfprintf.c:36:1: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (FILE *fp, const char *format, va_list args) data/bison-3.7.3+dfsg/lib/vsnprintf.c:39:1: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf (char *str, size_t size, const char *format, va_list args) data/bison-3.7.3+dfsg/lib/vsprintf.c:40:1: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf (char *str, const char *format, va_list args) data/bison-3.7.3+dfsg/lib/wchar.in.h:706:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_FUNCDECL_SYS (wcscpy, wchar_t *, data/bison-3.7.3+dfsg/lib/wchar.in.h:709:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIAS_SYS (wcscpy, wchar_t *, data/bison-3.7.3+dfsg/lib/wchar.in.h:712:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIASWARN (wcscpy); data/bison-3.7.3+dfsg/lib/wchar.in.h:715:9: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. # undef wcscpy data/bison-3.7.3+dfsg/lib/wchar.in.h:717:18: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - " data/bison-3.7.3+dfsg/lib/wchar.in.h:787:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcscat, wchar_t *, data/bison-3.7.3+dfsg/lib/wchar.in.h:790:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcscat, wchar_t *, data/bison-3.7.3+dfsg/lib/wchar.in.h:793:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcscat); data/bison-3.7.3+dfsg/lib/wchar.in.h:796:9: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). # undef wcscat data/bison-3.7.3+dfsg/lib/wchar.in.h:798:18: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcscat, "wcscat is unportable - " data/bison-3.7.3+dfsg/src/Sbitset.c:77:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (file, " %" SBITSET__INDEX__CONVERSION_SPEC, i); data/bison-3.7.3+dfsg/src/complain.c:506: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, message, args); data/bison-3.7.3+dfsg/src/counterexample.c:1320:9: [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 (out, data/bison-3.7.3+dfsg/src/glyphs.c:69:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (*arg->pbuf, arg->fallback); data/bison-3.7.3+dfsg/src/muscle-tab.c:416:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (res, fmt, assignment, value); data/bison-3.7.3+dfsg/src/parse-gram.c:994:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/bison-3.7.3+dfsg/src/parse-gram.c:3426:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (skeleton_build + dir_length, skeleton_user); data/bison-3.7.3+dfsg/src/print-xml.c:449: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 (out, fmt, arglist); data/bison-3.7.3+dfsg/lib/argmatch.c:260:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((cp = getenv ("VERSION_CONTROL"))) data/bison-3.7.3+dfsg/lib/argmatch.h:281:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const int screen_width = getenv ("HELP2MAN") ? INT_MAX : 80; \ data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c:51:21: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. # define __realpath realpath data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c:73:30: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. # define __getcwd(buf, max) getwd (buf) data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c:396:37: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. versioned_symbol (libc, __realpath, realpath, GLIBC_2_3); data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c:413:38: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. compat_symbol (libc, __old_realpath, realpath, GLIBC_2_0); data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/gettimeofday.c:35:9: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. # undef LoadLibrary data/bison-3.7.3+dfsg/lib/gettimeofday.c:36:10: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. # define LoadLibrary LoadLibraryA data/bison-3.7.3+dfsg/lib/gettimeofday.c:52:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE kernel32 = LoadLibrary ("kernel32.dll"); data/bison-3.7.3+dfsg/lib/localcharset.c:858:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/bison-3.7.3+dfsg/lib/localcharset.c:861:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/bison-3.7.3+dfsg/lib/localcharset.c:863:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/bison-3.7.3+dfsg/lib/localcharset.c:962:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/bison-3.7.3+dfsg/lib/localcharset.c:965:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/bison-3.7.3+dfsg/lib/localcharset.c:967:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/bison-3.7.3+dfsg/lib/localcharset.c:1090:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_ALL"); data/bison-3.7.3+dfsg/lib/localcharset.c:1093:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LC_CTYPE"); data/bison-3.7.3+dfsg/lib/localcharset.c:1095:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. locale = getenv ("LANG"); data/bison-3.7.3+dfsg/lib/mbtowc-lock.c:76:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock); data/bison-3.7.3+dfsg/lib/mbtowc-lock.h:45:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (lock); data/bison-3.7.3+dfsg/lib/progreloc.c:366:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *path = getenv ("PATH"); data/bison-3.7.3+dfsg/lib/relocatable.c:560:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *unixroot = getenv ("UNIXROOT"); data/bison-3.7.3+dfsg/lib/relocwrapper.c:151:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. old_value = getenv (LIBPATHVAR); data/bison-3.7.3+dfsg/lib/setenv.c:372:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *tmp = getenv (name); data/bison-3.7.3+dfsg/lib/setlocale-lock.c:76:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock); data/bison-3.7.3+dfsg/lib/setlocale_null.c:194:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (lock); data/bison-3.7.3+dfsg/lib/spawni.c:316:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. path = getenv ("PATH"); data/bison-3.7.3+dfsg/lib/stat-w32.c:56:8: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. #undef LoadLibrary data/bison-3.7.3+dfsg/lib/stat-w32.c:57:9: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. #define LoadLibrary LoadLibraryA data/bison-3.7.3+dfsg/lib/stat-w32.c:91: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/bison-3.7.3+dfsg/lib/stdio.in.h:1249:9: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). # undef tempnam data/bison-3.7.3+dfsg/lib/stdio.in.h:1250:10: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). # define tempnam _tempnam data/bison-3.7.3+dfsg/lib/stdlib.in.h:635:11: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef random data/bison-3.7.3+dfsg/lib/stdlib.in.h:636:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define random rpl_random data/bison-3.7.3+dfsg/lib/stdlib.in.h:638:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_RPL (random, long, (void)); data/bison-3.7.3+dfsg/lib/stdlib.in.h:639:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_RPL (random, long, (void)); data/bison-3.7.3+dfsg/lib/stdlib.in.h:642: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/bison-3.7.3+dfsg/lib/stdlib.in.h:646:24: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS_CAST (random, long, (void)); data/bison-3.7.3+dfsg/lib/stdlib.in.h:648: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/bison-3.7.3+dfsg/lib/stdlib.in.h:650: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/bison-3.7.3+dfsg/lib/stdlib.in.h:652: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/bison-3.7.3+dfsg/lib/stdlib.in.h:660:11: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef srandom data/bison-3.7.3+dfsg/lib/stdlib.in.h:661:12: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define srandom rpl_srandom data/bison-3.7.3+dfsg/lib/stdlib.in.h:663:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_RPL (srandom, void, (unsigned int seed)); data/bison-3.7.3+dfsg/lib/stdlib.in.h:664:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_RPL (srandom, void, (unsigned int seed)); data/bison-3.7.3+dfsg/lib/stdlib.in.h:667: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/bison-3.7.3+dfsg/lib/stdlib.in.h:671:24: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS_CAST (srandom, void, (unsigned int seed)); data/bison-3.7.3+dfsg/lib/stdlib.in.h:673: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/bison-3.7.3+dfsg/lib/stdlib.in.h:675: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/bison-3.7.3+dfsg/lib/stdlib.in.h:677: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/bison-3.7.3+dfsg/lib/stdlib.in.h:716:11: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef setstate data/bison-3.7.3+dfsg/lib/stdlib.in.h:717:12: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define setstate rpl_setstate data/bison-3.7.3+dfsg/lib/stdlib.in.h:719:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_RPL (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); data/bison-3.7.3+dfsg/lib/stdlib.in.h:720:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_RPL (setstate, char *, (char *arg_state)); data/bison-3.7.3+dfsg/lib/stdlib.in.h:723: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/bison-3.7.3+dfsg/lib/stdlib.in.h:727:24: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS_CAST (setstate, char *, (char *arg_state)); data/bison-3.7.3+dfsg/lib/stdlib.in.h:729: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/bison-3.7.3+dfsg/lib/stdlib.in.h:731: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/bison-3.7.3+dfsg/lib/stdlib.in.h:733: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/bison-3.7.3+dfsg/lib/stdlib.in.h:902: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/bison-3.7.3+dfsg/lib/stdlib.in.h:904:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_FUNCDECL_RPL (realpath, char *, data/bison-3.7.3+dfsg/lib/stdlib.in.h:907:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_CXXALIAS_RPL (realpath, char *, data/bison-3.7.3+dfsg/lib/stdlib.in.h:911:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_FUNCDECL_SYS (realpath, char *, data/bison-3.7.3+dfsg/lib/stdlib.in.h:915:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_CXXALIAS_SYS (realpath, char *, data/bison-3.7.3+dfsg/lib/stdlib.in.h:918: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/bison-3.7.3+dfsg/lib/stdlib.in.h:920: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/bison-3.7.3+dfsg/lib/stdlib.in.h:922: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/bison-3.7.3+dfsg/lib/unsetenv.c:119:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. while (getenv (name)) data/bison-3.7.3+dfsg/lib/windows-mutex.c:30:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&mutex->lock); data/bison-3.7.3+dfsg/lib/windows-mutex.c:52:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&mutex->lock); data/bison-3.7.3+dfsg/lib/windows-once.c:35:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&once_control->lock); data/bison-3.7.3+dfsg/lib/windows-once.c:36:11: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/bison-3.7.3+dfsg/lib/windows-once.c:55:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/bison-3.7.3+dfsg/lib/windows-recmutex.c:32:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&mutex->lock); data/bison-3.7.3+dfsg/lib/windows-recmutex.c:58:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&mutex->lock); data/bison-3.7.3+dfsg/lib/windows-rwlock.c:126:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/bison-3.7.3+dfsg/lib/windows-rwlock.c:151:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/bison-3.7.3+dfsg/lib/windows-rwlock.c:183:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/bison-3.7.3+dfsg/lib/windows-rwlock.c:211:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/bison-3.7.3+dfsg/lib/windows-rwlock.c:240:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/bison-3.7.3+dfsg/lib/windows-rwlock.c:270:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/bison-3.7.3+dfsg/lib/windows-rwlock.c:306:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/bison-3.7.3+dfsg/lib/windows-rwlock.c:324:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/bison-3.7.3+dfsg/lib/windows-tls.c:68:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&dtor_table_lock); data/bison-3.7.3+dfsg/lib/windows-tls.c:135:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&dtor_table_lock); data/bison-3.7.3+dfsg/lib/windows-tls.c:175:19: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&dtor_table_lock); data/bison-3.7.3+dfsg/lib/windows-tls.c:198:7: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&dtor_table_lock); data/bison-3.7.3+dfsg/lib/windows-tls.c:221:13: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&dtor_table_lock); data/bison-3.7.3+dfsg/lib/windows-tls.c:291:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&dtor_table_lock); data/bison-3.7.3+dfsg/src/counterexample.c:119:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const bool flat = getenv ("YYFLAT"); data/bison-3.7.3+dfsg/src/derivation.c:434:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("YYFLAT")) data/bison-3.7.3+dfsg/src/files.c:501:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char const *cp = getenv ("BISON_PKGDATADIR"); data/bison-3.7.3+dfsg/src/files.c:509:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char const *m4 = getenv ("M4"); data/bison-3.7.3+dfsg/src/getargs.c:679:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long (argc, argv, short_options, long_options, NULL)) data/bison-3.7.3+dfsg/src/location.c:47:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *cp = getenv ("COLUMNS"); data/bison-3.7.3+dfsg/src/main.c:80:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char const *cp = getenv ("LC_CTYPE"); data/bison-3.7.3+dfsg/src/output.c:807:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char const *cp = getenv ("BISON_USE_PUSH_FOR_PULL"); data/bison-3.7.3+dfsg/data/skeletons/glr.c:155:6: [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). # or open coded in the parser body. glr.cc has its own definition. data/bison-3.7.3+dfsg/data/skeletons/yacc.c:297:6: [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). # or open coded in the parser body. data/bison-3.7.3+dfsg/data/skeletons/yacc.c:1564:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yymsgbuf[128]; data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/bitset/array.c:338: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 (dstp, srcp, sizeof (bitset_word) * size); data/bison-3.7.3+dfsg/lib/bitset/list.c:456:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp->words, elt->words, sizeof (elt->words)); data/bison-3.7.3+dfsg/lib/bitset/stats.c:248:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen (file_name, "re"); data/bison-3.7.3+dfsg/lib/bitset/stats.c:276:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen (file_name, "we"); data/bison-3.7.3+dfsg/lib/bitset/table.c:443: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 (EBITSET_WORDS (tmp), EBITSET_WORDS (selt), data/bison-3.7.3+dfsg/lib/bitset/vector.c:358: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 (dstp, srcp, sizeof (bitset_word) * ssize); data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c:186:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (rpath, name, prefix_len); data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c:270:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, start, end - start); data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c:335:28: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. name = end = memcpy (extra_buf, buf, n); data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c:342:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (rpath, buf, pfxlen); data/bison-3.7.3+dfsg/lib/careadlinkat.c:57:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char * data/bison-3.7.3+dfsg/lib/careadlinkat.c:58:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. readlink_stk (int fd, char const *filename, data/bison-3.7.3+dfsg/lib/careadlinkat.c:59: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 *buffer, size_t buffer_size, data/bison-3.7.3+dfsg/lib/careadlinkat.c:61: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. ssize_t (*preadlinkat) (int, char const *, char *, size_t), data/bison-3.7.3+dfsg/lib/careadlinkat.c:61:58: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ssize_t (*preadlinkat) (int, char const *, char *, size_t), data/bison-3.7.3+dfsg/lib/careadlinkat.c:62: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 stack_buf[STACK_BUF_SIZE]) data/bison-3.7.3+dfsg/lib/careadlinkat.c:114: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 (b, buf, link_size); data/bison-3.7.3+dfsg/lib/careadlinkat.c:187: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 stack_buf[STACK_BUF_SIZE]; data/bison-3.7.3+dfsg/lib/concat-filename.c:64:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, directory, directory_len); data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/dup2.c:116:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tempfd = open ("NUL", O_RDONLY); data/bison-3.7.3+dfsg/lib/dup2.c:124:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[_MAX_PATH]; data/bison-3.7.3+dfsg/lib/dup2.c:128:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open(path, O_RDONLY); data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/fcntl.c:61:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char fds_to_close[OPEN_MAX_MAX / CHAR_BIT]; data/bison-3.7.3+dfsg/lib/fcntl.in.h:152:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open data/bison-3.7.3+dfsg/lib/fcntl.in.h:153:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open rpl_open data/bison-3.7.3+dfsg/lib/fcntl.in.h:155:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) data/bison-3.7.3+dfsg/lib/fcntl.in.h:157:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); data/bison-3.7.3+dfsg/lib/fcntl.in.h:160:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open data/bison-3.7.3+dfsg/lib/fcntl.in.h:161:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open _open data/bison-3.7.3+dfsg/lib/fcntl.in.h:163:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...)); data/bison-3.7.3+dfsg/lib/fcntl.in.h:165:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); data/bison-3.7.3+dfsg/lib/fcntl.in.h:170:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIASWARN (open); data/bison-3.7.3+dfsg/lib/fcntl.in.h:173:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open data/bison-3.7.3+dfsg/lib/fcntl.in.h:175:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " data/bison-3.7.3+dfsg/lib/fcntl.in.h:178:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open data/bison-3.7.3+dfsg/lib/fcntl.in.h:179:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open _open data/bison-3.7.3+dfsg/lib/fopen-safer.c:33:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (file, mode); data/bison-3.7.3+dfsg/lib/fopen.c:32:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return fopen (filename, mode); data/bison-3.7.3+dfsg/lib/fopen.c:56: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 fdopen_mode_buf[BUF_SIZE + 1]; data/bison-3.7.3+dfsg/lib/fopen.c:140: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 (q, p, len); data/bison-3.7.3+dfsg/lib/fopen.c:179:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (filename, open_direction | open_flags, data/bison-3.7.3+dfsg/lib/fopen.c:213: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). fd = open (filename, open_direction | open_flags, data/bison-3.7.3+dfsg/lib/fprintf.c:38:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2000]; data/bison-3.7.3+dfsg/lib/getprogname.c:158:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char status64[1216]; data/bison-3.7.3+dfsg/lib/getprogname.c:228: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/bison-3.7.3+dfsg/lib/getprogname.c:231: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/bison-3.7.3+dfsg/lib/getprogname.c:232:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (filename, O_RDONLY | O_CLOEXEC); data/bison-3.7.3+dfsg/lib/getprogname.c:249: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/bison-3.7.3+dfsg/lib/getprogname.c:255: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[80]; data/bison-3.7.3+dfsg/lib/getprogname.c:257:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "/proc/%d/cmdline", getpid()); data/bison-3.7.3+dfsg/lib/getprogname.c:258: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 (buf, O_RDONLY); data/bison-3.7.3+dfsg/lib/gettext.h:227:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/bison-3.7.3+dfsg/lib/gettext.h:229:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/bison-3.7.3+dfsg/lib/gettext.h:238:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/bison-3.7.3+dfsg/lib/gettext.h:240:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/bison-3.7.3+dfsg/lib/gettext.h:275:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/bison-3.7.3+dfsg/lib/gettext.h:277:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/bison-3.7.3+dfsg/lib/gettext.h:286:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/bison-3.7.3+dfsg/lib/gettext.h:288:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/bison-3.7.3+dfsg/lib/gl_array_list.c:100: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 (list->elements, contents, count * sizeof (const void *)); data/bison-3.7.3+dfsg/lib/hard-locale.c:29:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char locale[SETLOCALE_NULL_MAX]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[10 + 1]; }; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:86:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str6[sizeof("EUC-TW")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:87:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str7[sizeof("EUC-KR")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:88:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str8[sizeof("CP852")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:89:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str9[sizeof("EUC-JP")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str10[sizeof("ISO-8859-2")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:91:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str11[sizeof("CP857")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:92:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str12[sizeof("CP850")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:93:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str13[sizeof("ISO-8859-7")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:94:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str14[sizeof("CP932")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:95:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str15[sizeof("GB2312")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:96:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str16[sizeof("BIG5")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:97:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str17[sizeof("CP437")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:98:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str19[sizeof("ISO-8859-5")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:99:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str20[sizeof("ISO-8859-15")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str21[sizeof("ISO-8859-3")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:101:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str22[sizeof("ISO-8859-13")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str23[sizeof("CP1046")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str24[sizeof("ISO-8859-8")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:104:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str25[sizeof("CP856")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:105:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str26[sizeof("CP1125")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:106:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str27[sizeof("ISO-8859-6")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:107:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str28[sizeof("CP865")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str29[sizeof("CP922")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str30[sizeof("CP1252")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str31[sizeof("ISO-8859-9")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:111:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str33[sizeof("CP943")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:112:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str34[sizeof("ISO-8859-4")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:113:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str35[sizeof("ISO-8859-1")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:114:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str38[sizeof("CP1129")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:115:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str40[sizeof("CP869")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:116:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str41[sizeof("CP1124")]; data/bison-3.7.3+dfsg/lib/iconv_open-aix.h:117:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str44[sizeof("CP861")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[9 + 1]; }; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:86:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str6[sizeof("CP1256")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:87:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str7[sizeof("CP1250")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:88:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str8[sizeof("CP1251")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:89:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str9[sizeof("CP850")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str10[sizeof("TIS-620")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:91:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str11[sizeof("CP1254")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:92:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str12[sizeof("ISO-8859-6")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:93:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str13[sizeof("EUC-TW")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:94:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str14[sizeof("ISO-8859-1")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:95:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str15[sizeof("ISO-8859-9")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:96:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str16[sizeof("CP1255")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:97:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str17[sizeof("BIG5")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:98:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str18[sizeof("CP855")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:99:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str19[sizeof("CP1257")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str20[sizeof("EUC-KR")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:101:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str21[sizeof("CP857")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str22[sizeof("ISO-8859-5")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str23[sizeof("ISO-8859-15")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:104:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str24[sizeof("CP866")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:105:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str25[sizeof("ISO-8859-7")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:106:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str26[sizeof("CP861")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:107:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str27[sizeof("CP869")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str28[sizeof("CP874")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str29[sizeof("CP864")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str30[sizeof("CP1252")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:111:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str31[sizeof("CP437")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:112:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str32[sizeof("CP852")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:113:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str33[sizeof("CP775")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:114:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str34[sizeof("CP865")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:115:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str35[sizeof("EUC-JP")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:116:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str36[sizeof("ISO-8859-2")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:117:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str37[sizeof("SHIFT_JIS")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:118:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str38[sizeof("CP1258")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:119:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str39[sizeof("UTF-8")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:120:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str40[sizeof("HP-KANA8")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:121:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str41[sizeof("HP-ROMAN8")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:122:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str42[sizeof("HP-HEBREW8")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:123:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str43[sizeof("GB2312")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:124:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str44[sizeof("ISO-8859-8")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:125:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str45[sizeof("HP-TURKISH8")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:126:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str46[sizeof("HP-GREEK8")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:127:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str47[sizeof("HP-ARABIC8")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:128:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str48[sizeof("CP862")]; data/bison-3.7.3+dfsg/lib/iconv_open-hpux.h:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str49[sizeof("CP1253")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[10 + 1]; }; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:86:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str5[sizeof("CP855")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:87:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str6[sizeof("EUC-TW")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:88:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str7[sizeof("EUC-KR")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:89:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str8[sizeof("CP1251")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str9[sizeof("SHIFT_JIS")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:91:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str10[sizeof("ISO-8859-5")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:92:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str11[sizeof("ISO-8859-15")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:93:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str12[sizeof("ISO-8859-1")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:94:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str13[sizeof("EUC-JP")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:95:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str14[sizeof("KOI8-R")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:96:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str15[sizeof("ISO-8859-2")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:97:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str16[sizeof("GB2312")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:98:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str17[sizeof("ISO-8859-9")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:99:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str18[sizeof("ISO-8859-8")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str19[sizeof("ISO-8859-7")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:101:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str20[sizeof("ISO-8859-6")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str21[sizeof("ISO-8859-4")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str22[sizeof("ISO-8859-3")]; data/bison-3.7.3+dfsg/lib/iconv_open-irix.h:104:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str23[sizeof("TIS-620")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[10 + 1]; }; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:86:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str6[sizeof("CP1255")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:87:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str7[sizeof("CP775")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:88:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str8[sizeof("CP1250")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:89:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str9[sizeof("EUC-TW")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str10[sizeof("EUC-KR")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:91:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str11[sizeof("TIS-620")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:92:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str12[sizeof("ISO-8859-5")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:93:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str13[sizeof("ISO-8859-15")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:94:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str14[sizeof("BIG5")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:95:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str15[sizeof("CP855")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:96:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str16[sizeof("CP1258")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:97:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str17[sizeof("CP850")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:98:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str18[sizeof("CP865")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:99:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str19[sizeof("EUC-JP")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str20[sizeof("CP1257")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:101:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str21[sizeof("CP1256")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str22[sizeof("ISO-8859-8")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str23[sizeof("SHIFT_JIS")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:104:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str25[sizeof("ISO-8859-9")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:105:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str26[sizeof("ISO-8859-7")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:106:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str27[sizeof("ISO-8859-6")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:107:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str29[sizeof("CP857")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str30[sizeof("CP1252")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str31[sizeof("CP869")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str32[sizeof("CP949")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:111:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str33[sizeof("CP866")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:112:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str34[sizeof("CP437")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:113:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str35[sizeof("CP1251")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:114:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str36[sizeof("ISO-8859-2")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:115:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str37[sizeof("CP1254")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:116:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str38[sizeof("CP874")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:117:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str39[sizeof("CP852")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:118:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str40[sizeof("CP1253")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:119:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str41[sizeof("ISO-8859-1")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:120:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str42[sizeof("CP862")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:121:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str43[sizeof("ISO-8859-4")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:122:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str46[sizeof("ISO-8859-3")]; data/bison-3.7.3+dfsg/lib/iconv_open-osf.h:123:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str47[sizeof("CP861")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[10 + 1]; }; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str5[sizeof("ASCII")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:101:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str6[sizeof("CP1251")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str7[sizeof("$ abc")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str10[sizeof("ISO-8859-1")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:104:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str11[sizeof("ISO-8859-15")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:105:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str12[sizeof("ISO-8859-9")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:106:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str13[sizeof("ISO-8859-8")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:107:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str14[sizeof("ISO-8859-7")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str15[sizeof("ISO-8859-6")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str16[sizeof("ISO-8859-5")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str17[sizeof("ISO-8859-4")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:111:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str18[sizeof("ISO-8859-3")]; data/bison-3.7.3+dfsg/lib/iconv_open-solaris.h:112:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str19[sizeof("ISO-8859-2")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:33:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct mapping { int standard_name; const char vendor_name[10 + 1]; }; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:97:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str3[sizeof("GBK")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:98:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str5[sizeof("ASCII")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:99:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str7[sizeof("CP1253")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str8[sizeof("EUC-KR")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:101:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str9[sizeof("CP1257")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str10[sizeof("CP857")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str11[sizeof("ISO-8859-8")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:104:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str12[sizeof("ISO-8859-3")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:105:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str13[sizeof("ISO-8859-13")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:106:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str14[sizeof("ISO-8859-7")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:107:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str15[sizeof("CP437")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str16[sizeof("CP1129")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str17[sizeof("CP869")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str18[sizeof("ISO-8859-9")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:111:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str19[sizeof("CP922")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:112:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str20[sizeof("CP1252")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:113:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str21[sizeof("CP852")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:114:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str22[sizeof("CP1250")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:115:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str23[sizeof("CP850")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:116:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str24[sizeof("CP862")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:117:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str25[sizeof("ISO-8859-2")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:118:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str26[sizeof("CP932")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:119:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str27[sizeof("GB2312")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:120:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str28[sizeof("CP1255")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:121:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str29[sizeof("CP855")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:122:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str30[sizeof("KOI8-R")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:123:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str31[sizeof("CP1125")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:124:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str32[sizeof("CP865")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:125:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str33[sizeof("ISO-8859-5")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:126:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str34[sizeof("ISO-8859-15")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:127:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str35[sizeof("CP1256")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:128:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str36[sizeof("CP856")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str37[sizeof("KOI8-U")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:130:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str38[sizeof("CP1254")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:131:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str39[sizeof("CP866")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:132:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str40[sizeof("ISO-8859-6")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:133:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str41[sizeof("CP1124")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:134:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str42[sizeof("CP864")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:135:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str43[sizeof("ISO-8859-4")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:136:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str44[sizeof("CP1251")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:137:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str45[sizeof("CP775")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:138:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str46[sizeof("CP943")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:139:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str47[sizeof("CP1131")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:140:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str48[sizeof("CP861")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:141:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str49[sizeof("ISO-8859-1")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:142:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str50[sizeof("EUC-JP")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:143:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str52[sizeof("CP949")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:144:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str55[sizeof("CP874")]; data/bison-3.7.3+dfsg/lib/iconv_open-zos.h:145:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringpool_str64[sizeof("CP1046")]; data/bison-3.7.3+dfsg/lib/iconv_open.c:49:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fromcode_upper[32]; data/bison-3.7.3+dfsg/lib/iconv_open.c:50:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tocode_upper[32]; data/bison-3.7.3+dfsg/lib/localcharset.c:88:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char alias[11+1]; data/bison-3.7.3+dfsg/lib/localcharset.c:89:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char canonical[11+1]; data/bison-3.7.3+dfsg/lib/localcharset.c:579:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char locale[17+1]; data/bison-3.7.3+dfsg/lib/localcharset.c:580:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char canonical[11+1]; data/bison-3.7.3+dfsg/lib/localcharset.c:856:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char resultbuf[2 + 10 + 1]; data/bison-3.7.3+dfsg/lib/localcharset.c:883:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (resultbuf, dot, modifier - dot); data/bison-3.7.3+dfsg/lib/localcharset.c:902:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2 + 10 + 1]; data/bison-3.7.3+dfsg/lib/localcharset.c:904:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/bison-3.7.3+dfsg/lib/localcharset.c:917:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2 + 10 + 1]; data/bison-3.7.3+dfsg/lib/localcharset.c:918:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char resultbuf[2 + 10 + 1]; data/bison-3.7.3+dfsg/lib/localcharset.c:939:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/bison-3.7.3+dfsg/lib/localcharset.c:954:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char resultbuf[2 + 10 + 1]; data/bison-3.7.3+dfsg/lib/localcharset.c:986:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (resultbuf, dot, modifier - dot); data/bison-3.7.3+dfsg/lib/localcharset.c:1004:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2 + 10 + 1]; data/bison-3.7.3+dfsg/lib/localcharset.c:1006:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", cp[0]); data/bison-3.7.3+dfsg/lib/mbchar.h:175:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MBCHAR_BUF_SIZE]; /* room for the bytes, used for file input only */ data/bison-3.7.3+dfsg/lib/mbchar.h:272:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_mbc->buf[0], &old_mbc->buf[0], old_mbc->bytes); data/bison-3.7.3+dfsg/lib/mbfile.h:79:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MBCHAR_BUF_SIZE]; data/bison-3.7.3+dfsg/lib/mbfile.h:199: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 (&mbc->buf[0], &mbf->buf[0], bytes); data/bison-3.7.3+dfsg/lib/mbrtowc-impl.h:41:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/bison-3.7.3+dfsg/lib/mbrtowc.c:59:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char internal_state[4]; data/bison-3.7.3+dfsg/lib/obstack.c:212:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (object_base, h->object_base, obj_size); data/bison-3.7.3+dfsg/lib/obstack.h:171:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char contents[__FLEXIBLE_ARRAY_MEMBER]; /* objects begin here */ data/bison-3.7.3+dfsg/lib/obstack.h:331:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (__o->next_free, where, __len); \ data/bison-3.7.3+dfsg/lib/obstack.h:341:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (__o->next_free, where, __len); \ data/bison-3.7.3+dfsg/lib/obstack.h:469:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((h)->next_free, where, (h)->temp.i), \ data/bison-3.7.3+dfsg/lib/obstack.h:477:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((h)->next_free, where, (h)->temp.i), \ data/bison-3.7.3+dfsg/lib/obstack_printf.c:61: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[CUTOFF]; data/bison-3.7.3+dfsg/lib/open.c:36:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open (filename, flags, mode); data/bison-3.7.3+dfsg/lib/open.c:59:1: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open (const char *filename, int flags, ...) data/bison-3.7.3+dfsg/lib/open.c:165:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open ("/dev/null", flags, mode); data/bison-3.7.3+dfsg/lib/perror.c:35:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stackbuf[STACKBUF_LEN]; data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/printf-parse.c:593:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, d->dir, d->count * sizeof (DIRECTIVE)); data/bison-3.7.3+dfsg/lib/progreloc.c:218: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 location[MAX_PATH]; data/bison-3.7.3+dfsg/lib/progreloc.c:228: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 location[CCHMAXPATH]; data/bison-3.7.3+dfsg/lib/progreloc.c:256:23: [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). executable_fd = open ("/proc/self/exe", O_EXEC | O_CLOEXEC, 0); data/bison-3.7.3+dfsg/lib/progreloc.c:259:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[6+10+5]; data/bison-3.7.3+dfsg/lib/progreloc.c:260:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "/proc/%d/exe", getpid ()); data/bison-3.7.3+dfsg/lib/progreloc.c:265:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). executable_fd = open (buf, O_EXEC | O_CLOEXEC, 0); data/bison-3.7.3+dfsg/lib/progreloc.c:311:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char namebuf[4096]; data/bison-3.7.3+dfsg/lib/progreloc.c:312:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open ("/proc/self/execname", O_RDONLY | O_CLOEXEC, 0); data/bison-3.7.3+dfsg/lib/progreloc.c:335:23: [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). executable_fd = open ("/proc/self/exe", O_EXEC | O_CLOEXEC, 0); data/bison-3.7.3+dfsg/lib/progreloc.c:342: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 location[4096]; data/bison-3.7.3+dfsg/lib/progreloc.c:397: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 (concat_name, p, p_len); data/bison-3.7.3+dfsg/lib/progreloc.c:485: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 (shorter, argv0, argv0_len - exeext_len - 4); data/bison-3.7.3+dfsg/lib/progreloc.c:487:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (shorter + argv0_len - exeext_len - 4, data/bison-3.7.3+dfsg/lib/quotearg.c:835:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char slot0[256]; data/bison-3.7.3+dfsg/lib/relocatable.c:148:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); data/bison-3.7.3+dfsg/lib/relocatable.c:151:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); data/bison-3.7.3+dfsg/lib/relocatable.c:233:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (q, curr_pathname, p - curr_pathname); data/bison-3.7.3+dfsg/lib/relocatable.c:302: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 (computed_curr_prefix, curr_installdir, computed_curr_prefix_len); data/bison-3.7.3+dfsg/lib/relocatable.c:336:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char location[MAX_PATH]; data/bison-3.7.3+dfsg/lib/relocatable.c:362:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char location[CCHMAXPATH]; data/bison-3.7.3+dfsg/lib/relocatable.c:405:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen ("/proc/self/maps", "r"); data/bison-3.7.3+dfsg/lib/relocatable.c:539:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, curr_prefix, curr_prefix_len); data/bison-3.7.3+dfsg/lib/relocatable.c:569:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, unixroot, 2); data/bison-3.7.3+dfsg/lib/relocwrapper.c:105:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, filename, filename_len - exeext_len); data/bison-3.7.3+dfsg/lib/relocwrapper.c:106:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + filename_len - exeext_len, ".bin", 4); data/bison-3.7.3+dfsg/lib/relocwrapper.c:107:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + filename_len - exeext_len + 4, data/bison-3.7.3+dfsg/lib/relocwrapper.c:115: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 (result, filename, filename_len); data/bison-3.7.3+dfsg/lib/relocwrapper.c:116: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 (result + filename_len, ".bin", 4 + 1); data/bison-3.7.3+dfsg/lib/relocwrapper.c:170: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, libdirs[i], len); data/bison-3.7.3+dfsg/lib/setenv.c:179:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_value, name, namelen); data/bison-3.7.3+dfsg/lib/setenv.c:181:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_value[namelen + 1], value, vallen); data/bison-3.7.3+dfsg/lib/setenv.c:200:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_environ[size], new_value, namelen + 1 + vallen); data/bison-3.7.3+dfsg/lib/setenv.c:202:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_environ[size], name, namelen); data/bison-3.7.3+dfsg/lib/setenv.c:204:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_environ[size][namelen + 1], value, vallen); data/bison-3.7.3+dfsg/lib/setenv.c:217:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) new_environ, (char *) __environ, data/bison-3.7.3+dfsg/lib/setenv.c:247:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_value, name, namelen); data/bison-3.7.3+dfsg/lib/setenv.c:249:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_value[namelen + 1], value, vallen); data/bison-3.7.3+dfsg/lib/setenv.c:268:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (np, new_value, namelen + 1 + vallen); data/bison-3.7.3+dfsg/lib/setenv.c:270:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (np, name, namelen); data/bison-3.7.3+dfsg/lib/setenv.c:272:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&np[namelen + 1], value, vallen); data/bison-3.7.3+dfsg/lib/setenv.c:380:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp + 1, value, len + 1); data/bison-3.7.3+dfsg/lib/setlocale_null.c:157:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, result, length + 1); data/bison-3.7.3+dfsg/lib/setlocale_null.c:167:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, result, bufsize - 1); data/bison-3.7.3+dfsg/lib/setlocale_null.c:322:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[SETLOCALE_NULL_ALL_MAX]; data/bison-3.7.3+dfsg/lib/setlocale_null.c:323:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char resultbuf[SETLOCALE_NULL_ALL_MAX]; data/bison-3.7.3+dfsg/lib/setlocale_null.c:365:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[SETLOCALE_NULL_MAX]; data/bison-3.7.3+dfsg/lib/setlocale_null.c:366:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char resultbuf[LC_INDICES_COUNT][SETLOCALE_NULL_MAX]; data/bison-3.7.3+dfsg/lib/snprintf.c:57:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (str, output, pruned_len); data/bison-3.7.3+dfsg/lib/spawn-pipe.c:84:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). retval = open (pathname, oflag, mode); data/bison-3.7.3+dfsg/lib/spawn-pipe.c:89:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open /* avoid warning on VMS */ data/bison-3.7.3+dfsg/lib/spawn-pipe.c:90:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open nonintr_open data/bison-3.7.3+dfsg/lib/spawn-pipe.c:110:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. create_pipe (const char *progname, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:111:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:111:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:113:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_stdin, const char *prog_stdout, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:113:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_stdin, const char *prog_stdout, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:170:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). || ((nulloutfd = open ("NUL", O_RDWR, 0)) >= 0 data/bison-3.7.3+dfsg/lib/spawn-pipe.c:176:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). || ((stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0 data/bison-3.7.3+dfsg/lib/spawn-pipe.c:182:27: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). || ((stdoutfd = open (prog_stdout, O_WRONLY, 0)) >= 0 data/bison-3.7.3+dfsg/lib/spawn-pipe.c:394:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. create_pipe_bidi (const char *progname, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:395:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:395:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:415:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. create_pipe_in (const char *progname, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:416:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:416:40: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:417:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_stdin, bool null_stderr, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:439:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. create_pipe_out (const char *progname, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:440:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:440:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.c:441:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_stdout, bool null_stderr, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:85:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern pid_t create_pipe_out (const char *progname, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:86:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:86:54: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:87:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_stdout, bool null_stderr, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:98:36: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern pid_t create_pipe_in (const char *progname, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:99:36: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:99:53: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:100:36: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_stdin, bool null_stderr, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:126:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern pid_t create_pipe_bidi (const char *progname, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:127:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn-pipe.h:127:55: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *prog_path, char **prog_argv, data/bison-3.7.3+dfsg/lib/spawn.in.h:188:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *_Restrict_ __path, data/bison-3.7.3+dfsg/lib/spawn.in.h:191:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const argv[_Restrict_arr_], data/bison-3.7.3+dfsg/lib/spawn.in.h:192:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[_Restrict_arr_]) data/bison-3.7.3+dfsg/lib/spawn.in.h:196:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *_Restrict_ __path, data/bison-3.7.3+dfsg/lib/spawn.in.h:199:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const argv[_Restrict_arr_], data/bison-3.7.3+dfsg/lib/spawn.in.h:200:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[_Restrict_arr_])); data/bison-3.7.3+dfsg/lib/spawn.in.h:205:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *_Restrict_ __path, data/bison-3.7.3+dfsg/lib/spawn.in.h:208:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const argv[_Restrict_arr_], data/bison-3.7.3+dfsg/lib/spawn.in.h:209:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[_Restrict_arr_]) data/bison-3.7.3+dfsg/lib/spawn.in.h:214:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *_Restrict_ __path, data/bison-3.7.3+dfsg/lib/spawn.in.h:217:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const argv[_Restrict_arr_], data/bison-3.7.3+dfsg/lib/spawn.in.h:218:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *const envp[_Restrict_arr_])); data/bison-3.7.3+dfsg/lib/spawnattr_setsigmask.c:30:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&attr->_ss, sigmask, sizeof (sigset_t)); data/bison-3.7.3+dfsg/lib/spawni.c:47:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open_not_cancel open data/bison-3.7.3+dfsg/lib/spawni.c:77:10: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. # define vfork __vfork data/bison-3.7.3+dfsg/lib/spawni.c:167:15: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. new_pid = vfork (); data/bison-3.7.3+dfsg/lib/spawni.c:337:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. name = (char *) memcpy (name + pathlen + 1, file, len); data/bison-3.7.3+dfsg/lib/spawni.c:354:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. startp = (char *) memcpy (name - (p - path), path, p - path); data/bison-3.7.3+dfsg/lib/stat-w32.c:232: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/bison-3.7.3+dfsg/lib/stat-w32.c:285: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/bison-3.7.3+dfsg/lib/stat.c:179:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (malloca_rname, name, rlen); data/bison-3.7.3+dfsg/lib/stdio--.h:24: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/bison-3.7.3+dfsg/lib/stdio--.h:25:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define fopen fopen_safer data/bison-3.7.3+dfsg/lib/stdio--.h:34:9: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # undef tmpfile data/bison-3.7.3+dfsg/lib/stdio--.h:35:10: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # define tmpfile tmpfile_safer data/bison-3.7.3+dfsg/lib/stdio-impl.h:56:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _ubuf[3]; \ data/bison-3.7.3+dfsg/lib/stdio-impl.h:57:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _nbuf[1]; \ data/bison-3.7.3+dfsg/lib/stdio-impl.h:95:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _ubuf[3]; \ data/bison-3.7.3+dfsg/lib/stdio-impl.h:96:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char _nbuf[1]; \ data/bison-3.7.3+dfsg/lib/stdio.in.h:322: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/bison-3.7.3+dfsg/lib/stdio.in.h:323: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/bison-3.7.3+dfsg/lib/stdio.in.h:325:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_FUNCDECL_RPL (fopen, FILE *, data/bison-3.7.3+dfsg/lib/stdio.in.h:328:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_RPL (fopen, FILE *, data/bison-3.7.3+dfsg/lib/stdio.in.h:331:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_SYS (fopen, FILE *, data/bison-3.7.3+dfsg/lib/stdio.in.h:335: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/bison-3.7.3+dfsg/lib/stdio.in.h:338: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/bison-3.7.3+dfsg/lib/stdio.in.h:340: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/bison-3.7.3+dfsg/lib/stdio.in.h:1256: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/bison-3.7.3+dfsg/lib/stdio.in.h:1258: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/bison-3.7.3+dfsg/lib/stdio.in.h:1259: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/bison-3.7.3+dfsg/lib/stdio.in.h:1261: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/bison-3.7.3+dfsg/lib/stdio.in.h:1264: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/bison-3.7.3+dfsg/lib/stdio.in.h:1267:9: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # undef tmpfile data/bison-3.7.3+dfsg/lib/stdio.in.h:1269: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/bison-3.7.3+dfsg/lib/stdlib.in.h:442: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/bison-3.7.3+dfsg/lib/stdlib.in.h:444: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/bison-3.7.3+dfsg/lib/stdlib.in.h:445: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/bison-3.7.3+dfsg/lib/stdlib.in.h:448: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/bison-3.7.3+dfsg/lib/stdlib.in.h:450: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/bison-3.7.3+dfsg/lib/stdlib.in.h:452: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/bison-3.7.3+dfsg/lib/stdlib.in.h:454: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/bison-3.7.3+dfsg/lib/stdlib.in.h:456: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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/strerror_r.c:193:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stackbuf[80]; data/bison-3.7.3+dfsg/lib/strerror_r.c:220:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stackbuf[STACKBUF_LEN]; data/bison-3.7.3+dfsg/lib/strerror_r.c:239:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stackbuf[STACKBUF_LEN]; data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/sys_stat.in.h:827: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/bison-3.7.3+dfsg/lib/sys_stat.in.h:830: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/bison-3.7.3+dfsg/lib/sys_stat.in.h:834: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/bison-3.7.3+dfsg/lib/sys_stat.in.h:838: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/bison-3.7.3+dfsg/lib/unicodeio.c:77:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char inbuf[6]; data/bison-3.7.3+dfsg/lib/unicodeio.c:116: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 outbuf[25]; data/bison-3.7.3+dfsg/lib/uniwidth/width.c:35:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char nonspacing_table_data[38*64] = { data/bison-3.7.3+dfsg/lib/uniwidth/width.c:379:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const signed char nonspacing_table_ind[248] = { data/bison-3.7.3+dfsg/lib/unlink.c:72:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (short_name, name, len); data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/vasnprintf.c:285:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char hex[16] = "0123456789ABCDEF"; data/bison-3.7.3+dfsg/lib/vasnprintf.c:363:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pointbuf[5]; data/bison-3.7.3+dfsg/lib/vasnprintf.c:364:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (pointbuf, "%#.0f", 1.0); data/bison-3.7.3+dfsg/lib/vasnprintf.c:588:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/bison-3.7.3+dfsg/lib/vasnprintf.c:725: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/bison-3.7.3+dfsg/lib/vasnprintf.c:2741: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/bison-3.7.3+dfsg/lib/vasnprintf.c:2782: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/bison-3.7.3+dfsg/lib/vasnprintf.c:2828: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/bison-3.7.3+dfsg/lib/vasnprintf.c:2837: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/bison-3.7.3+dfsg/lib/vasnprintf.c:2905: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/bison-3.7.3+dfsg/lib/vasnprintf.c:2914: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/bison-3.7.3+dfsg/lib/vasnprintf.c:2930: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/bison-3.7.3+dfsg/lib/vasnprintf.c:2948: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3033: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3059:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/bison-3.7.3+dfsg/lib/vasnprintf.c:3070:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmpsrc, cbuf, count); data/bison-3.7.3+dfsg/lib/vasnprintf.c:3142: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3154: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3433: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3439: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3441: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3584: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3590: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3592: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3659: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4044: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4050: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4052: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4225: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4231: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4233: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4523: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4716: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4842: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/bison-3.7.3+dfsg/lib/vasnprintf.c:5050: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/bison-3.7.3+dfsg/lib/vasnprintf.c:5071: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/bison-3.7.3+dfsg/lib/vasnprintf.c:5782: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/bison-3.7.3+dfsg/lib/vfprintf.c:38:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2000]; data/bison-3.7.3+dfsg/lib/vsnprintf.c:56:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (str, output, pruned_len); data/bison-3.7.3+dfsg/lib/wait-process.c:164:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_slaves, old_slaves, data/bison-3.7.3+dfsg/lib/windows-tls.c:228:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_table, dtor_table, data/bison-3.7.3+dfsg/lib/xmalloc.c:124: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/bison-3.7.3+dfsg/lib/xmemdup0.c:42: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, p, s); data/bison-3.7.3+dfsg/src/complain.c:453: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 ref[200]; data/bison-3.7.3+dfsg/src/derivation.c:269: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 style[20]; data/bison-3.7.3+dfsg/src/derivation.c:357: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 style[20]; data/bison-3.7.3+dfsg/src/fixits.c:115:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/bison-3.7.3+dfsg/src/getargs.h:61: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 language[sizeof "Java"]; data/bison-3.7.3+dfsg/src/getargs.h:62:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char skeleton[sizeof "java-skel.m4"]; data/bison-3.7.3+dfsg/src/getargs.h:63:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char src_extension[sizeof ".java"]; data/bison-3.7.3+dfsg/src/getargs.h:64:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char header_extension[sizeof ".java"]; data/bison-3.7.3+dfsg/src/glyphs.h:28: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. typedef char glyph_buffer_t[26]; data/bison-3.7.3+dfsg/src/ielr.c:294: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 ((*edgesp)[i] + edge_counts[i], edge_array + edge_counts[i], data/bison-3.7.3+dfsg/src/lalr.c:231: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 (reads[i], edge, nedges * sizeof edge[0]); data/bison-3.7.3+dfsg/src/location.c:271:30: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((caret_info.file = fopen (caret_info.pos.file, "r"))) data/bison-3.7.3+dfsg/src/location.c:524:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). bound->byte = atoi (at+1); data/bison-3.7.3+dfsg/src/location.c:530:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). bound->column = atoi (dot+1); data/bison-3.7.3+dfsg/src/location.c:538:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). bound->line = atoi (colon+1); data/bison-3.7.3+dfsg/src/muscle-tab.c:524:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). = atoi (muscle_find_const (how_name)); data/bison-3.7.3+dfsg/src/output.c:727:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const *argv[11]; data/bison-3.7.3+dfsg/src/parse-gram.c:3132: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 *argv[ARGS_MAX]; data/bison-3.7.3+dfsg/src/parse-gram.c:3210: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 const alphanum[26 + 26 + 1 + 10 + 1] = data/bison-3.7.3+dfsg/src/parse-gram.c:3312: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 buf1[1024]; data/bison-3.7.3+dfsg/src/parse-gram.c:3323: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 buf2[1024]; data/bison-3.7.3+dfsg/src/parse-gram.c:3423: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 (skeleton_build, grammar_file, dir_length); data/bison-3.7.3+dfsg/src/parse-gram.c:3459:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/bison-3.7.3+dfsg/src/scan-code.c:2690: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 at_buf[20]; data/bison-3.7.3+dfsg/src/scan-code.c:2692:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (at_buf, "$$"); data/bison-3.7.3+dfsg/src/scan-skel.c:1180: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 *argv[ARGC_MAX]; data/bison-3.7.3+dfsg/src/state-item.c:513:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *txt[2] = { " => ", " <- " }; data/bison-3.7.3+dfsg/src/state.c:50: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 (res->states, dst, states_size); data/bison-3.7.3+dfsg/src/state.c:82: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 (res->symbols, tokens, symbols_size); data/bison-3.7.3+dfsg/src/state.c:105: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 (res->rules, reds, rules_size); data/bison-3.7.3+dfsg/src/state.c:146: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 (res->items, core, items_size); data/bison-3.7.3+dfsg/src/state.c:172: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 (res->items, s->items, items_size); data/bison-3.7.3+dfsg/src/state.c:403: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 (probe->items, core, items_size); data/bison-3.7.3+dfsg/src/symtab.c:289: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 const alphanum[26 + 26 + 1 + 10] = data/bison-3.7.3+dfsg/src/symtab.c:965: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[32]; data/bison-3.7.3+dfsg/src/uniqstr.c:77:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p, arg, arglen); data/bison-3.7.3+dfsg/data/skeletons/glr.c:699: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). # define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) data/bison-3.7.3+dfsg/data/skeletons/yacc.c:1189:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) data/bison-3.7.3+dfsg/lib/argmatch.c:90:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). arglen = strlen (arg); data/bison-3.7.3+dfsg/lib/argmatch.c:97:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (arglist[i]) == arglen) data/bison-3.7.3+dfsg/lib/argmatch.h:181:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t arglen = strlen (arg); \ data/bison-3.7.3+dfsg/lib/argmatch.h:188:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (g->args[i].arg) == arglen) \ data/bison-3.7.3+dfsg/lib/argmatch.h:261:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). col += strlen (g->docs[i].arg); \ data/bison-3.7.3+dfsg/lib/argmatch.h:266:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). col += (col == 4 ? 0 : 2) + strlen (g->args[j].arg); \ data/bison-3.7.3+dfsg/lib/argmatch.h:299:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && screen_width < col + 2 + strlen (g->args[j].arg)) \ data/bison-3.7.3+dfsg/lib/basename-lgpl.c:59:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--) data/bison-3.7.3+dfsg/lib/canonicalize-lgpl.c:324:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (end); data/bison-3.7.3+dfsg/lib/concat-filename.c:45:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result = (char *) malloc (strlen (filename) data/bison-3.7.3+dfsg/lib/concat-filename.c:46:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + (suffix != NULL ? strlen (suffix) : 0) data/bison-3.7.3+dfsg/lib/concat-filename.c:54:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t directory_len = strlen (directory); data/bison-3.7.3+dfsg/lib/concat-filename.c:59:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen (filename) data/bison-3.7.3+dfsg/lib/concat-filename.c:60:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + (suffix != NULL ? strlen (suffix) : 0) data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/fopen.c:137: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 (p); data/bison-3.7.3+dfsg/lib/fopen.c:166:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (filename); data/bison-3.7.3+dfsg/lib/fstrcmp.c:104: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 xvec_length = strlen (string1); data/bison-3.7.3+dfsg/lib/fstrcmp.c:105: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 yvec_length = strlen (string2); data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/getprogname.c:127:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (ucomm) < PST_UCOMMLEN - 1) data/bison-3.7.3+dfsg/lib/getprogname.c:141:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (p) > PST_UCOMMLEN - 1 data/bison-3.7.3+dfsg/lib/getprogname.c:163:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (ucomm) < PST_UCOMMLEN - 1) data/bison-3.7.3+dfsg/lib/getprogname.c:177:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (p) > PST_UCOMMLEN - 1 data/bison-3.7.3+dfsg/lib/getprogname.c:261:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t n = read (fd, buf, 79); data/bison-3.7.3+dfsg/lib/getprogname.c:276: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). ret = malloc (strlen (progname) + 1); data/bison-3.7.3+dfsg/lib/gettext.h:223:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgctxt_len = strlen (msgctxt) + 1; data/bison-3.7.3+dfsg/lib/gettext.h:224:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/bison-3.7.3+dfsg/lib/gettext.h:271:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgctxt_len = strlen (msgctxt) + 1; data/bison-3.7.3+dfsg/lib/gettext.h:272:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/bison-3.7.3+dfsg/lib/localcharset.c:928:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pdot && 2 + strlen (pdot + 1) + 1 <= sizeof (buf)) data/bison-3.7.3+dfsg/lib/lstat.c:84:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (S_ISDIR (sbuf->st_mode) || file[strlen (file) - 1] != '/') data/bison-3.7.3+dfsg/lib/mbfile.h:104:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc (mbf->fp); data/bison-3.7.3+dfsg/lib/mbfile.h:170:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc (mbf->fp); data/bison-3.7.3+dfsg/lib/mbswidth.c:49:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return mbsnwidth (string, strlen (string), flags); data/bison-3.7.3+dfsg/lib/open.c:121:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (filename); data/bison-3.7.3+dfsg/lib/open.c:188:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (filename); data/bison-3.7.3+dfsg/lib/progreloc.c:125:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t result = read (fd, buf, count); data/bison-3.7.3+dfsg/lib/progreloc.c:387: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). concat_name = (char *) xmalloc (p_len + strlen (argv0) + 2); data/bison-3.7.3+dfsg/lib/progreloc.c:455: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 argv0_len = strlen (argv0); data/bison-3.7.3+dfsg/lib/quotearg.c:363:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). quote_string_len = strlen (quote_string); data/bison-3.7.3+dfsg/lib/quotearg.c:409:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? (argsize = strlen (arg)) : argsize)) data/bison-3.7.3+dfsg/lib/quotearg.c:620:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). argsize = strlen (arg); data/bison-3.7.3+dfsg/lib/readline.c:50:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). while (*out && (out[strlen (out) - 1] == '\r' data/bison-3.7.3+dfsg/lib/readline.c:51: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). || out[strlen (out) - 1] == '\n')) data/bison-3.7.3+dfsg/lib/readline.c:52: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). out[strlen (out) - 1] = '\0'; data/bison-3.7.3+dfsg/lib/readlink.c:57:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (name); data/bison-3.7.3+dfsg/lib/relocatable.c:141:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). orig_prefix_len = strlen (orig_prefix_arg); data/bison-3.7.3+dfsg/lib/relocatable.c:142:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). curr_prefix_len = strlen (curr_prefix_arg); data/bison-3.7.3+dfsg/lib/relocatable.c:209:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) data/bison-3.7.3+dfsg/lib/relocatable.c:213:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rel_installdir = orig_installdir + strlen (orig_installprefix); data/bison-3.7.3+dfsg/lib/relocatable.c:218:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *p = curr_pathname + strlen (curr_pathname); data/bison-3.7.3+dfsg/lib/relocatable.c:241:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *rp = rel_installdir + strlen (rel_installdir); data/bison-3.7.3+dfsg/lib/relocatable.c:242:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *cp = curr_installdir + strlen (curr_installdir); data/bison-3.7.3+dfsg/lib/relocatable.c:419:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n' && c != '/') data/bison-3.7.3+dfsg/lib/relocatable.c:438:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n') data/bison-3.7.3+dfsg/lib/relocatable.c:518:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *result = (char *) xmalloc (strlen (curr_prefix) + 1); data/bison-3.7.3+dfsg/lib/relocatable.c:533:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); data/bison-3.7.3+dfsg/lib/relocatable.c:564:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *result = (char *) xmalloc (2 + strlen (pathname) + 1); data/bison-3.7.3+dfsg/lib/relocwrapper.c:79:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t filename_len = strlen (filename); data/bison-3.7.3+dfsg/lib/relocwrapper.c:157: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). total += strlen (libdirs[i]) + 1; data/bison-3.7.3+dfsg/lib/relocwrapper.c:158: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). total += strlen (old_value) + 1; data/bison-3.7.3+dfsg/lib/relocwrapper.c:169: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 (libdirs[i]); data/bison-3.7.3+dfsg/lib/rename.c:53:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t src_len = strlen (src); data/bison-3.7.3+dfsg/lib/rename.c:54:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dst_len = strlen (dst); data/bison-3.7.3+dfsg/lib/rename.c:152:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). src_len = strlen (src_temp); data/bison-3.7.3+dfsg/lib/rename.c:286:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t src_len = strlen (src); data/bison-3.7.3+dfsg/lib/rename.c:287:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dst_len = strlen (dst); data/bison-3.7.3+dfsg/lib/rename.c:452:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). src_len = strlen (src_temp); data/bison-3.7.3+dfsg/lib/rmdir.c:40:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (dir); data/bison-3.7.3+dfsg/lib/setenv.c:118:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t namelen = strlen (name); data/bison-3.7.3+dfsg/lib/setenv.c:119:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t vallen = value != NULL ? strlen (value) + 1 : 0; data/bison-3.7.3+dfsg/lib/setenv.c:376:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (value); data/bison-3.7.3+dfsg/lib/setlocale_null.c:111:23: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = wcslen (result); data/bison-3.7.3+dfsg/lib/setlocale_null.c:154:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen (result); data/bison-3.7.3+dfsg/lib/spawni.c:333:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (file) + 1; data/bison-3.7.3+dfsg/lib/spawni.c:334:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pathlen = strlen (path); data/bison-3.7.3+dfsg/lib/stat.c:133:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (name); data/bison-3.7.3+dfsg/lib/stat.c:428:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (name); data/bison-3.7.3+dfsg/lib/stdio.in.h:281:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef fgetc data/bison-3.7.3+dfsg/lib/stdio.in.h:282:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define fgetc rpl_fgetc data/bison-3.7.3+dfsg/lib/stdio.in.h:284: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/bison-3.7.3+dfsg/lib/stdio.in.h:285: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/bison-3.7.3+dfsg/lib/stdio.in.h:287: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/bison-3.7.3+dfsg/lib/stdio.in.h:290:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (fgetc); data/bison-3.7.3+dfsg/lib/stdio.in.h:725:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/bison-3.7.3+dfsg/lib/stdio.in.h:726:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc rpl_fgetc data/bison-3.7.3+dfsg/lib/stdio.in.h:728: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/bison-3.7.3+dfsg/lib/stdio.in.h:729: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/bison-3.7.3+dfsg/lib/stdio.in.h:731: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/bison-3.7.3+dfsg/lib/stdio.in.h:734:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getc); data/bison-3.7.3+dfsg/lib/stdio.in.h:741:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/bison-3.7.3+dfsg/lib/stdio.in.h:742:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar rpl_getchar data/bison-3.7.3+dfsg/lib/stdio.in.h:744: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/bison-3.7.3+dfsg/lib/stdio.in.h:745: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/bison-3.7.3+dfsg/lib/stdio.in.h:747: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/bison-3.7.3+dfsg/lib/stdio.in.h:750:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getchar); data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/strerror_r.c:132:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (msg); data/bison-3.7.3+dfsg/lib/strerror_r.c:218:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!ret && strlen (buf) == buflen - 1) data/bison-3.7.3+dfsg/lib/strerror_r.c:223:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (stackbuf); data/bison-3.7.3+dfsg/lib/strerror_r.c:237:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (ret == ERANGE && strlen (buf) < buflen - 1) data/bison-3.7.3+dfsg/lib/string.in.h:425: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/bison-3.7.3+dfsg/lib/string.in.h:426: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/bison-3.7.3+dfsg/lib/string.in.h:428:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_FUNCDECL_RPL (strncat, char *, data/bison-3.7.3+dfsg/lib/string.in.h:431:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_RPL (strncat, char *, data/bison-3.7.3+dfsg/lib/string.in.h:434:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_SYS (strncat, char *, data/bison-3.7.3+dfsg/lib/string.in.h:438: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/bison-3.7.3+dfsg/lib/string.in.h:441: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/bison-3.7.3+dfsg/lib/string.in.h:443: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/bison-3.7.3+dfsg/lib/sys_stat.in.h:812:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). # undef umask data/bison-3.7.3+dfsg/lib/sys_stat.in.h:813:10: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). # define umask _umask data/bison-3.7.3+dfsg/lib/textstyle.in.h:113:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ostream_write_mem (stream, string, strlen (string)); data/bison-3.7.3+dfsg/lib/unistd.in.h:1487:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/bison-3.7.3+dfsg/lib/unistd.in.h:1488:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read rpl_read data/bison-3.7.3+dfsg/lib/unistd.in.h:1490: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/bison-3.7.3+dfsg/lib/unistd.in.h:1492: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/bison-3.7.3+dfsg/lib/unistd.in.h:1495:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/bison-3.7.3+dfsg/lib/unistd.in.h:1496:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read _read data/bison-3.7.3+dfsg/lib/unistd.in.h:1498:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, size_t count)); data/bison-3.7.3+dfsg/lib/unistd.in.h:1503: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/bison-3.7.3+dfsg/lib/unistd.in.h:1505:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (read); data/bison-3.7.3+dfsg/lib/unistd.in.h:1507:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/bison-3.7.3+dfsg/lib/unistd.in.h:1508:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read _read data/bison-3.7.3+dfsg/lib/unistd.in.h:1853: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/bison-3.7.3+dfsg/lib/unistd.in.h:1854: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/bison-3.7.3+dfsg/lib/unistd.in.h:1856: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/bison-3.7.3+dfsg/lib/unistd.in.h:1857: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/bison-3.7.3+dfsg/lib/unistd.in.h:1860: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/bison-3.7.3+dfsg/lib/unistd.in.h:1864:24: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_SYS_CAST (usleep, int, (useconds_t n)); data/bison-3.7.3+dfsg/lib/unistd.in.h:1866: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/bison-3.7.3+dfsg/lib/unistd.in.h:1868: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/bison-3.7.3+dfsg/lib/unistd.in.h:1870: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/bison-3.7.3+dfsg/lib/unlink.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 (name); data/bison-3.7.3+dfsg/lib/unlocked-io.h:100:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/bison-3.7.3+dfsg/lib/unlocked-io.h:101:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc(x) getc_unlocked (x) data/bison-3.7.3+dfsg/lib/unlocked-io.h:103:28: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc_unlocked(x) getc (x) data/bison-3.7.3+dfsg/lib/unlocked-io.h:107:10: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/bison-3.7.3+dfsg/lib/unlocked-io.h:108:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar() getchar_unlocked () data/bison-3.7.3+dfsg/lib/unlocked-io.h:110:30: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar_unlocked() getchar () data/bison-3.7.3+dfsg/lib/unsetenv.c:68:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (name); data/bison-3.7.3+dfsg/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/bison-3.7.3+dfsg/lib/vasnprintf.c:1810: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/bison-3.7.3+dfsg/lib/vasnprintf.c:2640: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3911: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/bison-3.7.3+dfsg/lib/vasnprintf.c:3971: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4007: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4107: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4143: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4373: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4430: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4465: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4578: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/bison-3.7.3+dfsg/lib/vasnprintf.c:4613: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/bison-3.7.3+dfsg/lib/wchar.in.h:671:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s) _GL_ATTRIBUTE_PURE); data/bison-3.7.3+dfsg/lib/wchar.in.h:673:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s)); data/bison-3.7.3+dfsg/lib/wchar.in.h:675:19: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_CXXALIASWARN (wcslen); data/bison-3.7.3+dfsg/lib/wchar.in.h:678:9: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # undef wcslen data/bison-3.7.3+dfsg/lib/wchar.in.h:680:18: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _GL_WARN_ON_USE (wcslen, "wcslen is unportable - " data/bison-3.7.3+dfsg/lib/wchar.in.h:744:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcsncpy, wchar_t *, data/bison-3.7.3+dfsg/lib/wchar.in.h:748:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcsncpy, wchar_t *, data/bison-3.7.3+dfsg/lib/wchar.in.h:752:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcsncpy); data/bison-3.7.3+dfsg/lib/wchar.in.h:755:9: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). # undef wcsncpy data/bison-3.7.3+dfsg/lib/wchar.in.h:757:18: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - " data/bison-3.7.3+dfsg/lib/wchar.in.h:807:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_FUNCDECL_SYS (wcsncat, wchar_t *, data/bison-3.7.3+dfsg/lib/wchar.in.h:811:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIAS_SYS (wcsncat, wchar_t *, data/bison-3.7.3+dfsg/lib/wchar.in.h:815:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIASWARN (wcsncat); data/bison-3.7.3+dfsg/lib/wchar.in.h:818:9: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. # undef wcsncat data/bison-3.7.3+dfsg/lib/wchar.in.h:820:18: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - " data/bison-3.7.3+dfsg/lib/xmalloc.c:132: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/bison-3.7.3+dfsg/src/complain.c:512: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). size_t l = strlen (message); data/bison-3.7.3+dfsg/src/files.c:120: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 (str1) + strlen (str2); data/bison-3.7.3+dfsg/src/files.c:120:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (str1) + strlen (str2); data/bison-3.7.3+dfsg/src/files.c:191:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp (p->oldprefix, filename, strlen (p->oldprefix)) == 0) data/bison-3.7.3+dfsg/src/files.c:201:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t oldprefix_len = strlen (p->oldprefix); data/bison-3.7.3+dfsg/src/files.c:202:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t newprefix_len = strlen (p->newprefix); data/bison-3.7.3+dfsg/src/files.c:203:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *s = xmalloc (newprefix_len + strlen (filename) - oldprefix_len + 1); data/bison-3.7.3+dfsg/src/files.c:344: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). (strlen (spec_outfile) - (ext ? strlen (ext) : 0))); data/bison-3.7.3+dfsg/src/files.c:344: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). (strlen (spec_outfile) - (ext ? strlen (ext) : 0))); data/bison-3.7.3+dfsg/src/files.c:349: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). (strlen (spec_outfile) data/bison-3.7.3+dfsg/src/files.c:350:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). - (tab ? strlen (tab) : (ext ? strlen (ext) : 0)))); data/bison-3.7.3+dfsg/src/files.c:350: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). - (tab ? strlen (tab) : (ext ? strlen (ext) : 0)))); data/bison-3.7.3+dfsg/src/files.c:380:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xstrndup (base, (strlen (base) - (ext ? strlen (ext) : 0))); data/bison-3.7.3+dfsg/src/files.c:380:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xstrndup (base, (strlen (base) - (ext ? strlen (ext) : 0))); data/bison-3.7.3+dfsg/src/fixits.c:135:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc (in); data/bison-3.7.3+dfsg/src/fixits.c:150:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc (in); data/bison-3.7.3+dfsg/src/fixits.c:171:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc (in); data/bison-3.7.3+dfsg/src/fixits.c:182:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc (in); data/bison-3.7.3+dfsg/src/fixits.c:192:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc (in); data/bison-3.7.3+dfsg/src/fixits.c:207:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc (in)) != EOF) data/bison-3.7.3+dfsg/src/getargs.c:655:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *color = arg + strlen ("--color="); data/bison-3.7.3+dfsg/src/getargs.c:665:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *style = arg + strlen ("--style="); data/bison-3.7.3+dfsg/src/getargs.c:700:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *end = value + strlen (value) - 1; data/bison-3.7.3+dfsg/src/glyphs.c:68:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert (strlen (arg->fallback) + 1 < sizeof *arg->pbuf); data/bison-3.7.3+dfsg/src/glyphs.c:91:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. strncat (down_arrow, " ", sizeof down_arrow - strlen (down_arrow) - 1); data/bison-3.7.3+dfsg/src/glyphs.c:91:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat (down_arrow, " ", sizeof down_arrow - strlen (down_arrow) - 1); data/bison-3.7.3+dfsg/src/gram.c:100:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fprintf (out, "%*s|", (int) strlen (previous_lhs->symbol->tag), ""); data/bison-3.7.3+dfsg/src/gram.c:248: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). for (int i = strlen (s); 0 < i; --i) data/bison-3.7.3+dfsg/src/muscle-tab.c:188:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t vals = strlen (val); data/bison-3.7.3+dfsg/src/muscle-tab.c:189:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t terms = strlen (terminator); data/bison-3.7.3+dfsg/src/muscle-tab.c:414: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). char *res = xmalloc (strlen (fmt) + strlen (assignment) data/bison-3.7.3+dfsg/src/muscle-tab.c:414: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). char *res = xmalloc (strlen (fmt) + strlen (assignment) data/bison-3.7.3+dfsg/src/muscle-tab.c:415:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + (value ? strlen (value) : 0)); data/bison-3.7.3+dfsg/src/output.c:159:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (ptrdiff_t i = 0, len = strlen (src); i < len; ++i) data/bison-3.7.3+dfsg/src/output.c:241: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). + (translatable ? strlen ("N_()") : 0); data/bison-3.7.3+dfsg/src/parse-gram.c:3182: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). code[strlen (code) - 1] = 0; data/bison-3.7.3+dfsg/src/parse-gram.c:3414:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dir_length = strlen (grammar_file); data/bison-3.7.3+dfsg/src/parse-gram.c:3420:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xmalloc (dir_length + 1 + strlen (skeleton_user) + 1); data/bison-3.7.3+dfsg/src/print-graph.c:73:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (int) strlen (previous_lhs->symbol->tag), ""); data/bison-3.7.3+dfsg/src/print-xml.c:458:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (str); data/bison-3.7.3+dfsg/src/scan-code.c:1084:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/bison-3.7.3+dfsg/src/scan-code.c:2306:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yy_scan_bytes( yystr, (int) strlen(yystr) ); data/bison-3.7.3+dfsg/src/scan-code.c:2726:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *tail = explicit_bracketing ? "" : cp + strlen (var->id); data/bison-3.7.3+dfsg/src/scan-gram.c:1399:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). scanner_cursor.column -= mbsnwidth (Msg, strlen (Msg), 0); \ data/bison-3.7.3+dfsg/src/scan-gram.c:1400:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). scanner_cursor.byte -= strlen (Msg); \ data/bison-3.7.3+dfsg/src/scan-gram.c:1401: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). for (size_t i = strlen (Msg); i != 0; --i) \ data/bison-3.7.3+dfsg/src/scan-gram.c:1637:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/bison-3.7.3+dfsg/src/scan-gram.c:3912:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yy_scan_bytes( yystr, (int) strlen(yystr) ); data/bison-3.7.3+dfsg/src/scan-gram.c:4316: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). size_t i = strlen (token_end); data/bison-3.7.3+dfsg/src/scan-skel.c:1030:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/bison-3.7.3+dfsg/src/scan-skel.c:2254:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yy_scan_bytes( yystr, (int) strlen(yystr) ); data/bison-3.7.3+dfsg/src/system.h:188: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). obstack_grow (Obs, Str, strlen (Str)) data/bison-3.7.3+dfsg/src/uniqstr.c:66:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). reslen += strlen (va_arg (args, char const *)); data/bison-3.7.3+dfsg/src/uniqstr.c:76:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t arglen = strlen (arg); ANALYSIS SUMMARY: Hits = 1108 Lines analyzed = 129807 in approximately 3.70 seconds (35102 lines/second) Physical Source Lines of Code (SLOC) = 85040 Hits@level = [0] 394 [1] 230 [2] 533 [3] 111 [4] 207 [5] 27 Hits@level+ = [0+] 1502 [1+] 1108 [2+] 878 [3+] 345 [4+] 234 [5+] 27 Hits/KSLOC@level+ = [0+] 17.6623 [1+] 13.0292 [2+] 10.3246 [3+] 4.05691 [4+] 2.75165 [5+] 0.317498 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.