AgeCommit message (Collapse)AuthorFilesLines
4 daysFix memory leakHEADmasterAlbert Astals Cid1-1/+2
4 daysCI: use debian testing while unstable is brokenAlbert Astals Cid1-1/+1
2020-03-10fix memory leak in ps.c:650Randy1-0/+1
2020-03-10Refactor spectre_document_load_from_data() -> _stream()Randy3-47/+33
2020-03-07fix memory leak in ps.c:603Randy1-0/+1
2020-03-07fix NULL-dereference in psscan.c:934Randy1-1/+1
2020-03-03fix NULL-dereference in psscan()Randy1-1/+1
2020-03-02Fix memory leakRandy1-3/+4
2020-02-29ossfuzz: integrate into build, add entrypointRandy3-1/+78
2020-02-29Add spectre_document_load_from_data(), update fuzz targetRandy3-18/+62
2020-02-19ossfuzz: fix coverage buildRandy1-0/+39
2020-02-18Refactor code so that psscan() can accept a FILE*, this will enable parsing ↵Randy4-12/+16
from fmemopen()'d buffers. I figured this should be merged separately before spectre_document_load_from_data() is added.
2020-02-13ossfuzz: add dictionary, update build scriptRandy2-2/+63
2020-01-05Revert "ossfuzz: keep shared libraries after install"Albert Astals Cid1-0/+1
This reverts commit 9b1e58286c7c72baaba55f07bfb42db03240fecf.
2020-01-01ossfuzz: keep shared libraries after installRandy1-1/+0
2019-12-08fix leak in spectre_device_render()Randy1-0/+3
2019-11-26update ossfuzz.shRandy1-1/+1
2019-11-26update fuzz targetRandy2-46/+49
2019-11-24fix indentationRandy1-7/+7
2019-11-20add build script, fuzz targetRandy2-0/+66
2018-10-20spectre-gs: Remove support for old ghostscriptChristian Persch2-22/+8
Now that we require a recent ghostscript, we can remove the support for older versions.
2018-10-20spectre-gs: Enforce minimum ghostscript versionChristian Persch2-2/+12
Ghostscript versions before 9.24 had a critical vulnerability allowing to escape -dSAFER; refuse to do anything if the version is less than 9.24.
2018-10-19Make clang happyAlbert Astals Cid1-9/+2
ps.c:1875:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] char charP; ^ ps.c:197:88: note: previous declaration is here static char *readlineuntil PT((FileData, long, char **, long *, unsigned int *, char)); ^ ps.c:2212:13: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'unsigned short' declared in a previous prototype [-Wknr-promoted-parameter] PS_WORD val; ^ ps.c:206:48: note: previous declaration is here static PS_WORD reorder_word PT((PS_WORD));
2018-10-19Hide internal symbolsChristian Persch9-3/+102
Use hidden visibility by default and make only the public API symbols visible.
2018-10-19Make gcc happy about switch fallthroughAlbert Astals Cid1-0/+1
2018-10-19Fix crash with malformed documentAlbert Astals Cid1-1/+1
Closes issue #14
2018-10-13Add basic CIAlbert Astals Cid1-0/+38
2017-01-15state what lib is printing the errorCaolán McNamara1-3/+3
and where it originally came from so its clear where "undefined -21" came from in cases like
2016-07-02release: Garcia Campos2-2/+18
2016-07-02build: Fix make distcheckCarlos Garcia Campos1-3/+6
2016-06-23Rotate documents correctly with newer libgs versionsMarek Kasik1-2/+106
Rotate result of rendering given by ghostscript when libgs >= 9.08.
2016-06-23spectre-gs: Add a method to get the libgs versionCarlos Garcia Campos2-1/+12
2016-04-02Fix the build with Ghostscript >= 9.18Carlos Garcia Campos1-0/+11
2014-09-03Revert "Rotate documents correctly"Carlos Garcia Campos4-102/+31
This reverts commit c0b7b178d455f00b21e6317376ab49324bddb340.
2014-06-09Rotate documents correctlyMarek Kasik4-31/+102
Set correct size of rendered images when a rotation is requested. Use "rotate" command to rotate documents instead of setting of "Orientation". Adjust offsets accordingly. Don't execute "setpagedevice" when rendering to "display" device.
2012-11-03build: Use CPPFLAGS instead of CFLAGS for compiling flagsCarlos Garcia Campos2-10/+5
2012-11-03ps: Fix comparison between signed and unsigned compile warningCarlos Garcia Campos1-2/+3
2012-08-08Update for release Garcia Campos2-2/+12
2012-08-08build: Don't use global INCLUDES var in makefilesCarlos Garcia Campos2-12/+19
2010-12-04Allocate at least 1 page in doc->pagesMarek Kasik1-5/+5
Allocate at least 1 page if there are no %%Pages: or %%Page: comments in the PS file (#31512).
2010-10-30Fix a crash with documents containing an invalid %%Pages: commentCarlos Garcia Campos1-0/+2
When failed to allocate memory for pages because of invalid %%Pages: comment, set maxpages to 0 to ignore the comment. Problem spotted by Marek Kasik. Fixes bug #30867.
2010-06-10Update for release Garcia Campos2-2/+21
2010-06-01Fix rendering of files with doseps header and EOF comment missingCarlos Garcia Campos1-1/+8
Fixes bug #27830.
2010-06-01Add --enable-iso-c configure option disabled by defaultCarlos Garcia Campos1-1/+7
It uses, if available, -ansic and -pedantic flags. See bug #27735
2010-06-01Remove unneeded #includeCarlos Garcia Campos1-1/+0
See bug #27734.
2010-06-01Make Ghostscript not look first in the current directory for library filesCarlos Garcia Campos2-3/+5
2010-04-18Update for release Garcia Campos2-2/+18
2010-04-18Use %I64x format for DisplayHandle on Windows 64 bitsCarlos Garcia Campos1-1/+7
2010-04-06Fix a crash in pdf exporter when rendering failsCarlos Garcia Campos1-0/+6
2010-03-28Use the correct format string for DisplayHandle arg depending on the platformCarlos Garcia Campos1-2/+5