diff options
Diffstat (limited to 'stream/stream_cdda.c')
-rw-r--r-- | stream/stream_cdda.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c index a99150f65d..1bec7dcc37 100644 --- a/stream/stream_cdda.c +++ b/stream/stream_cdda.c @@ -196,6 +196,9 @@ static int fill_buffer(stream_t *s, char *buffer, int max_len) int16_t *buf; int i; + if (max_len < CDIO_CD_FRAMESIZE_RAW) + return -1; + if ((p->sector < p->start_sector) || (p->sector > p->end_sector)) { s->eof = 1; return 0; |