2 This patch corrects a Verify InitCatalog problem where in certain cases
3 a garbage filename may be entered in the verification database. This
6 Apply the patch to version 2.4.2 (and previous versions) with:
9 patch -p0 <2.4.2-verify.patch
10 ./configure <your-options>
16 Index: src/dird/fd_cmds.c
17 ===================================================================
18 --- src/dird/fd_cmds.c (revision 7469)
19 +++ src/dird/fd_cmds.c (working copy)
22 char Digest[MAXSTRING]; /* either Verify opts or MD5/SHA1 digest */
24 - jcr->fname = check_pool_memory_size(jcr->fname, fd->msglen);
25 if ((len = sscanf(fd->msg, "%ld %d %s", &file_index, &stream, Digest)) != 3) {
26 Jmsg(jcr, M_FATAL, 0, _("<filed: bad attributes, expected 3 fields got %d\n"
27 "msglen=%d msg=%s\n"), len, fd->msglen, fd->msg);
31 /* Any cached attr is flushed so we can reuse jcr->attr and jcr->ar */
33 + fn = jcr->fname = check_pool_memory_size(jcr->fname, fd->msglen);
35 *fn++ = *p++; /* copy filename */