DragonFly commits List (threaded) for 2009-04
DragonFly BSD
DragonFly commits List (threaded) for 2009-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

DragonFly-2.3.0.831.g97c6b master lib/libc/gen tls.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Apr 2009 16:52:35 -0700 (PDT)

commit 97c6bef24f04b2a2e7f1ab1661a62fd053ac071e
Author: Matthew Dillon <dillon@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
    threaded applications.
    
    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@gmail.com>

Summary of changes:
 lib/libc/gen/tls.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/97c6bef24f04b2a2e7f1ab1661a62fd053ac071e


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]