[Amavisd-new-commits] [SCM] Debian packaging for amavisd-new branch, master, updated. debian/1%2.6.4-4-18-g682aae3

Alexander Wirt formorer at debian.org
Tue Aug 9 20:04:32 UTC 2011


The following commit has been merged in the master branch:
commit 682aae3e41a21a8773b537f0e661e46162b12a60
Author: Alexander Wirt <formorer at debian.org>
Date:   Tue Aug 9 10:46:46 2011 +0200

    Even more old stuff
    
    Git-Dch: Ignore

diff --git a/debian/amavisd-new.disabled-patch.utf8-taint-fix b/debian/amavisd-new.disabled-patch.utf8-taint-fix
deleted file mode 100644
index b837236..0000000
--- a/debian/amavisd-new.disabled-patch.utf8-taint-fix
+++ /dev/null
@@ -1,33 +0,0 @@
-Index: amavisd
-===================================================================
-RCS file: /cvsroot/amavisd-new/amavisd-new/amavisd,v
-retrieving revision 1.1.1.15
-retrieving revision 1.36
-diff -u -r1.1.1.15 -r1.36
---- amavisd	21 Aug 2005 23:46:15 -0000	1.1.1.15
-+++ amavisd	20 Oct 2005 13:56:17 -0000	1.36
-@@ -1392,14 +1392,21 @@
- 
- # A wrapper for Encode::encode, avoiding a bug in Perl 5.8.0 which causes
- # Encode::encode to loop and fill memory when given a tainted string
-+# 
-+# hmh at d.o : in Debian's 5.8.4-2, trying to restore the taintedness
-+# actually causes perl to somehow lose track of the encoding and it
-+# completely breaks this sub.  OTOH, perl does loop eating up memory
-+# on tainted strings, so we will have to lose taint state for now.
- sub safe_encode($$;$) {
-   if (!$unicode_aware) { $_[1] }  # just return the second argument
-   else {
-     my($encoding,$str,$check) = @_;
-     $check = 0  if !defined($check);
--    # taintedness of the string, with UTF-8 flag unconditionally off
--    my($taint) = Encode::encode('ascii',substr($str,0,0));
--    $taint . Encode::encode($encoding,untaint($str),$check);  # preserve taint
-+    $str = untaint(\$str);
-+    return Encode::encode($encoding, $str, $check);  # reattach taintedness
-+#    # taintedness of the string, with UTF-8 flag unconditionally off
-+#    my($taint) = Encode::encode('ascii',substr($str,0,0));
-+#    $taint . Encode::encode($encoding,untaint($str),$check);  # preserve taint
-   }
- }
- 

-- 
Debian packaging for amavisd-new



More information about the Amavisd-new-commits mailing list