Don't leave stack garbage in the reserved fields of the header.
This commit is contained in:
parent
e5f3532cbc
commit
b51de6d89b
@ -192,6 +192,7 @@ _mcleanup()
|
||||
_write(log, buf, len);
|
||||
#endif
|
||||
hdr = (struct gmonhdr *)&gmonhdr;
|
||||
bzero(hdr, sizeof(*hdr));
|
||||
hdr->lpc = p->lowpc;
|
||||
hdr->hpc = p->highpc;
|
||||
hdr->ncnt = p->kcountsize + sizeof(gmonhdr);
|
||||
|
Loading…
Reference in New Issue
Block a user