Package: tesseract Version: 2.04-2.1 Severity: minor Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu oneiric ubuntu-patch
Attached please find a patch applied recently to Ubuntu 11.10 resolving the symptom of a sigsegv in tesseract upon encountering a grey-scale image saved from The GIMP. Cheers, -Dan In Ubuntu, the attached patch was applied to achieve the following: * Add patch from Martin Owens to fix a segfault when tesseract encounters a grey-scale image saved from The GIMP (LP: #793002). Thanks, Martin! Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers oneiric-updates APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric-proposed'), (500, 'oneiric') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-5-generic (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u tesseract-2.04/debian/changelog tesseract-2.04/debian/changelog diff -u tesseract-2.04/debian/patches/series tesseract-2.04/debian/patches/series --- tesseract-2.04/debian/patches/series +++ tesseract-2.04/debian/patches/series @@ -3,0 +4 @@ +tesseract-16bpp only in patch2: unchanged: --- tesseract-2.04.orig/debian/patches/tesseract-16bpp +++ tesseract-2.04/debian/patches/tesseract-16bpp @@ -0,0 +1,14 @@ +Index: tesseract-2.04/image/imgs.cpp +=================================================================== +--- tesseract-2.04.orig/image/imgs.cpp 2008-03-10 12:22:01.000000000 -0400 ++++ tesseract-2.04/image/imgs.cpp 2011-07-17 14:51:47.000000000 -0400 +@@ -250,7 +250,8 @@ + } + if (bits_per_pixel != 1 && bits_per_pixel != 2 + && bits_per_pixel != 4 && bits_per_pixel != 5 +- && bits_per_pixel != 6 && bits_per_pixel != 8 && bits_per_pixel != 24) { ++ && bits_per_pixel != 6 && bits_per_pixel != 8 ++ && bits_per_pixel != 16 && bits_per_pixel != 24) { + BADBPP.error ("check_legal_image_size", TESSLOG, "%d", bits_per_pixel); + return -1; + }