]> git.sur5r.net Git - bacula/bacula/commitdiff
Add extra safety for readdir buffer
authorKern Sibbald <kern@sibbald.com>
Wed, 1 Nov 2017 07:55:12 +0000 (08:55 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 1 Nov 2017 07:55:12 +0000 (08:55 +0100)
bacula/src/findlib/find_one.c

index 98ed813f0f6f97444a7bb7e35ba2e3c5a78a2f13..051230281ea2c896115e4d4339fc853ccd8802ba 100644 (file)
@@ -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;