Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/speexdsp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Shterenzon <r@yokee.tv>2019-01-20 12:32:20 +0300
committerTristan Matthews <tmatth@videolan.org>2019-01-25 01:17:54 +0300
commitf9e43a12f4a1d85fdbca1eeffdce0f24e19dcfc7 (patch)
treec8f0615e2afb16fe1f9d6dcc777a60b1d50d0408
parent6b539e057b56242c973693e0bcb5721493010f50 (diff)
Fix a stack smashing bug
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
-rw-r--r--libspeexdsp/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libspeexdsp/buffer.c b/libspeexdsp/buffer.c
index 048be83..b06a155 100644
--- a/libspeexdsp/buffer.c
+++ b/libspeexdsp/buffer.c
@@ -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;