From b27ce1c707871bae1d57394f1f7a1ce6692ce82e Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 3 Jan 2017 15:38:04 +0100 Subject: [PATCH] src/eitd/edvbstring.cpp init array Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/80728520f6218cf550a3a5325a7606fd43b68034 Author: Jacek Jendrzej Date: 2017-01-03 (Tue, 03 Jan 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/eitd/edvbstring.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eitd/edvbstring.cpp b/src/eitd/edvbstring.cpp index 0e29d0456..cb495b1cc 100644 --- a/src/eitd/edvbstring.cpp +++ b/src/eitd/edvbstring.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include "SIutils.hpp" #include "debug.h" @@ -2105,6 +2106,7 @@ std::string convertDVBUTF8(const char *data, int len, int table, int tsidonid) //dprintf("recode:::: tsidonid %X table %d two-char %d len %d\n", tsidonid, table, twochar, len); unsigned char res[2048]; + memset(res,0,sizeof(res)); while (i < len) { unsigned long code=0; @@ -2267,6 +2269,7 @@ const std::string convertLatin1UTF8(const std::string &string) unsigned int t=0, i=0, len=string.size(); unsigned char res[2048]; + memset(res,0,sizeof(res)); while (i < len) {