2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-09 09:50:28 +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
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
hex
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
md5 Implement deterministic ID 2015-10-31 18:56:42 -04:00
ph
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
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
ascii85.test
bits.test
buffer.test
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
hex.test
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
matrix.test Convert pages to form XObjects 2019-01-27 07:50:30 -05:00
md5.test
numrange.test Move numrange code from qpdf.cc to QUtil.cc 2018-12-21 19:11:57 -05:00
ph.test
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
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