]> source.dussan.org Git - poi.git/log
poi.git
13 months agoAdjust order of testing and use try-with-resources
Dominik Stadler [Tue, 3 Oct 2023 06:06:03 +0000 (06:06 +0000)]
Adjust order of testing and use try-with-resources

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912708 13f79535-47bb-0310-9956-ffa450edef68

13 months agoBug 66425: Avoid exceptions found via poi-fuzz
Dominik Stadler [Tue, 3 Oct 2023 06:05:30 +0000 (06:05 +0000)]
Bug 66425: Avoid exceptions found via poi-fuzz

We try to avoid throwing NullPointerException, ClassCastExceptions
and StackOverflowException, but it was possible to trigger them

Also improve some exception messages

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912707 13f79535-47bb-0310-9956-ffa450edef68

13 months ago[bug-67579] do not close stream when reading XSSFWorkbook based on stream
PJ Fanning [Tue, 3 Oct 2023 00:06:27 +0000 (00:06 +0000)]
[bug-67579] do not close stream when reading XSSFWorkbook based on stream

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912700 13f79535-47bb-0310-9956-ffa450edef68

13 months agoupdate gradlew
PJ Fanning [Sun, 1 Oct 2023 03:00:23 +0000 (03:00 +0000)]
update gradlew

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912642 13f79535-47bb-0310-9956-ffa450edef68

13 months agocommons-io 2.14.0
PJ Fanning [Sun, 1 Oct 2023 01:56:20 +0000 (01:56 +0000)]
commons-io 2.14.0

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912639 13f79535-47bb-0310-9956-ffa450edef68

13 months agocommons-io 2.14.0
PJ Fanning [Sun, 1 Oct 2023 01:34:13 +0000 (01:34 +0000)]
commons-io 2.14.0

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912638 13f79535-47bb-0310-9956-ffa450edef68

13 months agocommons-io 2.14.0
PJ Fanning [Sun, 1 Oct 2023 01:16:08 +0000 (01:16 +0000)]
commons-io 2.14.0

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912637 13f79535-47bb-0310-9956-ffa450edef68

13 months agocommons-io 2.14.0
PJ Fanning [Sat, 30 Sep 2023 23:29:27 +0000 (23:29 +0000)]
commons-io 2.14.0

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912635 13f79535-47bb-0310-9956-ffa450edef68

13 months agochange param name
PJ Fanning [Fri, 29 Sep 2023 01:16:35 +0000 (01:16 +0000)]
change param name

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912589 13f79535-47bb-0310-9956-ffa450edef68

13 months agofix release artifact names
PJ Fanning [Fri, 29 Sep 2023 01:01:46 +0000 (01:01 +0000)]
fix release artifact names

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912588 13f79535-47bb-0310-9956-ffa450edef68

13 months ago[github-523] set locales for some tests. This closes #523
PJ Fanning [Thu, 28 Sep 2023 22:35:00 +0000 (22:35 +0000)]
[github-523] set locales for some tests. This closes #523

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912583 13f79535-47bb-0310-9956-ffa450edef68

13 months agoupdate docs for release 5.2.4
PJ Fanning [Thu, 28 Sep 2023 22:19:53 +0000 (22:19 +0000)]
update docs for release 5.2.4

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912581 13f79535-47bb-0310-9956-ffa450edef68

14 months agoprep v5.2.4
PJ Fanning [Thu, 21 Sep 2023 18:43:24 +0000 (18:43 +0000)]
prep v5.2.4

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912467 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid exceptions found via poi-fuzz
Dominik Stadler [Thu, 21 Sep 2023 15:06:28 +0000 (15:06 +0000)]
Bug 66425: Avoid exceptions found via poi-fuzz

We try to avoid throwing NullPointerException, ClassCastExceptions and StackOverflowException, but it was possible
to trigger them

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912464 13f79535-47bb-0310-9956-ffa450edef68

14 months ago[bug-67396] add tests for standalone flag
PJ Fanning [Thu, 21 Sep 2023 12:15:20 +0000 (12:15 +0000)]
[bug-67396] add tests for standalone flag

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912456 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug47950 -- make stream/directory name lookup in OLE2 case insensitive
Tim Allison [Wed, 20 Sep 2023 20:32:59 +0000 (20:32 +0000)]
Bug47950 -- make stream/directory name lookup in OLE2 case insensitive

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912438 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid exceptions found via poi-fuzz
Dominik Stadler [Wed, 20 Sep 2023 14:55:19 +0000 (14:55 +0000)]
Bug 66425: Avoid exceptions found via poi-fuzz

We try to avoid throwing NullPointerException, ClassCastExceptions and StackOverflowException, but it was possible
to trigger them

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912433 13f79535-47bb-0310-9956-ffa450edef68

14 months agoTest without scratchpad: Do not fail reading data for integrationtests
Dominik Stadler [Mon, 18 Sep 2023 20:31:03 +0000 (20:31 +0000)]
Test without scratchpad: Do not fail reading data for integrationtests

It seems the XLS now has missing cells which cause an NPE
while checking for scratchpad-handlers

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912407 13f79535-47bb-0310-9956-ffa450edef68

14 months agoSet one file to IGNORE as IBM JDK throws a different Exception
Dominik Stadler [Mon, 18 Sep 2023 20:30:59 +0000 (20:30 +0000)]
Set one file to IGNORE as IBM JDK throws a different Exception

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912406 13f79535-47bb-0310-9956-ffa450edef68

14 months agoSet one test-file to "IGNORED" in poi-integration
Dominik Stadler [Mon, 18 Sep 2023 18:25:59 +0000 (18:25 +0000)]
Set one test-file to "IGNORED" in poi-integration

It was processing fine on some JVM versions, but failed with an error on others.
Seems there is a difference in XmlParsers across versions of the JVM.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912404 13f79535-47bb-0310-9956-ffa450edef68

14 months agoAdjust max recursion nesting
Dominik Stadler [Mon, 18 Sep 2023 18:25:56 +0000 (18:25 +0000)]
Adjust max recursion nesting

Otherwise this still triggered StackOverflow on some version of JDK

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912403 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid exceptions found via poi-fuzz
Dominik Stadler [Mon, 18 Sep 2023 06:38:37 +0000 (06:38 +0000)]
Bug 66425: Avoid exceptions found via poi-fuzz

We try to avoid throwing NullPointerException, ClassCastExceptions and StackOverflowException, but it was possible
to trigger them

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912383 13f79535-47bb-0310-9956-ffa450edef68

14 months agoupdate changes
PJ Fanning [Sun, 17 Sep 2023 16:39:35 +0000 (16:39 +0000)]
update changes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912373 13f79535-47bb-0310-9956-ffa450edef68

14 months agouse files nio APIs in more places
PJ Fanning [Sun, 17 Sep 2023 15:29:16 +0000 (15:29 +0000)]
use files nio APIs in more places

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912367 13f79535-47bb-0310-9956-ffa450edef68

14 months ago[bug-67442] add test
PJ Fanning [Sun, 17 Sep 2023 14:49:16 +0000 (14:49 +0000)]
[bug-67442] add test

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912366 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid NullPointerExceptions and ClassCastExceptions found via poi-fuzz
Dominik Stadler [Sun, 17 Sep 2023 14:38:24 +0000 (14:38 +0000)]
Bug 66425: Avoid NullPointerExceptions and ClassCastExceptions found via poi-fuzz

We try to avoid throwing NullPointerException and ClassCastExceptions, but it was possible
to trigger them

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912365 13f79535-47bb-0310-9956-ffa450edef68

14 months agouse more nio file support
PJ Fanning [Thu, 14 Sep 2023 15:49:10 +0000 (15:49 +0000)]
use more nio file support

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912316 13f79535-47bb-0310-9956-ffa450edef68

14 months ago[bug-67005] XSLFPictureShape - audio-related methods. Thanks to Max
PJ Fanning [Thu, 14 Sep 2023 14:56:01 +0000 (14:56 +0000)]
[bug-67005] XSLFPictureShape - audio-related methods. Thanks to Max

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912315 13f79535-47bb-0310-9956-ffa450edef68

14 months ago[bug-67402] DATEVALUE function should return #VALUE! for a null or empty string argum...
PJ Fanning [Thu, 14 Sep 2023 14:13:22 +0000 (14:13 +0000)]
[bug-67402] DATEVALUE function should return #VALUE! for a null or empty string argument. Thanks to Jakub Vojtisek.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912313 13f79535-47bb-0310-9956-ffa450edef68

14 months agomissing header
PJ Fanning [Thu, 14 Sep 2023 11:56:02 +0000 (11:56 +0000)]
missing header

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912306 13f79535-47bb-0310-9956-ffa450edef68

14 months ago[bug-67396] StreamHelper does not set standalone=yes when built-in javax Transformer...
PJ Fanning [Thu, 14 Sep 2023 11:23:05 +0000 (11:23 +0000)]
[bug-67396] StreamHelper does not set standalone=yes when built-in javax Transformer is used

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912305 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid NullPointerExceptions found via poi-fuzz
Dominik Stadler [Thu, 14 Sep 2023 09:23:02 +0000 (09:23 +0000)]
Bug 66425: Avoid NullPointerExceptions found via poi-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912303 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid NullPointerExceptions found via poi-fuzz
Dominik Stadler [Wed, 13 Sep 2023 10:59:54 +0000 (10:59 +0000)]
Bug 66425: Avoid NullPointerExceptions found via poi-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912281 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Wed, 13 Sep 2023 07:48:22 +0000 (07:48 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Fixes https://oss-fuzz.com/testcase-detail/5265527465181184

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912277 13f79535-47bb-0310-9956-ffa450edef68

14 months ago[bug-63934] Fix parsing of structure references. Thanks to Matthias Raschhofer. This...
PJ Fanning [Tue, 12 Sep 2023 10:36:14 +0000 (10:36 +0000)]
[bug-63934] Fix parsing of structure references. Thanks to Matthias Raschhofer. This closes #514

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912263 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Mon, 11 Sep 2023 18:25:21 +0000 (18:25 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

Ignore results of one file because the Exception is different in Java 8 and Java 11

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912254 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Mon, 11 Sep 2023 18:25:18 +0000 (18:25 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62225

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912253 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Mon, 11 Sep 2023 18:25:13 +0000 (18:25 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62170

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912252 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Mon, 11 Sep 2023 18:25:06 +0000 (18:25 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62208

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912251 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Mon, 11 Sep 2023 18:25:01 +0000 (18:25 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62216

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912250 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66828: Update Ant to 1.10.14
Dominik Stadler [Mon, 11 Sep 2023 18:24:54 +0000 (18:24 +0000)]
Bug 66828: Update Ant to 1.10.14

Now that adding the file allow.class was reverted, we should
be able to update

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912249 13f79535-47bb-0310-9956-ffa450edef68

14 months agocommons-compress 1.24.0
PJ Fanning [Mon, 11 Sep 2023 14:34:51 +0000 (14:34 +0000)]
commons-compress 1.24.0

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912246 13f79535-47bb-0310-9956-ffa450edef68

14 months agoAdjust expected exception text for 47889.xlsx
Dominik Stadler [Fri, 8 Sep 2023 16:02:17 +0000 (16:02 +0000)]
Adjust expected exception text for 47889.xlsx

The actual message depends on the version of Java

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912200 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Fri, 8 Sep 2023 16:02:13 +0000 (16:02 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62128

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912199 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Fri, 8 Sep 2023 16:02:06 +0000 (16:02 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62151

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912198 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Thu, 7 Sep 2023 12:20:28 +0000 (12:20 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Also add SXSSFWorkbook.write() to integrationtests

Fixes https://oss-fuzz.com/testcase-detail/5185049589579776

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912162 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Thu, 7 Sep 2023 08:35:23 +0000 (08:35 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Fixes https://oss-fuzz.com/testcase-detail/4959857092198400

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912157 13f79535-47bb-0310-9956-ffa450edef68

14 months ago[GitHub-511] Prevent artificial row creation when reading XWPFTable. Thanks to Christ...
PJ Fanning [Wed, 6 Sep 2023 22:32:28 +0000 (22:32 +0000)]
[GitHub-511] Prevent artificial row creation when reading XWPFTable. Thanks to Christian Appl. This closes #511

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912149 13f79535-47bb-0310-9956-ffa450edef68

14 months agoSparseBitSet 1.3
PJ Fanning [Wed, 6 Sep 2023 15:12:52 +0000 (15:12 +0000)]
SparseBitSet 1.3

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912141 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Wed, 6 Sep 2023 14:58:31 +0000 (14:58 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912140 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Wed, 6 Sep 2023 14:48:58 +0000 (14:48 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912139 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Wed, 6 Sep 2023 14:33:59 +0000 (14:33 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912138 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Wed, 6 Sep 2023 10:38:51 +0000 (10:38 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62059

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912127 13f79535-47bb-0310-9956-ffa450edef68

14 months agoReduce flakiness of one test which compares two documents
Dominik Stadler [Wed, 6 Sep 2023 09:53:29 +0000 (09:53 +0000)]
Reduce flakiness of one test which compares two documents

There are more places where a timestamp is stored in the zip-file,
let's try to replace some more bytes to make comparison succeed
more often.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912126 13f79535-47bb-0310-9956-ffa450edef68

14 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Wed, 6 Sep 2023 09:48:21 +0000 (09:48 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62074

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912125 13f79535-47bb-0310-9956-ffa450edef68

14 months agoExclude more broken files when running without poi-scratchpad
Dominik Stadler [Wed, 6 Sep 2023 07:46:58 +0000 (07:46 +0000)]
Exclude more broken files when running without poi-scratchpad

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912123 13f79535-47bb-0310-9956-ffa450edef68

14 months agoExclude more broken files when running without poi-scratchpad
Dominik Stadler [Wed, 6 Sep 2023 07:20:39 +0000 (07:20 +0000)]
Exclude more broken files when running without poi-scratchpad

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912122 13f79535-47bb-0310-9956-ffa450edef68

14 months agoRevert PDFBox back to 2.0.x as 3.0.0 causes Java module errors
Dominik Stadler [Wed, 6 Sep 2023 07:14:14 +0000 (07:14 +0000)]
Revert PDFBox back to 2.0.x as 3.0.0 causes Java module errors

Seems Batik conflicts with newer PDFBox in some way

Error are like "module batik.xml reads package org.apache.pdfbox.multipdf from both de.rototor.pdfbox.graphics2d and org.apache.pdfbox"

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912121 13f79535-47bb-0310-9956-ffa450edef68

14 months agoslf4j 2.0.9
PJ Fanning [Mon, 4 Sep 2023 14:57:03 +0000 (14:57 +0000)]
slf4j 2.0.9

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912088 13f79535-47bb-0310-9956-ffa450edef68

15 months agoApply some IDE suggestions, add tests, set unit-test to isolated
Dominik Stadler [Thu, 24 Aug 2023 08:53:01 +0000 (08:53 +0000)]
Apply some IDE suggestions, add tests, set unit-test to isolated

Without Isolation, one test did change static settings
and thus could cause flaky tests

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911891 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Thu, 24 Aug 2023 08:48:45 +0000 (08:48 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61441

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911890 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Wed, 23 Aug 2023 10:00:16 +0000 (10:00 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

ArrayIndexOutOfBoundsException has different message depending on JDK

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911864 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Wed, 23 Aug 2023 09:30:00 +0000 (09:30 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61520

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911863 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Wed, 23 Aug 2023 08:26:27 +0000 (08:26 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61578

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911860 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Tue, 22 Aug 2023 14:22:06 +0000 (14:22 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61644

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911842 13f79535-47bb-0310-9956-ffa450edef68

15 months agobatik 1.17
PJ Fanning [Mon, 21 Aug 2023 15:16:27 +0000 (15:16 +0000)]
batik 1.17

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911828 13f79535-47bb-0310-9956-ffa450edef68

15 months agochange test broken by bug-66988 change
PJ Fanning [Fri, 18 Aug 2023 13:08:13 +0000 (13:08 +0000)]
change test broken by bug-66988 change

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911755 13f79535-47bb-0310-9956-ffa450edef68

15 months agogradle 8.3
PJ Fanning [Fri, 18 Aug 2023 09:43:49 +0000 (09:43 +0000)]
gradle 8.3

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911751 13f79535-47bb-0310-9956-ffa450edef68

15 months ago[bug-66988] Fully replace content of XWPFTableCell on setText. Thanks to Anton Oeller...
PJ Fanning [Fri, 18 Aug 2023 08:48:18 +0000 (08:48 +0000)]
[bug-66988] Fully replace content of XWPFTableCell on setText. Thanks to Anton Oellerer. This closes #503

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911749 13f79535-47bb-0310-9956-ffa450edef68

15 months agogradle 8.2.1
PJ Fanning [Thu, 17 Aug 2023 08:48:31 +0000 (08:48 +0000)]
gradle 8.2.1

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911737 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Sat, 12 Aug 2023 17:37:14 +0000 (17:37 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61400

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911618 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Sat, 12 Aug 2023 14:53:58 +0000 (14:53 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61390

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911615 13f79535-47bb-0310-9956-ffa450edef68

15 months agoJenkins DSL: Adjust nodes for job Test-Environment
Dominik Stadler [Sat, 12 Aug 2023 14:53:54 +0000 (14:53 +0000)]
Jenkins DSL: Adjust nodes for job Test-Environment

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911614 13f79535-47bb-0310-9956-ffa450edef68

15 months agoJenkins DSL: Add JDK 20, 21 and 22, disable JDK 18 and 19, remove JDK 10, 12, 13, 14
Dominik Stadler [Sat, 12 Aug 2023 14:53:51 +0000 (14:53 +0000)]
Jenkins DSL: Add JDK 20, 21 and 22, disable JDK 18 and 19, remove JDK 10, 12, 13, 14

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911613 13f79535-47bb-0310-9956-ffa450edef68

15 months agocurvesapi 1.08
PJ Fanning [Fri, 11 Aug 2023 14:52:47 +0000 (14:52 +0000)]
curvesapi 1.08

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911604 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Fri, 11 Aug 2023 14:46:04 +0000 (14:46 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61372

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911603 13f79535-47bb-0310-9956-ffa450edef68

15 months ago[bug-66855] Formula parser incorrectly handles sheet name containing multiple single...
PJ Fanning [Thu, 10 Aug 2023 09:38:39 +0000 (09:38 +0000)]
[bug-66855] Formula parser incorrectly handles sheet name containing multiple single quotes in a row. Thanks to Kirill lebedev. This closes #496

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911589 13f79535-47bb-0310-9956-ffa450edef68

15 months agoadd check for number of files inside zip
PJ Fanning [Thu, 10 Aug 2023 09:27:26 +0000 (09:27 +0000)]
add check for number of files inside zip

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911588 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Thu, 10 Aug 2023 06:14:44 +0000 (06:14 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61330

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911586 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a NullPointerException found via oss-fuzz
Dominik Stadler [Thu, 10 Aug 2023 04:54:25 +0000 (04:54 +0000)]
Bug 66425: Avoid a NullPointerException found via oss-fuzz

Handle some data that can be missing properly.

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61332

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911585 13f79535-47bb-0310-9956-ffa450edef68

15 months agoJenkins DSL: Add JDK 20 and 21 to Test-Environment job
Dominik Stadler [Thu, 10 Aug 2023 04:37:47 +0000 (04:37 +0000)]
Jenkins DSL: Add JDK 20 and 21 to Test-Environment job

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911584 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a StackOverflowException found via oss-fuzz
Dominik Stadler [Wed, 9 Aug 2023 16:16:49 +0000 (16:16 +0000)]
Bug 66425: Avoid a StackOverflowException found via oss-fuzz

We try to avoid causing StackOverflow, but it was possible
to trigger one here with a specially crafted input-file.

This puts a limit on the number of nested children in place
and logs a warning when the Stream is not fully parsed.

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61256

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911577 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Wed, 9 Aug 2023 10:09:16 +0000 (10:09 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61306

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911573 13f79535-47bb-0310-9956-ffa450edef68

15 months agoTry to adjust for strange null-message for ArrayIndexOutOfBoundsException
Dominik Stadler [Wed, 9 Aug 2023 09:53:54 +0000 (09:53 +0000)]
Try to adjust for strange null-message for ArrayIndexOutOfBoundsException

Some CI runs seem to throw the exception with an empty message instead of
the expected text.

I could not reproduce this consistently and so we only can disable a
check in this case.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911572 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Wed, 9 Aug 2023 07:23:04 +0000 (07:23 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61317

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911565 13f79535-47bb-0310-9956-ffa450edef68

15 months agoCombine steps for tasks "jenkins" and "jenkinsLite" in one place
Dominik Stadler [Wed, 9 Aug 2023 07:22:30 +0000 (07:22 +0000)]
Combine steps for tasks "jenkins" and "jenkinsLite" in one place

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911564 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a StackOverflowException found via oss-fuzz
Dominik Stadler [Wed, 9 Aug 2023 05:45:21 +0000 (05:45 +0000)]
Bug 66425: Avoid a StackOverflowException found via oss-fuzz

We try to avoid causing StackOverflow, but it was possible
to trigger one here with a specially crafted input-file.

This puts a limit on the number of nested properties in place
and logs a warning when the StyleSheet is not fully parsed.

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61252

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911563 13f79535-47bb-0310-9956-ffa450edef68

15 months agoDo not disable all files for poi-integration in build.gradle
Dominik Stadler [Wed, 9 Aug 2023 05:44:01 +0000 (05:44 +0000)]
Do not disable all files for poi-integration in build.gradle

It seems doing it this way can kick in even when using JDK 11+ due
to the Gradle toolchain.

Let's rather do a more specific exclusion in code to only exclude files
which actually cause JDK 8 to hang.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911562 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Tue, 8 Aug 2023 08:48:13 +0000 (08:48 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61276

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911536 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Add memory-safeguard in one more place
Dominik Stadler [Mon, 7 Aug 2023 20:35:59 +0000 (20:35 +0000)]
Bug 66425: Add memory-safeguard in one more place

We try to generally avoid overly large allocations in places
where arrays are allocated.

We add one more such check for pictures in HSLF.

We might need to increase the used value of 10MB if users report
larger files being used frequently.

Overriding this check via IOUtils is possible.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911525 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Mon, 7 Aug 2023 20:01:19 +0000 (20:01 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing NullPointerException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61266

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911523 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Mon, 7 Aug 2023 19:59:04 +0000 (19:59 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

Fix previous changes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911522 13f79535-47bb-0310-9956-ffa450edef68

15 months agouse of junit internal StringUtils is causing build issues
PJ Fanning [Mon, 7 Aug 2023 19:11:54 +0000 (19:11 +0000)]
use of junit internal StringUtils is causing build issues

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911519 13f79535-47bb-0310-9956-ffa450edef68

15 months agouse of junit internal StringUtils is causing build issues
PJ Fanning [Mon, 7 Aug 2023 18:33:24 +0000 (18:33 +0000)]
use of junit internal StringUtils is causing build issues

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911518 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Mon, 7 Aug 2023 16:18:46 +0000 (16:18 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61259

Also fix handling of NullPointerException

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911517 13f79535-47bb-0310-9956-ffa450edef68

15 months agoReduce log4j2 level for integration tests to ERROR
Dominik Stadler [Mon, 7 Aug 2023 15:17:10 +0000 (15:17 +0000)]
Reduce log4j2 level for integration tests to ERROR

Otherwise there is lots of output that is likely rarely useful.

This can be changed locally for testing easily whenever necessary.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911516 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Mon, 7 Aug 2023 15:15:38 +0000 (15:15 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61242

Also enhance output of some test-failures and allow an empty exception message

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911515 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid an AssertionError found via oss-fuzz
Dominik Stadler [Mon, 7 Aug 2023 14:32:11 +0000 (14:32 +0000)]
Bug 66425: Avoid an AssertionError found via oss-fuzz

We try to avoid throwing AssertionError to be triggered by input data, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61251

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911514 13f79535-47bb-0310-9956-ffa450edef68

15 months agoBug 66425: Avoid a ClassCastException found via oss-fuzz
Dominik Stadler [Mon, 7 Aug 2023 12:09:31 +0000 (12:09 +0000)]
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61243

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911507 13f79535-47bb-0310-9956-ffa450edef68

15 months agoOpen configuration file for integration-tests read-only to not fail if the file is...
Dominik Stadler [Mon, 7 Aug 2023 11:11:45 +0000 (11:11 +0000)]
Open configuration file for integration-tests read-only to not fail if the file is opened by an Application locally

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911504 13f79535-47bb-0310-9956-ffa450edef68