test: Add a test for fortification of string functions

We currently only run the testcase where it doesn't trigger the
failed checks though.
This commit is contained in:
Martin Storsjö committed 2022-09-16 19:43:40 +03:00
1 parent 2013c9c165
commit 4c29469eac
3 files changed
+134 -1

No files matched your search

+3
View File
@@ -160,6 +160,9 @@ RUN cd test && \
for test in stacksmash; do \
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -fstack-protector-strong || exit 1; \
done; \
for test in bufferoverflow; do \
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -lssp -D_FORTIFY_SOURCE=2 -O2 || exit 1; \
done; \
done
# Build OpenMP