summaryrefslogtreecommitdiff
path: root/src/string/strcmp.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-06-11 13:44:21 -0400
committerJakob Kaivo <jkk@ung.org>2024-06-11 13:44:21 -0400
commit4f29706128f3d3a66f0503d07c4960d4021aaf27 (patch)
tree7f76ae1b7819b99756feb1daf93cfe31d5c41c3b /src/string/strcmp.c
parent523944d96e11bde68bf9bcf8e42b7ebc99c5ed3d (diff)
support watching for dangerous parameter accessnon-posix
Diffstat (limited to 'src/string/strcmp.c')
-rw-r--r--src/string/strcmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string/strcmp.c b/src/string/strcmp.c
index 750f6772..d609a3d9 100644
--- a/src/string/strcmp.c
+++ b/src/string/strcmp.c
@@ -8,6 +8,7 @@ int strcmp(const char *s1, const char *s2)
SIGNAL_SAFE(0);
ASSERT_NONNULL(s1);
ASSERT_NONNULL(s2);
+ /* TODO: dangerous read * 2 */
/* no modifcation, overlap is OK */
while (*s1 && *s2) {