]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix 353660 XML in auxwhat tag not escaping reserved symbols properly
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 28 Dec 2015 22:02:18 +0000 (22:02 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 28 Dec 2015 22:02:18 +0000 (22:02 +0000)
Changed a few %s or %pS into %ps in m_addrinfo.c
(based on code reading matching the pattern given in the bug report,
as there was no reproducer).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15753

NEWS
coregrind/m_addrinfo.c

diff --git a/NEWS b/NEWS
index 025721aa78f877e77c9167780fdd021c905bba87..2d984533c2b50cf1cbae56af9b8f5941c6812362 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -45,6 +45,7 @@ where XXXXXX is the bug number as listed below.
 353084  arm64 doesn't support sigpending system call
 353370  don't advertise RDRAND in cpuid for Core-i7-4910-like avx2 machine
 353398  WARNING: unhandled amd64-solaris syscall: 207
+353660  XML in auxwhat tag not escaping reserved symbols properly
 353680  s390x: Crash with certain glibc versions due to non-implemented TBEGIN
 353891  Assert 'bad_scanned_addr < VG_ROUNDDN(start+len, sizeof(Addr))' failed
 353917  unhandled amd64-solaris syscall fchdir(120)
index 8c39b47b5b13cd13d8fb450a4e1b99a64a863d61..7b1c4cfe8438b9a009d9f575883c47d4f48a7602 100644 (file)
@@ -463,7 +463,7 @@ static void pp_addrinfo_WRK ( Addr a, const AddrInfo* ai, Bool mc,
             hasfn = VG_(get_fnname)(ai->Addr.Stack.IP, &fn);
 
             if (hasfn || hasfile)
-               VG_(emit)( "%sin frame #%d, created by %s (%s:%s)%s\n",
+               VG_(emit)( "%sin frame #%d, created by %ps (%ps:%s)%s\n",
                           xpre,
                           ai->Addr.Stack.frameNo, 
                           hasfn ? fn : "???", 
@@ -573,7 +573,7 @@ static void pp_addrinfo_WRK ( Addr a, const AddrInfo* ai, Bool mc,
 
       case Addr_DataSym:
          VG_(emit)( "%sAddress 0x%lx is %llu bytes "
-                    "inside data symbol \"%pS\"%s\n",
+                    "inside data symbol \"%ps\"%s\n",
                     xpre, a,
                     (ULong)ai->Addr.DataSym.offset,
                     ai->Addr.DataSym.name,
@@ -595,7 +595,7 @@ static void pp_addrinfo_WRK ( Addr a, const AddrInfo* ai, Bool mc,
          break;
 
       case Addr_SectKind:
-         VG_(emit)( "%sAddress 0x%lx is in the %pS segment of %pS%s\n",
+         VG_(emit)( "%sAddress 0x%lx is in the %ps segment of %ps%s\n",
                     xpre, a,
                     VG_(pp_SectKind)(ai->Addr.SectKind.kind),
                     ai->Addr.SectKind.objname,
@@ -627,7 +627,7 @@ static void pp_addrinfo_WRK ( Addr a, const AddrInfo* ai, Bool mc,
 
       case Addr_SegmentKind:
          VG_(emit)( "%sAddress 0x%lx is in "
-                    "a %s%s%s %s%s%pS segment%s\n",
+                    "a %s%s%s %s%s%ps segment%s\n",
                     xpre,
                     a,
                     ai->Addr.SegmentKind.hasR ? "r" : "-",