mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 10:46:24 +08:00
2008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
* python/python-value (valpy_getitem): Fix heap corruption.
This commit is contained in:
@ -161,7 +161,8 @@ valpy_getitem (PyObject *self, PyObject *key)
|
||||
|
||||
TRY_CATCH (except, RETURN_MASK_ALL)
|
||||
{
|
||||
res_val = value_struct_elt (&self_value->value, NULL, field, 0, NULL);
|
||||
struct value *tmp = self_value->value;
|
||||
res_val = value_struct_elt (&tmp, NULL, field, 0, NULL);
|
||||
}
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
|
||||
|
Reference in New Issue
Block a user