File: stackunderflow

package info (click to toggle)
gle-graphics 4.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 9,704 kB
  • sloc: cpp: 78,486; python: 150; makefile: 71; perl: 46; sh: 3; ansic: 1
file content (17 lines) | stat: -rw-r--r-- 804 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Vincent LaBella <vlabella@albany.edu>
Description: qgle: eliminate stackunderflow -17 ghostscript error when rendering with gs library
Acked-by: Christian T. Steigies <cts@debian.org>
Last-Update: 2025-10-15
Index: gle-graphics/src/gui/qgs.cpp
===================================================================
--- gle-graphics.orig/src/gui/qgs.cpp
+++ gle-graphics/src/gui/qgs.cpp
@@ -479,6 +479,8 @@ bool GSInterpreterLib::run(const string*
 		offset += readNow;
 		toRead -= readNow;
 	}
+	return_code = m_gs->gsapi_run_string_continue(ghostScriptInstance,"quit", 4, 0, &exit_code);
+	if (exit_code && !handleExit(exit_code)) return false;
 	return_code = m_gs->gsapi_run_string_end(ghostScriptInstance, 0, &exit_code);
 	if (exit_code && !handleExit(exit_code)) return false;
 	return true;