* Fixed lots of crashes, memory leaks with malformed documents (Albert Astals Cid, Randy) * Ghostscript 9.24 is now required (Christian Persch) * Hide internal symbols (Christian Persch) * Added "(libspectre)" to the error messages to be clear where the messages come from (Caolán McNamara) * Fixed clang warnings (Albert Astals Cid) OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/libspectre?expand=0&rev=27
14 lines
516 B
Diff
14 lines
516 B
Diff
Index: libspectre-0.2.9/libspectre/spectre-document.c
|
|
===================================================================
|
|
--- libspectre-0.2.9.orig/libspectre/spectre-document.c
|
|
+++ libspectre-0.2.9/libspectre/spectre-document.c
|
|
@@ -72,7 +72,7 @@ document_load (SpectreDocument *document
|
|
return;
|
|
}
|
|
|
|
- document->doc = psscan (file, filename, SCANSTYLE_NORMAL);
|
|
+ document->doc = psscan (file, filename, SCANSTYLE_IGNORE_EOF);
|
|
if (!document->doc) {
|
|
document->status = SPECTRE_STATUS_LOAD_ERROR;
|
|
return;
|