[evolution/wip/webkit2] EHTMLEditorView - Crash in selection_is_in_table function
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorView - Crash in selection_is_in_table function
- Date: Wed, 22 Apr 2015 13:12:04 +0000 (UTC)
commit 8f729bb8839269bb402e743cd7fb9bebe6a4f17e
Author: Tomas Popela <tpopela redhat com>
Date: Mon Mar 30 11:34:04 2015 +0200
EHTMLEditorView - Crash in selection_is_in_table function
Check if the passed variable is not NULL before working with it.
web-extensions/e-html-editor-view-dom-functions.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/e-html-editor-view-dom-functions.c
b/web-extensions/e-html-editor-view-dom-functions.c
index c48dcb5..768d3c7 100644
--- a/web-extensions/e-html-editor-view-dom-functions.c
+++ b/web-extensions/e-html-editor-view-dom-functions.c
@@ -6411,11 +6411,15 @@ selection_is_in_table (WebKitDOMDocument *document,
}
}
if (WEBKIT_DOM_IS_HTML_TABLE_ELEMENT (parent)) {
- *table_node = parent;
+ if (table_node != NULL)
+ *table_node = parent;
}
parent = webkit_dom_node_get_parent_node (parent);
}
+ if (table_node == NULL)
+ return FALSE;
+
return *table_node != NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]