libspectre/fix-bsc975503.diff
Dirk Mueller 2f8829773b - update to 0.2.9:
* 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
2020-08-20 22:07:33 +00:00

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;