[PATCH] D54702: Add interceptors for the strtoi(3)/strtou(3) from NetBSD
    Vitaly Buka via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Nov 19 13:21:20 PST 2018
    
    
  
vitalybuka added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:7326
+  if (nptr)
+    COMMON_INTERCEPTOR_READ_RANGE(ctx, nptr, REAL(strlen)(nptr) + 1);
+  UINTMAX_T ret = REAL(strtou)(nptr, endptr, base, low, high, rstatus);
----------------
we need StrtolFixAndCheck and avoid reading entire string for strict_string_checks=0
Repository:
  rL LLVM
https://reviews.llvm.org/D54702
    
    
More information about the llvm-commits
mailing list