DragonFly-2.3.0.831.g97c6b master lib/libc/gen tls.c
    Matthew Dillon 
    dillon at crater.dragonflybsd.org
       
    Tue Apr 28 16:55:09 PDT 2009
    
    
  
commit 97c6bef24f04b2a2e7f1ab1661a62fd053ac071e
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
    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 at 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
    
    
More information about the Commits
mailing list