From: Nicholas Nethercote Date: Wed, 2 Dec 2020 05:21:23 +0000 (+1100) Subject: Add a comment to previous commit. X-Git-Tag: VALGRIND_3_17_0~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d63b8ec7d423268296d8cd664c3fcee9126d24b8;p=thirdparty%2Fvalgrind.git Add a comment to previous commit. --- diff --git a/shared/vg_replace_strmem.c b/shared/vg_replace_strmem.c index df61aa1327..423216ae18 100644 --- a/shared/vg_replace_strmem.c +++ b/shared/vg_replace_strmem.c @@ -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); \