New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PerlMemShared_realloc() without checking for a failure #15393
Comments
From @ppisarThis is a bug report for perl from ppisar@redhat.com, There are various places where PerlMemShared_realloc() function is called. The An example is ptable_split() in ext/arybase/ptable.h: ary = (ptable_ent **)PerlMemShared_realloc(ary, newsize * sizeof(*ary)); If PerlMemShared_realloc() returns NULL, not only the "ary" memory is lost, Did I overlook something, or should that be fixed? Flags: Site configuration information for perl 5.22.1: Configured by Red Hat, Inc. at Wed Mar 2 13:26:46 UTC 2016. Summary of my perl5 (revision 5 version 22 subversion 1) configuration: Locally applied patches: @INC for perl 5.22.1: Environment for perl 5.22.1: |
From @demerphqOn 14 June 2016 at 11:03, Petr Pisar <perlbug-followup@perl.org> wrote:
It should be fixed. Yves |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Tue, Jun 14, 2016 at 03:56:07PM +0200, demerphq wrote:
Agreed. I guess we should use a wrapper function (c.f. Perl_safesysmalloc() for Presumably PerlMemShared_malloc and _calloc suffer from similar -- |
Migrated from rt.perl.org#128400 (status was 'open')
Searchable as RT128400$
The text was updated successfully, but these errors were encountered: