e_comp_canvas: changed default return value of e_comp_canvas_layer_map to E_LAYER_MAX. 09/98309/3
authorGwanglim Lee <gl77.lee@samsung.com>
Thu, 17 Nov 2016 04:36:19 +0000 (13:36 +0900)
committerGwanglim 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

index e95688a..2c7a02b 100644 (file)
@@ -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