summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2020-09-14 16:30:06 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2020-09-16 14:40:55 +0200
commit3bd066c7dbffc2655501dea0b8d44d567ac1113b (patch)
tree44aef36838a308fdeab611f664c05e2045c45678 /src/lib
parent35f17a13fa0cd1de855cc2215e4f0ac9da6fb7bc (diff)
downloadefl-3bd066c7dbffc2655501dea0b8d44d567ac1113b.tar.gz
evas_textblock: prevent textnodes with <ps>/<br> without format node
this will prevent textnodes content with <ps> or <br> without format node Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D12145
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 5d1c476466..501e12ba78 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -11055,6 +11055,9 @@ _evas_textblock_node_text_adjust_offsets_to_start(Efl_Canvas_Textblock_Data *o,
size_t pos = 0;
int orig_end;
+ if ((start == 0) && (end == 0))
+ return EINA_FALSE;
+
itr = n->format_node;
if (!itr || (itr->text_node != n)) return EINA_FALSE;