This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Proper bound check in _bfd_doprnt_scan
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Sun, 05 Nov 2017 07:25:32 -0500
- Subject: [binutils-gdb] Proper bound check in _bfd_doprnt_scan
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 26a9301057457ae576b51b8127bb805b4e484a6b ***
Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 26a9301057457ae576b51b8127bb805b4e484a6b
Proper bound check in _bfd_doprnt_scan
While an abort after storing out of bounds by one to an array in our
caller is probably OK in practice, it's better to check before storing.
PR 22397
* bfd.c (_bfd_doprnt_scan): Check args index before storing, not
after.