Skip to content

Commit

Permalink
Avoid segmentation fault with classify_enable_adaptive_matcher == fal…
Browse files Browse the repository at this point in the history
…se (issue #256)

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Oct 29, 2021
1 parent 676b86b commit b4b2cac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/classify/adaptmatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@

namespace tesseract {

// TODO: The parameter classify_enable_adaptive_matcher can cause
// a segmentation fault if it is set to false (issue #256),
// so override it here.
#define classify_enable_adaptive_matcher true

#define ADAPT_TEMPLATE_SUFFIX ".a"

#define MAX_MATCHES 10
Expand Down

0 comments on commit b4b2cac

Please sign in to comment.