From 1b40ec0559f4b24ccdf6b073610c526c4aa33c4d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 19 Sep 2015 17:45:47 -0600 Subject: Fix PR python/18984 This fixes PR python/18984. The bug is that gdbpy_solib_name uses GDB_PY_LL_ARG, whereas it should use GDB_PY_LLU_ARG to avoid overflow. Built and tested on x86-64 Fedora 23. 2016-06-02 Tom Tromey PR python/18984: * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG. 2016-06-02 Tom Tromey PR python/18984: * gdb.python/py-shared.exp: Add solib_name test. --- gdb/python/python.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/python/python.c') diff --git a/gdb/python/python.c b/gdb/python/python.c index c706644..1f1fece 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -696,9 +696,9 @@ gdbpy_solib_name (PyObject *self, PyObject *args) { char *soname; PyObject *str_obj; - gdb_py_longest pc; + gdb_py_ulongest pc; - if (!PyArg_ParseTuple (args, GDB_PY_LL_ARG, &pc)) + if (!PyArg_ParseTuple (args, GDB_PY_LLU_ARG, &pc)) return NULL; soname = solib_name_from_address (current_program_space, pc); -- cgit v1.1