Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault in tesseract library used from openalpr #1665

Closed
engycz opened this issue Jun 13, 2018 · 0 comments
Closed

Segmentation fault in tesseract library used from openalpr #1665

engycz opened this issue Jun 13, 2018 · 0 comments

Comments

@engycz
Copy link

engycz commented Jun 13, 2018

Environment

Current Behavior:

Since the commit ad5ee18 openalpr (https://github.com/openalpr/openalpr) terminates with segfault in in tesseract::LTRResultIterator::WordFontAttributes

Steps to reproduce:

  • Install openalpr from repository of your favorite linux distribution
  • unpack alpr_segf.tar.gz
  • run alpr -c eu --config openalpr.conf segf.jpg

Expected Behavior:

Suggested Fix:

Problem is that when it_->word() is null, it_->row() is also null ad5ee18#diff-643581a59a3a46f463ea80b2c4d99911R172

Before the change the function exited ad5ee18#diff-643581a59a3a46f463ea80b2c4d99911R178

egorpugin added a commit that referenced this issue Jun 13, 2018
WordFontAttributes: Check that word != nullptr earlier. Fix #1665
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant