freebl/ecl uses malloc/free
Categories
(NSS :: Libraries, defect, P3)
Tracking
(Not tracked)
People
(Reporter: glandium, Unassigned)
Details
While working on bug 1531887, I found that freebl/ecl/ecl.c, ecl_gf.c and ecp_jm.c are using malloc/free rather than PR_Malloc/PR_Free like other parts of NSS (and even freebl). I don't think this is expected.
| Reporter | ||
Comment 1•6 years ago
|
||
Or PORT_Alloc/PORT_Free.
Comment 2•6 years ago
|
||
Let's get this cleaned up next cycle. Thanks for the catch, Mike.
Comment 3•6 years ago
|
||
Hello - Mike, I'm thinking of looking at this but just got a bit thrown over the mention of the PR_ and PORT_ methods (I'm new to the codebase so apologies if I'm overlooking anything).
For example, I can see PORT_Alloc calls PR_Malloc but PR_Malloc may call malloc() or a zone allocator (I'm not sure what that is either but that's from a first glance without reading the code further).
When would you use the PORT_ methods over the PR_ methods?
| Reporter | ||
Comment 4•6 years ago
|
||
NSS should probably always use PORT_Alloc.
Comment 6•6 years ago
|
||
Thanks for the replies! I'm looking at another ticket right now but if this one is still unassigned when I'm next free to pick up something, I'll give an update here
Updated•3 years ago
|
Updated•3 years ago
|
Description
•