[gnome-builder/gnome-builder-3-28] xml-pack: don't dereference before base
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-28] xml-pack: don't dereference before base
- Date: Tue, 12 Jun 2018 04:10:02 +0000 (UTC)
commit 49d7d0936e2bc5858bebd61aed01f21a22697c4d
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 11 21:08:58 2018 -0700
xml-pack: don't dereference before base
src/plugins/xml-pack/ide-xml-sax.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/xml-pack/ide-xml-sax.c b/src/plugins/xml-pack/ide-xml-sax.c
index 4cb6eedf0..c2841655f 100644
--- a/src/plugins/xml-pack/ide-xml-sax.c
+++ b/src/plugins/xml-pack/ide-xml-sax.c
@@ -251,7 +251,7 @@ get_tag_location (IdeXmlSax *self,
if (ch == '\n')
--end_line_number;
- if (!g_unichar_isspace(ch))
+ if (!g_unichar_isspace (ch) || current == base)
break;
current = g_utf8_prev_char (current);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]