From: Egor Chesakov Date: Sun, 19 Aug 2018 01:03:06 +0000 (-0700) Subject: Fix wrong sprinf_s format string in gtGetArgMsg getGetLateArgMsg on ARM32 (#19536) X-Git-Tag: accepted/tizen/unified/20190422.045933~1416 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b6d24ede2810d29338b6097bf04aa67471f637d;p=platform%2Fupstream%2Fcoreclr.git Fix wrong sprinf_s format string in gtGetArgMsg getGetLateArgMsg on ARM32 (#19536) --- 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;