projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18f8c8b
)
e_comp_canvas: changed default return value of e_comp_canvas_layer_map to E_LAYER_MAX.
09/98309/3
author
Gwanglim Lee
<gl77.lee@samsung.com>
Thu, 17 Nov 2016 04:36:19 +0000
(13:36 +0900)
committer
Gwanglim Lee
<gl77.lee@samsung.com>
Mon, 21 Nov 2016 04:12:21 +0000
(13:12 +0900)
This change prevents to access the e_comp->layers list out of bounds.
Change-Id: I033628a3f5af7e0c24cd95d2c4bafe46ab35bc06
src/bin/e_comp_canvas.c
patch
|
blob
|
history
diff --git
a/src/bin/e_comp_canvas.c
b/src/bin/e_comp_canvas.c
index
e95688a
..
2c7a02b
100644
(file)
--- a/
src/bin/e_comp_canvas.c
+++ b/
src/bin/e_comp_canvas.c
@@
-601,7
+601,9
@@
e_comp_canvas_layer_map(E_Layer layer)
case E_LAYER_MAX: return 25;
default: break;
}
- return 9999;
+
+ /* prevents to access the e_comp->layers list out of bounds. */
+ return 0;
}
E_API unsigned int