mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
enforce maximum sample size in sample cache
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@787 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
cdba0527a8
commit
e1ac42dd10
4 changed files with 11 additions and 6 deletions
|
|
@ -133,6 +133,9 @@ int pa_scache_add_item(pa_core *c, const char *name, const pa_sample_spec *ss, c
|
|||
pa_scache_entry *e;
|
||||
assert(c && name);
|
||||
|
||||
if (chunk->length > PA_SCACHE_ENTRY_SIZE_MAX)
|
||||
return -1;
|
||||
|
||||
if (!(e = scache_add_item(c, name)))
|
||||
return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue