[PATCH] [msan] Intercept *getxattr and *listxattr.

Sergey Matveev earthdok at google.com
Wed Jan 29 09:20:50 PST 2014



================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:3076
@@ +3075,3 @@
+  SSIZE_T res = REAL(listxattr)(path, list, size);
+  if (res >= 0) COMMON_INTERCEPTOR_WRITE_RANGE(ctx, list, size);
+  return res;
----------------
Evgeniy Stepanov wrote:
> if (res  > 0 && list)
> 
> size => res
We should probably fix this also in sanitizer_common_syscalls.inc, then.


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



More information about the llvm-commits mailing list