2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-29 16:30:53 +00:00
qpdf/include/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
..
Buffer.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
BufferInputSource.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
ClosedFileInputSource.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
Constants.h Modernize encryption API for more granularity 2019-01-17 11:43:56 -05:00
DLL.h Fix C++ exception handling when -fvisibility=hidden (#302) 2019-03-11 18:28:29 -04:00
FileInputSource.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
InputSource.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
JSON.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
Pipeline.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
Pl_Buffer.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
Pl_Concatenate.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
Pl_Count.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
Pl_DCT.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
Pl_Discard.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
Pl_Flate.hh Pl_Flate: constructor's out_bufsize is now unsigned int 2019-06-21 13:17:21 -04:00
Pl_QPDFTokenizer.hh Refactor QPDFTokenizer's inline image handling 2019-01-31 09:26:37 -05:00
Pl_RunLength.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
Pl_StdioFile.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
PointerHolder.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QIntC.hh New safe type converters in QIntC 2019-06-21 13:17:21 -04:00
qpdf-c.h Modernize encryption API for more granularity 2019-01-17 11:43:56 -05:00
QPDF.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
QPDFAcroFormDocumentHelper.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFAnnotationObjectHelper.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFDocumentHelper.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFExc.hh Fix C++ exception handling when -fvisibility=hidden (#302) 2019-03-11 18:28:29 -04:00
QPDFFormFieldObjectHelper.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFNameTreeObjectHelper.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFNumberTreeObjectHelper.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFObject.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFObjectHandle.hh Change QPDFObjectHandle::pipeStreamData's encode_flags type 2019-06-21 13:17:21 -04:00
QPDFObjectHelper.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFObjGen.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFOutlineDocumentHelper.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFOutlineObjectHelper.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFPageDocumentHelper.hh Clarify documentation for copyForeignObject regarding pages 2019-01-28 21:53:55 -05:00
QPDFPageLabelDocumentHelper.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QPDFPageObjectHelper.hh Spell check 2019-01-31 21:41:29 -05:00
QPDFSystemError.hh Fix C++ exception handling when -fvisibility=hidden (#302) 2019-03-11 18:28:29 -04:00
QPDFTokenizer.hh Make inline image token exactly contain the image data 2019-01-31 20:28:44 -05:00
QPDFWriter.hh Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
QPDFXRefEntry.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QTC.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
QUtil.hh QUtil: add unsigned int/string functions 2019-06-21 13:17:21 -04:00
RandomDataProvider.hh Update copyrights for 2019 2019-01-07 07:54:55 -05:00
Types.h Update copyrights for 2019 2019-01-07 07:54:55 -05:00