mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
extension: Fix IOStream.read_all() EOS handling
This commit is contained in:
@@ -5037,6 +5037,12 @@ PyIOStream_read_all (PyIOStream * self, PyObject * args)
|
||||
|
||||
if (error == NULL)
|
||||
{
|
||||
if ((unsigned long) bytes_read != count)
|
||||
{
|
||||
Py_DecRef (buffer);
|
||||
buffer = PyBytes_FromString ("");
|
||||
}
|
||||
|
||||
result = buffer;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user