This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH/RFC] Reorganize osabi.c:generic_elf_osabi_sniff_abi_tag_sections()
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 18 Jan 2004 17:52:54 -0500
- Subject: Re: [PATCH/RFC] Reorganize osabi.c:generic_elf_osabi_sniff_abi_tag_sections()
- References: <200401182040.i0IKeeMu008703@elgar.kettenis.dyndns.org>
On Sun, Jan 18, 2004 at 09:40:40PM +0100, Mark Kettenis wrote:
> + /* ...and check it. */
> + gdb_assert (notesz <= MAX_NOTESZ);
> + if (notesz > bfd_section_size (abfd, sect))
> + return 0;
I'd rather not add assertions based on the input file. Can we complain
and fail instead?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer