old-cross-binutils/gdb/python
Tom Tromey 918229560c off-by-one fix for py-linetable.c
While digging into a different memory corruption error, I happened to
notice one coming from the linetable code.  In a couple of spots, the
wrong termination condition was used in a loop, leading gdb to read
one element past the end of the linetable.

Built and regtested on x86-64 Fedora 18.  Also verified using
valgrind.  I'm checking this in.

2013-11-14  Tom Tromey  <tromey@redhat.com>

	* python/py-linetable.c (ltpy_has_line)
	(ltpy_get_all_source_lines): Fix loop termination condition.
2013-11-14 11:09:14 -07:00
..
lib/gdb 2013-10-02 Phil Muldoon <pmuldoon@redhat.com> 2013-10-02 08:33:27 +00:00
py-arch.c 2013-10-03 Phil Muldoon <pmuldoon@redhat.com> 2013-10-03 14:43:32 +00:00
py-auto-load.c Code cleanup: Add objfile_name accessor 2013-09-24 13:57:38 +00:00
py-block.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-bpevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-breakpoint.c 2013-11-07 Phil Muldoon <pmuldoon@redhat.com> 2013-11-07 12:04:45 +00:00
py-cmd.c 2013-11-07 Phil Muldoon <pmuldoon@redhat.com> 2013-11-07 12:32:31 +00:00
py-continueevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-event.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-event.h * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-events.h * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-evtregistry.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-evts.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-exitedevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-finishbreakpoint.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-frame.c 2013-10-02 Phil Muldoon <pmuldoon@redhat.com> 2013-10-02 08:37:11 +00:00
py-framefilter.c 2013-08-29 Phil Muldoon <pmuldoon@redhat.com> 2013-08-29 10:06:18 +00:00
py-function.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-gdb-readline.c * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-inferior.c * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid. 2013-09-30 11:50:12 +00:00
py-infthread.c * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid. 2013-09-30 11:50:12 +00:00
py-lazy-string.c * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-linetable.c off-by-one fix for py-linetable.c 2013-11-14 11:09:14 -07:00
py-newobjfileevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-objfile.c Code cleanup: Add objfile_name accessor 2013-09-24 13:57:38 +00:00
py-param.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-prettyprint.c * defs.h (enum val_prettyformat): Renamed from val_prettyprint. 2013-07-09 16:57:09 +00:00
py-progspace.c Code cleanup: Add objfile_name accessor 2013-09-24 13:57:38 +00:00
py-signalevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-stopevent.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
py-stopevent.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
py-symbol.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-symtab.c 2013-11-11 Phil Muldoon <pmuldoon@redhat.com> 2013-11-11 19:49:45 +00:00
py-threadevent.c * python/py-threadevent.c (get_event_thread): Use 2013-05-20 20:10:03 +00:00
py-type.c * python/py-type.c (typy_fields): Unconditionally decref 'r'. 2013-05-20 20:37:48 +00:00
py-utils.c * python/py-utils.c (gdb_pymodule_addobject): Cast away const. 2013-06-05 17:32:51 +00:00
py-value.c 2013-10-03 Phil Muldoon <pmuldoon@redhat.com> 2013-10-03 14:43:32 +00:00
python-config.py
python-internal.h 2013-11-11 Phil Muldoon <pmuldoon@redhat.com> 2013-11-11 19:49:45 +00:00
python.c 2013-11-11 Phil Muldoon <pmuldoon@redhat.com> 2013-11-11 19:49:45 +00:00
python.h 2013-05-10 Phil Muldoon <pmuldoon@redhat.com> 2013-05-10 10:26:03 +00:00