Commit Graph

13185 Commits

Author SHA1 Message Date
PJ Fanning 6464543fb2 revert log4j 2.24.0 due to build issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920515 13f79535-47bb-0310-9956-ffa450edef68
2024-09-08 00:30:33 +00:00
PJ Fanning 7933b53287 log4j 2.24.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920512 13f79535-47bb-0310-9956-ffa450edef68
2024-09-08 00:23:45 +00:00
PJ Fanning f4ec85adb0 upgrade spotbugs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920477 13f79535-47bb-0310-9956-ffa450edef68
2024-09-05 16:30:26 +00:00
PJ Fanning cb1f341bb9 ant 1.10.15
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920302 13f79535-47bb-0310-9956-ffa450edef68
2024-08-30 17:37:58 +00:00
PJ Fanning a2289f4596 bytebuddy 1.15.1
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920301 13f79535-47bb-0310-9956-ffa450edef68
2024-08-30 17:15:58 +00:00
PJ Fanning 6a68645f62 bytebuddy 1.15.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920233 13f79535-47bb-0310-9956-ffa450edef68
2024-08-27 18:48:12 +00:00
PJ Fanning 41ea754510 update javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920232 13f79535-47bb-0310-9956-ffa450edef68
2024-08-27 18:46:55 +00:00
PJ Fanning abf153d6a4 [github-682] Add CellPropertyType and CellPropertyCategory enums. Thanks to Danila Avdeyenko. This closes #682
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920230 13f79535-47bb-0310-9956-ffa450edef68
2024-08-27 18:36:59 +00:00
PJ Fanning 41453f3916 [github-657] SXSSF: support setting an arbitrary extra width value for column widths
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920107 13f79535-47bb-0310-9956-ffa450edef68
2024-08-21 11:35:20 +00:00
PJ Fanning f33b2cbd51 upgrade bytebuddy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920075 13f79535-47bb-0310-9956-ffa450edef68
2024-08-20 16:30:34 +00:00
PJ Fanning cbda6bccf4 upgrade guava
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920074 13f79535-47bb-0310-9956-ffa450edef68
2024-08-20 16:29:36 +00:00
PJ Fanning 295e1d0bc9 upgrade commons-compress
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920072 13f79535-47bb-0310-9956-ffa450edef68
2024-08-20 16:28:30 +00:00
PJ Fanning 2d869111bc upgrade cyclonedx
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920071 13f79535-47bb-0310-9956-ffa450edef68
2024-08-20 16:26:58 +00:00
PJ Fanning 1ba795451e gradle 8.10
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919930 13f79535-47bb-0310-9956-ffa450edef68
2024-08-16 12:08:48 +00:00
PJ Fanning b0c67177ff [github-673] Add word10.xsd to poi-ooxml-full. Thanks to fangd1997. This closes #673
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919929 13f79535-47bb-0310-9956-ffa450edef68
2024-08-16 12:06:41 +00:00
PJ Fanning c2945d86f9 [github-672] Support removing XWPF Styles. Thanks to fangd1997. This closes #672
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919918 13f79535-47bb-0310-9956-ffa450edef68
2024-08-15 19:45:40 +00:00
PJ Fanning 571845c5b0 junit 5.11.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919896 13f79535-47bb-0310-9956-ffa450edef68
2024-08-14 17:42:53 +00:00
PJ Fanning 33260d51ee [github-670] XWPFRun.getText should support delInstrText and noBreakHyphen. Thanks to fangd1997. This closes #670
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919895 13f79535-47bb-0310-9956-ffa450edef68
2024-08-14 17:38:32 +00:00
PJ Fanning 6c56c2d00f slf4j 2.0.16
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919805 13f79535-47bb-0310-9956-ffa450edef68
2024-08-11 07:24:06 +00:00
PJ Fanning c82ebeab7d pdfbox 3.0.3
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919786 13f79535-47bb-0310-9956-ffa450edef68
2024-08-09 16:03:15 +00:00
PJ Fanning 84824170d8 commons-compress 1.27.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919785 13f79535-47bb-0310-9956-ffa450edef68
2024-08-09 16:01:41 +00:00
PJ Fanning e4c617baba slf4j 2.0.15
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919749 13f79535-47bb-0310-9956-ffa450edef68
2024-08-08 15:00:18 +00:00
PJ Fanning d681bcfcfb slf4j 2.0.14
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919716 13f79535-47bb-0310-9956-ffa450edef68
2024-08-07 10:19:16 +00:00
PJ Fanning fdb8b41fe3 hamcrest 3.0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919622 13f79535-47bb-0310-9956-ffa450edef68
2024-08-01 15:46:30 +00:00
PJ Fanning b737d6c03e upgrade cyclondex
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919596 13f79535-47bb-0310-9956-ffa450edef68
2024-07-30 14:59:38 +00:00
PJ Fanning ac02543cfe remove unnecessary xz test dependendency
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919595 13f79535-47bb-0310-9956-ffa450edef68
2024-07-30 14:48:30 +00:00
Dominik Stadler 0559accac4 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a possible NullPointerException

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70467

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919562 13f79535-47bb-0310-9956-ffa450edef68
2024-07-28 11:02:18 +00:00
PJ Fanning c05eebf415 add chinese hssf test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919373 13f79535-47bb-0310-9956-ffa450edef68
2024-07-19 14:19:35 +00:00
PJ Fanning 889ba37ae9 remove 22742.xls
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919372 13f79535-47bb-0310-9956-ffa450edef68
2024-07-19 13:36:06 +00:00
Dominik Stadler 6739970530 Apply some IDE suggestions, improve JavaDoc and simplify reporting log messages
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919343 13f79535-47bb-0310-9956-ffa450edef68
2024-07-18 07:10:35 +00:00
Dominik Stadler 0dea4a301c Bug 66425: Avoid exceptions found via poi-fuzz
Processing formats uses regular expressions. Very complex formats
can recurse very deeply and thus can cause StackOVerflows depending
on the used stack-size.

In order to handle this a bit more gracefully, we now catch this
and report a better exception with details about the parsed 
format and potential mitigation.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66137

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919342 13f79535-47bb-0310-9956-ffa450edef68
2024-07-18 07:09:32 +00:00
PJ Fanning 0dac5680c3 commons-codec 1.17.1 - no need to note Saxon upgrade (only used in tests)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919288 13f79535-47bb-0310-9956-ffa450edef68
2024-07-16 14:11:35 +00:00
Dominik Stadler 7b15aefae8 Bug 66425: Avoid exceptions found via poi-fuzz
Avoid a possible OutOfMemoryException with incorrect uniqueCount

The ReadOnlySharedStringsTable pre-allocates whatever is stated in uniqueCount.

As the uniqueCount may be an incorrect large number, we should cap it at some point
to avoid OOMs if corrupt files are processed.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66137

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919284 13f79535-47bb-0310-9956-ffa450edef68
2024-07-16 13:26:16 +00:00
PJ Fanning cc4fbe1c4d POI tm
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919276 13f79535-47bb-0310-9956-ffa450edef68
2024-07-16 12:33:05 +00:00
PJ Fanning 264a215573 gradle 8.9
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919274 13f79535-47bb-0310-9956-ffa450edef68
2024-07-16 07:42:28 +00:00
Dominik Stadler 09fbfd5be4 Bug 66425: Avoid exceptions found via poi-fuzz
Avoid a possible OutOfMemoryException with many child-records

This avoids having too many children in EscherRecords, the limit of
100_000 is arbitrarily chosen and can be adjusted if needed  

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62924 and maybe others

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919272 13f79535-47bb-0310-9956-ffa450edef68
2024-07-16 05:26:42 +00:00
PJ Fanning 9456261cba update bytebuddy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919268 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 22:42:38 +00:00
PJ Fanning ebb9cde924 update gradle plugins
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919266 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 22:41:18 +00:00
Dominik Stadler e75d2c6d9f Remove exclusions that are not necessary/useful
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919258 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 13:04:48 +00:00
Dominik Stadler a3d9c025e9 Apply some IDE suggestions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919257 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 13:03:19 +00:00
Dominik Stadler 2582e5e0c1 Bug 66425: Avoid exceptions found via poi-fuzz
Avoid a possible StackOverflowException

This adds support of counting of the "nesting level" into the base 
EscherRecord and thus makes this existing limitation much more effective
as it kicks in for more types of nested records. 

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66374

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919256 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 13:02:43 +00:00
Dominik Stadler 719e7154a1 Optimize generating numbers for bullets in Word
Using char[] instead of String improves performance of this
operation considerably, especially in JDK 11+ where StringBuilder
was switched to work on bytes instead of chars.

This is likely only relevant for very large documents, it was visible
in a synthetic test-file from fuzzing.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919239 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 05:41:14 +00:00
Dominik Stadler a971751238 Reformat and add more tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919238 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 05:41:10 +00:00
Dominik Stadler e2044c958b Bug 66425: Avoid exceptions found via poi-fuzz
Prevent too much memory usage

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67413

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919237 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 05:41:04 +00:00
Dominik Stadler 5085e3d1b2 Add initial support for SOURCE_DATE_EPOCH
This allows to create reproducible binary files without creation/modification-timestamp
being set when environment variable SOURCE_DATE_EPOCH is set.

See https://reproducible-builds.org/docs/source-date-epoch/ for the related specification.

For now, we ensure that Zip-file entries set the modification time to 1970-01-01,
which seems to be enough to make simple OOXML files reproducible.

There are likely some other places where resulting files are not reproducible, some
more testing will be necessary to identify other areas that should take this into
account as well.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919236 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 05:40:56 +00:00
Dominik Stadler 1a07ee8d6a Patch forrest to expect all links to be "https" instead of "http"
Otherwise generating documentation leads to incorrect links with "../https://..."

Unfortunately Forrest is archived at Apache so we cannot get this fixed
in Forrest anymore.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919235 13f79535-47bb-0310-9956-ffa450edef68
2024-07-15 05:40:48 +00:00
Dominik Stadler 04a956ab8f Adjust the name of the distribution-file in one more place.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919221 13f79535-47bb-0310-9956-ffa450edef68
2024-07-14 13:11:23 +00:00
Dominik Stadler 8be69305ca Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a NullPointerException

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66400

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919216 13f79535-47bb-0310-9956-ffa450edef68
2024-07-14 11:27:02 +00:00
Dominik Stadler a042165133 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a NullPointerException

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68104

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919215 13f79535-47bb-0310-9956-ffa450edef68
2024-07-14 11:26:56 +00:00
Dominik Stadler fc17f113d8 Bug 66425: Avoid exceptions found via poi-fuzz
Prevent a ClassCastException

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66089

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919214 13f79535-47bb-0310-9956-ffa450edef68
2024-07-14 11:26:50 +00:00