2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00
qpdf/libtests
Jay Berkenbilt d71f05ca07 Fix sign and conversion warnings (major)
This makes all integer type conversions that have potential data loss
explicit with calls that do range checks and raise an exception. After
this commit, qpdf builds with no warnings when -Wsign-conversion
-Wconversion is used with gcc or clang or when -W3 -Wd4800 is used
with MSVC. This significantly reduces the likelihood of potential
crashes from bogus integer values.

There are some parts of the code that take int when they should take
size_t or an offset. Such places would make qpdf not support files
with more than 2^31 of something that usually wouldn't be so large. In
the event that such a file shows up and is valid, at least qpdf would
raise an error in the right spot so the issue could be legitimately
addressed rather than failing in some weird way because of a silent
overflow condition.
2019-06-21 13:17:21 -04:00
..
qtest Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
aes.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
ascii85.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
bits.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
buffer.cc buffer test: fix memory leak in test code 2018-05-05 17:43:44 -04:00
build.mk New safe type converters in QIntC 2019-06-21 13:17:21 -04:00
closed_file_input_source.cc ClosedFileInputSource: add method to keep file open 2018-08-04 19:52:46 -04:00
concatenate.cc Remove all old-style casts from C++ code 2013-03-04 16:45:16 -05:00
dct_compress.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
dct_uncompress.cc Implement Pl_DCT pipeline 2017-08-21 17:44:02 -04:00
flate.cc Fix errors reported by Coverity 2013-07-07 15:36:51 -04:00
hex.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
input_source.cc Implement findFirst and findLast in InputSource 2017-08-10 21:30:32 -04:00
json.cc Fix json serialization for {x | -1 < x < 1} (fixes #308) 2019-03-11 16:22:59 -04:00
libtests.testcov Add simple JSON serializer 2018-12-21 18:34:56 -05:00
lzw.cc Call QUtil::safe_fopen in place of fopen 2013-03-05 13:35:46 -05:00
Makefile update release date to actual date 2008-04-29 12:55:25 +00:00
matrix.cc Move rectangle transformation into QPDFMatrix 2019-01-27 07:50:30 -05:00
md5.cc Implement deterministic ID 2015-10-31 18:56:42 -04:00
numrange.cc Move numrange code from qpdf.cc to QUtil.cc 2018-12-21 19:11:57 -05:00
pointer_holder.cc add * and -> operators 2010-09-24 19:09:22 +00:00
predictors.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
qintc.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
qutil.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
random.cc Increase random data provider support 2013-12-16 16:21:28 -05:00
rc4.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
runlength.cc Implement Pl_RunLength pipeline 2017-08-19 14:50:55 -04:00
sha2.cc Remove all old-style casts from C++ code 2013-03-04 16:45:16 -05:00