projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a4e31a
)
test_disable: Extend button array to fix memory corruption
author
Stefan Schmidt
<s.schmidt@samsung.com>
Fri, 23 Jan 2015 11:32:42 +0000
(12:32 +0100)
committer
Stefan Schmidt
<s.schmidt@samsung.com>
Fri, 23 Jan 2015 11:32:42 +0000
(12:32 +0100)
We are accessing btn[3] in the code so we should make sure the array it big
enough for it.
CID:
1265613
src/bin/test_disable.c
patch
|
blob
|
history
diff --git
a/src/bin/test_disable.c
b/src/bin/test_disable.c
index 9895369aacd767cd9a04536055364cade5ca0931..0dc9774974e0043074dcf016462ec0c1b6eb745f 100644
(file)
--- a/
src/bin/test_disable.c
+++ b/
src/bin/test_disable.c
@@
-109,7
+109,7
@@
void
test_layout_disable(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
Evas_Object *win, *box, *ly, *bt;
- Evas_Object *fr, *btn[
3
], *bx, *lb;
+ Evas_Object *fr, *btn[
4
], *bx, *lb;
char buf[PATH_MAX];
win = elm_win_util_standard_add("layout", "Layout");