summaryrefslogtreecommitdiff
path: root/src/string/strcoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/strcoll.c')
-rw-r--r--src/string/strcoll.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/string/strcoll.c b/src/string/strcoll.c
index 7091e30f..8ea365b6 100644
--- a/src/string/strcoll.c
+++ b/src/string/strcoll.c
@@ -13,10 +13,16 @@ int strcoll(const char *s1, const char *s2)
SIGNAL_SAFE(0);
ASSERT_NONNULL(s1);
ASSERT_NONNULL(s2);
+
/* no modification, overlap is OK */
+ DANGEROUS_READ(s1, -1);
x1 = malloc(strxfrm(x1, s1, 0));
+ DANGER_OVER();
+
+ DANGEROUS_READ(s2, -1);
x2 = malloc(strxfrm(x2, s2, 0));
+ DANGER_OVER();
if (x1 && x2) {
strxfrm(x1, s1, 0);