reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
  370     COMMON_INTERCEPTOR_READ_RANGE(ctx, s, result + 1);
  384     COMMON_INTERCEPTOR_READ_RANGE(ctx, s, Min(length + 1, maxlen));
  476   COMMON_INTERCEPTOR_READ_RANGE((ctx), (s1), Min(i1 + 1, size));
  477   COMMON_INTERCEPTOR_READ_RANGE((ctx), (s2), Min(i2 + 1, size));
  539   COMMON_INTERCEPTOR_READ_RANGE((ctx), (s1), Min(i1 + 1, size));
  540   COMMON_INTERCEPTOR_READ_RANGE((ctx), (s2), Min(i2 + 1, size));
  560     COMMON_INTERCEPTOR_READ_RANGE(ctx, s2, len2 + 1);
  622       COMMON_INTERCEPTOR_READ_RANGE(ctx, str, REAL(strlen)(str) + 1);
  624     COMMON_INTERCEPTOR_READ_RANGE(ctx, delimiters,
  636     COMMON_INTERCEPTOR_READ_RANGE(ctx, delimiters, 1);
  639       COMMON_INTERCEPTOR_READ_RANGE(ctx, result, REAL(strlen)(result) + 1);
  643       COMMON_INTERCEPTOR_READ_RANGE(ctx, str, REAL(strlen)(str) + 1);
  665     COMMON_INTERCEPTOR_READ_RANGE(ctx, s1, len1);
  666     COMMON_INTERCEPTOR_READ_RANGE(ctx, s2, len2);
  719     COMMON_INTERCEPTOR_READ_RANGE(ctx, s, REAL(strlen)(s) + 1);
  733     COMMON_INTERCEPTOR_READ_RANGE(ctx, s2, REAL(strlen)(s2) + 1);
  744     COMMON_INTERCEPTOR_READ_RANGE(ctx, s2, REAL(strlen)(s2) + 1);
  763     COMMON_INTERCEPTOR_READ_RANGE(ctx, s2, REAL(strlen)(s2) + 1);
  839       COMMON_INTERCEPTOR_READ_RANGE(ctx, a1, size);
  840       COMMON_INTERCEPTOR_READ_RANGE(ctx, a2, size);
  852       COMMON_INTERCEPTOR_READ_RANGE(ctx, s1, Min(i + 1, size));
  853       COMMON_INTERCEPTOR_READ_RANGE(ctx, s2, Min(i + 1, size));
  910   COMMON_INTERCEPTOR_READ_RANGE(ctx, s, len);
  923   COMMON_INTERCEPTOR_READ_RANGE(ctx, s, n);
  989   COMMON_INTERCEPTOR_READ_RANGE(ctx, iovec, sizeof(*iovec) * iovlen);
  992     COMMON_INTERCEPTOR_READ_RANGE(ctx, iovec[i].iov_base, sz);
 1125   if (res > 0) COMMON_INTERCEPTOR_READ_RANGE(ctx, ptr, res);
 1139   if (res > 0) COMMON_INTERCEPTOR_READ_RANGE(ctx, p, res * size);
 1154   if (res > 0) COMMON_INTERCEPTOR_READ_RANGE(ctx, ptr, res);
 1170   if (res > 0) COMMON_INTERCEPTOR_READ_RANGE(ctx, ptr, res);
 1250     COMMON_INTERCEPTOR_READ_RANGE(ctx, s, REAL(strlen)(s) + 1);
 1265     COMMON_INTERCEPTOR_READ_RANGE(ctx, s, REAL(strlen)(s) + 1);
 1328     COMMON_INTERCEPTOR_READ_RANGE(ctx, timep, sizeof(*timep));
 1338     COMMON_INTERCEPTOR_READ_RANGE(ctx, timep, sizeof(*timep));
 1348     COMMON_INTERCEPTOR_READ_RANGE(ctx, timep, sizeof(*timep));
 1358     COMMON_INTERCEPTOR_READ_RANGE(ctx, timep, sizeof(*timep));
 1371     COMMON_INTERCEPTOR_READ_RANGE(ctx, timep, sizeof(*timep));
 1384     COMMON_INTERCEPTOR_READ_RANGE(ctx, timep, sizeof(*timep));
 1397     COMMON_INTERCEPTOR_READ_RANGE(ctx, tm, sizeof(*tm));
 1410     COMMON_INTERCEPTOR_READ_RANGE(ctx, tm, sizeof(*tm));
 1418   COMMON_INTERCEPTOR_READ_RANGE(ctx, &tm->tm_sec, sizeof(tm->tm_sec));
 1419   COMMON_INTERCEPTOR_READ_RANGE(ctx, &tm->tm_min, sizeof(tm->tm_min));
 1420   COMMON_INTERCEPTOR_READ_RANGE(ctx, &tm->tm_hour, sizeof(tm->tm_hour));
 1421   COMMON_INTERCEPTOR_READ_RANGE(ctx, &tm->tm_mday, sizeof(tm->tm_mday));
 1422   COMMON_INTERCEPTOR_READ_RANGE(ctx, &tm->tm_mon, sizeof(tm->tm_mon));
 1423   COMMON_INTERCEPTOR_READ_RANGE(ctx, &tm->tm_year, sizeof(tm->tm_year));
 1424   COMMON_INTERCEPTOR_READ_RANGE(ctx, &tm->tm_isdst, sizeof(tm->tm_isdst));
 1448     COMMON_INTERCEPTOR_READ_RANGE(ctx, format, REAL(strlen)(format) + 1);
 1901     COMMON_INTERCEPTOR_READ_RANGE(ctx, name, REAL(strlen)(name) + 1);
 1916   COMMON_INTERCEPTOR_READ_RANGE(ctx, name, REAL(strlen)(name) + 1);
 1942   COMMON_INTERCEPTOR_READ_RANGE(ctx, name, REAL(strlen)(name) + 1);
 1969   COMMON_INTERCEPTOR_READ_RANGE(ctx, name, REAL(strlen)(name) + 1);
 2189   COMMON_INTERCEPTOR_READ_RANGE(ctx, tp, struct_timespec_sz);
 2220     COMMON_INTERCEPTOR_READ_RANGE(ctx, &nv->it_interval.tv_sec,
 2222     COMMON_INTERCEPTOR_READ_RANGE(ctx, &nv->it_interval.tv_usec,
 2224     COMMON_INTERCEPTOR_READ_RANGE(ctx, &nv->it_value.tv_sec,
 2226     COMMON_INTERCEPTOR_READ_RANGE(ctx, &nv->it_value.tv_usec,
 2478   if (sz) COMMON_INTERCEPTOR_READ_RANGE(ctx, src, sz);
 2513   if (cp) COMMON_INTERCEPTOR_READ_RANGE(ctx, cp, REAL(strlen)(cp) + 1);
 2614   COMMON_INTERCEPTOR_READ_RANGE(ctx, addrlen, sizeof(*addrlen));
 2665   COMMON_INTERCEPTOR_READ_RANGE(ctx, addr, len);
 2754   COMMON_INTERCEPTOR_READ_RANGE(ctx, addr, len);
 2806   if (optlen) COMMON_INTERCEPTOR_READ_RANGE(ctx, optlen, sizeof(*optlen));
 2826     COMMON_INTERCEPTOR_READ_RANGE(ctx, addrlen, sizeof(*addrlen));
 2848     COMMON_INTERCEPTOR_READ_RANGE(ctx, addrlen, sizeof(*addrlen));
 2979   if (timeout) COMMON_INTERCEPTOR_READ_RANGE(ctx, timeout, struct_timespec_sz);
 3007     COMMON_INTERCEPTOR_READ_RANGE(ctx, &cmsg->cmsg_len, sizeof(cmsg->cmsg_len));
 3011     COMMON_INTERCEPTOR_READ_RANGE(ctx, &cmsg->cmsg_level,
 3013     COMMON_INTERCEPTOR_READ_RANGE(ctx, &cmsg->cmsg_type,
 3019       if (data_len > 0) COMMON_INTERCEPTOR_READ_RANGE(ctx, data, data_len);
 3039     COMMON_INTERCEPTOR_READ_RANGE(ctx, msg->msg_name, msg->msg_namelen);
 3041     COMMON_INTERCEPTOR_READ_RANGE(ctx, msg->msg_iov,
 3133   COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 3217       COMMON_INTERCEPTOR_READ_RANGE(ctx, data, struct_user_regs_struct_sz);
 3219       COMMON_INTERCEPTOR_READ_RANGE(ctx, data, struct_user_fpregs_struct_sz);
 3221       COMMON_INTERCEPTOR_READ_RANGE(ctx, data, struct_user_fpxregs_struct_sz);
 3223       COMMON_INTERCEPTOR_READ_RANGE(ctx, data, struct_user_vfpregs_struct_sz);
 3225       COMMON_INTERCEPTOR_READ_RANGE(ctx, data, siginfo_t_sz);
 3232       COMMON_INTERCEPTOR_READ_RANGE(ctx, iovec, sizeof(*iovec));
 3235         COMMON_INTERCEPTOR_READ_RANGE(ctx, iovec->iov_base, iovec->iov_len);
 3288     COMMON_INTERCEPTOR_READ_RANGE(ctx, locale, REAL(strlen)(locale) + 1);
 3418   if (src) COMMON_INTERCEPTOR_READ_RANGE(ctx, src, sizeof(*src));
 3419   if (ps) COMMON_INTERCEPTOR_READ_RANGE(ctx, ps, mbstate_t_sz);
 3446     COMMON_INTERCEPTOR_READ_RANGE(ctx, src, sizeof(*src));
 3447     if (nms) COMMON_INTERCEPTOR_READ_RANGE(ctx, *src, nms);
 3449   if (ps) COMMON_INTERCEPTOR_READ_RANGE(ctx, ps, mbstate_t_sz);
 3485   if (src) COMMON_INTERCEPTOR_READ_RANGE(ctx, src, sizeof(*src));
 3486   if (ps) COMMON_INTERCEPTOR_READ_RANGE(ctx, ps, mbstate_t_sz);
 3511     COMMON_INTERCEPTOR_READ_RANGE(ctx, src, sizeof(*src));
 3512     if (nms) COMMON_INTERCEPTOR_READ_RANGE(ctx, *src, nms);
 3514   if (ps) COMMON_INTERCEPTOR_READ_RANGE(ctx, ps, mbstate_t_sz);
 3536   if (ps) COMMON_INTERCEPTOR_READ_RANGE(ctx, ps, mbstate_t_sz);
 3600   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 3624   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 3787   if (dirp) COMMON_INTERCEPTOR_READ_RANGE(ctx, dirp, REAL(strlen)(dirp) + 1);
 3840   if (dirp) COMMON_INTERCEPTOR_READ_RANGE(ctx, dirp, REAL(strlen)(dirp) + 1);
 3887     COMMON_INTERCEPTOR_READ_RANGE(ctx, &fds[i].fd, sizeof(fds[i].fd));
 3888     COMMON_INTERCEPTOR_READ_RANGE(ctx, &fds[i].events, sizeof(fds[i].events));
 3920     COMMON_INTERCEPTOR_READ_RANGE(ctx, timeout_ts, struct_timespec_sz);
 3921   if (sigmask) COMMON_INTERCEPTOR_READ_RANGE(ctx, sigmask, sizeof(*sigmask));
 3936   if (s) COMMON_INTERCEPTOR_READ_RANGE(ctx, s, REAL(strlen)(s) + 1);
 3962   if (set) COMMON_INTERCEPTOR_READ_RANGE(ctx, set, sizeof(*set));
 3979   if (set) COMMON_INTERCEPTOR_READ_RANGE(ctx, set, sizeof(*set));
 3997   if (timeout) COMMON_INTERCEPTOR_READ_RANGE(ctx, timeout, struct_timespec_sz);
 3998   if (set) COMMON_INTERCEPTOR_READ_RANGE(ctx, set, sizeof(*set));
 4061   if (set) COMMON_INTERCEPTOR_READ_RANGE(ctx, set, sizeof(*set));
 4111     COMMON_INTERCEPTOR_READ_RANGE(ctx, buffer, size * sizeof(*buffer));
 4265   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 4294   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 4323   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 4357   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 4386   if (user) COMMON_INTERCEPTOR_READ_RANGE(ctx, user, REAL(strlen)(user) + 1);
 4399   if (addr) COMMON_INTERCEPTOR_READ_RANGE(ctx, addr, sizeof(*addr));
 4407   if (buf) COMMON_INTERCEPTOR_READ_RANGE(ctx, buf, REAL(strlen)(buf) + 1);
 4423   if (addr) COMMON_INTERCEPTOR_READ_RANGE(ctx, addr, sizeof(*addr));
 4436     COMMON_INTERCEPTOR_READ_RANGE(ctx, hostname, REAL(strlen)(hostname) + 1);
 4448   if (line) COMMON_INTERCEPTOR_READ_RANGE(ctx, line, REAL(strlen)(line) + 1);
 4472   if (addr) COMMON_INTERCEPTOR_READ_RANGE(ctx, addr, sizeof(*addr));
 4484   if (buf) COMMON_INTERCEPTOR_READ_RANGE(ctx, buf, REAL(strlen)(buf) + 1);
 4809   if (dir) COMMON_INTERCEPTOR_READ_RANGE(ctx, dir, REAL(strlen)(dir) + 1);
 4810   if (pfx) COMMON_INTERCEPTOR_READ_RANGE(ctx, pfx, REAL(strlen)(pfx) + 1);
 5055   COMMON_INTERCEPTOR_READ_RANGE(ctx, seedp, sizeof(*seedp));
 5120     COMMON_INTERCEPTOR_READ_RANGE(ctx, inbytesleft, sizeof(*inbytesleft));
 5122     COMMON_INTERCEPTOR_READ_RANGE(ctx, *inbuf, *inbytesleft);
 5124     COMMON_INTERCEPTOR_READ_RANGE(ctx, outbytesleft, sizeof(*outbytesleft));
 5264   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 5277   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 5308   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 5309   if (name) COMMON_INTERCEPTOR_READ_RANGE(ctx, name, REAL(strlen)(name) + 1);
 5321   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 5322   if (name) COMMON_INTERCEPTOR_READ_RANGE(ctx, name, REAL(strlen)(name) + 1);
 5334   if (name) COMMON_INTERCEPTOR_READ_RANGE(ctx, name, REAL(strlen)(name) + 1);
 5441     COMMON_INTERCEPTOR_READ_RANGE(ctx, ifname, REAL(strlen)(ifname) + 1);
 5456     COMMON_INTERCEPTOR_READ_RANGE(ctx, hdrp, __user_cap_header_struct_sz);
 5472     COMMON_INTERCEPTOR_READ_RANGE(ctx, hdrp, __user_cap_header_struct_sz);
 5474     COMMON_INTERCEPTOR_READ_RANGE(ctx, datap, __user_cap_data_struct_sz);
 5677     COMMON_INTERCEPTOR_READ_RANGE(ctx, p, sizeof(*p));
 5678     COMMON_INTERCEPTOR_READ_RANGE(ctx, sizep, sizeof(*sizep));
 5679     COMMON_INTERCEPTOR_READ_RANGE(ctx, *p, *sizep);
 5698     COMMON_INTERCEPTOR_READ_RANGE(ctx, p, sizeof(*p));
 5699     COMMON_INTERCEPTOR_READ_RANGE(ctx, *p, REAL(strlen)(*p) + 1);
 5843   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 5844   COMMON_INTERCEPTOR_READ_RANGE(ctx, mode, REAL(strlen)(mode) + 1);
 5853   COMMON_INTERCEPTOR_READ_RANGE(ctx, mode, REAL(strlen)(mode) + 1);
 5862   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 5863   COMMON_INTERCEPTOR_READ_RANGE(ctx, mode, REAL(strlen)(mode) + 1);
 5882   COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 5883   COMMON_INTERCEPTOR_READ_RANGE(ctx, mode, REAL(strlen)(mode) + 1);
 5893   if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 5894   COMMON_INTERCEPTOR_READ_RANGE(ctx, mode, REAL(strlen)(mode) + 1);
 6068     COMMON_INTERCEPTOR_READ_RANGE(ctx, prompt, REAL(strlen)(prompt)+1);
 6085   COMMON_INTERCEPTOR_READ_RANGE(ctx, new_value, struct_itimerspec_sz);
 6248   COMMON_INTERCEPTOR_READ_RANGE(ctx, abstime, struct_timespec_sz);
 6439     COMMON_INTERCEPTOR_READ_RANGE(ctx, buf, Min((SIZE_T)res, len));
 6454     COMMON_INTERCEPTOR_READ_RANGE(ctx, buf, Min((SIZE_T)res, len));
 6653     COMMON_INTERCEPTOR_READ_RANGE(ctx, ut, __sanitizer::struct_utmpx_sz);
 6701   COMMON_INTERCEPTOR_READ_RANGE(ctx, s, sizeof(wchar_t) * (res + 1));
 6709   COMMON_INTERCEPTOR_READ_RANGE(ctx, s, sizeof(wchar_t) * Min(res + 1, n));
 6722   COMMON_INTERCEPTOR_READ_RANGE(ctx, src, (src_size + 1) * sizeof(wchar_t));
 6723   COMMON_INTERCEPTOR_READ_RANGE(ctx, dst, (dst_size + 1) * sizeof(wchar_t));
 6734   COMMON_INTERCEPTOR_READ_RANGE(ctx, src,
 6736   COMMON_INTERCEPTOR_READ_RANGE(ctx, dst, (dst_size + 1) * sizeof(wchar_t));
 6753   COMMON_INTERCEPTOR_READ_RANGE(ctx, s, sizeof(wchar_t) * (len + 1));
 6989   COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 7006   COMMON_INTERCEPTOR_READ_RANGE(ctx, path, REAL(strlen)(path) + 1);
 7024   COMMON_INTERCEPTOR_READ_RANGE(ctx, pathname, REAL(strlen)(pathname) + 1);
 7028   COMMON_INTERCEPTOR_READ_RANGE(
 7060   COMMON_INTERCEPTOR_READ_RANGE(
 7063   COMMON_INTERCEPTOR_READ_RANGE(
 7066   COMMON_INTERCEPTOR_READ_RANGE(
 7502     COMMON_INTERCEPTOR_READ_RANGE(ctx, pattern, REAL(strlen)(pattern) + 1);
 7513     COMMON_INTERCEPTOR_READ_RANGE(ctx, preg, struct_regex_sz);
 7515     COMMON_INTERCEPTOR_READ_RANGE(ctx, string, REAL(strlen)(string) + 1);
 7526     COMMON_INTERCEPTOR_READ_RANGE(ctx, preg, struct_regex_sz);
 7536     COMMON_INTERCEPTOR_READ_RANGE(ctx, preg, struct_regex_sz);
 9233     COMMON_INTERCEPTOR_READ_RANGE(ctx, command, REAL(strlen)(command) + 1);
 9235     COMMON_INTERCEPTOR_READ_RANGE(ctx, type, REAL(strlen)(type) + 1);
 9580   COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
 9581   COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
 9596   COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
 9597   COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
  306   COMMON_INTERCEPTOR_READ_RANGE(ctx, format, internal_strlen(format) + 1);
  490   COMMON_INTERCEPTOR_READ_RANGE(ctx, format, internal_strlen(format) + 1);
  547         COMMON_INTERCEPTOR_READ_RANGE(ctx, argp, size);
  553         COMMON_INTERCEPTOR_READ_RANGE(ctx, argp, size);
projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
  583     COMMON_INTERCEPTOR_READ_RANGE(ctx, arg, size);
  589     COMMON_INTERCEPTOR_READ_RANGE(ctx, (char*)&ifc->ifc_len,