[PATCH] [msan] Intercept *getxattr and *listxattr.
Sergey Matveev
earthdok at google.com
Wed Jan 29 09:22:35 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;
----------------
Sergey Matveev wrote:
> Evgeniy Stepanov wrote:
> > if (res > 0 && list)
> >
> > size => res
> We should probably fix this also in sanitizer_common_syscalls.inc, then.
Also, I'm fairly sure res > 0 implies list != NULL.
http://llvm-reviews.chandlerc.com/D2642
More information about the llvm-commits
mailing list