mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix python message handling reading out of bounds read
This commit is contained in:
@@ -1331,7 +1331,7 @@ PyObject *PythonContext::outstream_write(PyObject *self, PyObject *args)
|
||||
|
||||
PyFrameObject *frame = PyEval_GetFrame();
|
||||
|
||||
while(message.back() == '\n' || message.back() == '\r')
|
||||
while(!message.empty() && (message.back() == '\n' || message.back() == '\r'))
|
||||
message.pop_back();
|
||||
|
||||
QString filename = lit("unknown");
|
||||
|
||||
Reference in New Issue
Block a user