Track tainted data and refuse to expand it
[exim.git] / src / src / auths / pwcheck.c
index 54ba80f92ab9881e92c1ffde53e1ed7a2786b56b..f733b9898046d94523a59ee7523ff82c901a11ed 100644 (file)
@@ -296,7 +296,8 @@ static int read_string(int fd, uschar **retval) {
         if (count > MAX_REQ_LEN) {
             return -1;
         } else {
-            *retval = store_get(count + 1);
+           /* Assume the file is trusted, so no tainting */
+            *retval = store_get(count + 1, FALSE);
             rc = (retry_read(fd, *retval, count) < (int) count);
             (*retval)[count] = '\0';
             return count;