https://bugs.kde.org/show_bug.cgi?id=380397

--- Comment #3 from Andreas Arnez <[email protected]> ---
(In reply to Ivo Raisr from comment #1)
> Seems like a simple wrapper for "__strcspn_c" would suffice in
> shared/vg_replace_strmem.c.
> 
> Would you please try the following patch (also attached) against Valgrind
> from SVN [1]
> [...]

Confirmed, this works.  Thanks!
Instead of the s390x-specific function name "__strcspn_c", maybe we should
better redirect to the common alias "__GI_strcspn".  The following patch works
as well:

Index: vg_replace_strmem.c
===================================================================
--- vg_replace_strmem.c (revision 16429)
+++ vg_replace_strmem.c (working copy)
@@ -1721,6 +1721,7 @@

 #if defined(VGO_linux)
  STRCSPN(VG_Z_LIBC_SONAME,          strcspn)
+ STRCSPN(VG_Z_LIBC_SONAME,          __GI_strcspn)

 #elif defined(VGO_darwin)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to