diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-02-06 11:54:19 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-02-06 11:54:19 +0000 |
commit | f9048c6816a9649ba4b286b978b18f1e4a7861d0 (patch) | |
tree | 060af3ce0857f78b25cbbba76fb8a7e385da50c9 /lib | |
parent | 4c912bf42a10c895b13ee13c4eb058800b35f9c4 (diff) | |
download | FreeBSD-src-f9048c6816a9649ba4b286b978b18f1e4a7861d0.zip FreeBSD-src-f9048c6816a9649ba4b286b978b18f1e4a7861d0.tar.gz |
Always clear thread info buffer to zero.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libthread_db/libpthread_db.c | 1 | ||||
-rw-r--r-- | lib/libthread_db/libthr_db.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libthread_db/libpthread_db.c b/lib/libthread_db/libpthread_db.c index ea7f81c..5dfc1dd 100644 --- a/lib/libthread_db/libpthread_db.c +++ b/lib/libthread_db/libpthread_db.c @@ -597,6 +597,7 @@ pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info) TDBG_FUNC(); + bzero(info, sizeof(*info)); ret = pt_validate(th); if (ret) return (ret); diff --git a/lib/libthread_db/libthr_db.c b/lib/libthread_db/libthr_db.c index 8986939..aa639e9 100644 --- a/lib/libthread_db/libthr_db.c +++ b/lib/libthread_db/libthr_db.c @@ -474,6 +474,7 @@ pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info) TDBG_FUNC(); + bzero(info, sizeof(*info)); ret = pt_validate(th); if (ret) return (ret); |