summaryrefslogtreecommitdiff
path: root/tools/tiff2pdf.c
Commit message (Collapse)AuthorAgeFilesLines
* Reformatting in tools/ using 'pre-commit run'pre-commit run by Even Rouault2022-12-081-4928/+5496
|
* Remove vim/emacs formatting footersEven Rouault2022-12-081-9/+0
|
* tiff2pdf: Don't try to seek into stdout.Claus-Justus Heine2022-11-101-1/+1
| | | | Fixes #441
* tiff2pdf: handle 8-bit palette colormapJay Berkenbilt2022-05-091-3/+17
| | | | | | If all the colors in a palette are in the range [0, 255], treat the palette as an 8-bit colormap. This workaround already exists elsewhere in the software including in tiff2ps.
* tiff2pdf: Fixes issues #365, #258 and #257 related to initializing ↵Su Laus2022-02-101-2/+5
| | | | 't2p->pdf_compressionquality'.
* tiff2pdf: validate TIFFGetField(input, TIFFTAG_STRIPBYTECOUNTS, &sbc) return ↵Even Rouault2021-12-161-1/+7
| | | | (fixes #342)
* Fix memory leak in tiff2pdfTimothy Lyanguzov2021-06-021-2/+3
|
* Fix all remaining uses of legacy Deflate compression id and warn on useDavid Ryskalczyk2021-05-081-2/+2
|
* Merge branch 'display_tool_purpose' into 'master'Roger Leigh2021-03-061-0/+1
|\ | | | | | | | | TIFF tools: insert a line of text summarizing each tool's purpose See merge request libtiff/libtiff!214
| * Merge branch 'master' into 'display_tool_purpose'Miguel Medalha2021-02-071-153/+152
| |\ | | | | | | | | | # Conflicts: # tools/tiffsplit.c
| * | Display tool purposeMedalha2021-01-281-0/+1
| | |
* | | Suppress potential unused variable warningRoger Leigh2021-02-061-1/+1
| |/ |/|
* | Add additional TIFF_SSIZE_FORMAT usesRoger Leigh2021-02-051-7/+7
| |
* | Add TIFF_SIZE_FORMAT for portable use of %zRoger Leigh2021-02-041-5/+5
| | | | | | | | MinGW64 does support %z, but it issues a compiler warning.
* | Use TIFF_SSIZE_FORMAT for formatting tmsize_tRoger Leigh2021-02-041-16/+15
| |
* | libtiff: Use PRI format flags and remove unnecessary castsRoger Leigh2021-01-281-1/+1
| |
* | tiff2pdf: Use PRI format flags and remove unnecessary castsRoger Leigh2021-01-271-149/+149
|/
* Use standard C99 integer typesRoger Leigh2021-01-211-209/+209
|
* Merge branch 'std-int-types' into 'master'Even Rouault2021-01-151-7/+7
|\ | | | | | | | | Use standard C99 integer types See merge request libtiff/libtiff!185
| * Use stdint.h types when availableRoger Leigh2021-01-061-7/+7
| |
* | tiff tools: include 'libport.h', remove local definition of 'getopt()'miguel2021-01-051-8/+1
|/
* Merge branch 'issue-202' into 'master'Even Rouault2020-12-281-50/+29
|\ | | | | | | | | | | | | tiff2pdf.c: check that tiff_datasize fits in a signed tsize_t Closes #202 See merge request libtiff/libtiff!166
| * tiff2pdf.c: check that tiff_datasize fits in a signed tsize_tThomas Bernard2020-12-011-50/+29
| | | | | | | | | | | | add t2p_set_tiff_datasize() to check for integer overflow fixes #202
* | Reduce initialized data by making more data const and simplifying usage() ↵Bob Friesenhahn2020-12-281-34/+30
| | | | | | | | implementation.
* | tiff tools: made display of compression methods and their parameters ↵miguel2020-12-251-9/+15
|/ | | | conditional on their actual availability
* Merge branch 'issue-156' into 'master'Even Rouault2020-11-211-0/+8
|\ | | | | | | | | | | | | tiff2pdf: Check output size before writing Closes #156 See merge request libtiff/libtiff!168
| * tiff2pdf: Check output size before writingThomas Bernard2020-11-181-0/+8
| | | | | | | | fixes #156
* | tiff2pdf: enforce memory limit for tiled pictures tooThomas Bernard2020-11-181-0/+7
|/ | | | fixes #201
* Merge branch 'issue-220' into 'master'Even Rouault2020-11-141-3/+11
|\ | | | | | | | | | | | | tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr Closes #220 See merge request libtiff/libtiff!159
| * tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCrThomas Bernard2020-11-141-3/+11
| | | | | | | | fixes #220
* | avoid buffer overflow while writing jpeg end of file markerThomas Bernard2020-11-101-7/+7
|/ | | | fixes #204
* tiff2pdf: print usage on stdout when -h is usedThomas Bernard2020-04-261-12/+14
| | | | see #17
* tiff2pdf: test the return code of TIFFReadRawStrip() and TIFFReadRawTile()Thomas Bernard2020-04-191-11/+56
|
* tiff2pdf.c: fix some whitespace problems in sourceThomas Bernard2020-04-191-62/+62
|
* tiff2pdf: get rid of uninitialized memory contentThomas Bernard2020-04-191-7/+17
| | | | fixes #176
* tiff2pdf: fix "raw" copy of Deflate streamsThomas Bernard2020-03-271-1/+5
| | | | | The Predictor parametter was not copied from the source tiff to the PDF. fixes #48 / http://bugzilla.maptools.org/show_bug.cgi?id=2442
* Merge branch 'issue-133' into 'master'Even Rouault2020-03-241-9/+13
|\ | | | | | | | | | | | | tiff2pdf: avoid divide by 0 Closes #133 See merge request libtiff/libtiff!126
| * tiff2pdf: normalizePoint() macro to normalize the white pointThomas Bernard2020-03-241-15/+13
| |
| * tiff2pdf: avoid divide by 0Thomas Bernard2020-03-181-9/+15
| | | | | | | | fixes #133 http://bugzilla.maptools.org/show_bug.cgi?id=2796
* | tiff2pdf: enforce maximum data sizeThomas Bernard2020-03-211-1/+16
| | | | | | | | | | fixes #116 / http://bugzilla.maptools.org/show_bug.cgi?id=2756 fixes #84 / http://bugzilla.maptools.org/show_bug.cgi?id=2683
* | tiff2pdf: "" causes the relevant argument not to be writtenThomas Bernard2020-03-211-37/+38
|/ | | | fixes #44
* tiff2pdf: palette bound check in t2p_sample_realize_palette()Thomas Bernard2020-02-081-0/+5
| | | | fixes #82
* Fix Cmake HAVE_GETOPT for systems which declare getopt in stdio.h.Bob Friesenhahn2019-11-031-1/+1
| | | | Fix utility baked-in getopt prototype which appears when HAVE_GETOPT is not defined.
* tiff2pdf.c: don't call t2p_tile_collapse_left() when buffer size is wrongThomas Bernard2019-02-281-7/+14
| | | | see http://bugzilla.maptools.org/show_bug.cgi?id=2785
* tiff2pdf.c: check colormap pointersThomas Bernard2019-02-281-10/+24
| | | | | Avoid access to non initialized pointers http://bugzilla.maptools.org/show_bug.cgi?id=2826
* Merge branch 'resource-leaks' into 'master'Even Rouault2018-12-071-0/+1
|\ | | | | | | | | Fix two resource leaks See merge request libtiff/libtiff!43
| * Fix two resource leaksNikola Forró2018-10-311-0/+1
| | | | | | | | Signed-off-by: Nikola Forró <nforro@redhat.com>
* | tiff2pdf: Eliminate compiler warning about snprintf output truncation when ↵Bob Friesenhahn2018-11-031-7/+7
|/ | | | formatting pdf_datetime.
* Fix for bug 2772Nathan Baker2018-02-121-0/+10
| | | | | | | | | | | | It is possible to craft a TIFF document where the IFD list is circular, leading to an infinite loop while traversing the chain. The libtiff directory reader has a failsafe that will break out of this loop after reading 65535 directory entries, but it will continue processing, consuming time and resources to process what is essentially a bogus TIFF document. This change fixes the above behavior by breaking out of processing when a TIFF document has >= 65535 directories and terminating with an error.
* Fix all compiler warnings for default buildNathan Baker2018-02-041-6/+7
|