From: Eric Bollengier Date: Thu, 15 Oct 2020 09:36:04 +0000 (+0200) Subject: Terminate buffer in despool_attributes_from_file() X-Git-Tag: Release-11.3.2~989 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b574dc7186069117adffe6b18694b646a30d3034;p=thirdparty%2Fbacula.git Terminate buffer in despool_attributes_from_file() --- diff --git a/bacula/src/dird/catreq.c b/bacula/src/dird/catreq.c index 4a4e12063..8c1c1f396 100644 --- a/bacula/src/dird/catreq.c +++ b/bacula/src/dird/catreq.c @@ -828,6 +828,7 @@ bool despool_attributes_from_file(JCR *jcr, const char *file) be.bstrerror()); goto bail_out; } + msg[msglen]='\0'; /* We have an extra byte free */ size += nbytes; } if (!jcr->is_job_canceled()) {