[prevent][42870] Fix for null pointer dereference 88/172888/2
authorPaweł Stawicki <p.stawicki@samsung.com>
Fri, 16 Mar 2018 12:05:20 +0000 (13:05 +0100)
committerLukasz Oleksak <l.oleksak@samsung.com>
Tue, 20 Mar 2018 13:30:57 +0000 (13:30 +0000)
Change-Id: I74e51363d0e6ec34e9b771f605d283f1311af803

test/at_spi2_tool.c

index d7b91d5..63a3adb 100644 (file)
@@ -323,10 +323,10 @@ static char *_get_info(AtspiAccessible *node, int length_limit, bool *attributes
                                                unique_id, (uintptr_t)eo_ptr,
                                                node_role_name,
                                                attributes,
-                                               box_size->x,
-                                               box_size->y,
-                                               box_size->width,
-                                               box_size->height,
+                                               box_size ? box_size->x : "nil",
+                                               box_size ? box_size->y : "nil",
+                                               box_size ? box_size->width : "nil",
+                                               box_size ? box_size->height : "nil",
                                                node_name,
                                                states,
                                                current_node_has_relations ? "*" : "");