[PATCH] [DFSan] New custom wrappers

Lorenzo Martignoni martignlo at google.com
Fri Dec 13 07:29:33 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 =
----------------
Peter Collingbourne wrote:
> Shouldn't this always be strlen(s)+1? The function always needs to inspect each char in the string, right?
Right! Fixed.


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



More information about the llvm-commits mailing list