bacula/bacula-9.2.1-seg-fault.patch

22 lines
626 B
Diff
Raw Normal View History

2018-08-20 15:08:19 +00:00
diff -Naur bacula-9.2.1.old/src/lib/message.c bacula-9.2.1/src/lib/message.c
--- bacula-9.2.1.old/src/lib/message.c 2018-08-20 16:48:59.351676388 +0200
+++ bacula-9.2.1/src/lib/message.c 2018-08-20 16:50:18.934156941 +0200
2016-01-25 20:12:28 +00:00
@@ -28,6 +28,7 @@
*
*/
+#include <assert.h>
#include "bacula.h"
#include "jcr.h"
2018-08-20 15:08:19 +00:00
@@ -1398,7 +1399,8 @@
2017-07-10 07:12:07 +00:00
2016-01-25 20:12:28 +00:00
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);