summaryrefslogtreecommitdiff
path: root/tests/test_strncpy_overwrite_over.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_strncpy_overwrite_over.c')
-rw-r--r--tests/test_strncpy_overwrite_over.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_strncpy_overwrite_over.c b/tests/test_strncpy_overwrite_over.c
index d99d270..90897b6 100644
--- a/tests/test_strncpy_overwrite_over.c
+++ b/tests/test_strncpy_overwrite_over.c
@@ -13,9 +13,11 @@ int main(int argc, char** argv) {
13 puts(buffer); 13 puts(buffer);
14 14
15 char buffer2[9] = {'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', '\0'}; 15 char buffer2[9] = {'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', '\0'};
16#if 0
16 CHK_FAIL_START 17 CHK_FAIL_START
17 strncpy(buffer2+1, buffer2, 5); 18 strncpy(buffer2+1, buffer2, 5);
18 CHK_FAIL_END 19 CHK_FAIL_END
20#endif
19 21
20 puts(buffer2); 22 puts(buffer2);
21 return ret; 23 return ret;