Commit d81ae52e authored by Clemens Fries's avatar Clemens Fries Committed by Jim Evins

Fix out of bounds read when label is empty

parent 20490ccc
...@@ -283,7 +283,7 @@ gl_text_node_lines_new_from_text (const gchar *text) ...@@ -283,7 +283,7 @@ gl_text_node_lines_new_from_text (const gchar *text)
nodes = NULL; nodes = NULL;
} }
} }
if (*(p - 1) != '\n') { if (p != text && *(p - 1) != '\n') {
lines = g_list_append (lines, nodes); lines = g_list_append (lines, nodes);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment