]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
gdb/testsuite: Avoid a buffer overrun in `gdb.base/maint.exp'
authorPedro Alves <palves@redhat.com>
Fri, 28 Oct 2016 11:03:18 +0000 (12:03 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 28 Oct 2016 14:52:27 +0000 (15:52 +0100)
commitf610ab6d3cbab5d8b8ef3f3a93dd81a800ec5725
tree1b55ebc21b3c3a8f9c256b76191ea39af14aefbf
parentb129b0cacd4c8e982605b7c8d99e96c74155882a
gdb/testsuite: Avoid a buffer overrun in `gdb.base/maint.exp'

Fixes:

 PASS: gdb.base/maint.exp: maint w/o args
 ERROR: internal buffer is full.
 UNRESOLVED: gdb.base/maint.exp: maint info line-table w/o a file name

The problem is just many symtabs and long line tables, enough to
overflow the expect buffer.  Fix this by matching input incrementally.

gdb/testsuite/ChangeLog:
2016-10-28  Pedro Alves  <palves@redhat.com>

* gdb.base/maint.exp <maint info line-table w/o a file name>: Use
gdb_test_multiple, tighten regexps and match symtabs and line
tables incrementally.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/maint.exp