From 2856c59c736ba931b8f915b071f467dba595716b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 5 Aug 2024 01:37:59 +0000 Subject: automatic import of bacula --- bacula-seg-fault.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bacula-seg-fault.patch (limited to 'bacula-seg-fault.patch') diff --git a/bacula-seg-fault.patch b/bacula-seg-fault.patch new file mode 100644 index 0000000..be28655 --- /dev/null +++ b/bacula-seg-fault.patch @@ -0,0 +1,21 @@ +diff -Naur bacula-11.0.0.old/src/lib/message.c bacula-11.0.0/src/lib/message.c +--- bacula-11.0.0.old/src/lib/message.c 2021-01-12 12:36:32.630470094 +0100 ++++ bacula-11.0.0/src/lib/message.c 2021-01-12 12:39:42.477945569 +0100 +@@ -28,6 +28,7 @@ + * + */ + ++#include + #include "bacula.h" + #include "jcr.h" + +@@ -1476,7 +1477,8 @@ + + if (type == M_ABORT) { + char *p = 0; +- p[0] = 0; /* generate segmentation violation */ ++ // p[0] = 0; /* generate segmentation violation */ ++ assert(p!=NULL); + } + if (type == M_ERROR_TERM) { + exit(1); -- cgit v1.2.3