sc/source/filter/excel/xistyle.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 50ef3ac17ab884fff1518d90d161b1e6d7bff8c0 Author: Karthik Godha <[email protected]> AuthorDate: Thu Dec 18 14:36:03 2025 +0530 Commit: Michael Stahl <[email protected]> CommitDate: Fri Dec 19 11:04:55 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]> diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx index c079c7ac9562..b42bfeed12a3 100644 --- a/sc/source/filter/excel/xistyle.cxx +++ b/sc/source/filter/excel/xistyle.cxx @@ -272,6 +272,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 ); }
