This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch/hpux] hpread.c: init alloca'd memory, pr gdb/1661


This patch fixes some uninitialized memory in the HP symbol
table reader.  See PR symtab/1661.

I tested this on native hppa2.0w-hp-hpux11.11 with hpcc
B.11.11.28706.GP and hpacc A.03.45.

MAINTAINERS says that "Any [past] maintainer" can modify the hp/ux
symtab reader, so I'm going to commit this in 24 hours if nobody
objects.  After that, I am also going to test it on gdb_6_1-branch
and commit it to gdb_6_1-branch.

Thanks. If you haven't guessed I'm waiting on the doco and hp to be resolved.


Andrew

(Must not suggest ...
#define ZALLOCA(TYPE) ((TYPE *) memset (alloca (sizeof (TYPE)), 0, sizeof (TYPE))) ... ;-)


2004-05-31 Michael Chastain <mec.gnu@mindspring.com>

	Fix PR symtab/1661.
	* hpread.c (hpread_pxdb_needed): Call memset after alloca.
	(hpread_read_struct_type): Likewise.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]