[uClibc 0000882]: _dl_calloc passes a wrong size to _dl_malloc

bugs at busybox.net bugs at busybox.net
Thu May 25 08:39:15 UTC 2006


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=882 
====================================================================== 
Reported By:                carmelo73
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   882
Category:                   Other
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             05-25-2006 01:09 PDT
Last Modified:              05-25-2006 01:39 PDT
====================================================================== 
Summary:                    _dl_calloc passes a wrong size to _dl_malloc
Description: 
The _dl_calloc implementation provided by ldso/ldso/dl-tls.c passes the
wrong
size to the _dl_malloc function.
Instead of using size (size = __size * __nmemb), it passes __size.
This bug cause segmentation fault into my system.
I've uploaded the simple patch to be applied.
====================================================================== 

---------------------------------------------------------------------- 
 carmelo73 - 05-25-06 01:39  
---------------------------------------------------------------------- 
Sorry, I generated the previous patch in the wrong way, discard it.
I've attached the correct one named dl-tls.patch.ok

Carmelo 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-25-06 01:09  carmelo73      New Issue                                    
05-25-06 01:09  carmelo73      Status                   new => assigned     
05-25-06 01:09  carmelo73      Assigned To               => uClibc          
05-25-06 01:09  carmelo73      File Added: dl-tls.patch                     
05-25-06 01:16  carmelo73      Issue Monitored: carmelo73                    
05-25-06 01:38  carmelo73      File Added: dl-tls.patch.ok                    
05-25-06 01:39  carmelo73      Note Added: 0001381                          
======================================================================




More information about the uClibc-cvs mailing list