1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:57:35 +00:00

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.
This commit is contained in:
Rodrigo Tobar 2023-02-26 14:46:27 +08:00 committed by Andreas Kling
parent de5e7b487c
commit 9bca62c5fa

View file

@ -74,7 +74,7 @@ protected:
Array<float, 14> flex_sequence; Array<float, 14> flex_sequence;
size_t sp { 0 }; size_t sp { 0 };
Array<float, 24> stack; Array<float, 48> stack;
u8 n_hints { 0 }; u8 n_hints { 0 };
size_t postscript_sp { 0 }; size_t postscript_sp { 0 };