mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[out-of-bounds] fix oob reads
This commit is contained in:
@@ -256,7 +256,7 @@ void* UwacClipboardDataGet(UwacSeat* seat, const char* mime, size_t* size)
|
||||
|
||||
data = tmp;
|
||||
|
||||
if (pos > alloc)
|
||||
if (pos >= alloc)
|
||||
goto fail;
|
||||
|
||||
r = read(pipefd[0], &data[pos], alloc - pos);
|
||||
|
||||
Reference in New Issue
Block a user