* srec.c (srec_get_section_contents): Return immediately on
authorAlan Modra <amodra@gmail.com>
Thu, 26 Jul 2007 12:34:43 +0000 (12:34 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 26 Jul 2007 12:34:43 +0000 (12:34 +0000)
commite62071b60e0a89780a5b3a153365805346b38614
treead66168f0786a49eaa37d51dc4c39a3c09439952
parentb9da616afe44eb7d00a669dad47bc6860e9b23d3
* srec.c (srec_get_section_contents): Return immediately on
count zero.  Check that offset and count are within section.
* libbfd.c (_bfd_generic_get_section_contents): Check that
offset + count does not overflow.
bfd/ChangeLog
bfd/libbfd.c
bfd/srec.c