Commit f9e43a12 authored by Roman Shterenzon's avatar Roman Shterenzon Committed by Tristan Matthews

Fix a stack smashing bug

Signed-off-by: Tristan Matthews's avatarTristan Matthews <tmatth@videolan.org>
parent 6b539e05
......@@ -135,7 +135,7 @@ EXPORT int speex_buffer_read(SpeexBuffer *st, void *_data, int len)
char *data = _data;
if (len > st->available)
{
SPEEX_MEMSET(data+st->available, 0, st->size-st->available);
SPEEX_MEMSET(data+st->available, 0, len - st->available);
len = st->available;
}
end = st->read_ptr + len;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment