cian@sourdough:~/Workspaces/safestringlib$ ./safestringtest
!!!Basic Test Suite for Safe String Operations!!!
ERRORS PRINT TO CONSOLE
----------------BEGIN TEST--------------------
Testing stpncpy_s:
Test #1:
Test #2:
Test #3:
Test #4:
Test #5:
Test #6:
Test #7:
Test #8:
Test #9:
Test #10:
Test #11:
Test #12:
Test #13:
Test #14:
Test #15:
Test #16:
Testing stpncpy_s:
Test #1:
Test #2:
Test #3:
Test #4:
Test #5:
Test #6:
Test #7:
Test #8:
Test #9:
Test #10:
Test #11:
Test #12:
Test #13:
Test #14:
Test #15:
Test #16:
Test #17:
Test #18:
Test #19:
*** stack smashing detected ***: ./safestringtest terminated
Aborted (core dumped)
cian@sourdough:~/Workspaces/safestringlib$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cian@sourdough:~/Workspaces/safestringlib$ lsb_release --a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Full console log:
---------------------------------------------------------------------------------------
cian@sourdough:~/Workspaces$ git clone [email protected]:intel/safestringlib.git
Cloning into 'safestringlib'...
remote: Counting objects: 196, done.
remote: Total 196 (delta 0), reused 0 (delta 0), pack-reused 196
Receiving objects: 100% (196/196), 119.92 KiB | 0 bytes/s, done.
Resolving deltas: 100% (141/141), done.
Checking connectivity... done.
cian@sourdough:~/Workspaces$ mkdir -p obj objtest
cian@sourdough:~/Workspaces$ make all
make: *** No rule to make target 'all'. Stop.
cian@sourdough:~/Workspaces$ rm -rf obj objtest/
cian@sourdough:~/Workspaces$ cd safestringlib/
cian@sourdough:~/Workspaces/safestringlib$ mkdir -p obj objtest
cian@sourdough:~/Workspaces/safestringlib$ make all
gcc -z noexecstack -z relo -z now -c -o obj/abort_handler_s.o safeclib/abort_handler_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
In file included from safeclib/abort_handler_s.c:32:0:
safeclib/abort_handler_s.c: In function ‘abort_handler_s’:
safeclib/safeclib_private.h:80:23: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
#define slabort() abort()
^
safeclib/abort_handler_s.c:72:2: note: in expansion of macro ‘slabort’
slabort();
^
safeclib/safeclib_private.h:80:23: warning: incompatible implicit declaration of built-in function ‘abort’
#define slabort() abort()
^
safeclib/abort_handler_s.c:72:2: note: in expansion of macro ‘slabort’
slabort();
^
safeclib/safeclib_private.h:80:23: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
#define slabort() abort()
^
safeclib/abort_handler_s.c:72:2: note: in expansion of macro ‘slabort’
slabort();
^
gcc -z noexecstack -z relo -z now -c -o obj/stpcpy_s.o safeclib/stpcpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strlastsame_s.o safeclib/strlastsame_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/ignore_handler_s.o safeclib/ignore_handler_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/stpncpy_s.o safeclib/stpncpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strljustify_s.o safeclib/strljustify_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memcmp16_s.o safeclib/memcmp16_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strcasecmp_s.o safeclib/strcasecmp_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
safeclib/strcasecmp_s.c: In function ‘strcasecmp_s’:
safeclib/strcasecmp_s.c:132:13: warning: implicit declaration of function ‘toupper’ [-Wimplicit-function-declaration]
if (toupper(*udest) != toupper(*usrc)) {
^
gcc -z noexecstack -z relo -z now -c -o obj/strncat_s.o safeclib/strncat_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memcmp32_s.o safeclib/memcmp32_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strcasestr_s.o safeclib/strcasestr_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
safeclib/strcasestr_s.c: In function ‘strcasestr_s’:
safeclib/strcasestr_s.c:156:17: warning: implicit declaration of function ‘toupper’ [-Wimplicit-function-declaration]
if (toupper(dest[i]) != toupper(src[i])) {
^
gcc -z noexecstack -z relo -z now -c -o obj/strncpy_s.o safeclib/strncpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memcmp_s.o safeclib/memcmp_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strcat_s.o safeclib/strcat_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strnlen_s.o safeclib/strnlen_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memcpy16_s.o safeclib/memcpy16_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strcmpfld_s.o safeclib/strcmpfld_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strnterminate_s.o safeclib/strnterminate_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memcpy32_s.o safeclib/memcpy32_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strcmp_s.o safeclib/strcmp_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strpbrk_s.o safeclib/strpbrk_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memcpy_s.o safeclib/memcpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strcpyfldin_s.o safeclib/strcpyfldin_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strprefix_s.o safeclib/strprefix_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memmove16_s.o safeclib/memmove16_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strcpyfldout_s.o safeclib/strcpyfldout_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strremovews_s.o safeclib/strremovews_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memmove32_s.o safeclib/memmove32_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strcpyfld_s.o safeclib/strcpyfld_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strspn_s.o safeclib/strspn_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memmove_s.o safeclib/memmove_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strcpy_s.o safeclib/strcpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strstr_s.o safeclib/strstr_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/mem_primitives_lib.o safeclib/mem_primitives_lib.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strcspn_s.o safeclib/strcspn_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strtok_s.o safeclib/strtok_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strfirstchar_s.o safeclib/strfirstchar_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strtolowercase_s.o safeclib/strtolowercase_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memset16_s.o safeclib/memset16_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strfirstdiff_s.o safeclib/strfirstdiff_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strtouppercase_s.o safeclib/strtouppercase_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memset32_s.o safeclib/memset32_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strfirstsame_s.o safeclib/strfirstsame_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strzero_s.o safeclib/strzero_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memset_s.o safeclib/memset_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strisalphanumeric_s.o safeclib/strisalphanumeric_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/wcpcpy_s.o safeclib/wcpcpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memzero16_s.o safeclib/memzero16_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strisascii_s.o safeclib/strisascii_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/wcscat_s.o safeclib/wcscat_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memzero32_s.o safeclib/memzero32_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strisdigit_s.o safeclib/strisdigit_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/wcscpy_s.o safeclib/wcscpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/memzero_s.o safeclib/memzero_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strishex_s.o safeclib/strishex_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/wcsncat_s.o safeclib/wcsncat_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strislowercase_s.o safeclib/strislowercase_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/wcsncpy_s.o safeclib/wcsncpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/safe_mem_constraint.o safeclib/safe_mem_constraint.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strismixedcase_s.o safeclib/strismixedcase_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/wcsnlen_s.o safeclib/wcsnlen_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strispassword_s.o safeclib/strispassword_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/wmemcmp_s.o safeclib/wmemcmp_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/safe_str_constraint.o safeclib/safe_str_constraint.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strisuppercase_s.o safeclib/strisuppercase_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/wmemcpy_s.o safeclib/wmemcpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strlastchar_s.o safeclib/strlastchar_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/wmemmove_s.o safeclib/wmemmove_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/snprintf_support.o safeclib/snprintf_support.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/strlastdiff_s.o safeclib/strlastdiff_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -c -o obj/wmemset_s.o safeclib/wmemset_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
ar rcs libsafestring.a obj/abort_handler_s.o obj/stpcpy_s.o obj/strlastsame_s.o obj/ignore_handler_s.o obj/stpncpy_s.o obj/strljustify_s.o obj/memcmp16_s.o obj/strcasecmp_s.o obj/strncat_s.o obj/memcmp32_s.o obj/strcasestr_s.o obj/strncpy_s.o obj/memcmp_s.o obj/strcat_s.o obj/strnlen_s.o obj/memcpy16_s.o obj/strcmpfld_s.o obj/strnterminate_s.o obj/memcpy32_s.o obj/strcmp_s.o obj/strpbrk_s.o obj/memcpy_s.o obj/strcpyfldin_s.o obj/strprefix_s.o obj/memmove16_s.o obj/strcpyfldout_s.o obj/strremovews_s.o obj/memmove32_s.o obj/strcpyfld_s.o obj/strspn_s.o obj/memmove_s.o obj/strcpy_s.o obj/strstr_s.o obj/mem_primitives_lib.o obj/strcspn_s.o obj/strtok_s.o obj/strfirstchar_s.o obj/strtolowercase_s.o obj/memset16_s.o obj/strfirstdiff_s.o obj/strtouppercase_s.o obj/memset32_s.o obj/strfirstsame_s.o obj/strzero_s.o obj/memset_s.o obj/strisalphanumeric_s.o obj/wcpcpy_s.o obj/memzero16_s.o obj/strisascii_s.o obj/wcscat_s.o obj/memzero32_s.o obj/strisdigit_s.o obj/wcscpy_s.o obj/memzero_s.o obj/strishex_s.o obj/wcsncat_s.o obj/strislowercase_s.o obj/wcsncpy_s.o obj/safe_mem_constraint.o obj/strismixedcase_s.o obj/wcsnlen_s.o obj/strispassword_s.o obj/wmemcmp_s.o obj/safe_str_constraint.o obj/strisuppercase_s.o obj/wmemcpy_s.o obj/strlastchar_s.o obj/wmemmove_s.o obj/snprintf_support.o obj/strlastdiff_s.o obj/wmemset_s.o
gcc -c -o objtest/Safe_String_UnitTestMain.o unittests/Safe_String_UnitTestMain.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strcmp_s.o unittests/test_strcmp_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strnlen_s.o unittests/test_strnlen_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_strnlen_s.c: In function ‘test_strnlen_s’:
unittests/test_strnlen_s.c:24:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Len=%u \n",
^
unittests/test_strnlen_s.c:33:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Len=%u \n",
^
unittests/test_strnlen_s.c:42:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Len=%u \n",
^
unittests/test_strnlen_s.c:54:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u std_len=%u len=%u \n",
^
unittests/test_strnlen_s.c:54:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
unittests/test_strnlen_s.c:66:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u std_len=%u len=%u \n",
^
unittests/test_strnlen_s.c:66:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
unittests/test_strnlen_s.c:78:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u std_len=%u len=%u \n",
^
unittests/test_strnlen_s.c:78:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
unittests/test_strnlen_s.c:90:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u std_len=%u len=%u \n",
^
unittests/test_strnlen_s.c:90:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
unittests/test_strnlen_s.c:100:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u len=%u \n",
^
unittests/test_strnlen_s.c:110:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u len=%u \n",
^
unittests/test_strnlen_s.c:120:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u len=%u \n",
^
gcc -c -o objtest/test_memcmp16_s.o unittests/test_memcmp16_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strcpyfldin_s.o unittests/test_strcpyfldin_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strnterminate_s.o unittests/test_strnterminate_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_strnterminate_s.c: In function ‘test_strnterminate_s’:
unittests/test_strnterminate_s.c:28:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Len=%u \n",
^
unittests/test_strnterminate_s.c:38:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Len=%u \n",
^
unittests/test_strnterminate_s.c:48:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Len=%u \n",
^
unittests/test_strnterminate_s.c:61:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u std_len=%u len=%u \n",
^
unittests/test_strnterminate_s.c:61:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
unittests/test_strnterminate_s.c:71:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u std_len=%u len=%u \n",
^
unittests/test_strnterminate_s.c:71:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
unittests/test_strnterminate_s.c:82:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u std_len=%u len=%u \n",
^
unittests/test_strnterminate_s.c:82:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
unittests/test_strnterminate_s.c:93:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u std_len=%u len=%u \n",
^
unittests/test_strnterminate_s.c:93:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
unittests/test_strnterminate_s.c:104:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u std_len=%u len=%u \n",
^
unittests/test_strnterminate_s.c:104:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
unittests/test_strnterminate_s.c:115:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u std_len=%u len=%u \n",
^
unittests/test_strnterminate_s.c:115:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
unittests/test_strnterminate_s.c:126:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u len=%u \n",
^
unittests/test_strnterminate_s.c:137:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u len=%u \n",
^
unittests/test_strnterminate_s.c:148:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u len=%u \n",
^
unittests/test_strnterminate_s.c:159:16: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u len=%u \n",
^
unittests/test_strnterminate_s.c:172:20: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u len=%u \n",
^
gcc -c -o objtest/test_memcmp32_s.o unittests/test_memcmp32_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strcpyfldout_s.o unittests/test_strcpyfldout_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strpbrk_s.o unittests/test_strpbrk_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_memcmp_s.o unittests/test_memcmp_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strcpyfld_s.o unittests/test_strcpyfld_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strprefix_s.o unittests/test_strprefix_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_memcpy16_s.o unittests/test_memcpy16_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strcpy_s.o unittests/test_strcpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strremovews_s.o unittests/test_strremovews_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_memcpy32_s.o unittests/test_memcpy32_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strcspn_s.o unittests/test_strcspn_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_strcspn_s.c: In function ‘test_strcspn_s’:
unittests/test_strcspn_s.c:25:42: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(NULL, LEN, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:38:42: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, LEN, NULL, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:59:40: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, 0, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:72:40: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, LEN, str2, 0, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:85:54: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, RSIZE_MAX_STR+1, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:98:64: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, RSIZE_MAX_STR, str2, RSIZE_MAX_STR+1, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:114:42: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, LEN, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:136:40: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, 1, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:152:40: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, 2, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:168:40: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, 3, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:185:40: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, 6, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:201:38: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, 6, str2, 2, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:217:42: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, LEN, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:234:42: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, LEN, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
unittests/test_strcspn_s.c:251:42: warning: passing argument 5 of ‘strcspn_s’ from incompatible pointer type [-Wincompatible-pointer-types]
rc = strcspn_s(str1, LEN, str2, LEN, &count);
^
In file included from unittests/test_strcspn_s.c:9:0:
include/safe_str_lib.h:115:1: note: expected ‘rsize_t * {aka long unsigned int *}’ but argument is of type ‘uint32_t * {aka unsigned int *}’
strcspn_s(const char *dest, rsize_t dmax,
^
gcc -c -o objtest/test_strspn_s.o unittests/test_strspn_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_strspn_s.c: In function ‘test_strspn_s’:
unittests/test_strspn_s.c:33:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:46:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:67:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:80:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:93:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:106:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:122:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error count=%d rc=%d \n",
^
unittests/test_strspn_s.c:138:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:154:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:170:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:187:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:204:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:222:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:239:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:256:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
unittests/test_strspn_s.c:273:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u count=%d std_count=%d rc=%d \n",
^
gcc -c -o objtest/test_memcpy_s.o unittests/test_memcpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_memcpy_s.c: In function ‘test_memcpy_s’:
unittests/test_memcpy_s.c:90:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%d - %d m1=%d m2=%d \n",
^
unittests/test_memcpy_s.c:117:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%d - %d m1=%d m2=%d \n",
^
unittests/test_memcpy_s.c:144:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%d - %d m1=%d m2=%d \n",
^
unittests/test_memcpy_s.c:171:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%d - %d m1=%d m2=%d \n",
^
gcc -c -o objtest/test_strfirstchar_s.o unittests/test_strfirstchar_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strstr_s.o unittests/test_strstr_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_memmove16_s.o unittests/test_memmove16_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strfirstdiff_s.o unittests/test_strfirstdiff_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_strfirstdiff_s.c: In function ‘test_strfirstdiff_s’:
unittests/test_strfirstdiff_s.c:32:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:45:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:66:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:79:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:95:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:111:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:127:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:143:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:158:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:174:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:190:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:206:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstdiff_s.c:222:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
gcc -c -o objtest/test_strtok_s.o unittests/test_strtok_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_memmove32_s.o unittests/test_memmove32_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strfirstsame_s.o unittests/test_strfirstsame_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_strfirstsame_s.c: In function ‘test_strfirstsame_s’:
unittests/test_strfirstsame_s.c:32:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:45:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:66:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:79:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:95:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:111:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:127:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:143:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:159:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:175:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:186:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:191:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:202:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:207:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:218:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:223:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:234:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strfirstsame_s.c:239:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
gcc -c -o objtest/test_strtolowercase_s.o unittests/test_strtolowercase_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_memmove_s.o unittests/test_memmove_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strisalphanumeric_s.o unittests/test_strisalphanumeric_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strtouppercase_s.o unittests/test_strtouppercase_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_memset16_s.o unittests/test_memset16_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strisascii_s.o unittests/test_strisascii_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strzero_s.o unittests/test_strzero_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_memset32_s.o unittests/test_memset32_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strisdigit_s.o unittests/test_strisdigit_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_wcpcpy_s.o unittests/test_wcpcpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_wcpcpy_s.c: In function ‘test_wcpcpy_s’:
unittests/test_wcpcpy_s.c:143:4: warning: implicit declaration of function ‘wcscpy_s’ [-Wimplicit-function-declaration]
wcscpy_s(str1, LEN, L"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
^
unittests/test_wcpcpy_s.c:201:52: warning: implicit declaration of function ‘wcsnlen_s’ [-Wimplicit-function-declaration]
if (ret == NULL || ret[0] != L'\0' || ret != str1+wcsnlen_s(str1, LEN) ) {
^
gcc -c -o objtest/test_memset_s.o unittests/test_memset_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strishex_s.o unittests/test_strishex_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_wcscat_s.o unittests/test_wcscat_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_memzero16_s.o unittests/test_memzero16_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strislowercase_s.o unittests/test_strislowercase_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_wcscpy_s.o unittests/test_wcscpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_wcscpy_s.c: In function ‘test_wcscpy_s’:
unittests/test_wcscpy_s.c:214:7: warning: implicit declaration of function ‘wcsnlen_s’ [-Wimplicit-function-declaration]
sz = wcsnlen_s(str1, LEN);
^
unittests/test_wcscpy_s.c:312:5: warning: implicit declaration of function ‘wmemset_s’ [-Wimplicit-function-declaration]
wmemset_s(str1, L'x', 20);
^
gcc -c -o objtest/test_memzero32_s.o unittests/test_memzero32_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strismixed_s.o unittests/test_strismixed_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_wcsncat_s.o unittests/test_wcsncat_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_memzero_s.o unittests/test_memzero_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strispassword_s.o unittests/test_strispassword_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_wcsncpy_s.o unittests/test_wcsncpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strisuppercase_s.o unittests/test_strisuppercase_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_wcsnlen_s.o unittests/test_wcsnlen_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_stpcpy_s.o unittests/test_stpcpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strlastchar_s.o unittests/test_strlastchar_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_wmemcmp_s.o unittests/test_wmemcmp_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_stpncpy_s.o unittests/test_stpncpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_stpncpy_s.c: In function ‘test_stpncpy_s’:
unittests/test_stpncpy_s.c:359:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u -%s- <> -%s- (smax=%d) Error rc=%u \n",
^
unittests/test_stpncpy_s.c:390:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u -%s- <> -%s- (smax=%d) Error rc=%u \n",
^
gcc -c -o objtest/test_strlastdiff_s.o unittests/test_strlastdiff_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_strlastdiff_s.c: In function ‘test_strlastdiff_s’:
unittests/test_strlastdiff_s.c:33:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastdiff_s.c:46:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastdiff_s.c:67:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastdiff_s.c:80:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastdiff_s.c:96:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastdiff_s.c:112:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastdiff_s.c:128:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastdiff_s.c:144:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastdiff_s.c:159:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastdiff_s.c:175:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastdiff_s.c:191:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
gcc -c -o objtest/test_wmemcpy_s.o unittests/test_wmemcpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strcasecmp_s.o unittests/test_strcasecmp_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strlastsame_s.o unittests/test_strlastsame_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_strlastsame_s.c: In function ‘test_strlastsame_s’:
unittests/test_strlastsame_s.c:32:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:45:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:66:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:79:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:95:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:111:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:127:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:143:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:159:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:170:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:175:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:186:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:191:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:202:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:207:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:218:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:223:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:234:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
unittests/test_strlastsame_s.c:239:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘rsize_t {aka long unsigned int}’ [-Wformat=]
printf("%s %u Error ind=%d rc=%d \n",
^
gcc -c -o objtest/test_wmemmove_s.o unittests/test_wmemmove_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_wmemmove_s.c: In function ‘test_wmemmove_s’:
unittests/test_wmemmove_s.c:407:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
rc = wmemmove_s((wchar_t)(((char *)mem1)+1), LEN, mem2, 10);
^
unittests/test_wmemmove_s.c:407:18: warning: passing argument 1 of ‘wmemmove_s’ makes pointer from integer without a cast [-Wint-conversion]
unittests/test_wmemmove_s.c:76:16: note: expected ‘wchar_t * {aka int *}’ but argument is of type ‘int’
extern errno_t wmemmove_s(wchar_t* dest, rsize_t dmax, const wchar_t* src, size_t smax);
^
unittests/test_wmemmove_s.c:433:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
rc = wmemmove_s((wchar_t)(((char *)mem1)+2), LEN, mem2, 10);
^
unittests/test_wmemmove_s.c:433:18: warning: passing argument 1 of ‘wmemmove_s’ makes pointer from integer without a cast [-Wint-conversion]
unittests/test_wmemmove_s.c:76:16: note: expected ‘wchar_t * {aka int *}’ but argument is of type ‘int’
extern errno_t wmemmove_s(wchar_t* dest, rsize_t dmax, const wchar_t* src, size_t smax);
^
gcc -c -o objtest/test_strcasestr_s.o unittests/test_strcasestr_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
unittests/test_strcasestr_s.c: In function ‘test_strcasestr_s’:
unittests/test_strcasestr_s.c:130:15: warning: implicit declaration of function ‘strcasestr’ [-Wimplicit-function-declaration]
std_sub = strcasestr(str1, str2);
^
unittests/test_strcasestr_s.c:130:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
std_sub = strcasestr(str1, str2);
^
unittests/test_strcasestr_s.c:131:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:131:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:136:10: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘char *’ [-Wformat=]
printf("strcasestr_s returns:[%x]\n", sub);
^
unittests/test_strcasestr_s.c:137:10: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘char *’ [-Wformat=]
printf("strcasestr returns:[%x]\n\n", std_sub);
^
unittests/test_strcasestr_s.c:157:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
std_sub = strcasestr(str1, str2);
^
unittests/test_strcasestr_s.c:158:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:158:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:163:10: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘char *’ [-Wformat=]
printf("strcasestr_s returns:[%x]\n", sub);
^
unittests/test_strcasestr_s.c:164:10: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘char *’ [-Wformat=]
printf("strcasestr returns:[%x]\n\n", std_sub);
^
unittests/test_strcasestr_s.c:185:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
std_sub = strcasestr(str1, str2);
^
unittests/test_strcasestr_s.c:186:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:186:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:267:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
std_sub = strcasestr(str1, str2);
^
unittests/test_strcasestr_s.c:268:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:268:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:298:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
std_sub = strcasestr(str1, str2);
^
unittests/test_strcasestr_s.c:299:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:299:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:423:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
std_sub = strcasestr(str1, str2);
^
unittests/test_strcasestr_s.c:424:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
unittests/test_strcasestr_s.c:424:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ((int)sub != (int)std_sub) { // comparison to handle 32-bit library return and 64-bit library r
^
gcc -c -o objtest/test_strljustify_s.o unittests/test_strljustify_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_wmemset_s.o unittests/test_wmemset_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strcat_s.o unittests/test_strcat_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strncat_s.o unittests/test_strncat_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strcmpfld_s.o unittests/test_strcmpfld_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -c -o objtest/test_strncpy_s.o unittests/test_strncpy_s.c -Iinclude -fstack-protector-strong -fPIE -fPIC -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
gcc -z noexecstack -z relo -z now -static -o safestringtest objtest/Safe_String_UnitTestMain.o objtest/test_strcmp_s.o objtest/test_strnlen_s.o objtest/test_memcmp16_s.o objtest/test_strcpyfldin_s.o objtest/test_strnterminate_s.o objtest/test_memcmp32_s.o objtest/test_strcpyfldout_s.o objtest/test_strpbrk_s.o objtest/test_memcmp_s.o objtest/test_strcpyfld_s.o objtest/test_strprefix_s.o objtest/test_memcpy16_s.o objtest/test_strcpy_s.o objtest/test_strremovews_s.o objtest/test_memcpy32_s.o objtest/test_strcspn_s.o objtest/test_strspn_s.o objtest/test_memcpy_s.o objtest/test_strfirstchar_s.o objtest/test_strstr_s.o objtest/test_memmove16_s.o objtest/test_strfirstdiff_s.o objtest/test_strtok_s.o objtest/test_memmove32_s.o objtest/test_strfirstsame_s.o objtest/test_strtolowercase_s.o objtest/test_memmove_s.o objtest/test_strisalphanumeric_s.o objtest/test_strtouppercase_s.o objtest/test_memset16_s.o objtest/test_strisascii_s.o objtest/test_strzero_s.o objtest/test_memset32_s.o objtest/test_strisdigit_s.o objtest/test_wcpcpy_s.o objtest/test_memset_s.o objtest/test_strishex_s.o objtest/test_wcscat_s.o objtest/test_memzero16_s.o objtest/test_strislowercase_s.o objtest/test_wcscpy_s.o objtest/test_memzero32_s.o objtest/test_strismixed_s.o objtest/test_wcsncat_s.o objtest/test_memzero_s.o objtest/test_strispassword_s.o objtest/test_wcsncpy_s.o objtest/test_strisuppercase_s.o objtest/test_wcsnlen_s.o objtest/test_stpcpy_s.o objtest/test_strlastchar_s.o objtest/test_wmemcmp_s.o objtest/test_stpncpy_s.o objtest/test_strlastdiff_s.o objtest/test_wmemcpy_s.o objtest/test_strcasecmp_s.o objtest/test_strlastsame_s.o objtest/test_wmemmove_s.o objtest/test_strcasestr_s.o objtest/test_strljustify_s.o objtest/test_wmemset_s.o objtest/test_strcat_s.o objtest/test_strncat_s.o objtest/test_strcmpfld_s.o objtest/test_strncpy_s.o libsafestring.a
/usr/bin/ld: warning: -z relo ignored.
cian@sourdough:~/Workspaces/safestringlib$ ./safestringtest
!!!Basic Test Suite for Safe String Operations!!!
ERRORS PRINT TO CONSOLE
----------------BEGIN TEST--------------------
Testing stpncpy_s:
Test #1:
Test #2:
Test #3:
Test #4:
Test #5:
Test #6:
Test #7:
Test #8:
Test #9:
Test #10:
Test #11:
Test #12:
Test #13:
Test #14:
Test #15:
Test #16:
Testing stpncpy_s:
Test #1:
Test #2:
Test #3:
Test #4:
Test #5:
Test #6:
Test #7:
Test #8:
Test #9:
Test #10:
Test #11:
Test #12:
Test #13:
Test #14:
Test #15:
Test #16:
Test #17:
Test #18:
Test #19:
*** stack smashing detected ***: ./safestringtest terminated
Aborted (core dumped)
cian@sourdough:~/Workspaces/safestringlib$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cian@sourdough:~/Workspaces/safestringlib$ lsb_release --a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
cian@sourdough:~/Workspaces/safestringlib$