diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-09-28 20:16:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-28 21:22:16 +0200 |
commit | 8535d6741ec9bd5d6105181af28f0500148d034f (patch) | |
tree | e3094fee67692aec9dbd2c6a36c994587c3e1459 | |
parent | 7f84c993d3d2b5f05b18e740fea960901da57f80 (diff) |
cid#1607100 Overflowed constant
Change-Id: I930e8661845c3c089e8d3d5b180815b1d65d4423
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174153
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
-rw-r--r-- | sfx2/source/doc/docinf.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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; |