diff options
author | bde <bde@FreeBSD.org> | 2002-02-15 02:37:08 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-02-15 02:37:08 +0000 |
commit | b51de6d89b11ea94b0ed8b26819a96294e14da08 (patch) | |
tree | f59b0943afaac2eb17bc8b43f38e198850286ff0 /lib/libc | |
parent | e5f3532cbc4bd2aababe7917cab38294eb64edc8 (diff) | |
download | FreeBSD-src-b51de6d89b11ea94b0ed8b26819a96294e14da08.zip FreeBSD-src-b51de6d89b11ea94b0ed8b26819a96294e14da08.tar.gz |
Don't leave stack garbage in the reserved fields of the header.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gmon/gmon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c index f25cbab..be373b0 100644 --- a/lib/libc/gmon/gmon.c +++ b/lib/libc/gmon/gmon.c @@ -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); |