From 33f7ef8edefe602a298fe66fc7480f518ba62e3c Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 7 Nov 2016 05:21:49 +0100 Subject: [PATCH] Fix #6144 - asm.capitalize do not uppercase locals --- libr/parse/p/parse_x86_pseudo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libr/parse/p/parse_x86_pseudo.c b/libr/parse/p/parse_x86_pseudo.c index 326c79d78d..b774e98113 100644 --- a/libr/parse/p/parse_x86_pseudo.c +++ b/libr/parse/p/parse_x86_pseudo.c @@ -251,6 +251,9 @@ static bool varsub (RParse *p, RAnalFunction *f, ut64 addr, int oplen, char *dat spargs = p->varlist (p->anal, f, 's'); /*iterate over stack pointer arguments/variables*/ bool ucase = *tstr >= 'A' && *tstr <= 'Z'; + if (ucase && tstr[1]) { + ucase = tstr[1] >= 'A' && tstr[1] <= 'Z'; + } r_list_foreach (spargs, spiter, sparg) { if (sparg->delta < 10) { snprintf (oldstr, sizeof (oldstr)-1, "[%s + %d]",