tesseract/ccutil
Stefan Weil 26620a7b50 Fix wrong results from function streamtofloat
The local variable k should be 10 ^ (number of digits after comma),
but will overflow when there are more than 9 digits after the comma
because an int value cannot store 10000000000.

This results in wrong double values read from .tr files for example
(or in a runtime exception if Tesseract was compiled with -ftrapv).

Using uint64_t does not fix the general problem but allows more digits
which should be sufficient for the data read by Tesseract.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-11-17 20:39:32 +01:00
..
ambigs.cpp Fix Cygwin compatibility 2016-06-17 15:52:01 +03:00
ambigs.h Formatting changes from clang_tidy on latest pull 2016-12-07 16:58:25 +01:00
basedir.cpp remove unused code (Windows related) 2013-07-08 18:21:10 +00:00
basedir.h Fixed relative-to-executable tessdata location, while allowing for addition of terminating / 2012-10-09 00:41:08 +00:00
bits16.cpp remove unused code (Windows related) 2013-07-08 18:21:10 +00:00
bits16.h Remove extra semicolons after member function definitions 2016-12-07 17:18:51 +01:00
bitvector.cpp Fixed a lot of compiler/clang warnings 2014-01-25 02:28:51 +00:00
bitvector.h Fixed a lot of compiler/clang warnings 2014-01-25 02:28:51 +00:00
ccutil.cpp backport from 4.00: add missing License information 2016-11-25 13:13:28 +01:00
ccutil.h Revert "ccutil: Remove unneeded include statement" 2017-05-19 20:41:18 +02:00
clst.cpp backport style changes from 4.00 for better identification of fixes and new code 2016-11-25 15:14:46 +01:00
clst.h backport style changes from 4.00 for better identification of fixes and new code 2016-11-25 15:14:46 +01:00
doubleptr.h Major refactor of beam search, elimination of dead code, misc bug fixes, updates to Makefile.am, Changelog etc. 2013-09-23 15:26:50 +00:00
elst2.cpp backport style changes from 4.00 for better identification of fixes and new code 2016-11-25 15:14:46 +01:00
elst2.h backport style changes from 4.00 for better identification of fixes and new code 2016-11-25 15:14:46 +01:00
elst.cpp backport style changes from 4.00 for better identification of fixes and new code 2016-11-25 15:14:46 +01:00
elst.h backport style changes from 4.00 for better identification of fixes and new code 2016-11-25 15:14:46 +01:00
errcode.cpp remove unused code (Windows related) 2013-07-08 18:21:10 +00:00
errcode.h backport style changes from 4.00 for better identification of fixes and new code 2016-11-25 15:14:46 +01:00
fileerr.h top-skimming import from sf.net 2007-03-07 20:03:40 +00:00
genericheap.h backport from 4.00: SkipDeSerialize and changes in ccutil 2016-11-30 19:52:18 +01:00
genericvector.h Reserve extra byte in LoadDataFromFile() in case caller wants to append '\0' 2018-06-05 17:16:34 +02:00
globaloc.cpp Turned on pdfrenderer functionality that needs leptonica 1.70 2014-01-23 23:01:10 +00:00
globaloc.h fix --enable-visibility build (including training tools) 2017-03-10 23:17:30 +01:00
hashfn.h Simplify delete operations 2016-12-07 15:59:11 +01:00
helpers.h backport from 4.00: SkipDeSerialize and changes in ccutil 2016-11-30 19:52:18 +01:00
host.h Add include statement for POSIX data types (fix issue #999) 2017-06-20 17:41:10 +02:00
indexmapbidi.cpp Remaining misc changes for 3.02 2012-02-02 03:14:43 +00:00
indexmapbidi.h Remaining misc changes for 3.02 2012-02-02 03:14:43 +00:00
kdpair.h Major refactor of beam search, elimination of dead code, misc bug fixes, updates to Makefile.am, Changelog etc. 2013-09-23 15:26:50 +00:00
lsterr.h backport style changes from 4.00 for better identification of fixes and new code 2016-11-25 15:14:46 +01:00
mainblk.cpp backport style changes from 4.00 for better identification of fixes and new code 2016-11-25 15:14:46 +01:00
Makefile.am remove empty header file secname.h 2015-07-31 17:32:54 +02:00
memry.cpp remove unused code (Windows related) 2013-07-08 18:21:10 +00:00
memry.h Removed dead memory mangagement code 2012-02-02 02:51:56 +00:00
ndminx.h Harmless improvements from 3.00 going in to 2.04 2008-12-30 18:20:15 +00:00
nwmain.h remove unused code (Windows related) 2013-07-08 18:21:10 +00:00
object_cache.h Major refactor of beam search, elimination of dead code, misc bug fixes, updates to Makefile.am, Changelog etc. 2013-09-23 15:26:50 +00:00
ocrclass.h backport from 4.00: SkipDeSerialize and changes in ccutil 2016-11-30 19:52:18 +01:00
params.cpp Fix wrong format string 2017-05-19 19:57:20 +02:00
params.h fix --enable-visibility build (including training tools) 2017-03-10 23:17:30 +01:00
platform.h Fix possible warning when WIN32_LEAN_AND_MEAN is already defined. 2017-05-05 18:46:35 +02:00
qrsequence.h 3.01 code from http://github.com/jimregan/tesseract-ocr with addaptions related to Linux and Windows (VC2008) compile process 2010-11-23 18:34:14 +00:00
scanutils.cpp Fix wrong results from function streamtofloat 2018-11-17 20:39:32 +01:00
scanutils.h Applied patch to refix issue 331 2014-04-23 23:12:53 +00:00
serialis.cpp Optimize code by replacing init_to_size with resize_no_init 2017-05-19 20:19:20 +02:00
serialis.h Started TFile conversion to remove fmemopen 2014-08-11 23:09:25 +00:00
sorthelper.h Major refactor of beam search, elimination of dead code, misc bug fixes, updates to Makefile.am, Changelog etc. 2013-09-23 15:26:50 +00:00
stderr.h top-skimming import from sf.net 2007-03-07 20:03:40 +00:00
strngs.cpp backport from 4.00: SkipDeSerialize and changes in ccutil 2016-11-30 19:52:18 +01:00
strngs.h More clang-tidy from previous commits 2016-12-08 15:50:22 +01:00
tesscallback.h Major refactor of beam search, elimination of dead code, misc bug fixes, updates to Makefile.am, Changelog etc. 2013-09-23 15:26:50 +00:00
tessdatamanager.cpp ccutil/tessdatamanager: Fix resource leak 2016-10-24 16:00:57 +02:00
tessdatamanager.h backport style changes from 4.00 for better identification of fixes and new code 2016-11-25 15:14:46 +01:00
tprintf.cpp Moved -v to training 2014-01-09 17:25:12 +00:00
tprintf.h Moved -v to training 2014-01-09 17:25:12 +00:00
unichar.cpp Improved newlines and spaces in a box file so it works better with RTL languages. 2015-05-12 17:51:03 -07:00
unichar.h Fix typo 2017-05-05 19:04:52 +02:00
unicharmap.cpp Fixed issue 736 2012-09-21 15:19:44 +00:00
unicharmap.h Harmless improvements from 3.00 going in to 2.04 2008-12-30 18:20:15 +00:00
unicharset.cpp Clean method UNICHARSET::add_script 2017-05-19 20:07:25 +02:00
unicharset.h UNICHARSET: Add missing initialization 2017-05-19 21:29:43 +02:00
unicity_table.h Remaining misc changes for 3.02 2012-02-02 03:14:43 +00:00
unicodes.cpp Remaining misc changes for 3.02 2012-02-02 03:14:43 +00:00
unicodes.h Doxygen 2015-07-20 18:48:00 +01:00
universalambigs.cpp Misc fixes, mostly clang formatting, but some bug fixes in matrix, werd, and tesstrain_utils. Also updates unicharset to match traineddata files. 2015-07-09 14:28:20 -07:00
universalambigs.h Major refactor of beam search, elimination of dead code, misc bug fixes, updates to Makefile.am, Changelog etc. 2013-09-23 15:26:50 +00:00