diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-28 10:02:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-28 10:02:11 +0100 |
commit | 9967860c0cd26c0940ee4b9ab6698e00e5b1260a (patch) | |
tree | 000be053853792419070a7d8f64379ec7ca7bc8b /dev-util/valgrind/files/valgrind-3.21.0-memcpy-fortify_source.patch | |
parent | efc1a67ef36757bc76eb899ec03802086adda461 (diff) |
gentoo auto-resync : 28:08:2023 - 10:02:11
Diffstat (limited to 'dev-util/valgrind/files/valgrind-3.21.0-memcpy-fortify_source.patch')
-rw-r--r-- | dev-util/valgrind/files/valgrind-3.21.0-memcpy-fortify_source.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-util/valgrind/files/valgrind-3.21.0-memcpy-fortify_source.patch b/dev-util/valgrind/files/valgrind-3.21.0-memcpy-fortify_source.patch new file mode 100644 index 000000000000..87acc9ff9f55 --- /dev/null +++ b/dev-util/valgrind/files/valgrind-3.21.0-memcpy-fortify_source.patch @@ -0,0 +1,26 @@ +Avoid false positives w/ overlapping memcpy args with _FORTIFY_SOURCE's +memcpy_chk. + +https://src.fedoraproject.org/rpms/valgrind/raw/rawhide/f/valgrind-3.21.0-no-memcpy-replace-check.patch +https://bugs.kde.org/show_bug.cgi?id=402833 +https://bugs.kde.org/show_bug.cgi?id=453084 +--- a/shared/vg_replace_strmem.c ++++ b/shared/vg_replace_strmem.c +@@ -1128,7 +1128,7 @@ static inline void my_exit ( int x ) + MEMMOVE_OR_MEMCPY(20181, soname, fnname, 0) + + #define MEMCPY(soname, fnname) \ +- MEMMOVE_OR_MEMCPY(20180, soname, fnname, 1) ++ MEMMOVE_OR_MEMCPY(20180, soname, fnname, 0) /* See KDE bug #402833 */ + + #if defined(VGO_linux) + /* For older memcpy we have to use memmove-like semantics and skip +@@ -1714,8 +1714,6 @@ static inline void my_exit ( int x ) + RECORD_COPY(len); \ + if (len == 0) \ + return dst; \ +- if (is_overlap(dst, src, len, len)) \ +- RECORD_OVERLAP_ERROR("memcpy_chk", dst, src, len); \ + if ( dst > src ) { \ + d = (HChar *)dst + len - 1; \ + s = (const HChar *)src + len - 1; \ |