szFileUrlArrayForServiceExtraData =
(char **) calloc(nExtraDataSize, sizeof(char *));
- /* Store the list so the share panel can be updated later */
- g_pShareList = (char **) calloc(nExtraDataSize, sizeof(char *));
+ /** Store the list so the share panel can be updated later
+ * g_pShareList size needs to bigger than total video size
+ * because first url will be added twice, one for signal share and
+ * one for multiple share.
+ * so g_pShareList alloc size = nExtraDataSize + 1
+ */
+
+ g_pShareList = (char **) calloc((nExtraDataSize + 1), sizeof(char *));
}
/* Extract First URI. */