Accepting request 1132062 from home:adamm:branches:server:mail
- fix_stack_smash.patch: upstream rework of logging doesn't allocate enough memory for an array (bsc#1216830) OBS-URL: https://build.opensuse.org/request/show/1132062 OBS-URL: https://build.opensuse.org/package/show/server:mail/rspamd?expand=0&rev=99
This commit is contained in:
parent
001ea37d95
commit
a039ffc796
38
fix_stack_smash.patch
Normal file
38
fix_stack_smash.patch
Normal file
@ -0,0 +1,38 @@
|
||||
Index: rspamd-3.7.4/src/libserver/logger/logger.c
|
||||
===================================================================
|
||||
--- rspamd-3.7.4.orig/src/libserver/logger/logger.c
|
||||
+++ rspamd-3.7.4/src/libserver/logger/logger.c
|
||||
@@ -1046,25 +1046,7 @@ gsize rspamd_log_fill_iov(struct iovec *
|
||||
gint r;
|
||||
|
||||
if (iov == NULL) {
|
||||
- if (log_rspamadm) {
|
||||
- if (logger->log_level == G_LOG_LEVEL_DEBUG) {
|
||||
- return 4;
|
||||
- }
|
||||
- else {
|
||||
- return 3; /* No time component */
|
||||
- }
|
||||
- }
|
||||
- else if (log_systemd) {
|
||||
- return 3;
|
||||
- }
|
||||
- else {
|
||||
- if (log_color) {
|
||||
- return 5;
|
||||
- }
|
||||
- else {
|
||||
- return 4;
|
||||
- }
|
||||
- }
|
||||
+ return 5;
|
||||
}
|
||||
else {
|
||||
static gchar timebuf[64], modulebuf[64];
|
||||
@@ -1197,4 +1179,4 @@ gsize rspamd_log_fill_iov(struct iovec *
|
||||
return niov;
|
||||
}
|
||||
}
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 6 15:28:07 UTC 2023 - Adam Majer <adam.majer@suse.de>
|
||||
|
||||
- fix_stack_smash.patch: upstream rework of logging doesn't allocate
|
||||
enough memory for an array (bsc#1216830)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 22 10:06:42 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
|
@ -68,6 +68,7 @@ Patch0: rspamd-conf.patch
|
||||
Patch1: rspamd-after-redis-target.patch
|
||||
Patch2: fix_missing_return.patch
|
||||
Patch3: rspamd-d907a95.patch
|
||||
Patch4: fix_stack_smash.patch
|
||||
%if !0%{?is_opensuse}
|
||||
# because 80-check-malware-scan-clamav triggered in SLE-15-SP2
|
||||
BuildRequires: -post-build-checks-malwarescan
|
||||
|
Loading…
x
Reference in New Issue
Block a user