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/mes-0.22/include/alloca.h
Examining data/mes-0.22/include/ar.h
Examining data/mes-0.22/include/argz.h
Examining data/mes-0.22/include/assert.h
Examining data/mes-0.22/include/ctype.h
Examining data/mes-0.22/include/dirent.h
Examining data/mes-0.22/include/dirstream.h
Examining data/mes-0.22/include/dlfcn.h
Examining data/mes-0.22/include/endian.h
Examining data/mes-0.22/include/fcntl.h
Examining data/mes-0.22/include/features.h
Examining data/mes-0.22/include/float.h
Examining data/mes-0.22/include/getopt.h
Examining data/mes-0.22/include/gnu/hurd-types.h
Examining data/mes-0.22/include/gnu/hurd.h
Examining data/mes-0.22/include/gnu/syscall.h
Examining data/mes-0.22/include/grp.h
Examining data/mes-0.22/include/inttypes.h
Examining data/mes-0.22/include/libgen.h
Examining data/mes-0.22/include/limits.h
Examining data/mes-0.22/include/linux/syscall.h
Examining data/mes-0.22/include/linux/x86/syscall.h
Examining data/mes-0.22/include/linux/x86_64/syscall.h
Examining data/mes-0.22/include/locale.h
Examining data/mes-0.22/include/mach/mach-init.h
Examining data/mes-0.22/include/math.h
Examining data/mes-0.22/include/memory.h
Examining data/mes-0.22/include/mes/builtins.h
Examining data/mes-0.22/include/mes/constants.h
Examining data/mes-0.22/include/mes/lib.h
Examining data/mes-0.22/include/mes/macros.h
Examining data/mes-0.22/include/mes/mes.h
Examining data/mes-0.22/include/mes/lib-mini.h
Examining data/mes-0.22/include/pwd.h
Examining data/mes-0.22/include/signal.h
Examining data/mes-0.22/include/stdarg.h
Examining data/mes-0.22/include/stdbool.h
Examining data/mes-0.22/include/stddef.h
Examining data/mes-0.22/include/stdint.h
Examining data/mes-0.22/include/stdio.h
Examining data/mes-0.22/include/stdlib.h
Examining data/mes-0.22/include/stdnoreturn.h
Examining data/mes-0.22/include/string.h
Examining data/mes-0.22/include/strings.h
Examining data/mes-0.22/include/sys/cdefs.h
Examining data/mes-0.22/include/sys/dir.h
Examining data/mes-0.22/include/sys/file.h
Examining data/mes-0.22/include/sys/ioctl.h
Examining data/mes-0.22/include/sys/mman.h
Examining data/mes-0.22/include/sys/param.h
Examining data/mes-0.22/include/sys/resource.h
Examining data/mes-0.22/include/sys/select.h
Examining data/mes-0.22/include/sys/stat.h
Examining data/mes-0.22/include/sys/time.h
Examining data/mes-0.22/include/sys/timeb.h
Examining data/mes-0.22/include/sys/times.h
Examining data/mes-0.22/include/sys/types.h
Examining data/mes-0.22/include/sys/ucontext.h
Examining data/mes-0.22/include/sys/user.h
Examining data/mes-0.22/include/sys/wait.h
Examining data/mes-0.22/include/termio.h
Examining data/mes-0.22/include/time.h
Examining data/mes-0.22/include/unistd.h
Examining data/mes-0.22/include/errno.h
Examining data/mes-0.22/include/setjmp.h
Examining data/mes-0.22/lib/ctype/isalnum.c
Examining data/mes-0.22/lib/ctype/isalpha.c
Examining data/mes-0.22/lib/ctype/isascii.c
Examining data/mes-0.22/lib/ctype/iscntrl.c
Examining data/mes-0.22/lib/ctype/isdigit.c
Examining data/mes-0.22/lib/ctype/isgraph.c
Examining data/mes-0.22/lib/ctype/islower.c
Examining data/mes-0.22/lib/ctype/isnumber.c
Examining data/mes-0.22/lib/ctype/isprint.c
Examining data/mes-0.22/lib/ctype/ispunct.c
Examining data/mes-0.22/lib/ctype/isspace.c
Examining data/mes-0.22/lib/ctype/isupper.c
Examining data/mes-0.22/lib/ctype/isxdigit.c
Examining data/mes-0.22/lib/ctype/tolower.c
Examining data/mes-0.22/lib/ctype/toupper.c
Examining data/mes-0.22/lib/dirent/__getdirentries.c
Examining data/mes-0.22/lib/dirent/closedir.c
Examining data/mes-0.22/lib/dirent/opendir.c
Examining data/mes-0.22/lib/dirent/readdir.c
Examining data/mes-0.22/lib/freebsd/x86-mes-gcc/crt1.c
Examining data/mes-0.22/lib/freebsd/x86-mes-gcc/mini.c
Examining data/mes-0.22/lib/freebsd/x86-mes-mescc/crt1.c
Examining data/mes-0.22/lib/freebsd/x86-mes-mescc/mini.c
Examining data/mes-0.22/lib/gnu/_exit.c
Examining data/mes-0.22/lib/gnu/_open3.c
Examining data/mes-0.22/lib/gnu/_read.c
Examining data/mes-0.22/lib/gnu/_write.c
Examining data/mes-0.22/lib/gnu/dir-lookup.c
Examining data/mes-0.22/lib/gnu/exec-startup-get-data.c
Examining data/mes-0.22/lib/gnu/fd-get.c
Examining data/mes-0.22/lib/gnu/fd-read.c
Examining data/mes-0.22/lib/gnu/fd-write.c
Examining data/mes-0.22/lib/gnu/hurd-start.c
Examining data/mes-0.22/lib/gnu/io-read.c
Examining data/mes-0.22/lib/gnu/io-write.c
Examining data/mes-0.22/lib/gnu/malloc.c
Examining data/mes-0.22/lib/gnu/proc-mark-exit.c
Examining data/mes-0.22/lib/gnu/syscall.c
Examining data/mes-0.22/lib/gnu/task-get-special-port.c
Examining data/mes-0.22/lib/gnu/task-terminate.c
Examining data/mes-0.22/lib/gnu/vm-allocate.c
Examining data/mes-0.22/lib/gnu/vm-statistics.c
Examining data/mes-0.22/lib/gnu/x86-mes-gcc/crt1.c
Examining data/mes-0.22/lib/gnu/x86-mes-gcc/mini.c
Examining data/mes-0.22/lib/libtcc1.c
Examining data/mes-0.22/lib/linux/_getcwd.c
Examining data/mes-0.22/lib/linux/_open3.c
Examining data/mes-0.22/lib/linux/_read.c
Examining data/mes-0.22/lib/linux/access.c
Examining data/mes-0.22/lib/linux/brk.c
Examining data/mes-0.22/lib/linux/chdir.c
Examining data/mes-0.22/lib/linux/chmod.c
Examining data/mes-0.22/lib/linux/clock_gettime.c
Examining data/mes-0.22/lib/linux/close.c
Examining data/mes-0.22/lib/linux/dup.c
Examining data/mes-0.22/lib/linux/dup2.c
Examining data/mes-0.22/lib/linux/execve.c
Examining data/mes-0.22/lib/linux/fcntl.c
Examining data/mes-0.22/lib/linux/fork.c
Examining data/mes-0.22/lib/linux/fstat.c
Examining data/mes-0.22/lib/linux/fsync.c
Examining data/mes-0.22/lib/linux/getdents.c
Examining data/mes-0.22/lib/linux/getegid.c
Examining data/mes-0.22/lib/linux/geteuid.c
Examining data/mes-0.22/lib/linux/getgid.c
Examining data/mes-0.22/lib/linux/getpid.c
Examining data/mes-0.22/lib/linux/getppid.c
Examining data/mes-0.22/lib/linux/getrusage.c
Examining data/mes-0.22/lib/linux/gettimeofday.c
Examining data/mes-0.22/lib/linux/getuid.c
Examining data/mes-0.22/lib/linux/ioctl.c
Examining data/mes-0.22/lib/linux/kill.c
Examining data/mes-0.22/lib/linux/link.c
Examining data/mes-0.22/lib/linux/lseek.c
Examining data/mes-0.22/lib/linux/lstat.c
Examining data/mes-0.22/lib/linux/mkdir.c
Examining data/mes-0.22/lib/linux/mknod.c
Examining data/mes-0.22/lib/linux/nanosleep.c
Examining data/mes-0.22/lib/linux/pipe.c
Examining data/mes-0.22/lib/linux/read.c
Examining data/mes-0.22/lib/linux/readlink.c
Examining data/mes-0.22/lib/linux/rename.c
Examining data/mes-0.22/lib/linux/rmdir.c
Examining data/mes-0.22/lib/linux/setgid.c
Examining data/mes-0.22/lib/linux/settimer.c
Examining data/mes-0.22/lib/linux/setuid.c
Examining data/mes-0.22/lib/linux/signal.c
Examining data/mes-0.22/lib/linux/sigprogmask.c
Examining data/mes-0.22/lib/linux/stat.c
Examining data/mes-0.22/lib/linux/symlink.c
Examining data/mes-0.22/lib/linux/time.c
Examining data/mes-0.22/lib/linux/unlink.c
Examining data/mes-0.22/lib/linux/waitpid.c
Examining data/mes-0.22/lib/linux/x86-mes-gcc/crt0.c
Examining data/mes-0.22/lib/linux/x86-mes-gcc/crt1.c
Examining data/mes-0.22/lib/linux/x86-mes-gcc/crti.c
Examining data/mes-0.22/lib/linux/x86-mes-gcc/crtn.c
Examining data/mes-0.22/lib/linux/x86-mes-gcc/mini.c
Examining data/mes-0.22/lib/linux/x86-mes-gcc/syscall.c
Examining data/mes-0.22/lib/linux/x86-mes-mescc/crt1.c
Examining data/mes-0.22/lib/linux/x86-mes-mescc/mini.c
Examining data/mes-0.22/lib/linux/x86-mes-mescc/syscall.c
Examining data/mes-0.22/lib/linux/x86_64-mes-gcc/crt0.c
Examining data/mes-0.22/lib/linux/x86_64-mes-gcc/crt1.c
Examining data/mes-0.22/lib/linux/x86_64-mes-gcc/crti.c
Examining data/mes-0.22/lib/linux/x86_64-mes-gcc/crtn.c
Examining data/mes-0.22/lib/linux/x86_64-mes-gcc/mini.c
Examining data/mes-0.22/lib/linux/x86_64-mes-gcc/syscall.c
Examining data/mes-0.22/lib/linux/x86_64-mes-mescc/crt1.c
Examining data/mes-0.22/lib/linux/x86_64-mes-mescc/mini.c
Examining data/mes-0.22/lib/linux/x86_64-mes-mescc/syscall.c
Examining data/mes-0.22/lib/mach/mach-init.c
Examining data/mes-0.22/lib/mach/msg.c
Examining data/mes-0.22/lib/math/ceil.c
Examining data/mes-0.22/lib/math/fabs.c
Examining data/mes-0.22/lib/math/floor.c
Examining data/mes-0.22/lib/mes/__assert_fail.c
Examining data/mes-0.22/lib/mes/__buffered_read.c
Examining data/mes-0.22/lib/mes/__mes_debug.c
Examining data/mes-0.22/lib/mes/abtod.c
Examining data/mes-0.22/lib/mes/abtol.c
Examining data/mes-0.22/lib/mes/div.c
Examining data/mes-0.22/lib/mes/dtoab.c
Examining data/mes-0.22/lib/mes/eputc.c
Examining data/mes-0.22/lib/mes/fdgetc.c
Examining data/mes-0.22/lib/mes/fdgets.c
Examining data/mes-0.22/lib/mes/fdputc.c
Examining data/mes-0.22/lib/mes/fdputs.c
Examining data/mes-0.22/lib/mes/fdungetc.c
Examining data/mes-0.22/lib/mes/itoa.c
Examining data/mes-0.22/lib/mes/ltoa.c
Examining data/mes-0.22/lib/mes/ltoab.c
Examining data/mes-0.22/lib/mes/mes_open.c
Examining data/mes-0.22/lib/mes/mini-write.c
Examining data/mes-0.22/lib/mes/ntoab.c
Examining data/mes-0.22/lib/mes/oputc.c
Examining data/mes-0.22/lib/mes/search-path.c
Examining data/mes-0.22/lib/mes/ultoa.c
Examining data/mes-0.22/lib/mes/utoa.c
Examining data/mes-0.22/lib/mes/globals.c
Examining data/mes-0.22/lib/mes/eputs.c
Examining data/mes-0.22/lib/mes/oputs.c
Examining data/mes-0.22/lib/posix/alarm.c
Examining data/mes-0.22/lib/posix/buffered-read.c
Examining data/mes-0.22/lib/posix/execl.c
Examining data/mes-0.22/lib/posix/execlp.c
Examining data/mes-0.22/lib/posix/execv.c
Examining data/mes-0.22/lib/posix/execvp.c
Examining data/mes-0.22/lib/posix/getcwd.c
Examining data/mes-0.22/lib/posix/getenv.c
Examining data/mes-0.22/lib/posix/getopt.c
Examining data/mes-0.22/lib/posix/isatty.c
Examining data/mes-0.22/lib/posix/mktemp.c
Examining data/mes-0.22/lib/posix/open.c
Examining data/mes-0.22/lib/posix/raise.c
Examining data/mes-0.22/lib/posix/sbrk.c
Examining data/mes-0.22/lib/posix/setenv.c
Examining data/mes-0.22/lib/posix/sleep.c
Examining data/mes-0.22/lib/posix/unsetenv.c
Examining data/mes-0.22/lib/posix/wait.c
Examining data/mes-0.22/lib/posix/write.c
Examining data/mes-0.22/lib/stdio/clearerr.c
Examining data/mes-0.22/lib/stdio/fclose.c
Examining data/mes-0.22/lib/stdio/fdopen.c
Examining data/mes-0.22/lib/stdio/feof.c
Examining data/mes-0.22/lib/stdio/ferror.c
Examining data/mes-0.22/lib/stdio/fflush.c
Examining data/mes-0.22/lib/stdio/fgetc.c
Examining data/mes-0.22/lib/stdio/fgets.c
Examining data/mes-0.22/lib/stdio/fileno.c
Examining data/mes-0.22/lib/stdio/fopen.c
Examining data/mes-0.22/lib/stdio/fprintf.c
Examining data/mes-0.22/lib/stdio/fputc.c
Examining data/mes-0.22/lib/stdio/fputs.c
Examining data/mes-0.22/lib/stdio/fread.c
Examining data/mes-0.22/lib/stdio/freopen.c
Examining data/mes-0.22/lib/stdio/fscanf.c
Examining data/mes-0.22/lib/stdio/fseek.c
Examining data/mes-0.22/lib/stdio/ftell.c
Examining data/mes-0.22/lib/stdio/fwrite.c
Examining data/mes-0.22/lib/stdio/getc.c
Examining data/mes-0.22/lib/stdio/getchar.c
Examining data/mes-0.22/lib/stdio/perror.c
Examining data/mes-0.22/lib/stdio/printf.c
Examining data/mes-0.22/lib/stdio/putc.c
Examining data/mes-0.22/lib/stdio/putchar.c
Examining data/mes-0.22/lib/stdio/remove.c
Examining data/mes-0.22/lib/stdio/snprintf.c
Examining data/mes-0.22/lib/stdio/sprintf.c
Examining data/mes-0.22/lib/stdio/sscanf.c
Examining data/mes-0.22/lib/stdio/ungetc.c
Examining data/mes-0.22/lib/stdio/vfprintf.c
Examining data/mes-0.22/lib/stdio/vfscanf.c
Examining data/mes-0.22/lib/stdio/vprintf.c
Examining data/mes-0.22/lib/stdio/vsnprintf.c
Examining data/mes-0.22/lib/stdio/vsprintf.c
Examining data/mes-0.22/lib/stdio/vsscanf.c
Examining data/mes-0.22/lib/stdlib/__exit.c
Examining data/mes-0.22/lib/stdlib/abort.c
Examining data/mes-0.22/lib/stdlib/abs.c
Examining data/mes-0.22/lib/stdlib/alloca.c
Examining data/mes-0.22/lib/stdlib/atexit.c
Examining data/mes-0.22/lib/stdlib/atof.c
Examining data/mes-0.22/lib/stdlib/atoi.c
Examining data/mes-0.22/lib/stdlib/atol.c
Examining data/mes-0.22/lib/stdlib/calloc.c
Examining data/mes-0.22/lib/stdlib/exit.c
Examining data/mes-0.22/lib/stdlib/free.c
Examining data/mes-0.22/lib/stdlib/malloc.c
Examining data/mes-0.22/lib/stdlib/mbstowcs.c
Examining data/mes-0.22/lib/stdlib/puts.c
Examining data/mes-0.22/lib/stdlib/qsort.c
Examining data/mes-0.22/lib/stdlib/realloc.c
Examining data/mes-0.22/lib/stdlib/strtod.c
Examining data/mes-0.22/lib/stdlib/strtof.c
Examining data/mes-0.22/lib/stdlib/strtol.c
Examining data/mes-0.22/lib/stdlib/strtold.c
Examining data/mes-0.22/lib/stdlib/strtoll.c
Examining data/mes-0.22/lib/stdlib/strtoul.c
Examining data/mes-0.22/lib/stdlib/strtoull.c
Examining data/mes-0.22/lib/string/argz-count.c
Examining data/mes-0.22/lib/string/argz-extract.c
Examining data/mes-0.22/lib/string/bcmp.c
Examining data/mes-0.22/lib/string/bcopy.c
Examining data/mes-0.22/lib/string/bzero.c
Examining data/mes-0.22/lib/string/index.c
Examining data/mes-0.22/lib/string/memchr.c
Examining data/mes-0.22/lib/string/memcmp.c
Examining data/mes-0.22/lib/string/memcpy.c
Examining data/mes-0.22/lib/string/memmem.c
Examining data/mes-0.22/lib/string/memmove.c
Examining data/mes-0.22/lib/string/memset.c
Examining data/mes-0.22/lib/string/rindex.c
Examining data/mes-0.22/lib/string/strcat.c
Examining data/mes-0.22/lib/string/strchr.c
Examining data/mes-0.22/lib/string/strcmp.c
Examining data/mes-0.22/lib/string/strcpy.c
Examining data/mes-0.22/lib/string/strcspn.c
Examining data/mes-0.22/lib/string/strdup.c
Examining data/mes-0.22/lib/string/strerror.c
Examining data/mes-0.22/lib/string/strlen.c
Examining data/mes-0.22/lib/string/strlwr.c
Examining data/mes-0.22/lib/string/strncat.c
Examining data/mes-0.22/lib/string/strncmp.c
Examining data/mes-0.22/lib/string/strncpy.c
Examining data/mes-0.22/lib/string/strpbrk.c
Examining data/mes-0.22/lib/string/strrchr.c
Examining data/mes-0.22/lib/string/strspn.c
Examining data/mes-0.22/lib/string/strstr.c
Examining data/mes-0.22/lib/string/strupr.c
Examining data/mes-0.22/lib/stub/__cleanup.c
Examining data/mes-0.22/lib/stub/_getcwd.c
Examining data/mes-0.22/lib/stub/_open3.c
Examining data/mes-0.22/lib/stub/access.c
Examining data/mes-0.22/lib/stub/atan2.c
Examining data/mes-0.22/lib/stub/brk.c
Examining data/mes-0.22/lib/stub/bsearch.c
Examining data/mes-0.22/lib/stub/chmod.c
Examining data/mes-0.22/lib/stub/chown.c
Examining data/mes-0.22/lib/stub/clock_gettime.c
Examining data/mes-0.22/lib/stub/close.c
Examining data/mes-0.22/lib/stub/cos.c
Examining data/mes-0.22/lib/stub/ctime.c
Examining data/mes-0.22/lib/stub/dup.c
Examining data/mes-0.22/lib/stub/dup2.c
Examining data/mes-0.22/lib/stub/execve.c
Examining data/mes-0.22/lib/stub/exp.c
Examining data/mes-0.22/lib/stub/fork.c
Examining data/mes-0.22/lib/stub/fpurge.c
Examining data/mes-0.22/lib/stub/freadahead.c
Examining data/mes-0.22/lib/stub/frexp.c
Examining data/mes-0.22/lib/stub/getgrgid.c
Examining data/mes-0.22/lib/stub/getgrnam.c
Examining data/mes-0.22/lib/stub/getlogin.c
Examining data/mes-0.22/lib/stub/getpgid.c
Examining data/mes-0.22/lib/stub/getpgrp.c
Examining data/mes-0.22/lib/stub/getpwnam.c
Examining data/mes-0.22/lib/stub/getpwuid.c
Examining data/mes-0.22/lib/stub/gettimeofday.c
Examining data/mes-0.22/lib/stub/gmtime.c
Examining data/mes-0.22/lib/stub/ioctl.c
Examining data/mes-0.22/lib/stub/ldexp.c
Examining data/mes-0.22/lib/stub/localtime.c
Examining data/mes-0.22/lib/stub/log.c
Examining data/mes-0.22/lib/stub/lseek.c
Examining data/mes-0.22/lib/stub/mktime.c
Examining data/mes-0.22/lib/stub/modf.c
Examining data/mes-0.22/lib/stub/mprotect.c
Examining data/mes-0.22/lib/stub/pclose.c
Examining data/mes-0.22/lib/stub/popen.c
Examining data/mes-0.22/lib/stub/pow.c
Examining data/mes-0.22/lib/stub/rand.c
Examining data/mes-0.22/lib/stub/rewind.c
Examining data/mes-0.22/lib/stub/rmdir.c
Examining data/mes-0.22/lib/stub/setbuf.c
Examining data/mes-0.22/lib/stub/setgrent.c
Examining data/mes-0.22/lib/stub/setlocale.c
Examining data/mes-0.22/lib/stub/setvbuf.c
Examining data/mes-0.22/lib/stub/sigaction.c
Examining data/mes-0.22/lib/stub/sigaddset.c
Examining data/mes-0.22/lib/stub/sigblock.c
Examining data/mes-0.22/lib/stub/sigdelset.c
Examining data/mes-0.22/lib/stub/sigemptyset.c
Examining data/mes-0.22/lib/stub/sigsetmask.c
Examining data/mes-0.22/lib/stub/sin.c
Examining data/mes-0.22/lib/stub/sqrt.c
Examining data/mes-0.22/lib/stub/stat.c
Examining data/mes-0.22/lib/stub/strftime.c
Examining data/mes-0.22/lib/stub/sys_siglist.c
Examining data/mes-0.22/lib/stub/system.c
Examining data/mes-0.22/lib/stub/time.c
Examining data/mes-0.22/lib/stub/times.c
Examining data/mes-0.22/lib/stub/ttyname.c
Examining data/mes-0.22/lib/stub/umask.c
Examining data/mes-0.22/lib/stub/unlink.c
Examining data/mes-0.22/lib/stub/utime.c
Examining data/mes-0.22/lib/stub/waitpid.c
Examining data/mes-0.22/lib/tests/assert/50-assert.c
Examining data/mes-0.22/lib/tests/dirent/90-readdir.c
Examining data/mes-0.22/lib/tests/io/90-stat.c
Examining data/mes-0.22/lib/tests/mes/30-eputs.c
Examining data/mes-0.22/lib/tests/mes/30-oputs.c
Examining data/mes-0.22/lib/tests/mes/50-itoa.c
Examining data/mes-0.22/lib/tests/mes/90-abtod.c
Examining data/mes-0.22/lib/tests/mes/90-dtoab.c
Examining data/mes-0.22/lib/tests/posix/50-getenv.c
Examining data/mes-0.22/lib/tests/posix/50-open-read.c
Examining data/mes-0.22/lib/tests/posix/90-execlp.c
Examining data/mes-0.22/lib/tests/posix/90-unsetenv.c
Examining data/mes-0.22/lib/tests/scaffold/01-return-0.c
Examining data/mes-0.22/lib/tests/scaffold/02-return-1.c
Examining data/mes-0.22/lib/tests/scaffold/03-call.c
Examining data/mes-0.22/lib/tests/scaffold/04-call-0.c
Examining data/mes-0.22/lib/tests/scaffold/05-call-1.c
Examining data/mes-0.22/lib/tests/scaffold/06-call-2.c
Examining data/mes-0.22/lib/tests/scaffold/06-call-not-1.c
Examining data/mes-0.22/lib/tests/scaffold/06-call-string.c
Examining data/mes-0.22/lib/tests/scaffold/06-call-variable.c
Examining data/mes-0.22/lib/tests/scaffold/06-not-call-1.c
Examining data/mes-0.22/lib/tests/scaffold/06-return-void.c
Examining data/mes-0.22/lib/tests/scaffold/07-include.c
Examining data/mes-0.22/lib/tests/scaffold/08-assign-global.c
Examining data/mes-0.22/lib/tests/scaffold/08-assign-negative.c
Examining data/mes-0.22/lib/tests/scaffold/08-assign.c
Examining data/mes-0.22/lib/tests/scaffold/10-if-0.c
Examining data/mes-0.22/lib/tests/scaffold/11-if-1.c
Examining data/mes-0.22/lib/tests/scaffold/12-if-eq.c
Examining data/mes-0.22/lib/tests/scaffold/13-if-neq.c
Examining data/mes-0.22/lib/tests/scaffold/14-if-goto.c
Examining data/mes-0.22/lib/tests/scaffold/15-if-not-f.c
Examining data/mes-0.22/lib/tests/scaffold/16-if-t.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-and-or.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-and.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-assign.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-call.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-char.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-ge.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-gt.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-le.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-lt.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-or.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-unsigned-char-le.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-unsigned-ge.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-unsigned-gt.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-unsigned-le.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-unsigned-long-le.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-unsigned-lt.c
Examining data/mes-0.22/lib/tests/scaffold/17-compare-unsigned-short-le.c
Examining data/mes-0.22/lib/tests/scaffold/18-assign-shadow.c
Examining data/mes-0.22/lib/tests/scaffold/20-while.c
Examining data/mes-0.22/lib/tests/scaffold/21-char-array-simple.c
Examining data/mes-0.22/lib/tests/scaffold/21-char-array.c
Examining data/mes-0.22/lib/tests/scaffold/22-while-char-array.c
Examining data/mes-0.22/lib/tests/scaffold/23-global-pointer-init-null.c
Examining data/mes-0.22/lib/tests/scaffold/23-global-pointer-init.c
Examining data/mes-0.22/lib/tests/scaffold/23-global-pointer-pointer-ref.c
Examining data/mes-0.22/lib/tests/scaffold/23-global-pointer-ref.c
Examining data/mes-0.22/lib/tests/scaffold/23-pointer-sub.c
Examining data/mes-0.22/lib/tests/scaffold/23-pointer.c
Examining data/mes-0.22/lib/tests/scaffold/30-exit-0.c
Examining data/mes-0.22/lib/tests/scaffold/30-exit-42.c
Examining data/mes-0.22/lib/tests/scaffold/32-call-wrap.c
Examining data/mes-0.22/lib/tests/scaffold/32-compare.c
Examining data/mes-0.22/lib/tests/scaffold/33-and-or.c
Examining data/mes-0.22/lib/tests/scaffold/34-pre-post.c
Examining data/mes-0.22/lib/tests/scaffold/35-compare-char.c
Examining data/mes-0.22/lib/tests/scaffold/36-compare-arithmetic.c
Examining data/mes-0.22/lib/tests/scaffold/37-compare-assign.c
Examining data/mes-0.22/lib/tests/scaffold/38-compare-call-2.c
Examining data/mes-0.22/lib/tests/scaffold/38-compare-call-3.c
Examining data/mes-0.22/lib/tests/scaffold/38-compare-call.c
Examining data/mes-0.22/lib/tests/scaffold/40-if-else.c
Examining data/mes-0.22/lib/tests/scaffold/41-ternary.c
Examining data/mes-0.22/lib/tests/scaffold/42-goto-label.c
Examining data/mes-0.22/lib/tests/scaffold/43-for-do-while.c
Examining data/mes-0.22/lib/tests/scaffold/44-switch-body-fallthrough.c
Examining data/mes-0.22/lib/tests/scaffold/44-switch-fallthrough.c
Examining data/mes-0.22/lib/tests/scaffold/44-switch.c
Examining data/mes-0.22/lib/tests/scaffold/45-void-call.c
Examining data/mes-0.22/lib/tests/scaffold/46-function-static.c
Examining data/mes-0.22/lib/tests/scaffold/47-function-expression.c
Examining data/mes-0.22/lib/tests/scaffold/48-global-static.c
Examining data/mes-0.22/lib/tests/scaffold/51-pointer-sub.c
Examining data/mes-0.22/lib/tests/scaffold/54-argc.c
Examining data/mes-0.22/lib/tests/scaffold/54-argv.c
Examining data/mes-0.22/lib/tests/scaffold/55-char-array.c
Examining data/mes-0.22/lib/tests/scaffold/60-math.c
Examining data/mes-0.22/lib/tests/scaffold/61-array.c
Examining data/mes-0.22/lib/tests/scaffold/62-array.c
Examining data/mes-0.22/lib/tests/scaffold/63-struct-array-assign.c
Examining data/mes-0.22/lib/tests/scaffold/63-struct-array-compare.c
Examining data/mes-0.22/lib/tests/scaffold/63-struct-array.c
Examining data/mes-0.22/lib/tests/scaffold/63-struct-assign.c
Examining data/mes-0.22/lib/tests/scaffold/63-struct-cell.c
Examining data/mes-0.22/lib/tests/scaffold/63-struct-function.c
Examining data/mes-0.22/lib/tests/scaffold/63-struct-local.c
Examining data/mes-0.22/lib/tests/scaffold/63-struct-pointer.c
Examining data/mes-0.22/lib/tests/scaffold/63-struct.c
Examining data/mes-0.22/lib/tests/scaffold/64-make-cell.c
Examining data/mes-0.22/lib/tests/scaffold/65-read.c
Examining data/mes-0.22/lib/tests/scaffold/66-local-char-array.c
Examining data/mes-0.22/lib/tests/scaffold/70-array-in-struct-init.c
Examining data/mes-0.22/lib/tests/scaffold/70-extern.c
Examining data/mes-0.22/lib/tests/scaffold/70-function-destruct-declare.c
Examining data/mes-0.22/lib/tests/scaffold/70-stdarg.c
Examining data/mes-0.22/lib/tests/scaffold/70-struct-post.c
Examining data/mes-0.22/lib/tests/scaffold/70-struct-short-enum-init.c
Examining data/mes-0.22/lib/tests/scaffold/71-struct-array.c
Examining data/mes-0.22/lib/tests/scaffold/72-typedef-struct-def-local.c
Examining data/mes-0.22/lib/tests/scaffold/72-typedef-struct-def.c
Examining data/mes-0.22/lib/tests/scaffold/73-union-hello.c
Examining data/mes-0.22/lib/tests/scaffold/73-union.c
Examining data/mes-0.22/lib/tests/scaffold/74-multi-line-string.c
Examining data/mes-0.22/lib/tests/scaffold/75-struct-union.c
Examining data/mes-0.22/lib/tests/scaffold/76-pointer-arithmetic-pp.c
Examining data/mes-0.22/lib/tests/scaffold/76-pointer-arithmetic.c
Examining data/mes-0.22/lib/tests/scaffold/77-pointer-assign.c
Examining data/mes-0.22/lib/tests/scaffold/78-union-struct.c
Examining data/mes-0.22/lib/tests/scaffold/79-int-array-simple.c
Examining data/mes-0.22/lib/tests/scaffold/79-int-array.c
Examining data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c
Examining data/mes-0.22/lib/tests/scaffold/7b-struct-int-array-hello.c
Examining data/mes-0.22/lib/tests/scaffold/7b-struct-int-array-pointer.c
Examining data/mes-0.22/lib/tests/scaffold/7b-struct-int-array.c
Examining data/mes-0.22/lib/tests/scaffold/7c-dynarray.c
Examining data/mes-0.22/lib/tests/scaffold/7d-cast-char.c
Examining data/mes-0.22/lib/tests/scaffold/7e-struct-array-access.c
Examining data/mes-0.22/lib/tests/scaffold/7f-struct-pointer-arithmetic.c
Examining data/mes-0.22/lib/tests/scaffold/7g-struct-byte-word-field.c
Examining data/mes-0.22/lib/tests/scaffold/7h-struct-assign.c
Examining data/mes-0.22/lib/tests/scaffold/7i-struct-struct-simple.c
Examining data/mes-0.22/lib/tests/scaffold/7i-struct-struct.c
Examining data/mes-0.22/lib/tests/scaffold/7k-empty-for.c
Examining data/mes-0.22/lib/tests/scaffold/7k-for-each-elem-simple.c
Examining data/mes-0.22/lib/tests/scaffold/7k-for-each-elem.c
Examining data/mes-0.22/lib/tests/scaffold/7l-struct-any-size-array-simple.c
Examining data/mes-0.22/lib/tests/scaffold/7l-struct-any-size-array.c
Examining data/mes-0.22/lib/tests/scaffold/7m-struct-char-array-assign.c
Examining data/mes-0.22/lib/tests/scaffold/7n-struct-struct-array.c
Examining data/mes-0.22/lib/tests/scaffold/7o-struct-pre-post-simple.c
Examining data/mes-0.22/lib/tests/scaffold/7o-struct-pre-post.c
Examining data/mes-0.22/lib/tests/scaffold/7p-struct-cast.c
Examining data/mes-0.22/lib/tests/scaffold/7q-bit-field-simple.c
Examining data/mes-0.22/lib/tests/scaffold/7q-bit-field.c
Examining data/mes-0.22/lib/tests/scaffold/7r-sign-extend.c
Examining data/mes-0.22/lib/tests/scaffold/7s-struct-short.c
Examining data/mes-0.22/lib/tests/scaffold/7s-unsigned-compare.c
Examining data/mes-0.22/lib/tests/scaffold/7t-function-destruct.c
Examining data/mes-0.22/lib/tests/scaffold/7u-call-ternary.c
Examining data/mes-0.22/lib/tests/scaffold/7u-double.c
Examining data/mes-0.22/lib/tests/scaffold/7u-inc-byte-word.c
Examining data/mes-0.22/lib/tests/scaffold/7u-long-long.c
Examining data/mes-0.22/lib/tests/scaffold/7u-struct-func.c
Examining data/mes-0.22/lib/tests/scaffold/7u-struct-size10.c
Examining data/mes-0.22/lib/tests/scaffold/7u-ternary-expression.c
Examining data/mes-0.22/lib/tests/scaffold/7u-vstack.c
Examining data/mes-0.22/lib/tests/scaffold/82-define.c
Examining data/mes-0.22/lib/tests/scaffold/83-heterogenoous-init.c
Examining data/mes-0.22/lib/tests/scaffold/84-struct-field-list.c
Examining data/mes-0.22/lib/tests/scaffold/85-sizeof.c
Examining data/mes-0.22/lib/tests/scaffold/90-goto-var.c
Examining data/mes-0.22/lib/tests/scaffold/91-goto-array.c
Examining data/mes-0.22/lib/tests/scaffold/a0-call-trunc-char.c
Examining data/mes-0.22/lib/tests/scaffold/a0-call-trunc-int.c
Examining data/mes-0.22/lib/tests/scaffold/a0-call-trunc-short.c
Examining data/mes-0.22/lib/tests/scaffold/a0-math-divide-signed-negative.c
Examining data/mes-0.22/lib/tests/scaffold/a1-global-no-align.c
Examining data/mes-0.22/lib/tests/scaffold/a1-global-no-clobber.c
Examining data/mes-0.22/lib/tests/scaffold/t.c
Examining data/mes-0.22/lib/tests/setjmp/80-setjmp.c
Examining data/mes-0.22/lib/tests/signal/90-signal.c
Examining data/mes-0.22/lib/tests/stdio/70-printf-hello.c
Examining data/mes-0.22/lib/tests/stdio/70-printf-simple.c
Examining data/mes-0.22/lib/tests/stdio/70-printf.c
Examining data/mes-0.22/lib/tests/stdio/80-sscanf.c
Examining data/mes-0.22/lib/tests/stdio/90-fopen-append.c
Examining data/mes-0.22/lib/tests/stdio/90-fopen.c
Examining data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c
Examining data/mes-0.22/lib/tests/stdio/90-fseek.c
Examining data/mes-0.22/lib/tests/stdio/90-sprintf.c
Examining data/mes-0.22/lib/tests/stdlib/50-malloc.c
Examining data/mes-0.22/lib/tests/stdlib/70-strtoull.c
Examining data/mes-0.22/lib/tests/stdlib/80-qsort-dupes.c
Examining data/mes-0.22/lib/tests/stdlib/80-qsort.c
Examining data/mes-0.22/lib/tests/stdlib/90-strtol.c
Examining data/mes-0.22/lib/tests/string/30-strlen.c
Examining data/mes-0.22/lib/tests/string/50-strcmp.c
Examining data/mes-0.22/lib/tests/string/50-strcpy.c
Examining data/mes-0.22/lib/tests/string/50-strncmp.c
Examining data/mes-0.22/lib/tests/string/70-strchr.c
Examining data/mes-0.22/lib/tests/string/80-strncpy.c
Examining data/mes-0.22/lib/tests/string/80-strrchr.c
Examining data/mes-0.22/lib/tests/string/90-snprintf.c
Examining data/mes-0.22/lib/tests/string/90-strpbrk.c
Examining data/mes-0.22/lib/tests/string/90-strspn.c
Examining data/mes-0.22/lib/x86-mes-gcc/setjmp.c
Examining data/mes-0.22/lib/x86-mes-mescc/exit-42.c
Examining data/mes-0.22/lib/x86-mes-mescc/setjmp.c
Examining data/mes-0.22/lib/x86_64-mes-gcc/setjmp.c
Examining data/mes-0.22/lib/x86_64-mes-mescc/exit-42.c
Examining data/mes-0.22/lib/x86_64-mes-mescc/setjmp.c
Examining data/mes-0.22/scaffold/argv.c
Examining data/mes-0.22/scaffold/cons-mes.c
Examining data/mes-0.22/scaffold/hello.c
Examining data/mes-0.22/scaffold/lib/stdlib/malloc.c
Examining data/mes-0.22/scaffold/main.c
Examining data/mes-0.22/scaffold/micro-mes.c
Examining data/mes-0.22/scaffold/read.c
Examining data/mes-0.22/scaffold/tiny-mes.c
Examining data/mes-0.22/src/gc.c
Examining data/mes-0.22/src/hash.c
Examining data/mes-0.22/src/lib.c
Examining data/mes-0.22/src/math.c
Examining data/mes-0.22/src/mes.c
Examining data/mes-0.22/src/module.c
Examining data/mes-0.22/src/posix.c
Examining data/mes-0.22/src/reader.c
Examining data/mes-0.22/src/struct.c
Examining data/mes-0.22/src/vector.c
Examining data/mes-0.22/src/string.c

FINAL RESULTS:

data/mes-0.22/include/sys/stat.h:85:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
int chmod (char const *file_name, mode_t mode);
data/mes-0.22/include/sys/stat.h:89:5:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
int chown (char const *file_name, uid_t owner, gid_t group);
data/mes-0.22/include/unistd.h:85: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.
ssize_t readlink (char const *file_name, char *buffer, size_t size);
data/mes-0.22/lib/linux/chmod.c:26:1:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
chmod (char const *file_name, mode_t mask)
data/mes-0.22/lib/linux/readlink.c:26: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 (char const *file_name, char *buffer, size_t size)
data/mes-0.22/lib/stub/chmod.c:26:1:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
chmod (char const *file_name, mode_t mask)
data/mes-0.22/lib/stub/chown.c:26:1:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
chown (char const *file_name, uid_t owner, gid_t group)
data/mes-0.22/src/posix.c:256:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  chmod (CSTRING (file_name), VALUE (mode));
data/mes-0.22/include/stdarg.h:46: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.
int vfprintf (FILE * stream, char const *template, va_list ap);
data/mes-0.22/include/stdarg.h:47:5:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
int vfscanf (FILE * stream, char const *template, va_list ap);
data/mes-0.22/include/stdarg.h:48:5:  [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.
int vprintf (char const *format, va_list ap);
data/mes-0.22/include/stdarg.h:49:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
int vsprintf (char *str, char const *format, va_list ap);
data/mes-0.22/include/stdarg.h:50:5:  [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.
int vsnprintf (char *str, size_t size, char const *format, va_list ap);
data/mes-0.22/include/stdarg.h:51:5:  [4] (buffer) vsscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
int vsscanf (char const *s, char const *template, va_list ap);
data/mes-0.22/include/stdio.h:68:5:  [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.
int fprintf (FILE * stream, char const *format, ...);
data/mes-0.22/include/stdio.h:72:5:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
int fscanf (FILE * stream, char const *template, ...);
data/mes-0.22/include/stdio.h:76:7:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
char *getlogin (void);
data/mes-0.22/include/stdio.h:77:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int printf (char const *format, ...);
data/mes-0.22/include/stdio.h:83:5:  [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.
int snprintf (char *str, size_t size, char const *format, ...);
data/mes-0.22/include/stdio.h:84:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
int sprintf (char *str, char const *format, ...);
data/mes-0.22/include/stdio.h:85:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
int sscanf (char const *str, char const *format, ...);
data/mes-0.22/include/string.h:41:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
char *strcat (char *dest, char const *src);
data/mes-0.22/include/string.h:45: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).
char *strcpy (char *dest, char const *src);
data/mes-0.22/include/unistd.h:60:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
int access (char const *s, int mode);
data/mes-0.22/include/unistd.h:63:5:  [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.
int execv (char const *file_name, char *const argv[]);
data/mes-0.22/include/unistd.h:64:5:  [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.
int execl (char const *file_name, char const *arg, ...);
data/mes-0.22/include/unistd.h:65:5:  [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.
int execlp (char const *file_name, char const *arg, ...);
data/mes-0.22/include/unistd.h:67:5:  [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.
int execvp (char const *file, char *const argv[]);
data/mes-0.22/lib/gnu/dir-lookup.c:63: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 (message.request.one, file_name);
data/mes-0.22/lib/linux/access.c:25:1:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
access (char const *file_name, int how)
data/mes-0.22/lib/mes/dtoab.c:31: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 (dtoa_buf, p);
data/mes-0.22/lib/mes/dtoab.c:39:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat (dtoa_buf, p);
data/mes-0.22/lib/mes/search-path.c:52:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat (buf, file_name);
data/mes-0.22/lib/mes/search-path.c:53: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.
      if (!access (buf, X_OK))
data/mes-0.22/lib/posix/execl.c:47:11:  [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.
  int r = execv (file_name, argv);
data/mes-0.22/lib/posix/execl.c:53:1:  [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.
execl (char const *file_name, char const *arg, ...)
data/mes-0.22/lib/posix/execlp.c:27:1:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
execlp (char const *file_name, char const *arg, ...)
data/mes-0.22/lib/posix/execv.c:25:1:  [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 (char const *file_name, char *const argv[])
data/mes-0.22/lib/posix/execvp.c:27:1:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
execvp (char const *file_name, char *const argv[])
data/mes-0.22/lib/posix/mktemp.c:25:1:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
mktemp (char *template)
data/mes-0.22/lib/posix/setenv.c:39: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 (entry, s);
data/mes-0.22/lib/posix/setenv.c:41: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 (entry + length + 1, v);
data/mes-0.22/lib/stdio/fopen.c:43:60:  [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 ((opentype[0] == 'a' || !strcmp (opentype, "r+")) && !access (file_name, O_RDONLY))
data/mes-0.22/lib/stdio/fprintf.c:26: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 * stream, char const *format, ...)
data/mes-0.22/lib/stdio/fprintf.c:30:11:  [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.
  int r = vfprintf (stream, format, ap);
data/mes-0.22/lib/stdio/fscanf.c:26:1:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
fscanf (FILE * stream, char const *template, ...)
data/mes-0.22/lib/stdio/fscanf.c:30: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. If the scanf format is influenceable by an
  attacker, it's exploitable.
  int r = vfscanf (stream, template, ap);
data/mes-0.22/lib/stdio/printf.c:26: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 (char const *format, ...)
data/mes-0.22/lib/stdio/printf.c:36:7:  [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.
  r = vprintf (format, ap);
data/mes-0.22/lib/stdio/snprintf.c:26: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, char const *format, ...)
data/mes-0.22/lib/stdio/snprintf.c:36:7:  [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.
  r = vsnprintf (str, size, format, ap);
data/mes-0.22/lib/stdio/sprintf.c:26:1:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
sprintf (char *str, char const *format, ...)
data/mes-0.22/lib/stdio/sprintf.c:36:7:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  r = vsprintf (str, format, ap);
data/mes-0.22/lib/stdio/sscanf.c:26:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
sscanf (char const *str, char const *template, ...)
data/mes-0.22/lib/stdio/sscanf.c:30:11:  [4] (buffer) vsscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  int r = vsscanf (str, template, ap);
data/mes-0.22/lib/stdio/vfprintf.c:27: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 * f, char const *format, va_list ap)
data/mes-0.22/lib/stdio/vfscanf.c:27:1:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
vfscanf (FILE * stream, char const *template, va_list ap)
data/mes-0.22/lib/stdio/vprintf.c:26:1:  [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.
vprintf (char const *format, va_list ap)
data/mes-0.22/lib/stdio/vprintf.c:28: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.
  return vfprintf (stdout, format, ap);
data/mes-0.22/lib/stdio/vsnprintf.c:27: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, char const *format, va_list ap)
data/mes-0.22/lib/stdio/vsprintf.c:25:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf (char *str, char const *format, va_list ap)
data/mes-0.22/lib/stdio/vsprintf.c:27:10:  [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.
  return vsnprintf (str, LONG_MAX, format, ap);
data/mes-0.22/lib/stdio/vsscanf.c:29:1:  [4] (buffer) vsscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
vsscanf (char const *s, char const *template, va_list ap)
data/mes-0.22/lib/stdlib/mbstowcs.c:33: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 (wstring, string);
data/mes-0.22/lib/string/strcat.c:24:1:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
strcat (char *to, char const *from)
data/mes-0.22/lib/string/strcpy.c:24:1:  [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 (char *dest, char const *src)
data/mes-0.22/lib/stub/access.c:27:1:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
access (char const *file_name, int how)
data/mes-0.22/lib/stub/getlogin.c:26:1:  [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.
getlogin (void)
data/mes-0.22/lib/stub/popen.c:25:1:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
popen (int x)
data/mes-0.22/lib/stub/system.c:25:1:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
system (int x)
data/mes-0.22/lib/tests/posix/50-open-read.c:39: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 (file_name, srcdir);
data/mes-0.22/lib/tests/posix/90-execlp.c:26:3:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  execlp ("echo", "echo", "Hello", "World!", 0);
data/mes-0.22/lib/tests/scaffold/7c-dynarray.c:86: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 (file->name, file_name);
data/mes-0.22/lib/tests/scaffold/7c-dynarray.c:146: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 (file->name, file_name);
data/mes-0.22/lib/tests/stdio/70-printf-hello.c:40:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, "s=%s\n", s);
data/mes-0.22/lib/tests/stdio/70-printf-simple.c:49:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, "s=%s\n", s);
data/mes-0.22/lib/tests/stdio/70-printf.c:48:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, "s=%s\n", s);
data/mes-0.22/lib/tests/stdio/70-printf.c:127:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, ">>%*s<<\n", 10, "bar");
data/mes-0.22/lib/tests/stdio/70-printf.c:133:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, ">>%-*s<<\n", 10, "baz");
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:55: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 (header_plus_data, header);
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:56:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat (header_plus_data, data);
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:68: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 (temp, R_OK))
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:73:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (!access (temp, R_OK))
data/mes-0.22/src/mes.c:1752: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 (file_name + strlen (file_name), boot);
data/mes-0.22/src/mes.c:1779: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 (boot, getenv ("MES_BOOT"));
data/mes-0.22/src/mes.c:1784: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 (g_datadir, getenv ("MES_PREFIX"));
data/mes-0.22/src/mes.c:1786: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 (file_name, g_datadir);
data/mes-0.22/src/mes.c:1791: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 (g_datadir, getenv ("MES_PREFIX"));
data/mes-0.22/src/mes.c:1793: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 (file_name, g_datadir);
data/mes-0.22/src/mes.c:1802: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 (g_datadir, getenv ("srcdest"));
data/mes-0.22/src/mes.c:1804: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 (file_name, g_datadir);
data/mes-0.22/src/posix.c:166:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (buf, CSTRING (s));
data/mes-0.22/src/posix.c:174: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.
  return access (CSTRING (file_name), VALUE (mode)) == 0 ? cell_t : cell_f;
data/mes-0.22/src/posix.c:297:23:  [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.
  return MAKE_NUMBER (execv (c_argv[0], c_argv));
data/mes-0.22/include/getopt.h:29:16:  [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.
#include_next <getopt.h>
data/mes-0.22/include/getopt.h:54:5:  [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.
int getopt (int argc, char *const *argv, char const *options);
data/mes-0.22/include/getopt.h:55:5:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt_long (int argc, char *const *argv, char const *options,
data/mes-0.22/include/stdlib.h:47: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.
char *getenv (char const *s);
data/mes-0.22/lib/mes/__buffered_read.c:49:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *p = getenv ("MES_READ_BUFFER");
data/mes-0.22/lib/mes/__mes_debug.c:32:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *p = getenv ("MES_DEBUG");
data/mes-0.22/lib/mes/search-path.c:30: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.
  char *path = getenv ("PATH");
data/mes-0.22/lib/posix/getenv.c:26:1:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
getenv (char const *s)
data/mes-0.22/lib/posix/getopt.c:351:1:  [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 (int argc, char *const *argv, char const *options)
data/mes-0.22/lib/posix/getopt.c:357: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 *const *argv, char const *options,
data/mes-0.22/lib/tests/posix/50-getenv.c:28: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 ("PATH") == 0)
data/mes-0.22/lib/tests/posix/50-open-read.c:33: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.
  char *srcdir = getenv ("abs_top_srcdir");
data/mes-0.22/lib/tests/posix/90-unsetenv.c:33: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.
  if (strcmp (getenv ("FOO"), "BAR"))
data/mes-0.22/lib/tests/posix/90-unsetenv.c:37: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 ("FOO"))
data/mes-0.22/lib/tests/scaffold/61-array.c:30:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define getenv xgetenv
data/mes-0.22/lib/tests/scaffold/61-array.c:33:1:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
getenv (char const *s)
data/mes-0.22/lib/tests/scaffold/61-array.c:132:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (!getenv ("PATH"))
data/mes-0.22/lib/tests/scaffold/61-array.c:140:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (strcmp (getenv ("61-array"), "yes"))
data/mes-0.22/scaffold/micro-mes.c:60: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.
  g_debug = (int) getenv ("MES_DEBUG");
data/mes-0.22/src/gc.c:58:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (p = getenv ("MES_MAX_ARENA"))
data/mes-0.22/src/gc.c:60:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (p = getenv ("MES_ARENA"))
data/mes-0.22/src/gc.c:63:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (p = getenv ("MES_JAM"))
data/mes-0.22/src/gc.c:66:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (p = getenv ("MES_SAFETY"))
data/mes-0.22/src/gc.c:68:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (p = getenv ("MES_STACK"))
data/mes-0.22/src/gc.c:70:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (p = getenv ("MES_MAX_STRING"))
data/mes-0.22/src/mes.c:1778: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 ("MES_BOOT"))
data/mes-0.22/src/mes.c:1779: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.
    strcpy (boot, getenv ("MES_BOOT"));
data/mes-0.22/src/mes.c:1782: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 ("MES_PREFIX"))
data/mes-0.22/src/mes.c:1784:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      strcpy (g_datadir, getenv ("MES_PREFIX"));
data/mes-0.22/src/mes.c:1791: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.
          strcpy (g_datadir, getenv ("MES_PREFIX"));
data/mes-0.22/src/mes.c:1801:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if (getenv ("srcdest"))
data/mes-0.22/src/mes.c:1802: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.
        strcpy (g_datadir, getenv ("srcdest"));
data/mes-0.22/src/mes.c:1834:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (p = getenv ("MES_DEBUG"))
data/mes-0.22/src/posix.c:158: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.
  p = getenv (CSTRING (s));
data/mes-0.22/include/ar.h:46:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ar_name[16];             /* Member file name, sometimes / terminated. */
data/mes-0.22/include/ar.h:47: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 ar_date[12];             /* File date, decimal seconds since Epoch.  */
data/mes-0.22/include/ar.h:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ar_uid[6], ar_gid[6];    /* User and group IDs, in ASCII decimal.  */
data/mes-0.22/include/ar.h:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ar_mode[8];              /* File mode, in ASCII octal.  */
data/mes-0.22/include/ar.h: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 ar_size[10];             /* File size, in ASCII decimal.  */
data/mes-0.22/include/ar.h:51: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 ar_fmag[2];              /* Always contains ARFMAG.  */
data/mes-0.22/include/dirent.h:54:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char d_name[256];             /* We must not include limits.h! */
data/mes-0.22/include/fcntl.h:62:32:  [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 creat(file_name, mode) open (file_name, O_WRONLY | O_CREAT | O_TRUNC, mode)
data/mes-0.22/include/fcntl.h:66:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int open (char const *s, int flags, ...);
data/mes-0.22/include/gnu/hurd-types.h:65: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 string_t [1024];
data/mes-0.22/include/gnu/hurd.h:77:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *__argv[_HURD_ARGV_MAX];
data/mes-0.22/include/gnu/hurd.h:78:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *__envv[_HURD_ENVV_MAX];
data/mes-0.22/include/stdio.h:59:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
FILE *fopen (char const *file_name, char const *mode);
data/mes-0.22/include/stdlib.h:41:5:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
int atoi (char const *s);
data/mes-0.22/include/string.h:35: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.
void *memcpy (void *dest, void const *src, size_t n);
data/mes-0.22/include/sys/user.h:96: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                       u_comm [32];
data/mes-0.22/include/termio.h:67:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char c_cc[8];
data/mes-0.22/lib/dirent/opendir.c:56: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 (name, O_RDONLY | O_DIRECTORY);
data/mes-0.22/lib/gnu/_open3.c:37:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char retry_name[1024];
data/mes-0.22/lib/gnu/fd-read.c:38: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 (buffer, data, *read);
data/mes-0.22/lib/gnu/hurd-start.c:41:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *__argv[_HURD_ARGV_MAX];
data/mes-0.22/lib/gnu/hurd-start.c:42:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *__envv[_HURD_ENVV_MAX];
data/mes-0.22/lib/gnu/io-read.c:27:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  mach_msg_type_long_t type_two; union {char *two; char pointer[2048];};
data/mes-0.22/lib/mes/__buffered_read.c:36: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 string[__READ_BUFFER_MAX];
data/mes-0.22/lib/mes/__buffered_read.c:52:31:  [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).
          __read_buffer_max = atoi (p);
data/mes-0.22/lib/mes/__mes_debug.c:33:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      __mes_debug = p ? MAX (atoi (p), 1) : 0;
data/mes-0.22/lib/mes/dtoab.c:28: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 dtoa_buf[40];
data/mes-0.22/lib/mes/mes_open.c:36:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int filedes = open (file_name, flags, mask);
data/mes-0.22/lib/mes/ntoab.c:27: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 itoa_buf[20];
data/mes-0.22/lib/mes/search-path.c:29: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[256];
data/mes-0.22/lib/posix/execl.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 *argv[1000];             // POSIX minimum 4096
data/mes-0.22/lib/posix/getcwd.c:29: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[PATH_MAX];
data/mes-0.22/lib/posix/isatty.c:72: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 (&termios_p->c_cc[0], &kernel_termios.c_cc[0], NCCS * sizeof (cc_t));
data/mes-0.22/lib/posix/open.c:33: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 (char const *file_name, int flags, ...)
data/mes-0.22/lib/stdio/fopen.c:30:1:  [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).
fopen (char const *file_name, char const *opentype)
data/mes-0.22/lib/stdio/fread.c:56: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 debug_buf[4096];
data/mes-0.22/lib/stdio/freopen.c:27:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return fopen (file_name, opentype);
data/mes-0.22/lib/stdio/vfscanf.c:64: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 buf[20];
data/mes-0.22/lib/stdio/vfscanf.c:90: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 buf[20];
data/mes-0.22/lib/stdlib/alloca.c:36:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char align[ALIGN_SIZE];       /* To force sizeof(union alloca_header).  */
data/mes-0.22/lib/stdlib/atoi.c:24:1:  [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 (char const *string)
data/mes-0.22/lib/stdlib/atol.c:24:1:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
atol (char const *s)
data/mes-0.22/lib/stdlib/atol.c:26:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atoi (s);
data/mes-0.22/lib/stdlib/qsort.c:27:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf[8];
data/mes-0.22/lib/stdlib/qsort.c:28: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, a, size);
data/mes-0.22/lib/stdlib/qsort.c:29: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 (a, b, size);
data/mes-0.22/lib/stdlib/qsort.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 (b, buf, size);
data/mes-0.22/lib/stdlib/realloc.c:30:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (new, ptr, size);
data/mes-0.22/lib/string/bcopy.c:24:1:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
bcopy (void const *src, void *dest, size_t n)
data/mes-0.22/lib/string/memcpy.c:25:1:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
memcpy (void *dest, void const *src, size_t n)
data/mes-0.22/lib/string/memmove.c:27:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return memcpy (dest, src, n);
data/mes-0.22/lib/string/strdup.c:30:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return memcpy (p, s, length);
data/mes-0.22/lib/stub/getgrgid.c:31: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 *groups[2] = { "root", 0 };
data/mes-0.22/lib/stub/getgrnam.c:31: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 *groups[2] = { "root", 0 };
data/mes-0.22/lib/tests/io/90-stat.c:71:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open ("../COPYING", 0);
data/mes-0.22/lib/tests/posix/50-open-read.c:32:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char file_name[PATH_MAX];
data/mes-0.22/lib/tests/posix/50-open-read.c:40:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (file_name + strlen (srcdir), "/lib/tests/posix/data/open-read");
data/mes-0.22/lib/tests/posix/50-open-read.c:44:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int filedes = open (file_name, O_RDONLY, 0);
data/mes-0.22/lib/tests/posix/50-open-read.c:47: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[20];
data/mes-0.22/lib/tests/scaffold/23-pointer.c:22:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char g_arena[4] = "XXX";
data/mes-0.22/lib/tests/scaffold/35-compare-char.c:23:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char g_arena[10];
data/mes-0.22/lib/tests/scaffold/62-array.c:26:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *foo_bar_baz[3] = {
data/mes-0.22/lib/tests/scaffold/62-array.c:30:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char foo_bar_baz_haha[3][4] = {
data/mes-0.22/lib/tests/scaffold/62-array.c:38:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *foo_bar_baz_mwhuhahaha[3] = {
data/mes-0.22/lib/tests/scaffold/63-struct-array-assign.c:31:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char g_arena[24];
data/mes-0.22/lib/tests/scaffold/63-struct-array-compare.c:31:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char g_arena[24];
data/mes-0.22/lib/tests/scaffold/63-struct-array.c:31:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char g_arena[12];
data/mes-0.22/lib/tests/scaffold/63-struct-cell.c:47:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char g_arena[84];
data/mes-0.22/lib/tests/scaffold/64-make-cell.c:35:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char g_arena[84];
data/mes-0.22/lib/tests/scaffold/65-read.c:34:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char g_arena[84];
data/mes-0.22/lib/tests/scaffold/66-local-char-array.c:49:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char little_endian_table[16] =
data/mes-0.22/lib/tests/scaffold/66-local-char-array.c:55: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 table[16] =
data/mes-0.22/lib/tests/scaffold/66-local-char-array.c:90: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 table[3] = { '0', '1', '2' };
data/mes-0.22/lib/tests/scaffold/70-extern.c:23:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char foo[3] = "foo";
data/mes-0.22/lib/tests/scaffold/70-extern.c:25:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char bar[4] = "bar";
data/mes-0.22/lib/tests/scaffold/70-stdarg.c:100: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[20];
data/mes-0.22/lib/tests/scaffold/71-struct-array.c:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[10];
data/mes-0.22/lib/tests/scaffold/71-struct-array.c:78:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (f.name, "hallo\n");
data/mes-0.22/lib/tests/scaffold/71-struct-array.c:82:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (fu.name, "hello\n");
data/mes-0.22/lib/tests/scaffold/71-struct-array.c:85:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (g_foo.name, "hey\n");
data/mes-0.22/lib/tests/scaffold/71-struct-array.c:88: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[10];
data/mes-0.22/lib/tests/scaffold/71-struct-array.c:90:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (s->name, "hi\n");
data/mes-0.22/lib/tests/scaffold/76-pointer-arithmetic.c:24:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *list[2] = { "foo\n", "bar\n" };
data/mes-0.22/lib/tests/scaffold/79-int-array.c:58: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 (&b[2], g_c, 2 * sizeof (int));
data/mes-0.22/lib/tests/scaffold/79-int-array.c:79: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 (&b[4], c, 2 * sizeof (int));
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:27:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1];
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:47:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (file.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:57:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (file.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:59: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 (pfile->buffer + 1, " ", 1);
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:68:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (file.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:79:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (file.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:88:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (file.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:99:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (xfile.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:109:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (xfile.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:111: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 (pxfile->buffer + 5, " ", 1);
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:120:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (xfile.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:131:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (xfile.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:140:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (xfile.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:153:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (file.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:155: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 (ps + 1, "  ", 2);
data/mes-0.22/lib/tests/scaffold/7a-struct-char-array.c:166:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (file.buffer, "0123456789\n");
data/mes-0.22/lib/tests/scaffold/7c-dynarray.c:52:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[4];
data/mes-0.22/lib/tests/scaffold/7c-dynarray.c:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[4];
data/mes-0.22/lib/tests/scaffold/7d-cast-char.c:30:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  int i = ((unsigned char *) s)[0];
data/mes-0.22/lib/tests/scaffold/7d-cast-char.c:37:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  i = ((unsigned char *) s)[1];
data/mes-0.22/lib/tests/scaffold/7e-struct-array-access.c:30: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 str[10];
data/mes-0.22/lib/tests/scaffold/7e-struct-array-access.c:42:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (s0.str, "foo");
data/mes-0.22/lib/tests/scaffold/7e-struct-array-access.c:43:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (s1.str, "bar");
data/mes-0.22/lib/tests/scaffold/7e-struct-array-access.c:64:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (p0->str, "pfoo");
data/mes-0.22/lib/tests/scaffold/7e-struct-array-access.c:65:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (p1->str, "pbar");
data/mes-0.22/lib/tests/scaffold/7m-struct-char-array-assign.c:26:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[20];
data/mes-0.22/lib/tests/scaffold/7n-struct-struct-array.c:30:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[10];
data/mes-0.22/lib/tests/scaffold/7n-struct-struct-array.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[100];
data/mes-0.22/lib/tests/scaffold/7n-struct-struct-array.c:40: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[100];
data/mes-0.22/lib/tests/scaffold/7n-struct-struct-array.c:64:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (f.name, "first.h");
data/mes-0.22/lib/tests/scaffold/7n-struct-struct-array.c:98:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (f2.name, "second.h");
data/mes-0.22/lib/tests/scaffold/7r-sign-extend.c:64: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 a[2] = { -1, -129 };
data/mes-0.22/lib/tests/scaffold/7u-struct-size10.c:33:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char g_arena[40] = { 0 };
data/mes-0.22/lib/tests/scaffold/84-struct-field-list.c:48: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 (&b, &f, sizeof (struct foo));
data/mes-0.22/lib/tests/scaffold/85-sizeof.c:24:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[16];
data/mes-0.22/lib/tests/scaffold/t.c:24:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char global_arena[10];
data/mes-0.22/lib/tests/scaffold/t.c:28:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char global_array[8] = "XXX";
data/mes-0.22/lib/tests/scaffold/t.c:34:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *list[2] = { "foo\n", "bar\n" };
data/mes-0.22/lib/tests/scaffold/t.c:205: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[sizeof (g_f.string)];
data/mes-0.22/lib/tests/scaffold/t.c:206: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[sizeof (g_g->string)];
data/mes-0.22/lib/tests/stdio/70-printf-hello.c:32:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[20];
data/mes-0.22/lib/tests/stdio/70-printf-hello.c:35: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, "i=%d\n", i);
data/mes-0.22/lib/tests/stdio/70-printf-simple.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[20];
data/mes-0.22/lib/tests/stdio/70-printf-simple.c:36: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, "c=%c\n", c);
data/mes-0.22/lib/tests/stdio/70-printf-simple.c:44: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, "i=%d\n", i);
data/mes-0.22/lib/tests/stdio/70-printf-simple.c:53:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%u", -1);
data/mes-0.22/lib/tests/stdio/70-printf-simple.c:66: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, ">>%o<<\n", 12);
data/mes-0.22/lib/tests/stdio/70-printf-simple.c:72: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, ">>%x<<\n", 12);
data/mes-0.22/lib/tests/stdio/70-printf-simple.c:78: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, ">>%X<<\n", 12);
data/mes-0.22/lib/tests/stdio/70-printf.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[20];
data/mes-0.22/lib/tests/stdio/70-printf.c:36: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, "c=%c\n", c);
data/mes-0.22/lib/tests/stdio/70-printf.c:43: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, "i=%d\n", i);
data/mes-0.22/lib/tests/stdio/70-printf.c:52:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, ">%3d<", 11);
data/mes-0.22/lib/tests/stdio/70-printf.c:58: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, ">%03d<", 22);
data/mes-0.22/lib/tests/stdio/70-printf.c:64: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, ">%-10d<", 33);
data/mes-0.22/lib/tests/stdio/70-printf.c:70: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, ">%0d<", 44);
data/mes-0.22/lib/tests/stdio/70-printf.c:83: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, "%ld", 42);
data/mes-0.22/lib/tests/stdio/70-printf.c:90: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, "%u", -1);
data/mes-0.22/lib/tests/stdio/70-printf.c:103: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, ">>%.5s<<\n", "hello, world");
data/mes-0.22/lib/tests/stdio/70-printf.c:109: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, ">>%.*s<<\n", 5, "hello, world");
data/mes-0.22/lib/tests/stdio/70-printf.c:115: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, ">>%.*s<<\n", 20, "hello, world");
data/mes-0.22/lib/tests/stdio/70-printf.c:121: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, ">>%.*s<<\n", 10, "foo");
data/mes-0.22/lib/tests/stdio/70-printf.c:139: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, ">>%ld<<\n", 12);
data/mes-0.22/lib/tests/stdio/70-printf.c:145: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, ">>%o<<\n", 12);
data/mes-0.22/lib/tests/stdio/70-printf.c:151: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, ">>%x<<\n", 12);
data/mes-0.22/lib/tests/stdio/70-printf.c:157:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, ">>%X<<\n", 12);
data/mes-0.22/lib/tests/stdio/70-printf.c:170:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "foo%nbar\n", &n);
data/mes-0.22/lib/tests/stdio/70-printf.c:183: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, "%12.8d\n", 12345);
data/mes-0.22/lib/tests/stdio/90-fopen-append.c:31: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 *test = fopen ("tmp", "a+");
data/mes-0.22/lib/tests/stdio/90-fopen-append.c:32: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 *hold = fopen ("tmp", "r");
data/mes-0.22/lib/tests/stdio/90-fopen.c:33:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen (name, "w");
data/mes-0.22/lib/tests/stdio/90-fopen.c:49:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *t = fopen (tmp, "r+");
data/mes-0.22/lib/tests/stdio/90-fopen.c:53: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/mes-0.22/lib/tests/stdio/90-fopen.c:75:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  t = fopen (tmp, "w+");
data/mes-0.22/lib/tests/stdio/90-fopen.c:99:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  t = fopen (tmp, "a+");
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:37:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *t = fopen (temp, "wb+");
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:38:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *n = fopen (new, "wb");
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:54: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_plus_data[200];
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:58:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *test = fopen (new, "r");
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:59: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[200];
data/mes-0.22/lib/tests/stdio/90-fseek.c:30:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open ("../COPYING", O_RDONLY);
data/mes-0.22/lib/tests/stdio/90-fseek.c:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096];
data/mes-0.22/lib/tests/stdio/90-sprintf.c:28: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[20];
data/mes-0.22/lib/tests/stdio/90-sprintf.c:32: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, "%3.6d", i);
data/mes-0.22/lib/tests/stdio/90-sprintf.c:37: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, "%3.6f", d);
data/mes-0.22/lib/tests/stdio/90-sprintf.c:40: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, "%3.6g", d);
data/mes-0.22/lib/tests/stdlib/80-qsort-dupes.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *list[3] = { "foo", "foo", 0 };
data/mes-0.22/lib/tests/string/50-strcpy.c:29:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[10];
data/mes-0.22/lib/tests/string/50-strcpy.c:30:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (buf, "mes");
data/mes-0.22/lib/tests/string/80-strncpy.c:29:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
data/mes-0.22/lib/tests/string/90-strpbrk.c:26:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[100];
data/mes-0.22/lib/tests/string/90-strpbrk.c:27:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (buf, "foo");
data/mes-0.22/lib/tests/string/90-strpbrk.c:29:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat (buf, " bar");
data/mes-0.22/scaffold/cons-mes.c:31:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char arena[2000];
data/mes-0.22/scaffold/cons-mes.c:602:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  __stdin = open ("module/mes/read-0.mo", 0);
data/mes-0.22/scaffold/cons-mes.c:858:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  __stdin = open (mo, 0);
data/mes-0.22/scaffold/read.c:28:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  __stdin = open ("scaffold/read.data", 0);
data/mes-0.22/scaffold/tiny-mes.c:31:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char arena[300];
data/mes-0.22/scaffold/tiny-mes.c:364:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  __stdin = open (mo, 0);
data/mes-0.22/src/gc.c:59:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    MAX_ARENA_SIZE = atoi (p);
data/mes-0.22/src/gc.c:61:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ARENA_SIZE = atoi (p);
data/mes-0.22/src/gc.c:64:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    JAM_SIZE = atoi (p);
data/mes-0.22/src/gc.c:67:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    GC_SAFETY = atoi (p);
data/mes-0.22/src/gc.c:69:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    STACK_SIZE = atoi (p);
data/mes-0.22/src/gc.c:71:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    MAX_STRING = atoi (p);
data/mes-0.22/src/gc.c:129: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 (p + arena_bytes, p + old_arena_bytes, STACK_SIZE * sizeof (SCM));
data/mes-0.22/src/gc.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 (g_cells - 1, g_news - 1, (g_free + 2) * sizeof (struct scm));
data/mes-0.22/src/gc.c:167:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest, src, length + 1);
data/mes-0.22/src/mes.c:30:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char g_datadir[1024];
data/mes-0.22/src/mes.c:1775: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 boot[1024];
data/mes-0.22/src/mes.c:1776:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char file_name[1024];
data/mes-0.22/src/mes.c:1781: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 (boot, "boot-0.scm");
data/mes-0.22/src/mes.c:1785:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (g_datadir + strlen (g_datadir), "/mes");
data/mes-0.22/src/mes.c:1787:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (file_name + strlen (file_name), "/module/mes/");
data/mes-0.22/src/mes.c:1792:11:  [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 (g_datadir + strlen (g_datadir), "/share/mes");
data/mes-0.22/src/mes.c:1794:11:  [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 (file_name + strlen (file_name), "/module/mes/");
data/mes-0.22/src/mes.c:1803:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (g_datadir + strlen (g_datadir), "mes");
data/mes-0.22/src/mes.c:1805:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (file_name + strlen (file_name), "/module/mes/");
data/mes-0.22/src/mes.c:1835: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).
    g_debug = atoi (p);
data/mes-0.22/src/posix.c:165: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/mes-0.22/src/posix.c:275:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *c_argv[1000];           // POSIX minimum 4096
data/mes-0.22/src/posix.c:357:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[PATH_MAX];
data/mes-0.22/src/reader.c:287: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[10];
data/mes-0.22/src/string.c:78: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 (p, s, length + 1);
data/mes-0.22/src/string.c:224: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, CSTRING (string), LENGTH (string) + 1);
data/mes-0.22/include/gnu/syscall.h:142:73:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
kern_return_t __io_read (io_t io, data_t *data, mach_msg_type_number_t *read, loff_t offset, vm_size_t size);
data/mes-0.22/include/mes/lib-mini.h:93: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).
size_t strlen (char const *s);
data/mes-0.22/include/mes/macros.h:61: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).
#define MAKE_BYTES0(x) make_bytes (x, strlen (x))
data/mes-0.22/include/mes/macros.h:62: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 NAME_SYMBOL(symbol,name) {size_t s = strlen (name); CAR (symbol) = s; CDR (symbol) = make_bytes (name, s);}
data/mes-0.22/include/mes/macros.h:68:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define MAKE_STRING0(x) make_string (x, strlen (x))
data/mes-0.22/include/stdio.h:66:5:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int fgetc (FILE * stream);
data/mes-0.22/include/stdio.h:74:5:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int getc (FILE * stream);
data/mes-0.22/include/stdio.h:75:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int getchar (void);
data/mes-0.22/include/string.h:46: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).
size_t strlen (char const *);
data/mes-0.22/include/string.h:47:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
char *strncpy (char *to, char const *from, size_t size);
data/mes-0.22/include/unistd.h:84:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t read (int fd, void *buffer, size_t size);
data/mes-0.22/lib/dirent/__getdirentries.c:35:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read (filedes, buffer, nbytes);
data/mes-0.22/lib/gnu/fd-read.c:33:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
fd_read (mach_port_t port, void *buffer, size_t *read, loff_t offset)
data/mes-0.22/lib/gnu/fd-read.c:36:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  error_t e = __io_read (port, &data, read, offset, *read);
data/mes-0.22/lib/gnu/fd-read.c:36:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  error_t e = __io_read (port, &data, read, offset, *read);
data/mes-0.22/lib/gnu/fd-read.c:38:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy (buffer, data, *read);
data/mes-0.22/lib/gnu/io-read.c:31:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
__io_read (io_t io, data_t *data, mach_msg_type_number_t *read, loff_t offset, vm_size_t size)
data/mes-0.22/lib/linux/read.c:27:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read (int filedes, void *buffer, size_t size)
data/mes-0.22/lib/mes/dtoab.c:37:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat (dtoa_buf, ".");
data/mes-0.22/lib/mes/eputs.c:27: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).
  int i = strlen (s);
data/mes-0.22/lib/mes/fdgetc.c:65:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int r = read (fd, &c, 1);
data/mes-0.22/lib/mes/fdputs.c:27: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).
  int i = strlen (s);
data/mes-0.22/lib/mes/oputs.c:27: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).
  int i = strlen (s);
data/mes-0.22/lib/mes/search-path.c:42:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (buf, path, end - path);
data/mes-0.22/lib/mes/search-path.c:51:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (buf, "/");
data/mes-0.22/lib/posix/buffered-read.c:25:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read (int filedes, void *buffer, size_t size)
data/mes-0.22/lib/posix/getenv.c:29:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int length = strlen (s);
data/mes-0.22/lib/posix/getopt.c:189: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).
            if (s - nextchar == strlen (p->name))
data/mes-0.22/lib/posix/getopt.c:212:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          nextchar += strlen (nextchar);
data/mes-0.22/lib/posix/getopt.c:241: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).
                  nextchar += strlen (nextchar);
data/mes-0.22/lib/posix/getopt.c:253: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).
                  nextchar += strlen (nextchar);
data/mes-0.22/lib/posix/getopt.c:257:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          nextchar += strlen (nextchar);
data/mes-0.22/lib/posix/getopt.c:282:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          nextchar += strlen (nextchar);
data/mes-0.22/lib/posix/setenv.c:29:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int length = strlen (s);
data/mes-0.22/lib/posix/setenv.c:36:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *entry = malloc (length + strlen (v) + 2);
data/mes-0.22/lib/posix/setenv.c:40:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
  strcpy (entry + length, "=");
data/mes-0.22/lib/posix/setenv.c:42: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).
  *(entry + length + strlen (v) + 2) = 0;
data/mes-0.22/lib/posix/unsetenv.c:28:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int length = strlen (name);
data/mes-0.22/lib/stdio/feof.c:26:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  char c = fgetc (stream);
data/mes-0.22/lib/stdio/fgetc.c:24:1:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
fgetc (FILE * stream)
data/mes-0.22/lib/stdio/fread.c:43:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *buf++ = fgetc (stream);
data/mes-0.22/lib/stdio/fread.c:47:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int r = read (filedes, buf, todo);
data/mes-0.22/lib/stdio/fread.c:64:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy (debug_buf, data, bytes);
data/mes-0.22/lib/stdio/getc.c:24:1:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
getc (FILE * stream)
data/mes-0.22/lib/stdio/getchar.c:24:1:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
getchar ()
data/mes-0.22/lib/stdio/vfprintf.c:119:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              int length = strlen (s);
data/mes-0.22/lib/stdio/vfprintf.c:156: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).
              int length = strlen (s);
data/mes-0.22/lib/stdio/vfprintf.c:200: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).
              int length = strlen (s);
data/mes-0.22/lib/stdio/vfscanf.c:29:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  char p = fgetc (stream);
data/mes-0.22/lib/stdio/vfscanf.c:36:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        p = fgetc (stream);
data/mes-0.22/lib/stdio/vfscanf.c:48:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              p = fgetc (stream);
data/mes-0.22/lib/stdio/vfscanf.c:55:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              p = fgetc (stream);
data/mes-0.22/lib/stdio/vfscanf.c:69:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  p = fgetc (stream);
data/mes-0.22/lib/stdio/vfscanf.c:74:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  p = fgetc (stream);
data/mes-0.22/lib/stdio/vfscanf.c:95:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  p = fgetc (stream);
data/mes-0.22/lib/stdio/vfscanf.c:100:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  p = fgetc (stream);
data/mes-0.22/lib/stdio/vfscanf.c:115:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              p = fgetc (stream);
data/mes-0.22/lib/stdio/vsnprintf.c:125: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).
              int length = strlen (s);
data/mes-0.22/lib/stdio/vsnprintf.c:167: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).
              int length = s ? strlen (s) : 0;
data/mes-0.22/lib/stdio/vsnprintf.c:216: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).
              int length = strlen (s);
data/mes-0.22/lib/stdlib/mbstowcs.c:34:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return strlen (string);
data/mes-0.22/lib/string/argz-count.c:37: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 part_len = strlen (argz);
data/mes-0.22/lib/string/argz-extract.c:44: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 part_len = strlen (argz);
data/mes-0.22/lib/string/strdup.c:27:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t length = strlen (s) + 1;
data/mes-0.22/lib/string/strlen.c:24:1:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
strlen (char const *s)
data/mes-0.22/lib/string/strncat.c:24:1:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
strncat (char *to, char const *from, size_t size)
data/mes-0.22/lib/string/strncpy.c:24:1:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
strncpy (char *to, char const *from, size_t size)
data/mes-0.22/lib/string/strrchr.c:26: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).
  int n = strlen (s);
data/mes-0.22/lib/string/strstr.c:28:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return memmem (haystack, strlen (haystack), needle, strlen (needle));
data/mes-0.22/lib/string/strstr.c:28:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return memmem (haystack, strlen (haystack), needle, strlen (needle));
data/mes-0.22/lib/stub/umask.c:25:1:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
umask (int x)
data/mes-0.22/lib/tests/posix/50-open-read.c:40:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strcpy (file_name + strlen (srcdir), "/lib/tests/posix/data/open-read");
data/mes-0.22/lib/tests/posix/50-open-read.c:48:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int n = read (filedes, buf, sizeof (buf));
data/mes-0.22/lib/tests/scaffold/38-compare-call.c:56:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (""))
data/mes-0.22/lib/tests/scaffold/38-compare-call.c:60:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (p) != 3)
data/mes-0.22/lib/tests/scaffold/38-compare-call.c:64: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).
  if (!strlen ("."))
data/mes-0.22/lib/tests/scaffold/38-compare-call.c:104:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen ("."))
data/mes-0.22/lib/tests/scaffold/38-compare-call.c:110:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (p) == 3)
data/mes-0.22/lib/tests/scaffold/61-array.c:37:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int length = strlen (s);
data/mes-0.22/lib/tests/scaffold/65-read.c:73:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (getchar () != 'A')
data/mes-0.22/lib/tests/scaffold/65-read.c:77:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (getchar () != 0)
data/mes-0.22/lib/tests/scaffold/7c-dynarray.c:85: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).
  file = malloc (sizeof (struct file) + strlen (file_name));
data/mes-0.22/lib/tests/scaffold/7c-dynarray.c:144: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).
  file = malloc (sizeof (struct file) + strlen (file_name));
data/mes-0.22/lib/tests/scaffold/7h-struct-assign.c:52: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).
  s.len = strlen (s.str);
data/mes-0.22/lib/tests/scaffold/7h-struct-assign.c:76:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  b.len = strlen (b.str);
data/mes-0.22/lib/tests/scaffold/7h-struct-assign.c:90:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  b.len = strlen (b.str);
data/mes-0.22/lib/tests/scaffold/7h-struct-assign.c:104: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).
  tb.len = strlen (tb.str);
data/mes-0.22/lib/tests/scaffold/7h-struct-assign.c:137: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).
  b.len = strlen (b.str);
data/mes-0.22/lib/tests/scaffold/7h-struct-assign.c:159: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).
  tab[0].len = strlen (tab[1].str);
data/mes-0.22/lib/tests/stdio/90-fopen-append.c:38:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      a = fgetc (test);
data/mes-0.22/lib/tests/stdio/90-fopen-append.c:39:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      b = fgetc (hold);
data/mes-0.22/lib/tests/stdio/90-fopen.c:34: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).
  fwrite (contents, strlen (contents), 1, f);
data/mes-0.22/lib/tests/stdio/90-fopen.c:55: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).
  fread (buf, strlen (line), 1, t);
data/mes-0.22/lib/tests/stdio/90-fopen.c:62: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).
  fwrite (end, strlen (end), 1, t);
data/mes-0.22/lib/tests/stdio/90-fopen.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).
  fread (buf, strlen (line), 1, t);
data/mes-0.22/lib/tests/stdio/90-fopen.c:79: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).
  fwrite (end, strlen (end), 1, t);
data/mes-0.22/lib/tests/stdio/90-fopen.c:82: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).
  fread (buf, strlen (end), 1, t);
data/mes-0.22/lib/tests/stdio/90-fopen.c:89: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).
  fwrite (end, strlen (end), 1, t);
data/mes-0.22/lib/tests/stdio/90-fopen.c:93: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).
  fread (buf, strlen (end), 1, t);
data/mes-0.22/lib/tests/stdio/90-fopen.c:103: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).
  fwrite (end, strlen (end), 1, t);
data/mes-0.22/lib/tests/stdio/90-fopen.c:106: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).
  fread (buf, strlen (line), 1, t);
data/mes-0.22/lib/tests/stdio/90-fopen.c:113: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).
  fwrite (end, strlen (end), 1, t);
data/mes-0.22/lib/tests/stdio/90-fopen.c:116: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).
  fread (buf, strlen (line), 1, t);
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:41: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).
  fwrite (header, strlen (header), 1, n);
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:44: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).
  fwrite (data, strlen (data), 1, t);
data/mes-0.22/lib/tests/stdio/90-fread-fwrite.c:61: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).
  fread (buf, strlen (header_plus_data), 1, test);
data/mes-0.22/lib/tests/string/30-strlen.c:26:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen ("mes") == 3)
data/mes-0.22/lib/tests/string/30-strlen.c:30:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen ("mes") != 3)
data/mes-0.22/lib/tests/string/80-strncpy.c:30:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy (buf, "mesxxx", 3);
data/mes-0.22/lib/tests/string/80-strncpy.c:37:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
  strncpy (buf, "m", 4);
data/mes-0.22/lib/tests/string/90-strpbrk.c:35: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 string.
  strncat (buf, " bazzzz", 4);
data/mes-0.22/scaffold/cons-mes.c:604:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert (getchar () == 'M');
data/mes-0.22/scaffold/cons-mes.c:605:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert (getchar () == 'E');
data/mes-0.22/scaffold/cons-mes.c:606:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert (getchar () == 'S');
data/mes-0.22/scaffold/cons-mes.c:607:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  g_stack = getchar () << 8;
data/mes-0.22/scaffold/cons-mes.c:608:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  g_stack += getchar ();
data/mes-0.22/scaffold/cons-mes.c:609:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int c = getchar ();
data/mes-0.22/scaffold/cons-mes.c:613:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getchar ();
data/mes-0.22/scaffold/cons-mes.c:868:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert (getchar () == 'M');
data/mes-0.22/scaffold/cons-mes.c:869:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert (getchar () == 'E');
data/mes-0.22/scaffold/cons-mes.c:870:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert (getchar () == 'S');
data/mes-0.22/scaffold/cons-mes.c:873:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  g_stack = getchar () << 8;
data/mes-0.22/scaffold/cons-mes.c:874:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  g_stack += getchar ();
data/mes-0.22/scaffold/cons-mes.c:880:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getchar ();
data/mes-0.22/scaffold/cons-mes.c:884:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getchar ();
data/mes-0.22/scaffold/read.c:29:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int c = getchar ();
data/mes-0.22/scaffold/read.c:35:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getchar ();
data/mes-0.22/scaffold/tiny-mes.c:376:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getchar ();
data/mes-0.22/scaffold/tiny-mes.c:380:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getchar ();
data/mes-0.22/scaffold/tiny-mes.c:384:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getchar ();
data/mes-0.22/scaffold/tiny-mes.c:391:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar ();
data/mes-0.22/scaffold/tiny-mes.c:392:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar ();
data/mes-0.22/scaffold/tiny-mes.c:395:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getchar ();
data/mes-0.22/scaffold/tiny-mes.c:404:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getchar ();
data/mes-0.22/src/mes.c:1230:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int length = strlen (name);
data/mes-0.22/src/mes.c:1752:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strcpy (file_name + strlen (file_name), boot);
data/mes-0.22/src/mes.c:1777:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
  strcpy (g_datadir, ".");
data/mes-0.22/src/mes.c:1785: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).
      strcpy (g_datadir + strlen (g_datadir), "/mes");
data/mes-0.22/src/mes.c:1787: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).
      strcpy (file_name + strlen (file_name), "/module/mes/");
data/mes-0.22/src/mes.c:1792: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).
          strcpy (g_datadir + strlen (g_datadir), "/share/mes");
data/mes-0.22/src/mes.c:1794: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).
          strcpy (file_name + strlen (file_name), "/module/mes/");
data/mes-0.22/src/mes.c:1803: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).
      strcpy (g_datadir + strlen (g_datadir), "mes");
data/mes-0.22/src/mes.c:1805: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).
      strcpy (file_name + strlen (file_name), "/module/mes/");
data/mes-0.22/src/string.c:170:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return bytes_to_list (s, strlen (s));

ANALYSIS SUMMARY:

Hits = 482
Lines analyzed = 36608 in approximately 1.06 seconds (34624 lines/second)
Physical Source Lines of Code (SLOC) = 20596
Hits@level = [0]  79 [1] 144 [2] 210 [3]  34 [4]  86 [5]   8
Hits@level+ = [0+] 561 [1+] 482 [2+] 338 [3+] 128 [4+]  94 [5+]   8
Hits/KSLOC@level+ = [0+] 27.2383 [1+] 23.4026 [2+] 16.411 [3+] 6.2148 [4+] 4.56399 [5+] 0.388425
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.