blob: 2ac17dbbf6fdee1aaa525ae6a0946a82a556794b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ab,v 1.2 2009/07/28 12:52:40 tnn Exp $
--- src/daemon/main.c.orig 2009-01-13 00:11:38.000000000 +0100
+++ src/daemon/main.c
@@ -302,7 +302,9 @@ static void set_all_rlimits(const pa_dae
#ifdef RLIMIT_MEMLOCK
set_one_rlimit(&conf->rlimit_memlock, RLIMIT_MEMLOCK, "RLIMIT_MEMLOCK");
#endif
+#ifdef RLIMIT_AS
set_one_rlimit(&conf->rlimit_as, RLIMIT_AS, "RLIMIT_AS");
+#endif
#ifdef RLIMIT_LOCKS
set_one_rlimit(&conf->rlimit_locks, RLIMIT_LOCKS, "RLIMIT_LOCKS");
#endif
@@ -351,7 +353,7 @@ int main(int argc, char *argv[]) {
pa_log_set_maximal_level(PA_LOG_INFO);
pa_log_set_ident("pulseaudio");
-#if defined(__linux__) && defined(__OPTIMIZE__)
+#if defined(__linux__) && defined(__OPTIMIZE__) && 0 /* CVE-2009-1894 */
/*
Disable lazy relocations to make usage of external libraries
more deterministic for our RT threads. We abuse __OPTIMIZE__ as
|