From 7b6d24ede2810d29338b6097bf04aa67471f637d Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Sat, 18 Aug 2018 18:03:06 -0700 Subject: [PATCH] Fix wrong sprinf_s format string in gtGetArgMsg getGetLateArgMsg on ARM32 (#19536) --- src/jit/gentree.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jit/gentree.cpp b/src/jit/gentree.cpp index af59dfe..c3ce836 100644 --- a/src/jit/gentree.cpp +++ b/src/jit/gentree.cpp @@ -11496,7 +11496,8 @@ void Compiler::gtGetArgMsg( else { unsigned stackSlot = listCount - curArgTabEntry->numRegs; - sprintf_s(bufp, bufLength, "arg%d m%d out+%s%c", argNum, listCount, stackSlot, 0); + sprintf_s(bufp, bufLength, "arg%d m%d out+%02x%c", argNum, listCount, + stackSlot * TARGET_POINTER_SIZE, 0); } } return; @@ -11625,7 +11626,8 @@ void Compiler::gtGetLateArgMsg( else { unsigned stackSlot = listCount - curArgTabEntry->numRegs; - sprintf_s(bufp, bufLength, "arg%d m%d out+%s%c", argNum, listCount, stackSlot, 0); + sprintf_s(bufp, bufLength, "arg%d m%d out+%02x%c", argNum, listCount, + stackSlot * TARGET_POINTER_SIZE, 0); } } return; -- 2.7.4