mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
Fix possible ringbuffer overflow
This commit is contained in:
parent
96511688a1
commit
4805747260
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ Worker::schedule(uint32_t size, const void* data)
|
|||
bool
|
||||
Worker::respond(uint32_t size, const void* data)
|
||||
{
|
||||
if (_requests->write_space() < size + sizeof(size)) {
|
||||
if (_responses->write_space() < size + sizeof(size)) {
|
||||
return false;
|
||||
}
|
||||
if (_responses->write((const uint8_t*)&size, sizeof(size)) != sizeof(size)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue