]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 443314 - In the latest GIT version, Valgrind with "--trace-flags" crashes at...
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 9 Oct 2021 21:02:28 +0000 (23:02 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 9 Oct 2021 21:02:28 +0000 (23:02 +0200)
NEWS
VEX/priv/guest_amd64_toIR.c

diff --git a/NEWS b/NEWS
index d2455d44726d8ec8db2b02278c23c429d695163e..d8addbb203384cc597b71de79abd2413ccb6a415 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -84,6 +84,8 @@ are not entered into bugzilla tend to get forgotten about or ignored.
 443179  Need new test for the lxvx and stxvx instructions on ISA 2.07 and
         ISA 3.0 systems.
 443180  The subnormal test and the ISA 3.0 test generate compiler warnings.
+443314  In the latest GIT version, Valgrind with "--trace-flags" crashes at
+        "al" register
 
 To see details of a given bug, visit
   https://bugs.kde.org/show_bug.cgi?id=XXXXXX
index c7f94b15b52467099579ab3b30f4f9905337d777..86fe07fdc576c5e2a9d946b4adb80d08e4b5a502 100644 (file)
@@ -1188,8 +1188,9 @@ static const HChar* nameIRegRexB ( Int sz, Prefix pfx, UInt lo3bits )
    vassert(lo3bits < 8);
    vassert(IS_VALID_PFX(pfx));
    vassert(sz == 8 || sz == 4 || sz == 2 || sz == 1);
-   return nameIReg( sz, lo3bits | (getRexB(pfx) << 3), 
-                        toBool(sz==1 && !haveREX(pfx)) );
+   UInt regNo = lo3bits | (getRexB(pfx) << 3);
+   return nameIReg( sz, regNo,
+                        toBool(sz==1 && !haveREX(pfx) && regNo >= 4 && regNo < 8));
 }
 
 static IRExpr* getIRegRexB ( Int sz, Prefix pfx, UInt lo3bits )