Open stweil opened 5 years ago
It looks like slash_unichar_id_
is undefined.
Pull request #1956 fixes the Valgrind warnings, so the program flow is now well defined in dict.h:114. Nevertheless I think that code does not do what is expected, because hyphen_unichar_id_
and slash_unichar_id_
were initialized, but don't have the values which they should have.
Valgrind reports several uninitialized memory accesses during OCR of an image taken from issue #1205. This can potentially give wrong or random OCR results.
Output from
valgrind --leak-check=full --track-origins=yes bin/debug/x86_64-linux-gnu/src/api/tesseract issues/1205/32625771-8c733d9c-c563-11e7-9538-9053c9f7c542.png -
witheng.traineddata
from http://github.com/tesseract-ocr/tessdata: