From: Kern Sibbald Date: Wed, 1 Nov 2017 07:55:12 +0000 (+0100) Subject: Add extra safety for readdir buffer X-Git-Tag: Release-9.0.5~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=735d035900d19889425fe083cc4a2227df0627c5;p=bacula%2Fbacula Add extra safety for readdir buffer --- diff --git a/bacula/src/findlib/find_one.c b/bacula/src/findlib/find_one.c index 98ed813f0f..051230281e 100644 --- a/bacula/src/findlib/find_one.c +++ b/bacula/src/findlib/find_one.c @@ -700,7 +700,7 @@ find_one_file(JCR *jcr, FF_PKT *ff_pkt, * before traversing it. */ rtn_stat = 1; - entry = (struct dirent *)malloc(sizeof(struct dirent) + name_max + 100); + entry = (struct dirent *)malloc(sizeof(struct dirent) + name_max + 1000); for ( ; !job_canceled(jcr); ) { char *p, *q; int i;