[PATCH] [DFSan] New custom wrappers

Peter Collingbourne peter at pcc.me.uk
Fri Dec 6 18:34:29 PST 2013



================
Comment at: lib/dfsan/dfsan_custom.cc:751
@@ +750,3 @@
+  } else {
+    size_t len = ret ? ret - s + 1 : strlen(s) + 1;
+    *ret_label =
----------------
Shouldn't this always be strlen(s)+1? The function always needs to inspect each char in the string, right?


http://llvm-reviews.chandlerc.com/D2354



More information about the llvm-commits mailing list