mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-30 22:13:03 +00:00
httapi did not pass number of channels up to top level filehandle so stereo files caused buffer overflow
This commit is contained in:
parent
0cca9bdc9e
commit
8e6460fed3
@ -2732,7 +2732,6 @@ static switch_status_t http_file_file_open(switch_file_handle_t *handle, const c
|
|||||||
unlink(context->cache_file);
|
unlink(context->cache_file);
|
||||||
unlink(context->meta_file);
|
unlink(context->meta_file);
|
||||||
unlink(context->lock_file);
|
unlink(context->lock_file);
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2744,6 +2743,7 @@ static switch_status_t http_file_file_open(switch_file_handle_t *handle, const c
|
|||||||
handle->seekable = context->fh.seekable;
|
handle->seekable = context->fh.seekable;
|
||||||
handle->speed = context->fh.speed;
|
handle->speed = context->fh.speed;
|
||||||
handle->interval = context->fh.interval;
|
handle->interval = context->fh.interval;
|
||||||
|
handle->channels = context->fh.channels;
|
||||||
|
|
||||||
if (switch_test_flag((&context->fh), SWITCH_FILE_NATIVE)) {
|
if (switch_test_flag((&context->fh), SWITCH_FILE_NATIVE)) {
|
||||||
switch_set_flag(handle, SWITCH_FILE_NATIVE);
|
switch_set_flag(handle, SWITCH_FILE_NATIVE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user