diff options
author | Fred Fish <fnf@specifix.com> | 1996-02-12 21:03:12 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-02-12 21:03:12 +0000 |
commit | 6405302d013c9afbbb1fe3390831e9b7879c4d59 (patch) | |
tree | 4b6ab4e2ebd3ab59cc0a4b35d6d904a8c88ea32c /gdb/stabsread.c | |
parent | 15ed5f2c3fc4625bba07fb731e7f281286c97fd0 (diff) | |
download | gdb-6405302d013c9afbbb1fe3390831e9b7879c4d59.zip gdb-6405302d013c9afbbb1fe3390831e9b7879c4d59.tar.gz gdb-6405302d013c9afbbb1fe3390831e9b7879c4d59.tar.bz2 |
* f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
allocate_saved_f77_common_node, allocate_common_entry_node,
add_common_block): Use xmalloc rather than malloc, some of which
were unchecked.
* gnu-regex.c: At same point as other gdb specific changes
#undef malloc and then #define it to xmalloc.
* ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
bare unchecked calls to malloc/realloc.
* stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
unchecked call to malloc.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 541e886..4ea4ba3 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -291,7 +291,7 @@ Invalid symbol data: type number (%d,%d) out of range at symtab pos %d.", { type_vector_length = INITIAL_TYPE_VECTOR_LENGTH; type_vector = (struct type **) - malloc (type_vector_length * sizeof (struct type *)); + xmalloc (type_vector_length * sizeof (struct type *)); } while (index >= type_vector_length) { |