2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-08 05:10:53 +00:00
qpdf/libqpdf/qpdf
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
..
BitStream.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
BitWriter.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
ContentNormalizer.hh Protect headers with compliant identifiers (fixes #233) 2018-08-12 14:10:32 -04:00
InsecureRandomDataProvider.hh Protect headers with compliant identifiers (fixes #233) 2018-08-12 14:10:32 -04:00
MD5.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
OffsetInputSource.hh Protect headers with compliant identifiers (fixes #233) 2018-08-12 14:10:32 -04:00
Pl_AES_PDF.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
Pl_ASCII85Decoder.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
Pl_ASCIIHexDecoder.hh Protect headers with compliant identifiers (fixes #233) 2018-08-12 14:10:32 -04:00
Pl_LZWDecoder.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
Pl_MD5.hh Protect headers with compliant identifiers (fixes #233) 2018-08-12 14:10:32 -04:00
Pl_PNGFilter.hh Protect headers with compliant identifiers (fixes #233) 2018-08-12 14:10:32 -04:00
Pl_RC4.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
Pl_SHA2.hh Protect headers with compliant identifiers (fixes #233) 2018-08-12 14:10:32 -04:00
Pl_TIFFPredictor.hh Protect headers with compliant identifiers (fixes #233) 2018-08-12 14:10:32 -04:00
QPDF_Array.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
QPDF_Bool.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
QPDF_Dictionary.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
QPDF_InlineImage.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
QPDF_Integer.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
QPDF_Name.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
QPDF_Null.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
QPDF_Operator.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
QPDF_Real.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
QPDF_Reserved.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
QPDF_Stream.hh Change QPDFObjectHandle::pipeStreamData's encode_flags type 2019-06-21 13:17:21 -04:00
QPDF_String.hh Add QPDFObjectHandle::getJSON() 2018-12-21 18:34:56 -05:00
qpdf-config.h.in configure: determine wordsize automatically 2019-06-21 13:17:21 -04:00
QPDFMatrix.hh Move rectangle transformation into QPDFMatrix 2019-01-27 07:50:30 -05:00
RC4.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
rijndael.h Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
SecureRandomDataProvider.hh Protect headers with compliant identifiers (fixes #233) 2018-08-12 14:10:32 -04:00