Philippe M. Chiasson [Wed, 30 Nov 2005 20:17:31 +0000 (12:17 -0800)]
From: "Philippe M. Chiasson" <gozer@ActiveState.com>
Message-ID: <
438E795B.9060805@ActiveState.com>
p4raw-id: //depot/perl@26235
need = (have > width ? have : width);
gap = need - have;
+#ifdef PERL_MALLOC_WRAP
+ if (need >= (((STRLEN)~0) - SvCUR(sv) - dotstrlen - 1))
+ Perl_croak_nocontext(PL_memory_wrap);
+#endif
SvGROW(sv, SvCUR(sv) + need + dotstrlen + 1);
p = SvEND(sv);
if (esignlen && fill == '0') {