2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-17 01:55:09 +00:00
qpdf/libtests/qtest
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
..
aes Remove extraneous execute bits 2012-06-20 15:18:08 -04:00
ascii85 update release date to actual date 2008-04-29 12:55:25 +00:00
bits Add signed support to BitStream and BitWriter 2018-01-13 19:49:42 -05:00
buffer Pl_Buffer starts in a ready state 2018-03-06 11:31:03 -05:00
closedfile ClosedFileInputSource: add method to keep file open 2018-08-04 19:52:46 -04:00
dct Pl_DCT: Use custom source and destination managers (fixes #153) 2017-09-07 22:59:11 -04:00
flate update release date to actual date 2008-04-29 12:55:25 +00:00
hex update release date to actual date 2008-04-29 12:55:25 +00:00
input_source Implement findFirst and findLast in InputSource 2017-08-10 21:30:32 -04:00
json Add simple JSON serializer 2018-12-21 18:34:56 -05:00
lzw fix problem with lzw decoder when run without early code change, now that we actually have test input 2009-02-20 02:27:36 +00:00
md5 Implement deterministic ID 2015-10-31 18:56:42 -04:00
ph add * and -> operators 2010-09-24 19:09:22 +00:00
predictors Add Pl_TIFFPredictor 2018-01-13 19:49:42 -05:00
qintc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
qutil Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
rc4 update release date to actual date 2008-04-29 12:55:25 +00:00
runlength Implement Pl_RunLength pipeline 2017-08-19 14:50:55 -04:00
sha2 SHA2 pipeline with support for 256, 384, and 512 bits 2012-12-31 05:36:51 -05:00
aes.test test aes 2009-10-17 23:58:59 +00:00
ascii85.test Fix a few compiler errors reported correctly my MSVC 9.0. 2009-07-12 22:52:13 +00:00
bits.test Fix a few compiler errors reported correctly my MSVC 9.0. 2009-07-12 22:52:13 +00:00
buffer.test Fix a few compiler errors reported correctly my MSVC 9.0. 2009-07-12 22:52:13 +00:00
closedfile.test Add ClosedFileInputSource 2018-06-22 12:52:45 -04:00
dct.test Pl_DCT: Use custom source and destination managers (fixes #153) 2017-09-07 22:59:11 -04:00
flate.test use binmode so test suite works with ActivePerl 2009-10-14 00:31:52 +00:00
hex.test update release date to actual date 2008-04-29 12:55:25 +00:00
input_source.test Implement findFirst and findLast in InputSource 2017-08-10 21:30:32 -04:00
json.test Add simple JSON serializer 2018-12-21 18:34:56 -05:00
lzw.test Fix a few compiler errors reported correctly my MSVC 9.0. 2009-07-12 22:52:13 +00:00
matrix.test Convert pages to form XObjects 2019-01-27 07:50:30 -05:00
md5.test Fix a few compiler errors reported correctly my MSVC 9.0. 2009-07-12 22:52:13 +00:00
numrange.test Move numrange code from qpdf.cc to QUtil.cc 2018-12-21 19:11:57 -05:00
ph.test Fix a few compiler errors reported correctly my MSVC 9.0. 2009-07-12 22:52:13 +00:00
predictors.test Add Pl_TIFFPredictor 2018-01-13 19:49:42 -05:00
qintc.test New safe type converters in QIntC 2019-06-21 13:17:21 -04:00
qutil.test Use RM_WS_ONLY_LINES in test 2016-01-24 12:05:22 -05:00
random.test Refactor random data generation 2013-12-14 15:17:35 -05:00
rc4.test update release date to actual date 2008-04-29 12:55:25 +00:00
runlength.test Implement Pl_RunLength pipeline 2017-08-19 14:50:55 -04:00
sha2.test SHA2 pipeline with support for 256, 384, and 512 bits 2012-12-31 05:36:51 -05:00