oliveiracwb / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

[PATCH] Fix potential division by zero in textord/tabvector.cpp #1304

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please review the attached patch. It fixes a potential division by zero in 
textord/tabvector.cpp. In case the previous for loop is not executed, the 
variables 'num_unmatched' and 'num_matched' will have the value 0. This leads 
to a division by zero. The attached patch takes care, that this will not happen.

Best regards and many thanks

Martin Ettl

Original issue reported on code.google.com by ettl.mar...@gmail.com on 8 Sep 2014 at 10:38

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in 3.04.

Original comment by theraysm...@gmail.com on 7 Oct 2014 at 12:36

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 26235d69e8f3.

Original comment by theraysm...@gmail.com on 7 Oct 2014 at 4:24