Dominik Stadler
e43c1bc911
Bug 66425: Avoid Exceptions found via oss-fuzz
...
We try to avoid throwing ConcurrentModificationException,
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=62861
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912797 13f79535-47bb-0310-9956-ffa450edef68
2023-10-07 22:12:50 +00:00
Dominik Stadler
5cd4fa5488
Bug 66425: Avoid Exceptions found via oss-fuzz
...
We try to avoid throwing ClassCastExceptions,
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=62795
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912796 13f79535-47bb-0310-9956-ffa450edef68
2023-10-07 22:12:43 +00:00
Dominik Stadler
6fae5bbc18
Bug 66425: Avoid Exceptions found via oss-fuzz
...
We try to avoid throwing NullPointerExceptions or endless allocations,
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=62697
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912793 13f79535-47bb-0310-9956-ffa450edef68
2023-10-07 22:12:25 +00:00
Dominik Stadler
c331c5d26a
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=62626
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912792 13f79535-47bb-0310-9956-ffa450edef68
2023-10-07 22:12:18 +00:00
Dominik Stadler
e8e6f671ef
Assert that deleting test-files and entries works in tests
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912709 13f79535-47bb-0310-9956-ffa450edef68
2023-10-03 06:17:01 +00:00
Dominik Stadler
360c05d9e3
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
2023-10-03 06:05:30 +00:00
PJ Fanning
505ac31533
commons-io 2.14.0
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912637 13f79535-47bb-0310-9956-ffa450edef68
2023-10-01 01:16:08 +00:00
PJ Fanning
fdad7e1408
[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
2023-09-28 22:35:00 +00:00
Dominik Stadler
c79fb75cbc
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
2023-09-21 15:06:28 +00:00
Tim Allison
99117381e5
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
2023-09-20 20:32:59 +00:00
Dominik Stadler
ce919673c4
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
2023-09-20 14:55:19 +00:00
Dominik Stadler
88bbfbb3f7
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
2023-09-18 06:38:37 +00:00
PJ Fanning
4299690639
use files nio APIs in more places
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912367 13f79535-47bb-0310-9956-ffa450edef68
2023-09-17 15:29:16 +00:00
Dominik Stadler
9e2ce70d2b
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
2023-09-17 14:38:24 +00:00
PJ Fanning
4b520ff7c5
use more nio file support
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912316 13f79535-47bb-0310-9956-ffa450edef68
2023-09-14 15:49:10 +00:00
PJ Fanning
3a6b91dd1f
[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
2023-09-14 14:13:22 +00:00
Dominik Stadler
cc4ccbae1d
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
2023-09-13 10:59:54 +00:00
PJ Fanning
ca681fd706
[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
2023-09-12 10:36:14 +00:00
Dominik Stadler
dbd8808432
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
2023-09-11 18:25:01 +00:00
PJ Fanning
9821182d57
SparseBitSet 1.3
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912141 13f79535-47bb-0310-9956-ffa450edef68
2023-09-06 15:12:52 +00:00
Dominik Stadler
04ae3b4441
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
2023-09-06 09:53:29 +00:00
PJ Fanning
9c0c9ac8e4
slf4j 2.0.9
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912088 13f79535-47bb-0310-9956-ffa450edef68
2023-09-04 14:57:03 +00:00
PJ Fanning
d152861036
[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
2023-08-10 09:38:39 +00:00
Dominik Stadler
e706f37170
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
2023-08-08 08:48:13 +00:00
Dominik Stadler
5efa428ca0
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
2023-08-07 15:15:38 +00:00
PJ Fanning
005863e1c9
gradle hates ant 1.10.13
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911398 13f79535-47bb-0310-9956-ffa450edef68
2023-08-01 20:19:38 +00:00
Dominik Stadler
cb835739c6
Exclude some files in one test to avoid flakiness during parallel builds
...
This test failed once locally due to a temporary file
being deleted again when the test tried to access it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911384 13f79535-47bb-0310-9956-ffa450edef68
2023-08-01 08:24:59 +00:00
Dominik Stadler
8e2b749cf6
Update Apache Ant to 1.10.13 and use newer Gradle syntax
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911383 13f79535-47bb-0310-9956-ffa450edef68
2023-08-01 08:24:54 +00:00
PJ Fanning
c6aa3a1318
[github-488] Round up seconds in CellElapsedFormatter. Thanks to Anthony Schott. This closes #488
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911254 13f79535-47bb-0310-9956-ffa450edef68
2023-07-24 19:59:45 +00:00
PJ Fanning
1f446e0aef
undo last change due to broken test
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911233 13f79535-47bb-0310-9956-ffa450edef68
2023-07-24 12:00:17 +00:00
PJ Fanning
cd2dcd3940
[github-487] Round up seconds in CellElapsedFormatter. Thanks to Anthony Schott. This closes #487
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911228 13f79535-47bb-0310-9956-ffa450edef68
2023-07-24 10:12:46 +00:00
PJ Fanning
23caf67c58
remove release date from version.java
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910760 13f79535-47bb-0310-9956-ffa450edef68
2023-07-03 21:01:19 +00:00
PJ Fanning
273067b103
apply some spelling fixes
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910659 13f79535-47bb-0310-9956-ffa450edef68
2023-06-28 11:55:29 +00:00
PJ Fanning
f331d08c22
apply some spelling fixes
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910640 13f79535-47bb-0310-9956-ffa450edef68
2023-06-27 19:37:48 +00:00
PJ Fanning
b90935055d
apply some spelling fixes
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910639 13f79535-47bb-0310-9956-ffa450edef68
2023-06-27 19:33:13 +00:00
PJ Fanning
99634d6af6
apply some spelling fixes
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910627 13f79535-47bb-0310-9956-ffa450edef68
2023-06-27 11:48:38 +00:00
PJ Fanning
01208d5790
[bug-66661] revert github-269 due to it breaking formulas with table references
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910561 13f79535-47bb-0310-9956-ffa450edef68
2023-06-22 21:37:01 +00:00
Dominik Stadler
6442dccab9
Bug 66632: Round char-width instead of cutting off
...
Otherwise we sometimes use a too low "default char width"
which leads to autosizing of columns with too wide columns.
We should propably return float instead of int here to
not introduce rounding errors at this point at all,
but it would need more API changes, so let's at least
make it work better for now.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910301 13f79535-47bb-0310-9956-ffa450edef68
2023-06-08 08:53:15 +00:00
Dominik Stadler
d3e35e740a
Remove deprecation warnings reported with newer commons-io
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910300 13f79535-47bb-0310-9956-ffa450edef68
2023-06-08 08:53:08 +00:00
PJ Fanning
2676dcc7f4
[bug-66614] remove limit on offset function params
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910049 13f79535-47bb-0310-9956-ffa450edef68
2023-05-25 10:39:47 +00:00
PJ Fanning
420c96f74e
don't share the skip bytes buffer
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908716 13f79535-47bb-0310-9956-ffa450edef68
2023-03-25 20:09:30 +00:00
PJ Fanning
9e53a4f7c2
don't share the skip bytes buffer
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908700 13f79535-47bb-0310-9956-ffa450edef68
2023-03-25 00:47:15 +00:00
Dominik Stadler
c0484ce62d
Add more information in exception when formula parsing fails
...
Use toString() instead of getClass() to include more information
for some ValueEval implementations
When low-level parsing fails, the IllegalStateException does not
contain any information, therefore wrap it and enrich it with
more information about the cell and the parsed formula
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908608 13f79535-47bb-0310-9956-ffa450edef68
2023-03-21 11:45:00 +00:00
PJ Fanning
5fb90fdcce
remove temporary hacks
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908529 13f79535-47bb-0310-9956-ffa450edef68
2023-03-19 20:40:14 +00:00
PJ Fanning
505be44699
revert back to ant 1.10.12 - 1.10.13 breaks our build
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908518 13f79535-47bb-0310-9956-ffa450edef68
2023-03-19 14:03:50 +00:00
PJ Fanning
36da005d3a
ant 1.10.13
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908516 13f79535-47bb-0310-9956-ffa450edef68
2023-03-19 13:48:23 +00:00
PJ Fanning
17899fc75b
temporary hack to build to see if the gradle toolchain logic is what is breaking all our https://ci-builds.apache.org/ builds for Java 8
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908515 13f79535-47bb-0310-9956-ffa450edef68
2023-03-19 13:17:53 +00:00
PJ Fanning
2ae294e606
use 'its'
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908484 13f79535-47bb-0310-9956-ffa450edef68
2023-03-18 11:55:54 +00:00
PJ Fanning
27344ca661
use 'an'
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908483 13f79535-47bb-0310-9956-ffa450edef68
2023-03-18 11:35:26 +00:00
PJ Fanning
6f36cab758
typo
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908481 13f79535-47bb-0310-9956-ffa450edef68
2023-03-18 11:14:37 +00:00