summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:30:10 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:30:10 -0400
commit20b592cef7f231378f67e0f78d5670144b4d3693 (patch)
tree654a5f275f58ca0b68e5c960f22ad4e5225fc65a /src/bin
parentc12008b4d0118232aca3f45e3e77137acef75078 (diff)
fix various trivial null derefs
Summary: CIDs 1401081, 1401044, 1400983, 1400960, 1400927, 1400799, 1396946, 1396944, 1383851, 1383847, 1382211, 1379921, 1379921 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10452
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/edje/edje_cc_script.c1
-rw-r--r--src/bin/elementary/test_genlist.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/edje/edje_cc_script.c b/src/bin/edje/edje_cc_script.c
index 2e52ac1..1c972ed 100644
--- a/src/bin/edje/edje_cc_script.c
+++ b/src/bin/edje/edje_cc_script.c
@@ -187,6 +187,7 @@ code_parse_internal(Code *code)
187 if (tmp->str) free(tmp->str); 187 if (tmp->str) free(tmp->str);
188 free(tmp); 188 free(tmp);
189 } 189 }
190 if (!sym) break;
190 if ((begin - 1) > body) 191 if ((begin - 1) > body)
191 { 192 {
192 sym->body = mem_alloc(sizeof(char) * (begin - body - 1)); 193 sym->body = mem_alloc(sizeof(char) * (begin - body - 1));
diff --git a/src/bin/elementary/test_genlist.c b/src/bin/elementary/test_genlist.c
index c3f4d95..749d04f 100644
--- a/src/bin/elementary/test_genlist.c
+++ b/src/bin/elementary/test_genlist.c
@@ -5531,9 +5531,7 @@ test_genlist_show_item(void *data,
5531 g_data->gl = gl; 5531 g_data->gl = gl;
5532 g_data->itc1 = api->itc1; 5532 g_data->itc1 = api->itc1;
5533 5533
5534 if (g_data) 5534 max = g_data->max_items;
5535 max = g_data->max_items;
5536 else max = 20000;
5537 for (i = 0; i <= max; i++) 5535 for (i = 0; i <= max; i++)
5538 elm_genlist_item_append(gl, api->itc1, (void*)(uintptr_t)i, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); 5536 elm_genlist_item_append(gl, api->itc1, (void*)(uintptr_t)i, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
5539 5537