From: Jaroslav Kysela Date: Mon, 8 Jan 2018 07:38:16 +0000 (+0100) Subject: htsmsg binary: the str data are inalloced X-Git-Tag: v4.2.6~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c12f64b69b03721eefa3706578fcacea4668b287;p=thirdparty%2Ftvheadend.git htsmsg binary: the str data are inalloced --- diff --git a/src/htsmsg_binary.c b/src/htsmsg_binary.c index d4bbf3532..f5c9f74af 100644 --- a/src/htsmsg_binary.c +++ b/src/htsmsg_binary.c @@ -85,6 +85,7 @@ htsmsg_binary_des0(htsmsg_t *msg, const uint8_t *buf, size_t len) f->hmf_str = f->hmf_edata + (namelen ? namelen + 1 : 0); memcpy((char *)f->hmf_str, buf, datalen); ((char *)f->hmf_str)[datalen] = 0; + f->hmf_flags |= HMF_INALLOCED; break; case HMF_BIN: