tesseract/src/ccutil
Stefan Weil 8bea6bcc12 TFile: Improve handling of potential integer overflow
Raise an assertion for unexpected arguments and use size_t instead of int
for the size argument which is typically sizeof(some_datatype).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-04 13:53:36 +02:00
..
ambigs.cpp Rename all C-style headers (e.g. <stdio.h>) to C++ style (<cstdio>). 2018-05-20 00:52:04 +03:00
ambigs.h Use default keyword instead of empty ctors/dtors. 2018-05-21 13:35:46 +03:00
basedir.cpp Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
basedir.h Fix line endings 2018-04-25 19:04:50 +02:00
bits16.h Use standard bool instead of BOOL8. 2018-05-20 22:46:46 +03:00
bitvector.cpp Use std::max/std::min instead of MAX/MIN macros. 2018-05-20 17:49:48 +03:00
bitvector.h Rename all C-style headers (e.g. <stdio.h>) to C++ style (<cstdio>). 2018-05-20 00:52:04 +03:00
ccutil.cpp Use default keyword instead of empty ctors/dtors. 2018-05-21 13:35:46 +03:00
ccutil.h Use default keyword instead of empty ctors/dtors. 2018-05-21 13:35:46 +03:00
clst.cpp More fixes BOOL8 -> bool 2018-05-21 00:40:58 +03:00
clst.h More fixes BOOL8 -> bool 2018-05-21 00:40:58 +03:00
doubleptr.h Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
elst2.cpp More fixes BOOL8 -> bool 2018-05-21 00:40:58 +03:00
elst2.h More fixes BOOL8 -> bool 2018-05-21 00:40:58 +03:00
elst.cpp Rename all C-style headers (e.g. <stdio.h>) to C++ style (<cstdio>). 2018-05-20 00:52:04 +03:00
elst.h Fix some typos (most found by codespell) 2018-05-27 18:49:43 +02:00
errcode.cpp Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
errcode.h Fix line endings 2018-04-25 19:04:50 +02:00
fileerr.h Fix line endings 2018-04-25 19:04:50 +02:00
genericheap.h Use default keyword instead of empty ctors/dtors. 2018-05-21 13:35:46 +03:00
genericvector.h Fix some typos (most found by codespell) 2018-05-27 18:49:43 +02:00
globaloc.cpp Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
globaloc.h Fix line endings 2018-04-25 19:04:50 +02:00
helpers.h Rename all C-style headers (e.g. <stdio.h>) to C++ style (<cstdio>). 2018-05-20 00:52:04 +03:00
host.h Use using instead of typedef. Reason: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rt-using 2018-05-20 01:31:03 +03:00
indexmapbidi.cpp Fix file endings 2018-04-25 19:35:33 +02:00
indexmapbidi.h Use default keyword instead of empty ctors/dtors. 2018-05-21 13:35:46 +03:00
kdpair.h Use default keyword instead of empty ctors/dtors. 2018-05-21 13:35:46 +03:00
lsterr.h Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
mainblk.cpp Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
Makefile.am Update Makefile.am 2018-05-19 01:42:57 -05:00
memry.cpp Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
memry.h Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
ndminx.h Fix line endings 2018-04-25 19:04:50 +02:00
nwmain.h Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
object_cache.h Use default keyword instead of empty ctors/dtors. 2018-05-21 13:35:46 +03:00
ocrclass.h Return a value from default progress report function 2018-05-30 10:44:13 +02:00
params.cpp Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
params.h Use default keyword instead of empty ctors/dtors. 2018-05-21 13:35:46 +03:00
platform.h Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
qrsequence.h Fix some typos (most found by codespell) 2018-05-27 18:49:43 +02:00
scanutils.cpp Use numeric_limits instead of INT_MAX. 2018-05-20 14:49:35 +03:00
scanutils.h Rename all C-style headers (e.g. <stdio.h>) to C++ style (<cstdio>). 2018-05-20 00:52:04 +03:00
serialis.cpp TFile: Improve handling of potential integer overflow 2018-06-04 13:53:36 +02:00
serialis.h TFile: Improve handling of potential integer overflow 2018-06-04 13:53:36 +02:00
sorthelper.h Rename all C-style headers (e.g. <stdio.h>) to C++ style (<cstdio>). 2018-05-20 00:52:04 +03:00
stderr.h Fix line endings 2018-04-25 19:04:50 +02:00
strngs.cpp Use standard bool instead of BOOL8. 2018-05-20 22:46:46 +03:00
strngs.h Merge pull request #1588 from ZaMaZaN4iK/fix_own_bool 2018-05-23 16:53:12 +03:00
tesscallback.h Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
tessdatamanager.cpp Rename all C-style headers (e.g. <stdio.h>) to C++ style (<cstdio>). 2018-05-20 00:52:04 +03:00
tessdatamanager.h Use default keyword instead of empty ctors/dtors. 2018-05-21 13:35:46 +03:00
tprintf.cpp Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
tprintf.h Fix line endings 2018-04-25 19:04:50 +02:00
unichar.cpp Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
unichar.h Use using instead of typedef. Reason: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rt-using 2018-05-20 01:31:03 +03:00
unicharcompress.cpp Use using instead of typedef. Reason: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rt-using 2018-05-20 01:31:03 +03:00
unicharcompress.h Fix some typos (most found by codespell) 2018-05-27 18:49:43 +02:00
unicharmap.cpp Use default keyword instead of empty ctors/dtors. 2018-05-21 13:35:46 +03:00
unicharmap.h Fix line endings 2018-04-25 19:04:50 +02:00
unicharset.cpp Fix some typos (most found by codespell) 2018-05-27 18:49:43 +02:00
unicharset.h Fix some typos (most found by codespell) 2018-05-27 18:49:43 +02:00
unicity_table.h Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
unicodes.cpp Move sources into src dir. Update build scripts. 2018-04-25 11:02:54 +03:00
unicodes.h Fix line endings 2018-04-25 19:04:50 +02:00
universalambigs.cpp Fix line endings 2018-04-25 19:04:50 +02:00
universalambigs.h Fix line endings 2018-04-25 19:04:50 +02:00