mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
bounds checks and scope masked var names.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6844 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -128,9 +128,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_read(switch_media_bug_t *b
|
||||
|
||||
|
||||
bytes = (datalen > frame->datalen) ? datalen : frame->datalen;
|
||||
switch_assert( bytes <= maxlen );
|
||||
|
||||
if (bytes) {
|
||||
int16_t tmp[960], *tp = tmp;
|
||||
int16_t tmp[SWITCH_RECOMMENDED_BUFFER_SIZE], *tp = tmp;
|
||||
|
||||
dp = (int16_t *) data;
|
||||
fp = (int16_t *) frame->data;
|
||||
|
Reference in New Issue
Block a user