]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Terminate buffer in despool_attributes_from_file()
authorEric Bollengier <eric@baculasystems.com>
Thu, 15 Oct 2020 09:36:04 +0000 (11:36 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:57 +0000 (09:02 +0100)
bacula/src/dird/catreq.c

index 4a4e120637e10992826972dad8749ea6aeb85c61..8c1c1f3965a25c2a454e2444ff64b0e1419bc550 100644 (file)
@@ -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()) {