[bugfix:elm_cnp_helper]BS when two app called CBHM UI continuously
authordeasung.kim <deasung.kim@samsung.com>
Tue, 2 Aug 2011 10:53:33 +0000 (19:53 +0900)
committerdeasung.kim <deasung.kim@samsung.com>
Tue, 2 Aug 2011 10:56:14 +0000 (19:56 +0900)
Change-Id: I12401419bae1df11763c686ff5f62154c96a70e8

src/lib/elm_cnp_helper.c

index 518adf9..22525e7 100644 (file)
@@ -1366,6 +1366,8 @@ targets_converter(char *target __UNUSED__, void *data, int size __UNUSED__, void
    Cnp_Selection *sel;
 
    if (!data_ret) return EINA_FALSE;
+   if (data && (*((int *)data) >= ELM_SEL_MAX))
+     return EINA_FALSE;
 
    sel = selections + *((int *)data);