sfx2/source/doc/docinf.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 8535d6741ec9bd5d6105181af28f0500148d034f
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sat Sep 28 20:16:04 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sat Sep 28 21:22:16 2024 +0200

    cid#1607100 Overflowed constant
    
    Change-Id: I930e8661845c3c089e8d3d5b180815b1d65d4423
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174153
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins

diff --git a/sfx2/source/doc/docinf.cxx b/sfx2/source/doc/docinf.cxx
index 4e8e3663707f..8a4558760ed2 100644
--- a/sfx2/source/doc/docinf.cxx
+++ b/sfx2/source/doc/docinf.cxx
@@ -116,6 +116,7 @@ ErrCode LoadOlePropertySet(
                  && aDateTime.Day == 0 && aDateTime.Month == 0
                  && aDateTime.Year == 0) )
         {
+            assert(aDateTime.Day <= 31);
             // subtract offset 1601-01-01
             aDateTime.Year  -= 1601;
             aDateTime.Month -= 1;

Reply via email to