[Python-modules-team] Bug#511252: python-pypdf: escape-sequence '\b' in PDF strings is incorrectly parsed as 'b' instead of Backspace.

Ralf Schlatterbeck rsc at runtux.com
Thu Jan 8 20:46:20 UTC 2009


Package: python-pypdf
Version: 1.10-1
Severity: important
Tags: patch

Tried today to verify a PDF signature. Had a hard time with DER encoded
ASN1 string due to a problem when reading PDF strings. The following
patch says more than a long description.

--- generic.py.orig	2007-10-05 04:37:14.000000000 +0200
+++ generic.py	2009-01-08 21:21:32.000000000 +0100
@@ -295,7 +295,7 @@
             elif tok == "t":
                 tok = "\t"
             elif tok == "b":
-                tok == "\b"
+                tok = "\b"
             elif tok == "f":
                 tok = "\f"
             elif tok == "(":

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-pypdf depends on:
ii  python-support                0.8.4      automated rebuilding support for P

python-pypdf recommends no packages.

python-pypdf suggests no packages.

-- no debconf information





More information about the Python-modules-team mailing list