Skip to content

Commit 48b0ae3

Browse files
author
mjw
committed
For memcheck overlap filter_memcpy str[n]cpy and __GI_str[n]cpy are equal.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13349 a5019735-40e9-0310-863c-91ae7b9d1cf9
1 parent 6f0b0c2 commit 48b0ae3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

memcheck/tests/filter_memcpy

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#! /bin/sh
22

33
# mc_replace_strmem.c intercepts various memcpy glibc versions.
4+
# mc_replace_strmem.c str[n]cpy and __GI_str[n]cpy are the same.
45
./filter_stderr "$@" |
5-
perl -p -e "s/: memcpy\@\@?GLIBC_[.1-9]+ \(mc_replace_strmem.c:...\)/: memcpy \(mc_replace_strmem.c:...\)/"
6+
perl -p -e "s/: memcpy\@\@?GLIBC_[.1-9]+ \(mc_replace_strmem.c:...\)/: memcpy \(mc_replace_strmem.c:...\)/" |
7+
sed -e "s/: __GI_strcpy (mc_replace_strmem.c:/: strcpy (mc_replace_strmem.c:/" |
8+
sed -e "s/: __GI_strncpy (mc_replace_strmem.c:/: strncpy (mc_replace_strmem.c:/"

0 commit comments

Comments
 (0)