off-by-one fix for py-linetable.c
authorTom Tromey <tromey@redhat.com>
Thu, 14 Nov 2013 18:09:14 +0000 (11:09 -0700)
committerTom Tromey <tromey@redhat.com>
Thu, 14 Nov 2013 18:09:14 +0000 (11:09 -0700)
commit918229560ce9db307532592047066eac0674190d
treed93d534ee7e04d5c093678fb53679fc333c09e1c
parent57460bcf82df9e5e335be84ecc9bdef33dddc934
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.
gdb/ChangeLog
gdb/python/py-linetable.c
This page took 0.026136 seconds and 4 git commands to generate.