From 84a70e97c9b832288fffe1ac4a011255df23229e Mon Sep 17 00:00:00 2001 From: Raphael Robatsch Date: Mon, 19 Feb 2024 17:36:07 +0100 Subject: [PATCH] Fix parsing of GDB tags not separated by whitespace `regstr_end + 3` would advance into the next `` tag if there is no whitespace between the two tags. --- subprojects/rzgdb/src/gdbclient/xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/rzgdb/src/gdbclient/xml.c b/subprojects/rzgdb/src/gdbclient/xml.c index e369cd835ec..e1f349d247b 100644 --- a/subprojects/rzgdb/src/gdbclient/xml.c +++ b/subprojects/rzgdb/src/gdbclient/xml.c @@ -894,7 +894,7 @@ static RzList *_extract_regs(char *regstr, RzList *flags, char *pc_alias) { rz_list_set_n(regs, regnum, tmpreg); } *regstr_end = '/'; - regstr = regstr_end + 3; + regstr = regstr_end + 2; if (rz_str_startswith(regstr, "")) { regstr += sizeof(""); // Revert to default