Skip to contentSkip to conversation

perl: Backport fix for bug #123591

PATCH Superseded Gary Thomas 2 participants 4 messages Jan 19, 2015 – Jan 20, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perl: Backport fix for bug #123591

This patch fixes a crash in perl when using formatted strings @...

---
 .../perl/perl-5.20.0/fix-FF_MORE-crash.patch        | 21 +++++++++++++++++++++
 meta/recipes-devtools/perl/perl_5.20.0.bb           |  1 +
 2 files changed, 22 insertions(+)
 create mode 100644 meta/recipes-devtools/perl/perl-5.20.0/fix-FF_MORE-crash.patch
meta/recipes-devtools/perl/perl-5.20.0/fix-FF_MORE-crash.patch new file +21 -0
new file mode 100644
index 0000000..85cfa05
@@ -0,0 +1,21 @@
+Upstream-Status: Backport
+Reference: https://rt.perl.org/Public/Bug/Display.html?id=123591
+  From 62db6ea5fed19611596cbc5fc0b8a4df2c604e58 Mon Sep 17 00:00:00 2001
+  From: Tony Cook <[email protected]>
+  Date: Mon, 19 Jan 2015 16:03:18 +1100
+  Subject: [PATCH 1/1] [perl #123538] always set chophere and itembytes at the same time
+
+  Previously this would crash in FF_MORE because chophere was still NULL.
+
+Index: perl-5.20.0/pp_ctl.c
+===================================================================
+--- perl-5.20.0.orig/pp_ctl.c
++++ perl-5.20.0/pp_ctl.c
+@@ -590,6 +590,7 @@ PP(pp_formline)
+                         break;
+                 }
+                 itembytes = s - item;
++                chophere = s;
+ 		break;
+ 	    }
+ 
meta/recipes-devtools/perl/perl_5.20.0.bb +1 -0
index 3ca0f53..bc7866b 100644
@@ -63,6 +63,7 @@ SRC_URI += " \
 	file://fix_bad_rpath.patch \
 	file://perl-archlib-exp.patch \
 	file://dynaloaderhack.patch \
+	file://fix-FF_MORE-crash.patch \
 	\
         \
         file://config.sh \
Signature · 1 line
1.9.1
#1 lore raw

meta/recipes-devtools/perl/perl-5.20.0/fix-FF_MORE-crash.patch line 2

Quoted 4 lines · Gary Thomas
meta/recipes-devtools/perl/perl-5.20.0/fix-FF_MORE-crash.patch new file +2 -0
@@ -0,0 +1,21 @@
+Upstream-Status: Backport
+Reference: https://rt.perl.org/Public/Bug/Display.html?id=123591

This needs to be Signed-off-by.

Ross

#2 lore raw
Quoted 9 lines · Ross

On 19 January 2015 at 14:20, Gary Thomas <[email protected] <mailto:[email protected]>> wrote:

    @@ -0,0 +1,21 @@
    +Upstream-Status: Backport
    +Reference: https://rt.perl.org/Public/Bug/Display.html?id=123591

This needs to be Signed-off-by.

By whom? There is no Signed-off-by in the perl commit.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 4 lines · Gary Thomas

This needs to be Signed-off-by.

Quoted 1 line

By whom? There is no Signed-off-by in the perl commit.

By you, along with the Upstream-Status. We like to know in five years time who added a patch.

Ross