Code:  z2grestore(i_ctx_t *i_ctx_p)
 {
    if (!restore_page_device(igs, gs_gstate_saved(igs)))
         return gs_grestore(igs);
     return push_callout(i_ctx_p, "%grestorepagedevice");
 }

Vulnerability Type: Exec Code
CWE ID: 
Summary: An issue was discovered in Artifex Ghostscript before 9.25. Incorrect "restoration of privilege" checking when running out of stack during exception handling could be used by attackers able to supply crafted PostScript to execute code using the "pipe" instruction. This is due to an incomplete fix for CVE-2018-16509.
Commit Message: 