DragonFly-126.96.36.1991.g97c6b master lib/libc/gen tls.c
dillon at crater.dragonflybsd.org
Tue Apr 28 16:55:09 PDT 2009
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Apr 28 16:49:30 2009 -0700
Fix short allocation in libc RTLD for static-compiled programs.
libc's __libc_allocate_tls() (weakly bound to _rtld_allocate_tls()) was not
allocating enough space for the TLS segments in statically-compiled
The old malloc allocated lots of extra space and masked the bug. The new
slab malloc doesn't and revealed the bug.
Reproduced-by: Sepherosa Ziehau <sepherosa at gmail.com>
Summary of changes:
lib/libc/gen/tls.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
DragonFly BSD source repository
More information about the Commits