Skip to content

Commit

Permalink
Fix a stack smashing bug
Browse files Browse the repository at this point in the history
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
  • Loading branch information
Roman Shterenzon authored and tmatth committed Jan 24, 2019
1 parent 6b539e0 commit f9e43a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libspeexdsp/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f9e43a1

Please sign in to comment.