From 393560748380b635bb161a71358d15f1cee0ccac Mon Sep 17 00:00:00 2001 From: Prince Kumar Dubey Date: Fri, 13 Oct 2017 12:03:52 -0700 Subject: [PATCH] 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 --- src/examples/eina/eina_simple_xml_parser_01.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.7.4