]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a comment to previous commit.
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 2 Dec 2020 05:21:23 +0000 (16:21 +1100)
committerNicholas Nethercote <nnethercote@mozilla.com>
Wed, 2 Dec 2020 05:21:23 +0000 (16:21 +1100)
shared/vg_replace_strmem.c

index df61aa1327a2050c8e241831db9ac5e0f476af3b..423216ae1805d4fa486cf48d44b49969a0963989 100644 (file)
@@ -1979,6 +1979,7 @@ static inline void my_exit ( int x )
       /* pre-counting length... should be ok */ \
       if (is_overlap(dst_orig,  \
                      src_orig,  \
+                     /* +4 because sizeof(wchar_t) == 4 */ \
                      (Addr)dst-(Addr)dst_orig+4, \
                      (Addr)src-(Addr)src_orig+4)) \
          RECORD_OVERLAP_ERROR("wcscpy", dst_orig, src_orig, 0); \