diff options
Diffstat (limited to 'meta-efl/recipes-efl/efl/efl/0003-edje_cc-Avoid-segfault-when-strcmp-NULL-items.patch')
-rw-r--r-- | meta-efl/recipes-efl/efl/efl/0003-edje_cc-Avoid-segfault-when-strcmp-NULL-items.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-efl/recipes-efl/efl/efl/0003-edje_cc-Avoid-segfault-when-strcmp-NULL-items.patch b/meta-efl/recipes-efl/efl/efl/0003-edje_cc-Avoid-segfault-when-strcmp-NULL-items.patch new file mode 100644 index 000000000..55d7b543c --- /dev/null +++ b/meta-efl/recipes-efl/efl/efl/0003-edje_cc-Avoid-segfault-when-strcmp-NULL-items.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 84259714c2376fdb919299e8e01af1ccc6fbe2c0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Stefan Schmidt <s.schmidt@samsung.com> | ||
3 | Date: Thu, 12 Feb 2015 15:24:27 +0100 | ||
4 | Subject: [PATCH 3/3] edje_cc: Avoid segfault when strcmp NULL items | ||
5 | |||
6 | Martin reported a porblem with one of the SHR project edc files after an upgrade | ||
7 | to 1.13. The segfault itself is easy enough to fix here but I think there might | ||
8 | be other problems with the edc after this segfault is gone. We will see. | ||
9 | |||
10 | Fixes T2106 | ||
11 | --- | ||
12 | src/bin/edje/edje_cc_out.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c | ||
16 | index 4f582c7..bc85444 100755 | ||
17 | --- a/src/bin/edje/edje_cc_out.c | ||
18 | +++ b/src/bin/edje/edje_cc_out.c | ||
19 | @@ -386,7 +386,7 @@ check_source_links(Edje_Part_Collection *pc, Edje_Part *ep, Eet_File *ef, Eina_L | ||
20 | EINA_LIST_FOREACH(edje_collections, l, pc_source) | ||
21 | { | ||
22 | /* Find sourced group */ | ||
23 | - if (strcmp(ep->source, pc_source->part) == 0) | ||
24 | + if (ep->source && pc_source->part && strcmp(ep->source, pc_source->part) == 0) | ||
25 | { | ||
26 | /* Go through every part to find parts with type GROUP */ | ||
27 | for (i = 0; i < pc_source->parts_count; ++i) | ||
28 | -- | ||
29 | 2.3.0 | ||
30 | |||