aboutsummaryrefslogtreecommitdiffstats
path: root/community/mumble/CVE-2018-20743.2.patch
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2019-04-02 22:19:24 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-04-04 07:08:27 +0000
commit442ccc174a119c491694394b8050532b256cd0ed (patch)
tree54f5fc95bb6accde1f8c848e30a51b2c88f2b9c0 /community/mumble/CVE-2018-20743.2.patch
parent712defbfed6fa7626416a91be34013b717a26cce (diff)
downloadaports-442ccc174a119c491694394b8050532b256cd0ed.tar.gz
aports-442ccc174a119c491694394b8050532b256cd0ed.tar.bz2
aports-442ccc174a119c491694394b8050532b256cd0ed.tar.xz
community/mumble: security fixes (CVE-2018-20743)
Diffstat (limited to 'community/mumble/CVE-2018-20743.2.patch')
-rw-r--r--community/mumble/CVE-2018-20743.2.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/mumble/CVE-2018-20743.2.patch b/community/mumble/CVE-2018-20743.2.patch
new file mode 100644
index 0000000000..9a7118b87c
--- /dev/null
+++ b/community/mumble/CVE-2018-20743.2.patch
@@ -0,0 +1,25 @@
+From 4761ca41ab1f611cd4a6d117f9f6cfd7c64f6b55 Mon Sep 17 00:00:00 2001
+From: MadMaurice <madmaurice@zom.bi>
+Date: Fri, 31 Aug 2018 00:01:40 +0200
+Subject: [PATCH] Lower bucket params
+
+Use 1 tokens per second and 5 burst instead of 4 tokens per second and 30 burst
+---
+ src/murmur/ServerUser.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/murmur/ServerUser.cpp b/src/murmur/ServerUser.cpp
+index e5c570d47..5356690de 100644
+--- a/src/murmur/ServerUser.cpp
++++ b/src/murmur/ServerUser.cpp
+@@ -138,8 +138,8 @@ unsigned long millisecondsBetween(time_point start, time_point end) {
+
+ #endif
+
+-// Rate limiting: burst up to 30, 4 message per sec limit over longer time
+-LeakyBucket::LeakyBucket() : tokensPerSec(4), maxTokens(30), currentTokens(0) {
++// Rate limiting: burst up to 5, 1 message per sec limit over longer time
++LeakyBucket::LeakyBucket() : tokensPerSec(1), maxTokens(5), currentTokens(0) {
+ lastUpdate = now();
+ }
+