git: libc - Fix bogus pthread_getspecific() return value due to

看板DFBSD_commit作者時間15年前 (2011/01/31 06:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 909fda640a31a4774cfaefe59eedbf7fc1608afc Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sun Jan 30 13:44:11 2011 -0800 libc - Fix bogus pthread_getspecific() return value due to bug in nmalloc * nmalloc was calling pthread_set_specific() prior to calling pthread_key_create(), causing it to use key 0 which might already have been allocated for other purposes. * Reorder initializations in _nmalloc_thr_init() to solve the problem. * This also solves certain application crashes (mail/milter-greylist). Reported-by: Francois Tigeot <ftigeot@wolfpond.org> Summary of changes: lib/libc/stdlib/nmalloc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/909fda640a31a4774cfaefe59eedbf7fc1608afc -- DragonFly BSD source repository
文章代碼(AID): #1DHT-Ydi (DFBSD_commit)