starmath/inc/parsebase.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 16745d0b793b61d5719085c04eca8741d815865a Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Apr 26 20:25:42 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sat Apr 26 22:42:44 2025 +0200 crashtesting: .doc output of ooo74516-1.odt cannot be reloaded allow a larger starmath parse depth to accept this document Change-Id: I2b912be98958efb351de4cdc9f916831e70cf42d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184668 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/starmath/inc/parsebase.hxx b/starmath/inc/parsebase.hxx index dd53ce631c11..1cac2a917a08 100644 --- a/starmath/inc/parsebase.hxx +++ b/starmath/inc/parsebase.hxx @@ -30,7 +30,7 @@ #include <set> #include <utility> -#define DEPTH_LIMIT 1024 +constexpr int DEPTH_LIMIT = 256 * 6; // Those are the errors that the parser may encounter. enum class SmParseError : uint_fast8_t