summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-01-08libspectre 0.2.12HEAD0.2.12masterAlbert Astals Cid2-2/+9
2023-01-08Fix exporting to pdfAlbert Astals Cid1-4/+6
setpdfwrite has not done anything for a while according to https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=9699aea5cf6491106a2ad1be260d9eb2e85903c3
2022-11-04release: 0.2.110.2.11Albert Astals Cid2-2/+9
2022-11-04CI: Fix ubuntu:21.04 CIAlbert Astals Cid1-0/+3
2022-03-25Avoid possible crash when loading a documentMarek Kasik1-0/+4
Check for result of openning of a file in spectre_document_load() and don't proceed if there was an error.
2022-02-12release: 0.2.100.2.10Albert Astals Cid2-2/+13
2021-12-26Use the new api to pass the callbacksAlbert Astals Cid5-42/+41
Needs ghostscript >= 9.53
2021-11-29Set alignment for rendering to defaultMarek Kasik1-1/+1
Previous aligning to 32 bytes rendered EPS in wrong way (not always but often). Setting default alignment which aligns to size of pointer fixes this issue. The commit which set it to the 32 was talking about alignment of 4 bytes so I guess that there were bits interchanged with bytes. Fixes #44
2020-12-26Free the previous user_image in case spectre_presize is called multiple timesAlbert Astals Cid1-0/+1
2020-05-14remove version suffix from ghostscript directoryRandy1-5/+5
2020-05-06release: 0.2.90.2.9Albert Astals Cid2-2/+19
2020-04-26Move spectre_document_load_from_stream to spectre-private.h for nowAlbert Astals Cid3-9/+10
Not ready for the prime time
2020-04-13Make sure we don't read uninitialized memory from textAlbert Astals Cid1-0/+4
oss-fuzz/21670
2020-04-10Initialize varibles if reading failsAlbert Astals Cid1-14/+30
This way we don't do uninitizlied memory uses later on oss-fuzz/21638
2020-04-09Fix uninitialized memory read on malformed documentsAlbert Astals Cid1-11/+13
2020-04-08Fix uninitialized memory read on malformed documentsAlbert Astals Cid1-2/+2
2020-04-08Fix crash on malformed filesAlbert Astals Cid1-6/+8
2020-03-28Fix memory leakAlbert Astals Cid1-1/+2
oss-fuzz/21240
2020-03-28CI: 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
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=20986
2020-03-02Fix memory leakRandy1-3/+4
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=20283
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. https://gitlab.freedesktop.org/libspectre/libspectre/issues/25
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. https://gitlab.freedesktop.org/libspectre/libspectre/issues/30
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 https://bugzilla.gnome.org/show_bug.cgi?id=678500 https://bugs.freedesktop.org/show_bug.cgi?id=99395
2016-07-02release: 0.2.80.2.8Carlos 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. https://bugs.freedesktop.org/show_bug.cgi?id=76450
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