From: Ben Gras Date: Tue, 10 Apr 2012 09:12:53 +0000 (+0000) Subject: vfs: more regions for coredumps X-Git-Tag: v3.2.1~606 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/rndc-confgen.html?a=commitdiff_plain;h=1e2b3f43262515c18144d9c8ca751f728bb38855;p=minix.git vfs: more regions for coredumps --- diff --git a/servers/vfs/coredump.c b/servers/vfs/coredump.c index 2f2f771a6..b3a9737e6 100644 --- a/servers/vfs/coredump.c +++ b/servers/vfs/coredump.c @@ -35,13 +35,15 @@ void write_elf_core_file(struct filp *f, int csig, char *proc_name) /* First, fill in all the required headers, second, adjust the offsets, * third, dump everything into the core file */ -#define MAX_REGIONS 20 +#define MAX_REGIONS 100 #define NR_NOTE_ENTRIES 2 Elf_Ehdr elf_header; Elf_Phdr phdrs[MAX_REGIONS + 1]; Elf_Nhdr nhdrs[NR_NOTE_ENTRIES]; int phnum; + memset(phdrs, 0, sizeof(phdrs)); + /* Fill in the NOTE Program Header - at phdrs[0] - and * note entries' headers */