From 8535d6741ec9bd5d6105181af28f0500148d034f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 28 Sep 2024 20:16:04 +0200 Subject: cid#1607100 Overflowed constant Change-Id: I930e8661845c3c089e8d3d5b180815b1d65d4423 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174153 Reviewed-by: Noel Grandin Tested-by: Jenkins --- sfx2/source/doc/docinf.cxx | 1 + 1 file changed, 1 insertion(+) 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; -- cgit