develooper Front page | perl.perl5.porters | Postings from April 2007

Re: [perl #42648] [PATCH] crash in win32/VMem.h when out of memory

Thread Previous
From:
Steve Hay
Date:
April 24, 2007 05:16
Subject:
Re: [perl #42648] [PATCH] crash in win32/VMem.h when out of memory
Message ID:
462DF532.4010400@uk.radan.com
Devin Heitmueller (via RT) wrote:
> # New Ticket Created by  "Devin Heitmueller" 
> # Please include the string:  [perl #42648]
> # in the subject line of all future correspondence about this issue. 
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42648 >
> 
> 
> This is a bug report for perl from dheitmueller@devinxp.gridapp.com,
> generated with the help of perlbug 1.35 running under perl 5.9.4.
> 
> 
> -----------------------------------------------------------------
> There is an condition in the VMem::Realloc and VMem::Malloc when
> _USE_LINKED_LIST is enabled and the system is out of memory.
> 
> In cases where m_pmalloc/m_prealloc return a NULL pointer, the next line
> of code calls LinkBlock(ptr) and will dereference the NULL pointer.
> 
> The attached patch handles the allocation failure and returns a NULL pointer
> as expected to the caller.

Thanks, applied as #31054.

-- 

Thread Previous


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