summaryrefslogtreecommitdiff
path: root/user/dovecot/test-file-cache-enomem.patch
diff options
context:
space:
mode:
authorLee Starnes <lee@canned-death.us>2021-01-05 14:31:29 +0000
committerLee Starnes <lee@canned-death.us>2021-01-05 14:31:29 +0000
commitd8d3b259d77102c8ec2fa44bffbfa6a5c0d1fd2a (patch)
tree60a4224b9689c45e0444398c190001971a3ee610 /user/dovecot/test-file-cache-enomem.patch
parent3465fcf878a4f0e00a9378a4299eaa48a0af5bea (diff)
downloadpackages-d8d3b259d77102c8ec2fa44bffbfa6a5c0d1fd2a.tar.gz
packages-d8d3b259d77102c8ec2fa44bffbfa6a5c0d1fd2a.tar.bz2
packages-d8d3b259d77102c8ec2fa44bffbfa6a5c0d1fd2a.tar.xz
packages-d8d3b259d77102c8ec2fa44bffbfa6a5c0d1fd2a.zip
user/dovecot: security bump to 2.3.13
- Fix CVE-2020-25275 and CVE-2020-24386 - apop.patch is no longer needed - Added patch to handle hardcoded message differing with musl
Diffstat (limited to 'user/dovecot/test-file-cache-enomem.patch')
-rw-r--r--user/dovecot/test-file-cache-enomem.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/user/dovecot/test-file-cache-enomem.patch b/user/dovecot/test-file-cache-enomem.patch
new file mode 100644
index 000000000..536b857de
--- /dev/null
+++ b/user/dovecot/test-file-cache-enomem.patch
@@ -0,0 +1,20 @@
+--- a/src/lib/test-file-cache.c 2021-01-05 14:10:50.160000000 +0000
++++ b/src/lib/test-file-cache.c 2021-01-05 14:10:50.160000000 +0000
+@@ -263,7 +263,7 @@
+ };
+ const char *errstr =
+ t_strdup_printf("mmap_anon(.test_file_cache, %zu) failed: "
+- "Cannot allocate memory", page_size);
++ "Out of memory", page_size);
+ test_assert(setrlimit(RLIMIT_AS, &rl_new) == 0);
+ test_expect_error_string(errstr);
+ test_assert(file_cache_set_size(cache, 1024) == -1);
+@@ -271,7 +271,7 @@
+
+ /* same for mremap */
+ errstr = t_strdup_printf("mremap_anon(.test_file_cache, %zu) failed: "
+- "Cannot allocate memory", page_size*2);
++ "Out of memory", page_size*2);
+ test_assert(file_cache_set_size(cache, 1) == 0);
+ test_assert(setrlimit(RLIMIT_AS, &rl_new) == 0);
+ test_expect_error_string(errstr);