sc/source/filter/excel/xistyle.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 2d273469ebe0c0e3c8a44b16690a218d367614ac Author: Karthik Godha <[email protected]> AuthorDate: Thu Dec 18 14:36:03 2025 +0530 Commit: Caolán McNamara <[email protected]> CommitDate: Sat Dec 20 13:03:42 2025 +0100 Sanitize font size read from XLS This is related to commit 28273e586b398e2ce181c4ce9e740949fad11876 Change-Id: I182c27b6a9f796bf949246a2038c318dec755c33 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195831 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> (cherry picked from commit 50ef3ac17ab884fff1518d90d161b1e6d7bff8c0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195892 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx index 3f7a19df0189..8a60750716c8 100644 --- a/sc/source/filter/excel/xistyle.cxx +++ b/sc/source/filter/excel/xistyle.cxx @@ -271,6 +271,10 @@ void XclImpFont::ReadFont( XclImpStream& rStrm ) DBG_ERROR_BIFF(); return; } + + constexpr sal_uInt16 MIN_FONT_HEIGHT_1_20th_PT = 20; + maData.mnHeight = std::max(maData.mnHeight, MIN_FONT_HEIGHT_1_20th_PT); + GuessScriptType(); SetAllUsedFlags( true ); }
