sc/source/filter/excel/xistyle.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 90d7dd49195a05b23e0a952f6984bcb26bec4e42
Author:     Karthik Godha <[email protected]>
AuthorDate: Thu Dec 18 14:36:03 2025 +0530
Commit:     Xisco Fauli <[email protected]>
CommitDate: Mon Dec 22 14:11:39 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
    (cherry picked from commit 2d273469ebe0c0e3c8a44b16690a218d367614ac)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196071
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sc/source/filter/excel/xistyle.cxx 
b/sc/source/filter/excel/xistyle.cxx
index caa55afd7edb..3ccb3f7899fe 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 );
 }

Reply via email to