diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-06-11 13:44:21 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-06-11 13:44:21 -0400 |
commit | 4f29706128f3d3a66f0503d07c4960d4021aaf27 (patch) | |
tree | 7f76ae1b7819b99756feb1daf93cfe31d5c41c3b /src/string/strcspn.c | |
parent | 523944d96e11bde68bf9bcf8e42b7ebc99c5ed3d (diff) |
support watching for dangerous parameter accessnon-posix
Diffstat (limited to 'src/string/strcspn.c')
-rw-r--r-- | src/string/strcspn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string/strcspn.c b/src/string/strcspn.c index b5c3c506..c157f663 100644 --- a/src/string/strcspn.c +++ b/src/string/strcspn.c @@ -10,6 +10,8 @@ size_t strcspn(const char *s1, const char *s2) SIGNAL_SAFE(0); ASSERT_NONNULL(s1); ASSERT_NONNULL(s2); + + /* TODO: two dangerous reads */ /* no modification, overlap is OK */ for (i = 0; s1[i] != '\0'; i++) { |