2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-23 03:18:59 +00:00
qpdf/examples
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 Incorporate improved Windows fragility workaround from qtest 2019-02-01 22:25:25 -05:00
build.mk Example of form XObject, page overlay 2019-01-27 07:50:30 -05:00
examples.testcov update release date to actual date 2008-04-29 12:55:25 +00:00
Makefile update release date to actual date 2008-04-29 12:55:25 +00:00
pdf-bookmarks.cc Add comment about json to pdf-bookmarks 2018-12-23 09:15:46 -05:00
pdf-count-strings.cc Convert examples to use new page helper classes 2018-06-21 15:57:13 -04:00
pdf-create.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
pdf-double-page-size.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
pdf-filter-tokens.cc Convert examples to use new page helper classes 2018-06-21 15:57:13 -04:00
pdf-invert-images.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
pdf-linearize.c Comment use of static ID in examples 2015-11-01 16:40:01 -05:00
pdf-mod-info.cc Add comment to setStaticID call 2018-02-04 14:19:00 -05:00
pdf-npages.cc clean up windows portability code, make remaining test suite pass 2009-07-15 04:26:32 +00:00
pdf-overlay-page.cc Example of form XObject, page overlay 2019-01-27 07:50:30 -05:00
pdf-parse-content.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00
pdf-set-form-values.cc Add missing headers 2018-06-22 11:44:04 -04:00
pdf-split-pages.cc Fix sign and conversion warnings (major) 2019-06-21 13:17:21 -04:00