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/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/uctype.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/derived_properties.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/test.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/derived_properties.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/uctype.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/errno/errno_readout.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/fpconvert/fpconvert.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/pthread/pthread_readout.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/srand.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/ignore_handler_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/exit.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/bsearch_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/labs.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/atol.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/strtoul.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/atexit.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/quick_exit.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/abs.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/atoll.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/strtoll.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/atoi.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/llabs.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/bsearch.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/lldiv.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/strtoull.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/abort.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/at_quick_exit.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/set_constraint_handler_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/_Exit.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/strtol.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/ldiv.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/rand.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/div.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/abort_handler_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_getstream.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/errno.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_is_leap.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lines.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_cmp.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint64.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_prepwrite.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_log2.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/assert.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/stdarg.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_sub.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_init_file_t.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_ctype.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_mul32.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_div32.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_messages.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_atomax.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_add.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_prepread.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_shl.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_strtox_main.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_print.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_collate.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_scan.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_filemode.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_strtok.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_seed.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_mul.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_tostring.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_isstream.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint2.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint10.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_closeall.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_digits.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_strtox_prelim.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint32.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strchr.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memchr.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strtok_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strstr.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strerror_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strxfrm.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcpy.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strerrorlen_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strlen.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strpbrk.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncpy.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcpy_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncmp.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcoll.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strrchr.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strerror.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcat.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memset_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memcpy.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strspn.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncpy_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memcpy_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memcmp.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcmp.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strtok.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memset.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncat_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncat.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memmove.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcat_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memmove_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcspn.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/isspace.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/isxdigit.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/isprint.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/islower.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/isupper.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/isalpha.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/iscntrl.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/tolower.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/isblank.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/isdigit.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/toupper.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/isgraph.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/isalnum.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/ctype/ispunct.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/locale/setlocale.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/locale/localeconv.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpnam.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vprintf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/getchar.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/freopen_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/setvbuf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fgetpos.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/remove.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fsetpos.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/feof.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/scanf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/putchar.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/sscanf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsnprintf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/printf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fprintf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rewind.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/sprintf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/clearerr.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/getc.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fgetc.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/snprintf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/putc.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fread.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fscanf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fclose.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsprintf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsscanf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vscanf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/freopen.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ungetc.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ferror.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fflush.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpfile_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/puts.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fputs.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vfprintf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fgets.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/setbuf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fwrite.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vfscanf.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/perror.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ftell.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fputc.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/ctime.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/mktime.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/strftime.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/gmtime.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/difftime.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/asctime_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/gmtime_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/localtime_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/asctime.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/ctime_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/localtime.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_gmtcheck.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_localsub.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_mktime_tzname.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_increment_overflow.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_init_ttinfo.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzset_unlocked.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_gmtsub.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_localtime_tzset.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_timesub.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_update_tzname_etc.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzparse.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/inttypes/imaxabs.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/inttypes/imaxdiv.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/inttypes/strtoumax.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/inttypes/strtoimax.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_dlmalloc/malloc.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_seek.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_Exit.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_remove.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_close.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_changemode.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_realpath.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_rename.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_fillbuffer.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_flushbuffer.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_stdinit.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/thrd_detach.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/mtx_trylock.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/cnd_init.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/thrd_sleep.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/mtx_lock.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/thrd_yield.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/mtx_unlock.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/mtx_init.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/mtx_timedlock.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/thrd_create.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/tss_get.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/cnd_signal.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/thrd_join.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/tss_create.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/call_once.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/thrd_equal.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/cnd_wait.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/tss_delete.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/cnd_destroy.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/mtx_destroy.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/thrd_exit.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/thrd_current.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/tss_set.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/cnd_broadcast.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/threads/cnd_timedwait.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/getenv_s.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/getenv.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/system.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/time/time.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/time/timespec_get.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/time/clock.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/signal/raise.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/signal/signal.c Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/pdclib/_PDCLIB_config.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/pdclib/_PDCLIB_defguard.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/threads.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/signal.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/float.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/limits.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/locale.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdint.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_internal.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_tzcode.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_lib_ext1.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_glue.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdnoreturn.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/inttypes.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/wctype.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/ctype.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdbool.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stddef.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdalign.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdarg.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/time.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/string.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/assert.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/iso646.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdlib.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/errno.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/_PDCLIB_iotest.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/printf_testcases.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/_PDCLIB_test.h Examining data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/scanf_testcases.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ar.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ah.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/au.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ak.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/al.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/aw.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/as.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/aq.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ae.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ac.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/aj.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/af.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ap.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ai.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ax.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ao.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/az.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/av.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ab.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/an.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ay.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/aa.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ad.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/at.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/am.h Examining data/libconvert-binary-c-perl-0.84/tests/include/stuff/ag.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/trigraph.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/empty.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/files.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/unmatched.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/something.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/ifnonl.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/nlunix.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/nlnone.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/ifnull.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/ifdef.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/nlmac.h Examining data/libconvert-binary-c-perl-0.84/tests/include/files/nldos.h Examining data/libconvert-binary-c-perl-0.84/tests/include/include.c Examining data/libconvert-binary-c-perl-0.84/tests/compiler/test.h Examining data/libconvert-binary-c-perl-0.84/tests/parser/bug1.c Examining data/libconvert-binary-c-perl-0.84/tests/parser/context.c Examining data/libconvert-binary-c-perl-0.84/util/doxyinc/LinkedList.c Examining data/libconvert-binary-c-perl-0.84/util/doxyinc/Alloc.c Examining data/libconvert-binary-c-perl-0.84/util/ccattr.h Examining data/libconvert-binary-c-perl-0.84/util/hash.c Examining data/libconvert-binary-c-perl-0.84/util/memalloc.h Examining data/libconvert-binary-c-perl-0.84/util/list.h Examining data/libconvert-binary-c-perl-0.84/util/memalloc.c Examining data/libconvert-binary-c-perl-0.84/util/hash.h Examining data/libconvert-binary-c-perl-0.84/util/config.h Examining data/libconvert-binary-c-perl-0.84/util/list.c Examining data/libconvert-binary-c-perl-0.84/cbc/idl.c Examining data/libconvert-binary-c-perl-0.84/cbc/pack.h Examining data/libconvert-binary-c-perl-0.84/cbc/tag.c Examining data/libconvert-binary-c-perl-0.84/cbc/sourcify.c Examining data/libconvert-binary-c-perl-0.84/cbc/member.h Examining data/libconvert-binary-c-perl-0.84/cbc/object.c Examining data/libconvert-binary-c-perl-0.84/cbc/hook.c Examining data/libconvert-binary-c-perl-0.84/cbc/util.c Examining data/libconvert-binary-c-perl-0.84/cbc/macros.h Examining data/libconvert-binary-c-perl-0.84/cbc/debug.h Examining data/libconvert-binary-c-perl-0.84/cbc/type.c Examining data/libconvert-binary-c-perl-0.84/cbc/basic.h Examining data/libconvert-binary-c-perl-0.84/cbc/init.c Examining data/libconvert-binary-c-perl-0.84/cbc/option.h Examining data/libconvert-binary-c-perl-0.84/cbc/idl.h Examining data/libconvert-binary-c-perl-0.84/cbc/tag.h Examining data/libconvert-binary-c-perl-0.84/cbc/typeinfo.c Examining data/libconvert-binary-c-perl-0.84/cbc/dimension.h Examining data/libconvert-binary-c-perl-0.84/cbc/type.h Examining data/libconvert-binary-c-perl-0.84/cbc/init.h Examining data/libconvert-binary-c-perl-0.84/cbc/sourcify.h Examining data/libconvert-binary-c-perl-0.84/cbc/macros.c Examining data/libconvert-binary-c-perl-0.84/cbc/option.c Examining data/libconvert-binary-c-perl-0.84/cbc/debug.c Examining data/libconvert-binary-c-perl-0.84/cbc/basic.c Examining data/libconvert-binary-c-perl-0.84/cbc/pack.c Examining data/libconvert-binary-c-perl-0.84/cbc/object.h Examining data/libconvert-binary-c-perl-0.84/cbc/typeinfo.h Examining data/libconvert-binary-c-perl-0.84/cbc/cbc.h Examining data/libconvert-binary-c-perl-0.84/cbc/member.c Examining data/libconvert-binary-c-perl-0.84/cbc/hook.h Examining data/libconvert-binary-c-perl-0.84/cbc/util.h Examining data/libconvert-binary-c-perl-0.84/cbc/dimension.c Examining data/libconvert-binary-c-perl-0.84/ucpp/sample.c Examining data/libconvert-binary-c-perl-0.84/ucpp/scanppd.c Examining data/libconvert-binary-c-perl-0.84/ucpp/arith.c Examining data/libconvert-binary-c-perl-0.84/ucpp/cpp.c Examining data/libconvert-binary-c-perl-0.84/ucpp/macro.c Examining data/libconvert-binary-c-perl-0.84/ucpp/reent.h Examining data/libconvert-binary-c-perl-0.84/ucpp/atest.c Examining data/libconvert-binary-c-perl-0.84/ucpp/nhash.h Examining data/libconvert-binary-c-perl-0.84/ucpp/eval.c Examining data/libconvert-binary-c-perl-0.84/ucpp/hash.c Examining data/libconvert-binary-c-perl-0.84/ucpp/mem.h Examining data/libconvert-binary-c-perl-0.84/ucpp/ucppi.h Examining data/libconvert-binary-c-perl-0.84/ucpp/sample_r.c Examining data/libconvert-binary-c-perl-0.84/ucpp/nhash.c Examining data/libconvert-binary-c-perl-0.84/ucpp/tune.h Examining data/libconvert-binary-c-perl-0.84/ucpp/mem.c Examining data/libconvert-binary-c-perl-0.84/ucpp/assert.c Examining data/libconvert-binary-c-perl-0.84/ucpp/arith.h Examining data/libconvert-binary-c-perl-0.84/ucpp/hash.h Examining data/libconvert-binary-c-perl-0.84/ucpp/lexer.c Examining data/libconvert-binary-c-perl-0.84/ucpp/cpp.h Examining data/libconvert-binary-c-perl-0.84/ucpp/config.h Examining data/libconvert-binary-c-perl-0.84/token/t_blproperty.c Examining data/libconvert-binary-c-perl-0.84/token/t_tag.c Examining data/libconvert-binary-c-perl-0.84/token/t_ckeytok.c Examining data/libconvert-binary-c-perl-0.84/token/t_keywords.c Examining data/libconvert-binary-c-perl-0.84/token/t_blproperty.h Examining data/libconvert-binary-c-perl-0.84/token/t_parser.c Examining data/libconvert-binary-c-perl-0.84/token/t_config.c Examining data/libconvert-binary-c-perl-0.84/token/t_sourcify.c Examining data/libconvert-binary-c-perl-0.84/token/t_tag.h Examining data/libconvert-binary-c-perl-0.84/token/t_hookid.c Examining data/libconvert-binary-c-perl-0.84/token/t_hookid.h Examining data/libconvert-binary-c-perl-0.84/token/t_pragma.c Examining data/libconvert-binary-c-perl-0.84/token/t_basic.c Examining data/libconvert-binary-c-perl-0.84/ctlib/parser.h Examining data/libconvert-binary-c-perl-0.84/ctlib/cttype.c Examining data/libconvert-binary-c-perl-0.84/ctlib/cppreent.h Examining data/libconvert-binary-c-perl-0.84/ctlib/y_pragma.c Examining data/libconvert-binary-c-perl-0.84/ctlib/y_parser.c Examining data/libconvert-binary-c-perl-0.84/ctlib/layout.h Examining data/libconvert-binary-c-perl-0.84/ctlib/byteorder.h Examining data/libconvert-binary-c-perl-0.84/ctlib/bitfields.c Examining data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c Examining data/libconvert-binary-c-perl-0.84/ctlib/cttags.c Examining data/libconvert-binary-c-perl-0.84/ctlib/cterror.c Examining data/libconvert-binary-c-perl-0.84/ctlib/ctdebug.h Examining data/libconvert-binary-c-perl-0.84/ctlib/cttype.h Examining data/libconvert-binary-c-perl-0.84/ctlib/pragma.h Examining data/libconvert-binary-c-perl-0.84/ctlib/byteorder.c Examining data/libconvert-binary-c-perl-0.84/ctlib/cttags.h Examining data/libconvert-binary-c-perl-0.84/ctlib/fileinfo.h Examining data/libconvert-binary-c-perl-0.84/ctlib/ctparse.h Examining data/libconvert-binary-c-perl-0.84/ctlib/fileinfo.c Examining data/libconvert-binary-c-perl-0.84/ctlib/cterror.h Examining data/libconvert-binary-c-perl-0.84/ctlib/ctdebug.c Examining data/libconvert-binary-c-perl-0.84/ctlib/layout.c Examining data/libconvert-binary-c-perl-0.84/ctlib/bitfields.h Examining data/libconvert-binary-c-perl-0.84/ppport.h FINAL RESULTS: data/libconvert-binary-c-perl-0.84/cbc/debug.c:42:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # ifdef fprintf data/libconvert-binary-c-perl-0.84/cbc/debug.c:43:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef fprintf data/libconvert-binary-c-perl-0.84/cbc/debug.c:45:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define fprintf PerlIO_printf data/libconvert-binary-c-perl-0.84/cbc/debug.c:46:9: [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. # ifdef vfprintf data/libconvert-binary-c-perl-0.84/cbc/debug.c:47:10: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # undef vfprintf data/libconvert-binary-c-perl-0.84/cbc/debug.c:49: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. # define vfprintf PerlIO_vprintf data/libconvert-binary-c-perl-0.84/cbc/debug.c:112:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(gs_DB_stream, f, *l); data/libconvert-binary-c-perl-0.84/cbc/debug.c:120:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(gs_DB_stream, f, l); data/libconvert-binary-c-perl-0.84/cbc/debug.c:130:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(gs_DB_stream, f, l); data/libconvert-binary-c-perl-0.84/cbc/dimension.c:93: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(dim->u.member, src); data/libconvert-binary-c-perl-0.84/cbc/member.c:746:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. (void) sprintf(err = errbuf, \ data/libconvert-binary-c-perl-0.84/cbc/member.c:917:20: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(err = errbuf, "Cannot find %s member '%s'", data/libconvert-binary-c-perl-0.84/cbc/member.c:941:22: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(err = errbuf, data/libconvert-binary-c-perl-0.84/cbc/member.c:959:22: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(err = errbuf, data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c:116: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(buf, dir); data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c:121: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+dirlen, file); data/libconvert-binary-c-perl-0.84/ctlib/y_parser.c:2082:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/libconvert-binary-c-perl-0.84/ctlib/y_parser.c:4461:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s width for bit-field '%s'", data/libconvert-binary-c-perl-0.84/ctlib/y_pragma.c:877:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/libconvert-binary-c-perl-0.84/ppport.h:6616:14: [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. retval = vsnprintf(buffer, len, format, ap); data/libconvert-binary-c-perl-0.84/ppport.h:6618:14: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. retval = vsprintf(buffer, format, ap); data/libconvert-binary-c-perl-0.84/ppport.h:6647:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buffer, pat, args); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/derived_properties.c:121:41: [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( dp->name[ properties ], p ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:51:25: [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( ud->records[ i ].name, p ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:54:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy( ud->records[ i ].general_category, next_token( NULL, ';' ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:59:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy( ud->records[ i ].bidi_class, next_token( NULL, ';' ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:66:25: [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( ud->records[ i ].decomposition, p ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:80:25: [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( ud->records[ i ].numeric_value, p ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_tostring.c:27:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf( buffer, "%08" PRIxLEAST32, value->data[i] ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_collate.c:26: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( file, path ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_collate.c:27:9: [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( file, locale ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_collate.c:28:9: [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( file, extension ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_ctype.c:29: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( file, path ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_ctype.c:30:9: [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( file, locale ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_ctype.c:31:9: [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( file, extension ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_messages.c:26: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( file, path ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_messages.c:27:9: [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( file, locale ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_messages.c:28:9: [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( file, extension ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:27: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( file, path ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:28:9: [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( file, locale ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:29:9: [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( file, extension ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c:26: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( file, path ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c:27:9: [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( file, locale ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c:28:9: [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( file, extension ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:27: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( file, path ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:28:9: [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( file, locale ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:29:9: [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( file, extension ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:219: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( lsp->fullname + sizeof tzdirslash, name ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:518:25: [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( sp->chars + j, tsabbr ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzset_unlocked.c:76: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( sp->chars, gmt ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzset_unlocked.c:158:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy( lcl_TZname, name ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fprintf.c:12: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( struct _PDCLIB_file_t * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, ... ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fprintf.c:17: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. rc = vfprintf( stream, format, ap ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fprintf.c:32:35: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define testprintf( stream, ... ) fprintf( stream, __VA_ARGS__ ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fscanf.c:12: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 * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, ... ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fscanf.c:17:10: [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. rc = vfscanf( stream, format, ap ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fscanf.c:30:42: [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. #define testscanf( stream, format, ... ) fscanf( stream, format, __VA_ARGS__ ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/printf.c:12: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( const char * _PDCLIB_restrict format, ... ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/printf.c:17: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. rc = vfprintf( stdout, format, ap ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/printf.c:32:35: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define testprintf( stream, ... ) printf( __VA_ARGS__ ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/scanf.c:12:5: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. int scanf( const char * _PDCLIB_restrict format, ... ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/scanf.c:16:12: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. return vfscanf( stdin, format, ap ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/scanf.c:27:42: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. #define testscanf( stream, format, ... ) scanf( format, __VA_ARGS__ ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/snprintf.c:12: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 * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restrict format, ... ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/snprintf.c:17: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. rc = vsnprintf( s, n, format, ap ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/snprintf.c:32:30: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define testprintf( s, ... ) snprintf( s, 100, __VA_ARGS__ ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/sprintf.c:13:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. int sprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, ... ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/sprintf.c:18: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. rc = vsnprintf( s, SIZE_MAX, format, ap ); /* TODO: replace with non-checking call */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/sprintf.c:32:30: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. #define testprintf( s, ... ) sprintf( s, __VA_ARGS__ ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/sscanf.c:12: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( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, ... ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/sscanf.c:17:10: [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. rc = vsscanf( s, format, ap ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/sscanf.c:30:37: [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. #define testscanf( s, format, ... ) sscanf( s, format, __VA_ARGS__ ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpfile_s.c:63:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). TESTCASE_NOREG( strcpy( filename, fh->filename ) == filename ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpnam.c:25: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( s, file->filename ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vfprintf.c:19: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( struct _PDCLIB_file_t * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, va_list arg ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vfprintf.c:92:9: [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. i = vfprintf( stream, format, arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vfscanf.c:19: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 * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, va_list arg ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vfscanf.c:124:14: [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. result = vfscanf( stream, format, ap ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vprintf.c:12: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( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vprintf.c:14:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfprintf( stdout, format, arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vprintf.c:31:9: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. i = vprintf( format, arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vscanf.c:12:5: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. int vscanf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vscanf.c:14:12: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. return vfscanf( stdin, format, arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vscanf.c:30:9: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. i = vscanf( format, arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsnprintf.c:12: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 * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsnprintf.c:72:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. i = vsnprintf( s, 100, format, arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsprintf.c:13:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. int vsprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, va_list arg ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsprintf.c:15:12: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. return vsnprintf( s, SIZE_MAX, format, arg ); /* TODO: Replace with a non-checking call */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsprintf.c:32:9: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. i = vsprintf( s, format, arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsscanf.c:13: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( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, va_list arg ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsscanf.c:103:14: [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. result = vsscanf( stream, format, ap ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort.c:168: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( s, presort ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort.c:171: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( s, presort ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort.c:174: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( s, presort ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort_s.c:183: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( s, presort ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort_s.c:186: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( s, presort ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort_s.c:189: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( s, presort ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcat.c:11:8: [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 * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcat.c:40:15: [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). TESTCASE( strcat( s, abcde ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcat.c:46:15: [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). TESTCASE( strcat( s, abcdx ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcpy.c:11:8: [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 * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcpy.c:35:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). TESTCASE( strcpy( s, abcde ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strerror_s.c:29: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( s, strerror( errnum ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/asctime.c:16:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( rc, "%s %s%3d %.2d:%.2d:%.2d %d\n", data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/asctime_s.c:29:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( s, "%s %s %2d %.2d:%.2d:%.2d %4d\n", data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/strftime.c:139:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy( s + rc, str ); \ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:403:20: [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. _PDCLIB_PUBLIC int fprintf( FILE * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, ... ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:556:20: [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. _PDCLIB_PUBLIC int fscanf( FILE * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, ... ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:559:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _PDCLIB_PUBLIC int printf( const char * _PDCLIB_restrict format, ... ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:562:20: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. _PDCLIB_PUBLIC int scanf( const char * _PDCLIB_restrict format, ... ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:572:20: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. _PDCLIB_PUBLIC int snprintf( char * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restrict format, ... ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:577:20: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. _PDCLIB_PUBLIC int sprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, ... ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:582:20: [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. _PDCLIB_PUBLIC int sscanf( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, ... ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:588:20: [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. _PDCLIB_PUBLIC int vfprintf( FILE * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:594:20: [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. _PDCLIB_PUBLIC int vfscanf( FILE * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:600:20: [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. _PDCLIB_PUBLIC int vprintf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:606:20: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. _PDCLIB_PUBLIC int vscanf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:612:20: [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. _PDCLIB_PUBLIC int vsnprintf( char * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:619:20: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. _PDCLIB_PUBLIC int vsprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:626:20: [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. _PDCLIB_PUBLIC int vsscanf( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdlib.h:198:20: [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. _PDCLIB_PUBLIC int system( const char * string ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/string.h:53:23: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). _PDCLIB_PUBLIC char * strcpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/string.h:71:23: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). _PDCLIB_PUBLIC char * strcat( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:121:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). TESTCASE_NOREG( strcpy( filename, fh->filename ) == filename ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/getenv_s.c:62: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( value, environ_value ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/system.c:24:5: [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. int system( const char * string ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/system.c:61:15: [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. TESTCASE( system( SHELLCOMMAND ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/_PDCLIB_iotest.h:46:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf( stderr, \ data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:113:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:133:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:165:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:648:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(b, "# %ld \"%s\"\n", ls->line, fn); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:650:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(b, "#line %ld \"%s\"\n", ls->line, fn); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1466:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fname + j, tname(tf2.t[i])); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1123: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(x + tlen, token_name(tf->t + i)); data/libconvert-binary-c-perl-0.84/util/doxyinc/Alloc.c:8:21: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. SetDebugMemAlloc( printf, DB_MEMALLOC_TRACE data/libconvert-binary-c-perl-0.84/util/memalloc.c:156:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, l); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1002:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(ftest, fmt, l); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1013:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(ftest, fmt, l); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1024:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(ftest, fmt, l); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1144:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(fdebug ? fdebug : stderr, fmt, l); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_dlmalloc/malloc.c:2039:32: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define ACQUIRE_LOCK(lk) (EnterCriticalSection(lk), 0) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_dlmalloc/malloc.c:2058:7: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&malloc_global_mutex); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzset_unlocked.c:168: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. tzsetlcl( getenv( "TZ" ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/locale/setlocale.c:27: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. if ( ( s = getenv( "LC_ALL" ) ) == NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/locale/setlocale.c:29:42: [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 ( category == LC_ALL || ( s = getenv( _PDCLIB_LC_category_name[ category ] ) ) == NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/locale/setlocale.c:31:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( ( s = getenv( "LANG" ) ) == NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/locale/setlocale.c:91:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv( _PDCLIB_value2string( _PDCLIB_LOCALE_PATH_ENV ) ) != NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/locale/setlocale.c:93: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. path = getenv( _PDCLIB_value2string( _PDCLIB_LOCALE_PATH_ENV ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpnam.c:15:8: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). char * tmpnam( char * s ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpnam.c:40:23: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). TESTCASE( strlen( tmpnam( NULL ) ) < L_tmpnam ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/rand.c:28:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand( 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/srand.c:11:6: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void srand( unsigned int seed ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:90:23: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). _PDCLIB_PUBLIC char * tmpnam( char * s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdlib.h:91:21: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _PDCLIB_PUBLIC void srand( unsigned int seed ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdlib.h:191:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. _PDCLIB_PUBLIC char * getenv( const char * name ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_realpath.c:17:15: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. extern char * realpath( const char * file_name, char * resolved_name ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_realpath.c:25:12: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. return realpath( path, NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:59:22: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. unsigned int random; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:60:38: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. read( randomsource, (void *)&random, sizeof( unsigned int ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:61:43: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. sprintf( filename, "/tmp/%u.tmp", random ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/getenv.c:24: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. char * getenv( const char * name ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/getenv.c:50:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. TESTCASE( strcmp( getenv( "SHELL" ), "/bin/bash" ) == 0 ); data/libconvert-binary-c-perl-0.84/util/memalloc.c:166:35: [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. gs_flags.env.soft_assert = (str=getenv("MEMALLOC_SOFT_ASSERT")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:167:35: [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. gs_flags.env.check_freed = (str=getenv("MEMALLOC_CHECK_FREED")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:168:35: [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. gs_flags.env.show_dumps = (str=getenv("MEMALLOC_SHOW_DUMPS")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:581:14: [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( (str = getenv("MEMALLOC_STAT_LEVEL")) != NULL ) data/libconvert-binary-c-perl-0.84/util/memalloc.c:1154: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( (file = getenv("MEMALLOC_TEST_FILE")) == NULL ) data/libconvert-binary-c-perl-0.84/util/memalloc.c:1157: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. flags.debug = (str=getenv("MEMALLOC_TEST_DEBUG")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1158: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. flags.assert = (str=getenv("MEMALLOC_TEST_ASSERT")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1159: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. flags.check_freed = (str=getenv("MEMALLOC_CHECK_FREED")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1160: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. flags.stat_level = (str=getenv("MEMALLOC_STAT_LEVEL")) ? atoi(str) : -1; data/libconvert-binary-c-perl-0.84/util/memalloc.c:1162:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if( (str=getenv("MEMALLOC_TEST_DEBUG_FILE")) != NULL ) data/libconvert-binary-c-perl-0.84/cbc/debug.c:54:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # ifdef fopen data/libconvert-binary-c-perl-0.84/cbc/debug.c:55: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). # undef fopen data/libconvert-binary-c-perl-0.84/cbc/debug.c:57:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define fopen PerlIO_open data/libconvert-binary-c-perl-0.84/cbc/debug.c:230:27: [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). gs_DB_stream = dbfile ? fopen(dbfile, "w") : stderr; data/libconvert-binary-c-perl-0.84/cbc/member.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[1]; data/libconvert-binary-c-perl-0.84/cbc/member.c:186: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 ixstr[MAX_IXSTR+1]; data/libconvert-binary-c-perl-0.84/cbc/member.c:764: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 *err, errbuf[128], trunc[32]; data/libconvert-binary-c-perl-0.84/cbc/member.c:836:16: [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. (void) sprintf(err = errbuf, data/libconvert-binary-c-perl-0.84/cbc/member.c:892:20: [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. (void) sprintf(err = errbuf, data/libconvert-binary-c-perl-0.84/cbc/member.c:965:22: [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. (void) sprintf(err = errbuf, data/libconvert-binary-c-perl-0.84/cbc/member.c:1002:26: [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. (void) sprintf(err = errbuf, data/libconvert-binary-c-perl-0.84/cbc/member.c:1009:26: [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. (void) sprintf(err = errbuf, data/libconvert-binary-c-perl-0.84/cbc/member.c:1276: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). info->u.array_index = atoi(ixstr); data/libconvert-binary-c-perl-0.84/cbc/member.c:1298:36: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). info->u.offset = atoi(c+1); data/libconvert-binary-c-perl-0.84/cbc/pack.c:546: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[32]; data/libconvert-binary-c-perl-0.84/cbc/pack.c:1066: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 copy[COPY_STRING_LENGTH]; data/libconvert-binary-c-perl-0.84/cbc/util.c:372:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char tab[MAXINDENT] = "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"; data/libconvert-binary-c-perl-0.84/ctlib/bitfields.c:809: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(clone, self, pc->size); data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c:437:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). infile = fopen(file, "r"); data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c:451:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((infile = fopen(file, "r")) != NULL) data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c:556: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 tmp[20 + 4*sizeof(pCPC->std_c_version)]; data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c:557:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp, "__STDC_VERSION__=%ldL", pCPC->std_c_version); data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c:563: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 tmp[20]; data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c:564:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmp, "__STDC_HOSTED__=%u", pCPC->is_std_c_hosted); data/libconvert-binary-c-perl-0.84/ctlib/cttags.c:108: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(dtag, stag, sizeof(CtTag)); data/libconvert-binary-c-perl-0.84/ctlib/cttype.c:46:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src, sizeof(type)); \ data/libconvert-binary-c-perl-0.84/ctlib/cttype.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(dest, src, count); \ data/libconvert-binary-c-perl-0.84/ctlib/cttype.h:126: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 identifier[1]; data/libconvert-binary-c-perl-0.84/ctlib/cttype.h:138: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 identifier[1]; data/libconvert-binary-c-perl-0.84/ctlib/cttype.h:159: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 identifier[1]; data/libconvert-binary-c-perl-0.84/ctlib/cttype.h:184: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 identifier[1]; data/libconvert-binary-c-perl-0.84/ctlib/fileinfo.c:153: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( pDest, pSrc, size ); data/libconvert-binary-c-perl-0.84/ctlib/fileinfo.h: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 name[1]; data/libconvert-binary-c-perl-0.84/ctlib/y_parser.c:3231:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yymsgbuf[128]; data/libconvert-binary-c-perl-0.84/ctlib/y_pragma.c:1369:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yymsgbuf[128]; data/libconvert-binary-c-perl-0.84/ppport.h:3654:42: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define CopyD(s,d,n,t) memcpy((char*)(d),(char*)(s), (n) * sizeof(t)) data/libconvert-binary-c-perl-0.84/ppport.h:6471:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. && (xdigit = strchr((char *) PL_hexdigit, s[1]))) data/libconvert-binary-c-perl-0.84/ppport.h:6693:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst + used, src, copy); data/libconvert-binary-c-perl-0.84/ppport.h:6722:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, copy); data/libconvert-binary-c-perl-0.84/ppport.h:6814: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 octbuf[32] = "%123456789ABCDF"; data/libconvert-binary-c-perl-0.84/ppport.h:6884:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[2]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:12: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. signed char ac[2][2][1], ad; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:13: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. signed char ae[3]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:80:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. signed char cf[2][2], cg, ch; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:86:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. signed char cl[3]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:109: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. unsigned char dd, de[3][2]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:173: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. unsigned char eq, er[2][3]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:180:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ew[2], ex; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:185:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. signed char ey[1][1]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:189: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. unsigned char fe[1]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:214: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. signed char fs[3][1][1], ft; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:268:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. signed char gy, gz[1]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:273:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. signed char hb[3][1]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:308: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. unsigned char hu[2]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:323: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. signed char ij, ik, il[2][1]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:335: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. unsigned char it, iu[3], iv[1][1][1]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:343:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. signed char jb[1][3][3][2]; data/libconvert-binary-c-perl-0.84/tests/compiler/test.h:355: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. unsigned char jg[1][3]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/fpconvert/fpconvert.c:8: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. unsigned char bytes[ sizeof( float ) ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/fpconvert/fpconvert.c:20: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. unsigned char bytes[ sizeof( double ) ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/fpconvert/fpconvert.c:37: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. unsigned char bytes[ sizeof( long double ) ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/fpconvert/fpconvert.c:66: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. unsigned char bytes[ sizeof( float128_t ) ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/pthread/pthread_readout.c:230:164: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. assert( sizeof( pthread_attr_t ) == sizeof( struct { uint32_t __dummy1; void * __dummy2; size_t __dummy3; size_t __dummy4; int32_t __dummy5; int32_t __dummy6; char __dummy7[16]; } ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/derived_properties.c:21: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 buffer[ LINE_BUFFER_SIZE ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/derived_properties.c:27:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ( fh = fopen( filename, "r" ) ) == NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/derived_properties.c:267:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fh = fopen( "test.txt", "wb+" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:184: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 buffer[ 9 ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:190:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buffer, "%zu%zu%zu%zu%zu%zu%zu%zu", data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:250:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fh = fopen( "ctype.dat", "wb" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:158:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fh = fopen( "test.txt", "wb+" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:160: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 buffer[ 500 ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:186: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( buffer, " xyz" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:188: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( buffer, "xyz " ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:190: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( buffer, " xyz " ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:192: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( buffer, " x" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:194: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( buffer, "x " ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:198: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( buffer, " " ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:20: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 buffer[ LINE_BUFFER_SIZE ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:24:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ( fh = fopen( filename, "r" ) ) == NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:164:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fh = fopen( "test.txt", "w" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.h:21: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 general_category[ 3 ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.h:23: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 bidi_class[ 4 ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_tostring.c:18: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( buffer, "0x" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_tostring.c:33:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy( buffer, "00000000" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_bigint_tostring.c:49: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 buffer[ _PDCLIB_BIGINT_CHARS ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_collate.c:30:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ( fh = fopen( file, "rb" ) ) != NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_ctype.c:33:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ( fh = fopen( file, "rb" ) ) != NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_ctype.c:89:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fh = fopen( "test_ctype.dat", "wb" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_messages.c:30:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ( fh = fopen( file, "rb" ) ) != NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_messages.c:73:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fh = fopen( "test_numeric.dat", "wb" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:31:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ( fh = fopen( file, "rb" ) ) != NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:35:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ 14 ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:103:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fh = fopen( "test_monetary.dat", "wb" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c:30:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ( fh = fopen( file, "rb" ) ) != NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c:69:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fh = fopen( "test_numeric.dat", "wb" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:31:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ( fh = fopen( file, "rb" ) ) != NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:92:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fh = fopen( "test_time.dat", "wb" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lines.c:61:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fh = fopen( "test_lines.txt", "w+" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_print.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 preface[3] = "\0"; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_print.c:518:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c[1]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_print.c:721: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 target[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_scan.c:761: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 source[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_strtok.c:148: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( s, "ab_cd" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_strtok.c:161: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( s, "ab.cd" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_dlmalloc/malloc.c:1721:27: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). (dev_zero_fd = open("/dev/zero", O_RDWR), \ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_dlmalloc/malloc.c:3225:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[sizeof(size_t)]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_dlmalloc/malloc.c:3227: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). if ((fd = open("/dev/urandom", O_RDONLY)) >= 0 && data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_dlmalloc/malloc.c:5282:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mem, oldmem, (oc < bytes)? oc : bytes); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_dlmalloc/malloc.c:5832:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mem, oldmem, (oc < bytes)? oc : bytes); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_mktime_tzname.c:408: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 seen[TZ_MAX_TYPES]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_mktime_tzname.c:409: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. unsigned char types[TZ_MAX_TYPES]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:111:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_magic[ 4 ]; /* TZ_MAGIC */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:112:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_version[ 1 ]; /* '\0' or '2' or '3' as of 2013 */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:113:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_reserved[ 15 ]; /* reserved; must be zero */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:114:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_ttisutcnt[ 4 ]; /* coded number of trans. time flags */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:115:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_ttisstdcnt[ 4 ]; /* coded number of trans. time flags */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:116:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_leapcnt[ 4 ]; /* coded number of leap seconds */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:117:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_timecnt[ 4 ]; /* coded number of transition times */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:118:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_typecnt[ 4 ]; /* coded number of local time types */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:119:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tzh_charcnt[ 4 ]; /* coded number of abbr. chars */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[ 2 * sizeof ( struct tzhead ) + 2 * sizeof ( struct state ) + 4 * TZ_MAX_TIMES ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:133:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const tzdirslash[ sizeof _PDCLIB_TZDIR + 1 ] = _PDCLIB_TZDIR "/"; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:149: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 fullname[ BIGGEST ( sizeof ( struct file_analysis ), sizeof tzdirslash + 1024 ) ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:218:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( lsp->fullname, tzdirslash, sizeof tzdirslash ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:237:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fid = fopen( name, "rb" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzparse.c:748: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( cp, stdname, stdlen ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzparse.c:754:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( cp, dstname, dstlen ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzset_unlocked.c:33:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char lcl_TZname[ TZ_STRLEN_MAX + 1 ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/locale/setlocale.c:14:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char * _PDCLIB_LC_category_name[ _PDCLIB_LC_COUNT ] = { NULL, "LC_COLLATE", "LC_CTYPE", "LC_MONETARY", "LC_NUMERIC", "LC_TIME", "LC_MESSAGES" }; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/clearerr.c:25:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fclose.c:97:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( ( file1 = fopen( testfile1, "w" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fclose.c:99:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( ( file2 = fopen( testfile2, "w" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fclose.c:103:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( ( file2 = fopen( testfile2, "w" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fgetpos.c:37:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fgets.c:72:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[10]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fgets.c:74:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( ( fh = fopen( testfile, "wb+" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen.c:23:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). struct _PDCLIB_file_t * fopen( const char * _PDCLIB_restrict filename, const char * _PDCLIB_restrict mode ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen.c:90:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE_NOREG( fopen( NULL, NULL ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen.c:91:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( NULL, "w" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen.c:92:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE_NOREG( fopen( "", NULL ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen.c:93:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( "", "w" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen.c:94:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( testfile, "" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen.c:95:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE_NOREG( fopen( testfile, "wq" ) == NULL ); /* Undefined mode */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen.c:96:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE_NOREG( fopen( testfile, "wr" ) == NULL ); /* Undefined mode */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen.c:97:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( ( fh = fopen( testfile, "w" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fopen_s.c:26:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( ( *streamptr = fopen( filename, mode ) ) == NULL ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fprintf.c:37:26: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( target = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fputs.c:74:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fread.c:76: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 buffer[21]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fread.c:78:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/freopen.c:223:23: [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). TESTCASE( ( fin = fopen( testfile1, "wb+" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/freopen_s.c:59:23: [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). TESTCASE( ( fin = fopen( testfile1, "wb+" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fscanf.c:35:26: [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). TESTCASE( ( source = fopen( testfile, "wb+" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:59:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ftell.c:72:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fwrite.c:39:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if ( ( stream->buffer[ stream->bufidx++ ] = ( ( char * )ptr )[ nmemb_i * size + size_i ] ) == '\n' ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/perror.c:54: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 buffer[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/perror.c:55:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buffer, "%llu", max ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/puts.c:67: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 buffer[23]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c:60:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( testfile1, "r" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c:61:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( testfile2, "r" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c:65:24: [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). TESTCASE( ( file = fopen( testfile1, "w" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c:69:24: [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). TESTCASE( ( file = fopen( testfile1, "r" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c:74:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( testfile1, "r" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c:75:24: [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). TESTCASE( ( file = fopen( testfile2, "r" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c:78:24: [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). TESTCASE( ( file = fopen( testfile1, "w" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c:82:24: [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). TESTCASE( ( file = fopen( testfile1, "r" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c:93:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( testfile1, "r" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/rename.c:94:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( testfile2, "r" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/setbuf.c:35: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 buffer[ BUFSIZ + 1 ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/setbuf.c:38:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/setbuf.c:45:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/setvbuf.c:114:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ BUFFERSIZE ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/setvbuf.c:117:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/setvbuf.c:124:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/setvbuf.c:131:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/snprintf.c:36: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 target[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/sprintf.c:36: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 target[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/sscanf.c:34: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 source[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpfile_s.c:22:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). *streamptr = tmpfile(); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpfile_s.c:56: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 filename[ L_tmpnam ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpfile_s.c:64:32: [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). TESTCASE_NOREG( ( fhtest = fopen( filename, "r" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpfile_s.c:69:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE_NOREG( fopen( filename, "r" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpnam.c:17:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char filename[ L_tmpnam ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpnam.c:18:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE * file = tmpfile(); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ungetc.c:45: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 buffer[4]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ungetc.c:46: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 input[1]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ungetc.c:50:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vfprintf.c:100:26: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( target = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vfscanf.c:132:26: [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). TESTCASE( ( source = fopen( testfile, "wb+" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsnprintf.c:79:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char target[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsprintf.c:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char target[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vsscanf.c:110:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char source[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/atoi.c:11: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( const char * s ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/atol.c:11:10: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). long int atol( const char * s ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort.c:32:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define PREPARE_STACK char * stack[STACKSIZE]; char ** stackptr = stack data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort.c:167: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 s[19]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort_s.c:34:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define PREPARE_STACK char * stack[STACKSIZE]; char ** stackptr = stack data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdlib/qsort_s.c:182: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 s[19]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memcpy.c:11:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. void * memcpy( void * _PDCLIB_restrict s1, const void * _PDCLIB_restrict s2, size_t n ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memcpy.c:33:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. TESTCASE( memcpy( s, abcde, 6 ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/memcpy.c:36:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. TESTCASE( memcpy( s + 5, abcde, 5 ) == s + 5 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strerror_s.c:37:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy( &s[ maxsize - 4 ], "..." ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strerror_s.c:60: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 s[14]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strtok.c:51: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( s, "ab_cd" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strtok_s.c:48: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( s, "ab_cd" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/asctime.c:15:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char rc[26]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/ctime_s.c:45: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 s[27]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/strftime.c:1690: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 buffer[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/strftime.c:1720: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 buffer[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_internal.h:323:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ungetbuf[_PDCLIB_UNGETCBUFSIZE]; /* ungetc() buffer */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_internal.h:566: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 * errno_texts[_PDCLIB_ERRNO_MAX]; /* strerror() / perror() */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_internal.h:575: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 * month_name_abbr[12]; /* month names, abbreviated */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_internal.h:576: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 * month_name_full[12]; /* month names, full */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_internal.h:577: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 * day_name_abbr[7]; /* weekday names, abbreviated */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_internal.h:578: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 * day_name_full[7]; /* weekday names, full */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_internal.h:583: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 * am_pm[2]; /* AM / PM designation */ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_tzcode.h:121: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. unsigned char types[ TZ_MAX_TIMES ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/pdclib/_PDCLIB_tzcode.h:123:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char chars[ BIGGEST( BIGGEST( TZ_MAX_CHARS + 1, sizeof gmt ), ( 2 * ( MY_TZNAME_MAX + 1 ) ) ) ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:77:23: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _PDCLIB_PUBLIC FILE * tmpfile( void ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:159:23: [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). _PDCLIB_PUBLIC FILE * fopen( const char * _PDCLIB_restrict filename, const char * _PDCLIB_restrict mode ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdlib.h:71:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). _PDCLIB_PUBLIC int atoi( const char * nptr ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdlib.h:72:25: [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). _PDCLIB_PUBLIC long int atol( const char * nptr ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/string.h:41:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. _PDCLIB_PUBLIC void * memcpy( void * _PDCLIB_restrict s1, const void * _PDCLIB_restrict s2, size_t n ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c:65:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rc = open( filename, osmode, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c:69:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rc = open( filename, osmode ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c:97:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ 10 ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_rename.c:72:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( testfile1, "r" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_rename.c:73:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( testfile2, "r" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_rename.c:77:24: [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). TESTCASE( ( file = fopen( testfile1, "w" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_rename.c:81:24: [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). TESTCASE( ( file = fopen( testfile1, "r" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_rename.c:86:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE( fopen( testfile1, "r" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_rename.c:87:24: [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). TESTCASE( ( file = fopen( testfile2, "r" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_rename.c:90:24: [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). TESTCASE( ( file = fopen( testfile1, "w" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_rename.c:94:24: [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). TESTCASE( ( file = fopen( testfile1, "r" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_stdinit.c:24:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char _PDCLIB_sin_buffer[BUFSIZ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_stdinit.c:25:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char _PDCLIB_sout_buffer[BUFSIZ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_stdinit.c:26:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char _PDCLIB_serr_buffer[BUFSIZ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:32:25: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). struct _PDCLIB_file_t * tmpfile( void ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:38:24: [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 randomsource = open( "/dev/urandom", O_RDONLY ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:61:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( filename, "/tmp/%u.tmp", random ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:67:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open( filename, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:115:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[ L_tmpnam ]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:118:22: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). TESTCASE( ( fh = tmpfile() ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:122:32: [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). TESTCASE_NOREG( ( fhtest = fopen( filename, "r" ) ) != NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:127:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). TESTCASE_NOREG( fopen( filename, "r" ) == NULL ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/getenv_s.c:89:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[20]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/system.c:58: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 buffer[25]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/pdclib/_PDCLIB_config.h:727:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef union { unsigned char _PDCLIB_cnd_t_data[ 48 ]; long long int _PDCLIB_cnd_t_align; } _PDCLIB_cnd_t; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/pdclib/_PDCLIB_config.h:729:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef union { unsigned char _PDCLIB_mtx_t_data[ 24 ]; long int _PDCLIB_mtx_t_align; } _PDCLIB_mtx_t; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/pdclib/_PDCLIB_config.h:731:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef union { unsigned char _PDCLIB_mtx_t_data[ 40 ]; long int _PDCLIB_mtx_t_align; } _PDCLIB_mtx_t; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/pdclib/_PDCLIB_config.h:742:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef union { unsigned char _PDCLIB_cnd_attr_t_data[ 4 ]; int _PDCLIB_cnd_attr_t_align; } _PDCLIB_cnd_attr_t; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/pdclib/_PDCLIB_config.h:743:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef union { unsigned char _PDCLIB_mtx_attr_t_data[ 4 ]; int _PDCLIB_mtx_attr_t_align; } _PDCLIB_mtx_attr_t; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/pdclib/_PDCLIB_config.h:745:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef union { unsigned char _PDCLIB_thrd_attr_t_data[ 36 ]; long int _PDCLIB_thrd_attr_t_align; } _PDCLIB_thrd_attr_t; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/include/pdclib/_PDCLIB_config.h:747:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef union { unsigned char _PDCLIB_thrd_attr_t_data[ 56 ]; long int _PDCLIB_thrd_attr_t_align; } _PDCLIB_thrd_attr_t; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/_PDCLIB_iotest.h:31:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define PREP_RESULT_BUFFER char result_buffer[100] = { 0 }; rewind( target ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/_PDCLIB_iotest.h:64:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( source, input_string, sizeof( input_string ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/scanf_testcases.h:2: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 buffer[100]; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/scanf_testcases.h:93:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buffer, "%p", (void*)p ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/scanf_testcases.h:98:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buffer, "%p", (void*)p ); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:705:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(name, O_RDONLY, 0); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:834:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). (f = fopen(s ? s : name, "r")) data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:901:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(s, "r"); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:935:6: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(HASH_ITEM_NAME(ff), "r"); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1034:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(HASH_ITEM_NAME(ff), "r"); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1048:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(s, "r"); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:2576:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ls->output = fopen(argv[i], "w"); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:2606:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ls->input = fopen(filename, "r"); data/libconvert-binary-c-perl-0.84/ucpp/cpp.h:166:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char copy_line[COPY_LINE_LENGTH]; data/libconvert-binary-c-perl-0.84/ucpp/lexer.c:96:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char input[CMCR]; data/libconvert-binary-c-perl-0.84/ucpp/lexer.c:720:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char hex[16] = "0123456789abcdef"; data/libconvert-binary-c-perl-0.84/ucpp/lexer.c:1024: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. unsigned char buf[11]; data/libconvert-binary-c-perl-0.84/ucpp/macro.c:363:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char def[128]; data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1141: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 compile_time[12], compile_date[24]; data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1194:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[30], *bbuf, *cfn; data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1199:4: [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", l); data/libconvert-binary-c-perl-0.84/ucpp/mem.c:112: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(nm, m, x); data/libconvert-binary-c-perl-0.84/ucpp/mem.c:153:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy(dest, src, n); data/libconvert-binary-c-perl-0.84/ucpp/mem.h:97:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define mmv memcpy data/libconvert-binary-c-perl-0.84/ucpp/nhash.c:203:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ident + sizeof(unsigned), name, n); data/libconvert-binary-c-perl-0.84/ucpp/nhash.c:232: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(cident + sizeof(unsigned), ident + sizeof(unsigned), n); data/libconvert-binary-c-perl-0.84/ucpp/reent.h:82: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 compile_time[12], compile_date[24]; data/libconvert-binary-c-perl-0.84/util/hash.c:486:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( cnode->key, (void *) node->key, node->keylen ); data/libconvert-binary-c-perl-0.84/util/hash.c:692: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( node->key, (const void *) key, keylen ); data/libconvert-binary-c-perl-0.84/util/hash.c:1008: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( node->key, (const void *) key, keylen ); data/libconvert-binary-c-perl-0.84/util/hash.h:155:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[1]; data/libconvert-binary-c-perl-0.84/util/memalloc.c:166:70: [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). gs_flags.env.soft_assert = (str=getenv("MEMALLOC_SOFT_ASSERT")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:167:70: [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). gs_flags.env.check_freed = (str=getenv("MEMALLOC_CHECK_FREED")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:168:70: [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). gs_flags.env.show_dumps = (str=getenv("MEMALLOC_SHOW_DUMPS")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:582:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gs_stat_level = atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1157:62: [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). flags.debug = (str=getenv("MEMALLOC_TEST_DEBUG")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1158:63: [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). flags.assert = (str=getenv("MEMALLOC_TEST_ASSERT")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1159:63: [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). flags.check_freed = (str=getenv("MEMALLOC_CHECK_FREED")) && atoi(str); data/libconvert-binary-c-perl-0.84/util/memalloc.c:1160:61: [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). flags.stat_level = (str=getenv("MEMALLOC_STAT_LEVEL")) ? atoi(str) : -1; data/libconvert-binary-c-perl-0.84/util/memalloc.c:1163:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (fdebug = fopen(str, "w")) == NULL ) data/libconvert-binary-c-perl-0.84/util/memalloc.c:1171:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (ftest = fopen(file, "w")) == NULL ) data/libconvert-binary-c-perl-0.84/cbc/dimension.c:91:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(src); data/libconvert-binary-c-perl-0.84/cbc/hook.c:782:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (hv_store(hv, id, strlen(id), sv, 0) == 0) data/libconvert-binary-c-perl-0.84/cbc/member.c:728:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(trunc, name, 20); \ data/libconvert-binary-c-perl-0.84/cbc/member.c:729:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(name) > 20) \ data/libconvert-binary-c-perl-0.84/cbc/member.c:1116: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). len = strlen(expr); data/libconvert-binary-c-perl-0.84/cbc/option.c:628:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (hv_store(hv, prop_string, strlen(prop_string), sv, 0) == NULL) data/libconvert-binary-c-perl-0.84/cbc/pack.c:1104:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pPACKBUF, p, len); data/libconvert-binary-c-perl-0.84/cbc/tag.c:317:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (hv_store(hv, id, strlen(id), sv, 0) == NULL) data/libconvert-binary-c-perl-0.84/cbc/util.c:456:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(str) + 1; data/libconvert-binary-c-perl-0.84/ctlib/cterror.c:94:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(perr->string, string, len); data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c:106:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dirlen = strlen(dir); data/libconvert-binary-c-perl-0.84/ctlib/ctparse.c:111:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filelen = strlen(file); data/libconvert-binary-c-perl-0.84/ctlib/cttype.c:52:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). id_len = strlen(identifier); \ data/libconvert-binary-c-perl-0.84/ctlib/cttype.c:56:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name->identifier, identifier, id_len); \ data/libconvert-binary-c-perl-0.84/ctlib/cttype.h:91: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). : 255 + strlen((ptr)->identifier + 255)) data/libconvert-binary-c-perl-0.84/ctlib/fileinfo.c:71: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). name_len = strlen( name ); data/libconvert-binary-c-perl-0.84/ctlib/fileinfo.c:76:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( pFileInfo->name, name, name_len ); data/libconvert-binary-c-perl-0.84/ctlib/fileinfo.c:150:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += strlen( pSrc->name ); data/libconvert-binary-c-perl-0.84/ctlib/y_parser.c:2658:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) data/libconvert-binary-c-perl-0.84/ctlib/y_parser.c:5785:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(pLexer->ctok->name); data/libconvert-binary-c-perl-0.84/ctlib/y_pragma.c:1076:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) data/libconvert-binary-c-perl-0.84/ppport.h:5105:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); data/libconvert-binary-c-perl-0.84/ppport.h:5113:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define sv_vcatpvf(sv, pat, args) sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)) data/libconvert-binary-c-perl-0.84/ppport.h:5117:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define sv_vsetpvf(sv, pat, args) sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)) data/libconvert-binary-c-perl-0.84/ppport.h:5137:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/libconvert-binary-c-perl-0.84/ppport.h:5165:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/libconvert-binary-c-perl-0.84/ppport.h:5186:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \ data/libconvert-binary-c-perl-0.84/ppport.h:5208:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/libconvert-binary-c-perl-0.84/ppport.h:5236:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/libconvert-binary-c-perl-0.84/ppport.h:5257:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \ data/libconvert-binary-c-perl-0.84/ppport.h:6065: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). STRLEN len = strlen(radix); data/libconvert-binary-c-perl-0.84/ppport.h:6649: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). return strlen(buffer); data/libconvert-binary-c-perl-0.84/ppport.h:6689: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). used = strlen(dst); data/libconvert-binary-c-perl-0.84/ppport.h:6690:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(src); data/libconvert-binary-c-perl-0.84/ppport.h:6719:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(src); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/errno/errno_readout.c:101:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t text_len_max = strlen( unknown_error_text ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/errno/errno_readout.c:102:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t string_len_max = strlen( unknown_error_text ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/errno/errno_readout.c:113:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen( error[i].string ) > string_len_max ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/errno/errno_readout.c:115:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). string_len_max = strlen( error[i].string ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/errno/errno_readout.c:119:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen( error[i].text ) > text_len_max ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/errno/errno_readout.c:121: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). text_len_max = strlen( error[i].text ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/derived_properties.c:39:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t count = strtoul( buffer + strlen( code_point_count ), NULL, 10 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/derived_properties.c:82:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen( buffer ) > 1 ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/derived_properties.c:120:74: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dp->name[ properties ] = malloc( strlen( p ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:107:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( ( unsigned )rc == towupper( codepoint ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:111:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( ( unsigned )rc == towlower( codepoint ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:115:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswupper( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:119:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswlower( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:123:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswalpha( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:127:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswdigit( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:131:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswblank( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:135:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswspace( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:139:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswcntrl( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:143:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswxdigit( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:147:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswgraph( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:151:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswprint( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:155:5: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. equal &= ( iswpunct( codepoint ) ? 1 : 0 == rc ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:171:12: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if ( ! equal ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:273:114: [1] (buffer) strlen: Does not handle 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 ( codepoint != ur->code_point && ( ur->name && ( strstr( ur->name, last ) != ( ur->name + strlen( ur->name ) - strlen( last ) ) ) ) ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/main.c:273:135: [1] (buffer) strlen: Does not handle 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 ( codepoint != ur->code_point && ( ur->name && ( strstr( ur->name, last ) != ( ur->name + strlen( ur->name ) - strlen( last ) ) ) ) ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:95:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( buffer[ strlen( buffer ) - 1 ] != '\n' ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:110:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen( buffer ) > 1 ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:125:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( widths[ i ] >= 0 && strlen( p ) >= ( unsigned )widths[ i ] ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:196:5: [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( buffer, " " ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/text_utilities.c:200:5: [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( buffer, "" ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:50:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ud->records[ i ].name = malloc( strlen( p ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:65:66: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ud->records[ i ].decomposition = malloc( strlen( p ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:79:66: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ud->records[ i ].numeric_value = malloc( strlen( p ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:118: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 strstr( ur->name, name ) == ( ur->name + ( strlen( ur->name ) - strlen( name ) ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/auxiliary/uctype/unicode_data.c:118:76: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strstr( ur->name, name ) == ( ur->name + ( strlen( ur->name ) - strlen( name ) ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_collate.c:20:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_collate.c:20:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_collate.c:20:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_ctype.c:23:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_ctype.c:23:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_ctype.c:23:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_messages.c:20:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_messages.c:20:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_messages.c:20:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_messages.c:43: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). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:21:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:21:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:21:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:43: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). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:45:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:47: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). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:49: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). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:51: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). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_monetary.c:53: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). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c:20:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c:20:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c:20:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c:39:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_numeric.c:41:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:21:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:21:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:21:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * file = (char *)malloc( strlen( path ) + strlen( locale ) + strlen( extension ) + 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:44: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). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:50:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:56: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). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lc_time.c:62: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). data += strlen( data ) + 1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_load_lines.c:20:28: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( lines && ( c = fgetc( fh ) ) != EOF ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_print.c:249: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). status->prec = strlen( s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_scan.c:45:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = getc( status->stream ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_strtok.c:129: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). rsize_t max = strlen( s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_strtok.c:149:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). max = strlen( s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_strtok.c:171:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rsize_t max1 = strlen( str1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_PDCLIB/_PDCLIB_strtok.c:172:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rsize_t max2 = strlen( str2 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_dlmalloc/malloc.c:885:32: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. #define dlmemalign memalign data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_dlmalloc/malloc.c:3228:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(fd, buf, sizeof(buf)) == sizeof(buf)) { data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:207:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t namelen = strlen( name ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzload.c:514:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int tsabbrlen = strlen( tsabbr ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzset_unlocked.c:55:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen( cp ) > TZ_ABBR_MAX_LEN && strcmp( cp, GRANDPARENTED ) != 0 ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/_tzcode/_PDCLIB_tzset_unlocked.c:140: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). int lcl = name ? strlen( name ) < sizeof lcl_TZname : -1; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/locale/setlocale.c:85: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). if ( strlen( locale ) == 0 ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/clearerr.c:31:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == EOF ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/clearerr.c:41:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == EOF ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fgetc.c:17:5: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int fgetc( struct _PDCLIB_file_t * stream ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fgetpos.c:39:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). TESTCASE( fwrite( teststring, 1, strlen( teststring ), fh ) == strlen( teststring ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fgetpos.c:39:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). TESTCASE( fwrite( teststring, 1, strlen( teststring ), fh ) == strlen( teststring ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fgetpos.c:44:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). TESTCASE( ( size_t )ftell( fh ) == strlen( teststring ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fputs.c:80:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == message[i] ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/freopen.c:227:15: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( getchar() == 'x' ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/freopen.c:232:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fout ) == 'x' ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/freopen_s.c:63:15: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( getchar() == 'x' ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/freopen_s.c:68:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fout ) == 'x' ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:60:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). TESTCASE( fwrite( teststring, 1, strlen( teststring ), fh ) == strlen( teststring ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:60:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). TESTCASE( fwrite( teststring, 1, strlen( teststring ), fh ) == strlen( teststring ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:63:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). TESTCASE( ( size_t )ftell( fh ) == strlen( teststring ) - 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:65:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). TESTCASE( ( size_t )ftell( fh ) == strlen( teststring ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:75:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == EOF ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:81:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == teststring[0] ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:82:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == teststring[1] ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:83:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == teststring[2] ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:87:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == teststring[2] ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:91:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == 'x' ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/fseek.c:95:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == teststring[2] ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ftell.c:104:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == '1' ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/getc.c:11:5: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int getc( struct _PDCLIB_file_t * stream ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/getc.c:13:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return fgetc( stream ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/getchar.c:11:5: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int getchar( void ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/getchar.c:13:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return fgetc( stdin ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/tmpnam.c:40: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). TESTCASE( strlen( tmpnam( NULL ) ) < L_tmpnam ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ungetc.c:48:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read; data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ungetc.c:56:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fscanf( fh, "12%n", &read ) == 0 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ungetc.c:62:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fscanf( fh, "x3%n", &read ) == 0 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ungetc.c:81:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == '1' ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/ungetc.c:88:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( fgetc( fh ) == '1' ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vfscanf.c:56:38: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( isspace( c = getc( stream ) ) ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/stdio/vfscanf.c:69:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( ( ( c = getc( stream ) ) != *format ) || feof( stream ) ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcat.c:49:15: [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. TESTCASE( strcat( s, "\0" ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strcpy.c:32:15: [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. TESTCASE( strcpy( s, "" ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strerror_s.c:33:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( s, strerror( errnum ), maxsize - 1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strerrorlen_s.c:14: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). return strlen( strerror( errnum ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strlen.c:11: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( const char * s ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strlen.c:31: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). TESTCASE( strlen( abcde ) == 5 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strlen.c:32: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). TESTCASE( strlen( "" ) == 0 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncat.c:11:8: [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. char * strncat( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, size_t n ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncat.c:42:15: [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. TESTCASE( strncat( s, abcde, 10 ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncat.c:48:15: [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. TESTCASE( strncat( s, abcdx, 10 ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncat.c:51:15: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. TESTCASE( strncat( s, "\0", 10 ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncat.c:54:15: [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. TESTCASE( strncat( s, abcde, 0 ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncat.c:57:15: [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. TESTCASE( strncat( s, abcde, 3 ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncpy.c:11:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). char * strncpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, size_t n ) data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncpy.c:42:15: [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. TESTCASE( strncpy( s, "", 1 ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncpy.c:45:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). TESTCASE( strncpy( s, abcde, 6 ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncpy.c:50:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). TESTCASE( strncpy( s, abcde, 7 ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strncpy.c:52:15: [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. TESTCASE( strncpy( s, "xxxx", 3 ) == s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strtok.c:24: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). max = strlen( tmp ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strtok_s.c:49:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). max = strlen( s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/string/strxfrm.c:15:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen( s2 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/functions/time/strftime.c:136:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( str ); \ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:635:20: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _PDCLIB_PUBLIC int fgetc( FILE * stream ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:662:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _PDCLIB_PUBLIC int getc( FILE * stream ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/stdio.h:665:20: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _PDCLIB_PUBLIC int getchar( void ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/string.h:62:23: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _PDCLIB_PUBLIC char * strncpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, size_t n ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/string.h:79:23: [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. _PDCLIB_PUBLIC char * strncat( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, size_t n ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/include/string.h:188: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). _PDCLIB_PUBLIC size_t strlen( const char * s ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_fillbuffer.c:24:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). extern ssize_t read( int fd, void * buf, size_t count ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_fillbuffer.c:33:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t rc = read( stream->handle, stream->buffer, stream->bufsize ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c:106:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( read( fh, buffer, 4 ) == -1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c:116:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( read( fh, buffer, 10 ) == -1 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c:121:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( read( fh, buffer, 10 ) == 10 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c:126:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( read( fh, buffer, 10 ) == 10 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c:133:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( read( fh, buffer, 2 ) == 2 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c:137:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( read( fh, buffer, 6 ) == 6 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/_PDCLIB/_PDCLIB_open.c:144:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). TESTCASE( read( fh, buffer, 10 ) == 10 ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdio/tmpfile.c:60:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read( randomsource, (void *)&random, sizeof( unsigned int ) ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/getenv.c:26:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen( name ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/getenv_s.c:40: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). nlen = strlen( name ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/platform/example/functions/stdlib/getenv_s.c:47:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). vlen = strlen( environ_value ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/_PDCLIB_iotest.h:60: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). fwrite( input_string, 1, strlen( input_string ), source ); \ data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/printf_testcases.h:42: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). PRINTF_TEST( ( int )strlen( INT_HEXDIG ) + 1, "F" INT_HEXDIG, "%X", UINT_MAX ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/printf_testcases.h:43: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). PRINTF_TEST( ( int )strlen( INT_HEXDIG ) + 3, "0XF" INT_HEXDIG, "%#X", -1u ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/printf_testcases.h: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). PRINTF_TEST( ( int )strlen( INT_HEXDIG ) + 1, "f" INT_hexdig, "%x", UINT_MAX ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/printf_testcases.h:45: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). PRINTF_TEST( ( int )strlen( INT_HEXDIG ) + 3, "0xf" INT_hexdig, "%#x", -1u ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/printf_testcases.h:46: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). PRINTF_TEST( ( int )strlen( INT_OCTDIG ), INT_OCTDIG, "%o", UINT_MAX ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/printf_testcases.h:47: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). PRINTF_TEST( ( int )strlen( INT_OCTDIG ) + 1, "0" INT_OCTDIG, "%#o", -1u ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/printf_testcases.h:96: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). PRINTF_TEST( ( int )strlen( INT_HEXDIG ) + 1, "f" INT_hexdig, "%.6x", UINT_MAX ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/printf_testcases.h:97: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). PRINTF_TEST( ( int )strlen( INT_HEXDIG ) + 3, "0xf" INT_hexdig, "%#6.3x", UINT_MAX ); data/libconvert-binary-c-perl-0.84/tests/include/pdclib/test_support/printf_testcases.h:98: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). PRINTF_TEST( ( int )strlen( INT_HEXDIG ) + 3, "0xf" INT_hexdig, "%#3.6x", UINT_MAX ); data/libconvert-binary-c-perl-0.84/ucpp/assert.c:399:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(aval) + 1; data/libconvert-binary-c-perl-0.84/ucpp/assert.c:423:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(aval) + 1; data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:646:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). b = getmem(50 + strlen(fn)); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:763:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t nl = strlen(name); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:777: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). for (i = strlen(rfn) - 1; i >= 0; i --) data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:850:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t ni = strlen(include_path[i]); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:994:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t nl = strlen(name); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1003:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t ni = strlen(include_path[i]); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1446:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nl = strlen(fname); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1451:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nl = strlen(fname); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1462:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j += strlen(tname(tf2.t[i])); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1467:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j += strlen(tname(tf2.t[i])); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1621: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). nl = strlen(fname); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1626: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). nl = strlen(fname); data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1694:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l += strlen(tf->t[tf->art].name) + 1; data/libconvert-binary-c-perl-0.84/ucpp/cpp.c:1706:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sl = strlen(tn); data/libconvert-binary-c-perl-0.84/ucpp/lexer.c:556:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int x = getc(ls->input); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:242:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen(str); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:691:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen((char *)(n->cval.t + n->cval.rp)); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:770:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l += 1 + strlen(mval.t[i].name); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:781:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t x = 1 + strlen(mval.t[i].name); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:992:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t l1 = strlen(n1), l2 = strlen(n2); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:992: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). size_t l1 = strlen(n1), l2 = strlen(n2); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1026:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t bl = strlen(buf); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1117: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). tlen += strlen(token_name(tf->t + i)); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1124: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). tlen += strlen(token_name(tf->t + i)); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1209: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). bbuf = getmem(2 * strlen(cfn) + 3); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1374:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (buf = d = getmem(strlen(c)); *c != '"'; c ++) { data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1457: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). m->cval.rp += 1 + strlen(ct->name); data/libconvert-binary-c-perl-0.84/ucpp/macro.c:1878:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(c) + 1; data/libconvert-binary-c-perl-0.84/ucpp/mem.c:171:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = 1 + strlen(src); data/libconvert-binary-c-perl-0.84/ucpp/mem.c:313:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = 1 + strlen(src); data/libconvert-binary-c-perl-0.84/ucpp/nhash.c:199:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(name) + 1; data/libconvert-binary-c-perl-0.84/ucpp/nhash.c:230:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(ident + sizeof(unsigned)) + 1; ANALYSIS SUMMARY: Hits = 704 Lines analyzed = 156987 in approximately 8.05 seconds (19490 lines/second) Physical Source Lines of Code (SLOC) = 57055 Hits@level = [0] 597 [1] 235 [2] 296 [3] 32 [4] 141 [5] 0 Hits@level+ = [0+] 1301 [1+] 704 [2+] 469 [3+] 173 [4+] 141 [5+] 0 Hits/KSLOC@level+ = [0+] 22.8026 [1+] 12.339 [2+] 8.22014 [3+] 3.03216 [4+] 2.4713 [5+] 0 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.