[packages/tesseract] - fix format string error - rel 2
baggins
baggins at pld-linux.org
Sun Jul 14 16:14:25 CEST 2013
commit f4704e6e085c860e212c1614b77aad999966ab3d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Jul 14 16:14:11 2013 +0200
- fix format string error
- rel 2
format-security.patch | 11 +++++++++++
tesseract.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/tesseract.spec b/tesseract.spec
index 8ddc893..fb36288 100644
--- a/tesseract.spec
+++ b/tesseract.spec
@@ -4,12 +4,13 @@ Summary: Tesseract Open Source OCR Engine
Summary(pl.UTF-8): Tesseract - silnik OCR o otwartych źródłach
Name: tesseract
Version: 3.02.02
-Release: 1
+Release: 2
License: Apache v2.0
Group: Applications/Graphics
#Source0Download: http://code.google.com/p/tesseract-ocr/downloads/list
Source0: http://tesseract-ocr.googlecode.com/files/%{name}-ocr-%{version}.tar.gz
# Source0-md5: 26adc8154f0e815053816825dde246e6
+Patch0: format-security.patch
URL: http://code.google.com/p/tesseract-ocr/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -59,6 +60,7 @@ Statyczne biblioteki Tesseracta.
%prep
%setup -q -n %{name}-ocr
+%patch0 -p1
%build
%{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..8c85e9c
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- tesseract-ocr/dict/permdawg.cpp~ 2012-09-02 22:08:43.000000000 +0200
++++ tesseract-ocr/dict/permdawg.cpp 2013-07-14 16:06:15.545850330 +0200
+@@ -205,7 +205,7 @@
+ STRING word_str;
+ word->string_and_lengths(&word_str, NULL);
+ word_str += " ";
+- fprintf(output_ambig_words_file_, word_str.string());
++ fprintf(output_ambig_words_file_, "%s", word_str.string());
+ }
+ WERD_CHOICE *adjusted_word = word;
+ WERD_CHOICE hyphen_tail_word(&getUnicharset());
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tesseract.git/commitdiff/f4704e6e085c860e212c1614b77aad999966ab3d
More information about the pld-cvs-commit
mailing list