develooper Front page | perl.perl5.porters | Postings from October 2018

[perl #133550] [PATCH] Define also Perl's calloc() macro

From:
Tony Cook via RT
Date:
October 29, 2018 04:53
Subject:
[perl #133550] [PATCH] Define also Perl's calloc() macro
Message ID:
rt-4.0.24-3678-1540788813-863.133550-15-0@perl.org
On Fri, 28 Sep 2018 04:43:47 -0700, pali@cpan.org wrote:
> Functions malloc(), realloc() and free() are already redefined to
> PerlMem_malloc(), PerlMem_realloc() and PerlMem_free(). But calloc() not.
> 
> This leads to the problem that memory by calloc() is allocated by system
> C library, but freed by Perl's PerlMem_free() which just cause memory
> corruptions.

Thanks, applied as 5ace197f9a644bde21b1b41430099295ed92365e.

Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=133550



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About