diff options
Diffstat (limited to 'src/polypcore/core-scache.c')
-rw-r--r-- | src/polypcore/core-scache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/polypcore/core-scache.c b/src/polypcore/core-scache.c index 9c407623..2e8d453c 100644 --- a/src/polypcore/core-scache.c +++ b/src/polypcore/core-scache.c @@ -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; |