diff options
Diffstat (limited to 'src/input/input_mms.c')
-rw-r--r-- | src/input/input_mms.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input/input_mms.c b/src/input/input_mms.c index 136307c80..3d06653ea 100644 --- a/src/input/input_mms.c +++ b/src/input/input_mms.c @@ -123,6 +123,11 @@ static buf_element_t *mms_plugin_read_block (input_plugin_t *this_gen, lprintf ("mms_plugin_read_block: %"PRId64" bytes...\n", todo); + if (todo < 0 || todo > buf->size) { + buf->free_buffer (buf); + return NULL; + } + buf->content = buf->mem; buf->type = BUF_DEMUX_BLOCK; |