summaryrefslogtreecommitdiff
path: root/src/string/memcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/memcmp.c')
-rw-r--r--src/string/memcmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string/memcmp.c b/src/string/memcmp.c
index 156c8b03..0ceff387 100644
--- a/src/string/memcmp.c
+++ b/src/string/memcmp.c
@@ -14,6 +14,8 @@ int memcmp(const void *s1, const void *s2, size_t n)
ASSERT_NONNULL(s2);
/* no modifications, so overlap is OK */
+ /* TODO: TWO dangerous reads */
+
for (i = 0; i < n; i++) {
if (p[i] != q[i]) {
return p[i] - q[i];