From: Prince Kumar Dubey Date: Fri, 13 Oct 2017 19:03:52 +0000 (-0700) Subject: eina: uninitialization of array leads to unwanted outcome of "eina_strlcat" X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~2244 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=393560748380b635bb161a71358d15f1cee0ccac;p=platform%2Fupstream%2Fefl.git eina: uninitialization of array leads to unwanted outcome of "eina_strlcat" Reviewers: raster, cedric, rajeshps Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5297 Signed-off-by: Cedric Bail --- diff --git a/src/examples/eina/eina_simple_xml_parser_01.c b/src/examples/eina/eina_simple_xml_parser_01.c index de27e0b..a4f6ca4 100644 --- a/src/examples/eina/eina_simple_xml_parser_01.c +++ b/src/examples/eina/eina_simple_xml_parser_01.c @@ -63,7 +63,7 @@ _xml_tag_cb(void *data, Eina_Simple_XML_Type type, const char *content, { char buffer[length+1]; Eina_Array *array = data; - char str[512]; + char str[512] = {'\0'}; if (type == EINA_SIMPLE_XML_OPEN) {