From 9bca62c5fa1c2278a8684250a1175454cf32d85a Mon Sep 17 00:00:00 2001 From: Rodrigo Tobar Date: Sun, 26 Feb 2023 14:46:27 +0800 Subject: [PATCH] LibPDF: Increase argument stack for Type1FontPrograms Type1 imposes a stack limit of 24 elements, but Type2 has a limit of 48. We are better off relaxing the limit of the former in favour of properly supporting the latter. --- Userland/Libraries/LibPDF/Fonts/Type1FontProgram.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibPDF/Fonts/Type1FontProgram.h b/Userland/Libraries/LibPDF/Fonts/Type1FontProgram.h index c06ed5c2c7..dadc9c1546 100644 --- a/Userland/Libraries/LibPDF/Fonts/Type1FontProgram.h +++ b/Userland/Libraries/LibPDF/Fonts/Type1FontProgram.h @@ -74,7 +74,7 @@ protected: Array flex_sequence; size_t sp { 0 }; - Array stack; + Array stack; u8 n_hints { 0 }; size_t postscript_sp { 0 };