mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
small buffers make big segfaults
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7603 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -165,7 +165,7 @@ static switch_bool_t write_displace_callback(switch_media_bug_t *bug, void *user
|
||||
len = rframe->samples;
|
||||
|
||||
if (dh->mux) {
|
||||
int16_t buf[1024];
|
||||
int16_t buf[SWITCH_RECOMMENDED_BUFFER_SIZE / 2];
|
||||
int16_t *fp = rframe->data;
|
||||
uint32_t x;
|
||||
|
||||
@@ -237,7 +237,7 @@ static switch_bool_t read_displace_callback(switch_media_bug_t *bug, void *user_
|
||||
len = rframe->samples;
|
||||
|
||||
if (dh->mux) {
|
||||
int16_t buf[1024];
|
||||
int16_t buf[SWITCH_RECOMMENDED_BUFFER_SIZE / 2];
|
||||
int16_t *fp = rframe->data;
|
||||
uint32_t x;
|
||||
|
||||
|
Reference in New Issue
Block a user