From f4704e6e085c860e212c1614b77aad999966ab3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 14 Jul 2013 16:14:11 +0200 Subject: [PATCH] - fix format string error - rel 2 --- format-security.patch | 11 +++++++++++ tesseract.spec | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 format-security.patch 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()); 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} -- 2.44.0