mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-03 06:47:04 -04:00
security: add total sample cache size limit in PulseAudio protocol
There was no limit on the total size of the sample cache. A client could upload many samples to exhaust server memory. Add a configurable pulse.max-sample-cache property (default 64MB) to cap the total size of all cached samples. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
37990b5e90
commit
52afec565b
5 changed files with 18 additions and 0 deletions
|
|
@ -120,6 +120,7 @@ pulse.properties = {
|
|||
#pulse.min.quantum = 256/48000 # 5.3ms
|
||||
#pulse.idle.timeout = 0 # don't pause after underruns
|
||||
#pulse.max-streams = 64 # max streams per client
|
||||
#pulse.max-sample-cache = 67108864 # max total sample cache size (64MB)
|
||||
#pulse.default.format = F32
|
||||
#pulse.default.position = [ FL FR ]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue