FreeBSD Bugzilla – Attachment 184054 Details for
Bug 220447
print/texinfo: crash with lang/perl5.26 + PERL_MALLOC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix bad Perl frees in print/texinfo
print__texinfo-fix-bad-frees-1.diff (text/plain), 1.37 KB, created by
Dimitry Andric
on 2017-07-04 11:50:36 UTC
(
hide
)
Description:
Fix bad Perl frees in print/texinfo
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2017-07-04 11:50:36 UTC
Size:
1.37 KB
patch
obsolete
>Index: print/texinfo/files/patch-tp_Texinfo_MiscXS_misc.c >=================================================================== >--- print/texinfo/files/patch-tp_Texinfo_MiscXS_misc.c (nonexistent) >+++ print/texinfo/files/patch-tp_Texinfo_MiscXS_misc.c (working copy) >@@ -0,0 +1,20 @@ >+--- tp/Texinfo/MiscXS/misc.c.orig 2017-05-02 17:05:43 UTC >++++ tp/Texinfo/MiscXS/misc.c >+@@ -67,7 +67,7 @@ xs_abort_empty_line (HV *self, HV *current, SV *additi >+ additional_text = SvPV (additional_text_in, len); >+ if (!SvUTF8 (additional_text_in)) >+ { >+- free (new_string); >++ Safefree (new_string); >+ new_string = bytes_to_utf8 (additional_text, &len); >+ additional_text = new_string; >+ } >+@@ -279,7 +279,7 @@ xs_merge_text (HV *self, HV *current, SV *text_in) >+ text = SvPV (text_in, len); >+ if (!SvUTF8 (text_in)) >+ { >+- free (new_string); >++ Safefree (new_string); >+ new_string = bytes_to_utf8 (text, &len); >+ text = new_string; >+ } > >Property changes on: print/texinfo/files/patch-tp_Texinfo_MiscXS_misc.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220447
: 184054