bacula/bacula-seg-fault.patch
2022-07-08 16:23:07 +02:00

22 lines
630 B
Diff

diff -Naur bacula-13.0.0.old/src/lib/message.c bacula-13.0.0/src/lib/message.c
--- bacula-13.0.0.old/src/lib/message.c 2022-07-08 14:50:02.247057633 +0200
+++ bacula-13.0.0/src/lib/message.c 2022-07-08 14:51:05.527195040 +0200
@@ -28,6 +28,7 @@
*
*/
+#include <assert.h>
#include "bacula.h"
#include "jcr.h"
@@ -1480,7 +1481,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);