summaryrefslogtreecommitdiff
path: root/src/tests/ecore_con
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-06-18 12:45:12 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-06-18 12:48:58 +0200
commit3846750b2dac7603ac7bf9f0ae742b6b483490e4 (patch)
treecc6e232682c145c59e11ec949856305ef5f95f7e /src/tests/ecore_con
parentdfe703b9bc63d2174ef9a02e920d47cd6062bb3d (diff)
ecore_con: fix possible segfault
with -O3 i get a segfault in this test. (with gcc and clang) It looks like the compilers are doing constant folding because we declared the struct as constant, however, due to using the address of the fild the keyword const is simply not true, thus we are getting a segfault because the address returned by &desc is not correct anymore, due to the fact the constants are rolled out. Differential Revision: https://phab.enlightenment.org/D6309
Diffstat (limited to 'src/tests/ecore_con')
-rw-r--r--src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c b/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c
index bc4fa98..11ed3d7 100644
--- a/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c
+++ b/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c
@@ -206,7 +206,7 @@ static Eina_Value
206_resolve_done(void *data, const Eina_Value v, const Eina_Future *dead_future EINA_UNUSED) 206_resolve_done(void *data, const Eina_Value v, const Eina_Future *dead_future EINA_UNUSED)
207{ 207{
208 struct resolve_ctx *ctx = data; 208 struct resolve_ctx *ctx = data;
209 const Eina_Value_Array desc = { 0 }; 209 Eina_Value_Array desc = { 0 };
210 210
211 mark_point(); 211 mark_point();
212 212