r52444 - in /branches/lenny/libjavascript-perl/debian: changelog patches/fix_context_descruction.patch patches/series

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Wed Feb 10 06:07:57 UTC 2010


Author: dmn
Date: Wed Feb 10 06:07:31 2010
New Revision: 52444

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=52444
Log:
Steal fix_context_descruction.patch from upstream SVN.

Fixes a segfault after calling non-present function. Closes: 564772

Added:
    branches/lenny/libjavascript-perl/debian/patches/fix_context_descruction.patch
Modified:
    branches/lenny/libjavascript-perl/debian/changelog
    branches/lenny/libjavascript-perl/debian/patches/series

Modified: branches/lenny/libjavascript-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/branches/lenny/libjavascript-perl/debian/changelog?rev=52444&op=diff
==============================================================================
--- branches/lenny/libjavascript-perl/debian/changelog (original)
+++ branches/lenny/libjavascript-perl/debian/changelog Wed Feb 10 06:07:31 2010
@@ -1,3 +1,10 @@
+libjavascript-perl (1.08-1+lenny1) stable; urgency=low
+
+  * Steal fix_context_descruction.patch from upstream SVN. Fixes a segfault
+    after calling non-present function. Closes: 564772
+
+ -- Damyan Ivanov <dmn at debian.org>  Wed, 10 Feb 2010 08:02:09 +0200
+
 libjavascript-perl (1.08-1) unstable; urgency=low
 
   * New upstream release.

Added: branches/lenny/libjavascript-perl/debian/patches/fix_context_descruction.patch
URL: http://svn.debian.org/wsvn/pkg-perl/branches/lenny/libjavascript-perl/debian/patches/fix_context_descruction.patch?rev=52444&op=file
==============================================================================
--- branches/lenny/libjavascript-perl/debian/patches/fix_context_descruction.patch (added)
+++ branches/lenny/libjavascript-perl/debian/patches/fix_context_descruction.patch Wed Feb 10 06:07:31 2010
@@ -1,0 +1,28 @@
+# Description: fix segmentation fault when evaluated JavaScript code calls an
+#  undefined external function
+# Bug-Debian: 564772
+# Origin: upstream, svn://svn.versed.se/public/Perl/modules/JavaScript/trunk (revision 931)
+--- a/lib/JavaScript/Context.pm
++++ b/lib/JavaScript/Context.pm
+@@ -19,10 +19,8 @@ sub new {
+     
+     my $self = bless { _impl => $cx_ptr }, $pkg;
+ 
+-    $Context{${$cx_ptr}} = $self;
+-    
+-    weaken($Context{$cx_ptr});
+-
++    $Context{$$cx_ptr} = $self;
++    weaken($Context{$$cx_ptr});
+     $self->{runtime} = $runtime;
+     
+     return $self;
+--- a/t/30-refcount.t
++++ b/t/30-refcount.t
+@@ -31,5 +31,5 @@ my $rt = JavaScript::Runtime->new();
+         is($sv->REFCNT, 2);
+     }
+     
+-    is($sv->REFCNT, 1);
++    is($sv->REFCNT, 0);
+ }

Modified: branches/lenny/libjavascript-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/branches/lenny/libjavascript-perl/debian/patches/series?rev=52444&op=diff
==============================================================================
--- branches/lenny/libjavascript-perl/debian/patches/series (original)
+++ branches/lenny/libjavascript-perl/debian/patches/series Wed Feb 10 06:07:31 2010
@@ -1,2 +1,3 @@
 pod-errors
 mozjs.patch
+fix_context_descruction.patch




More information about the Pkg-perl-cvs-commits mailing list