tag 452195 upstream
tag 452195 moreinfo
thanks

From Kern at http://bugs.bacula.org/view.php?id=1047:

I am unable to reproduce this bug, perhaps it has something to do with your 
symbolic links?

You can try applying the patch that I have attached to the bug report. The 
instructions for applying it are at the top of the patch file.

If the patch does not fix the problem, please try to find some additional 
information, without more details on what is happening or being able to 
reproduce it, I won't be able to resolve it.
You can try turning on debug level 200 (-d 200) on the FD as this might show 
what file is causing it to blow up ...

--------

Bastian, can you test this and let us know if it resolves your problem?
 This patch may fix bug #1047 -- heap corruption.

 Apply it to 2.2.8 (probably prior versions) with:

 cd <bacula-source>
 patch -p0 <2.2.8-strip-path.patch
 ./configure <your-options>
 make 
 ...
 make install


Index: backup.c
===================================================================
--- backup.c	(revision 6327)
+++ backup.c	(working copy)
@@ -1154,12 +1154,12 @@
       if (ff_pkt->fname != ff_pkt->link) {
          pm_strcpy(ff_pkt->link_save, ff_pkt->link);
          if (!do_strip(ff_pkt->strip_path, ff_pkt->link)) {
-            strcpy(ff_pkt->link, ff_pkt->link_save);
-            strcpy(ff_pkt->fname, ff_pkt->fname_save);
+            pm_strcpy(ff_pkt->link, ff_pkt->link_save);
+            pm_strcpy(ff_pkt->fname, ff_pkt->fname_save);
          }
       }
    } else {
-      strcpy(ff_pkt->fname, ff_pkt->fname_save);
+      pm_strcpy(ff_pkt->fname, ff_pkt->fname_save);
    } 
    Dmsg2(200, "fname=%s stripped=%s\n", ff_pkt->fname_save, ff_pkt->fname);
 }
@@ -1169,8 +1169,8 @@
    if (!(ff_pkt->flags & FO_STRIPPATH) || ff_pkt->strip_path <= 0) {
       return;
    }
-   strcpy(ff_pkt->fname, ff_pkt->fname_save);
+   pm_strcpy(ff_pkt->fname, ff_pkt->fname_save);
    if (ff_pkt->fname != ff_pkt->link) {
-      strcpy(ff_pkt->link, ff_pkt->link_save);
+      pm_strcpy(ff_pkt->link, ff_pkt->link_save);
    }
 }

Reply via email to