11871 Commits

Author SHA1 Message Date
Dominik Stadler
d648c6d652 Fix issues found when fuzzing Apache POI via Jazzer
Throw RecordFormatException instead of NPE or assertion for
cases that can be triggered by a malformed document

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899073 13f79535-47bb-0310-9956-ffa450edef68
2022-03-20 06:52:51 +00:00
Dominik Stadler
9df7e2d847 Prevent one more case of allocating endlessly on invalid TNEF/HMEF/MAPI files
Limit the number of attributes to 10,000 by default

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899072 13f79535-47bb-0310-9956-ffa450edef68
2022-03-20 06:52:47 +00:00
Dominik Stadler
3ee410e8b5 Bug 65854: Use revert() instead of close() when OPCPackage is opened read-only
Also add tests, however it is not possible to verify that no
logging takes place, so you have to use debugging to verify it.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899071 13f79535-47bb-0310-9956-ffa450edef68
2022-03-20 06:52:43 +00:00
Dominik Stadler
a7810011c7 Fix issues found when fuzzing Apache POI via Jazzer
Replace assertions with actual checks when input-data
can trigger them. We would not handle such
input-data properly otherwise.
Sometimes logging seems a better option if the issue
is not blocking us from parsing the document anyway

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899070 13f79535-47bb-0310-9956-ffa450edef68
2022-03-20 06:52:38 +00:00
PJ Fanning
ff466eff1c POI 5.2.2 release
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899060 13f79535-47bb-0310-9956-ffa450edef68
2022-03-19 23:09:08 +00:00
PJ Fanning
5e87f112bb javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898946 13f79535-47bb-0310-9956-ffa450edef68
2022-03-15 10:06:56 +00:00
PJ Fanning
5745fc0a68 update test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898945 13f79535-47bb-0310-9956-ffa450edef68
2022-03-15 09:53:26 +00:00
PJ Fanning
935c8ab06a add xssf test (width/height)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898944 13f79535-47bb-0310-9956-ffa450edef68
2022-03-15 09:40:48 +00:00
PJ Fanning
f19233164c upgrade gradle
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898937 13f79535-47bb-0310-9956-ffa450edef68
2022-03-14 23:17:03 +00:00
PJ Fanning
8657e4eaea revert: try to fix java 18 build issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898908 13f79535-47bb-0310-9956-ffa450edef68
2022-03-13 18:26:47 +00:00
PJ Fanning
d8e163a82f try to fix java 18 build issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898907 13f79535-47bb-0310-9956-ffa450edef68
2022-03-13 18:22:29 +00:00
PJ Fanning
3573e5c44f handle case where toByteArray truncates stream because max len is less than stream len
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898876 13f79535-47bb-0310-9956-ffa450edef68
2022-03-12 13:57:50 +00:00
PJ Fanning
1efd809e6c prep 5.2.2 release
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898874 13f79535-47bb-0310-9956-ffa450edef68
2022-03-12 11:03:00 +00:00
PJ Fanning
01e5666633 fix issue in IOUtils.toByteArrayWithMaxLength
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898871 13f79535-47bb-0310-9956-ffa450edef68
2022-03-12 09:31:44 +00:00
PJ Fanning
cbdf6d2330 fix issue in IOUtils.toByteArrayWithMaxLength
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898870 13f79535-47bb-0310-9956-ffa450edef68
2022-03-12 09:24:21 +00:00
PJ Fanning
417f5e9a95 fix issue in IOUtils.toByteArrayWithMaxLength
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898864 13f79535-47bb-0310-9956-ffa450edef68
2022-03-11 23:40:21 +00:00
PJ Fanning
38e5040ee6 fix issue in IOUtils.toByteArrayWithMaxLength
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898863 13f79535-47bb-0310-9956-ffa450edef68
2022-03-11 22:37:29 +00:00
PJ Fanning
5b5f286a30 fix issue in IOUtils.toByteArrayWithMaxLength
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898862 13f79535-47bb-0310-9956-ffa450edef68
2022-03-11 21:45:02 +00:00
PJ Fanning
f4bfcaeec9 fix issue in IOUtils.toByteArrayWithMaxLength
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898861 13f79535-47bb-0310-9956-ffa450edef68
2022-03-11 21:24:51 +00:00
PJ Fanning
e7f9cd277d fix issue in IOUtils.toByteArrayWithMaxLength
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898856 13f79535-47bb-0310-9956-ffa450edef68
2022-03-11 17:03:36 +00:00
PJ Fanning
85356f1d54 [bug-65946] remove duplicate Category property from extracted properties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898805 13f79535-47bb-0310-9956-ffa450edef68
2022-03-09 20:56:02 +00:00
PJ Fanning
f3e197713b [bug-65946] remove duplicate Category property from extracted properties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898804 13f79535-47bb-0310-9956-ffa450edef68
2022-03-09 20:43:38 +00:00
PJ Fanning
bdd7e65d85 [bug-65943] support rich text in SXSSFWorkbook (only when shared string table is enabled)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898803 13f79535-47bb-0310-9956-ffa450edef68
2022-03-09 20:12:37 +00:00
PJ Fanning
552471e578 [bug-65943] support rich text in SXSSFWorkbook (only when shared string table is enabled)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898801 13f79535-47bb-0310-9956-ffa450edef68
2022-03-09 20:06:59 +00:00
PJ Fanning
81b557030c update mockito
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898743 13f79535-47bb-0310-9956-ffa450edef68
2022-03-08 20:08:21 +00:00
PJ Fanning
ddf2717c8d missing license
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898685 13f79535-47bb-0310-9956-ffa450edef68
2022-03-07 13:34:53 +00:00
PJ Fanning
19366d6013 [bug-65939] add partial fix for clearing formula with circular ref
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898681 13f79535-47bb-0310-9956-ffa450edef68
2022-03-07 13:15:01 +00:00
PJ Fanning
3a496fded8 [bug-65939] add partial fix for clearing formula with circular ref
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898680 13f79535-47bb-0310-9956-ffa450edef68
2022-03-07 13:11:23 +00:00
PJ Fanning
3317b6393f [bug-65939] add partial fix for clearing formula with circular ref
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898677 13f79535-47bb-0310-9956-ffa450edef68
2022-03-07 12:06:30 +00:00
PJ Fanning
b7529cdedf [bug-65935] add removeTextRun
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898672 13f79535-47bb-0310-9956-ffa450edef68
2022-03-07 11:05:05 +00:00
PJ Fanning
3eb1ef578e reformat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898670 13f79535-47bb-0310-9956-ffa450edef68
2022-03-07 10:38:02 +00:00
PJ Fanning
8cc396f81a reformat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898669 13f79535-47bb-0310-9956-ffa450edef68
2022-03-07 10:23:39 +00:00
PJ Fanning
8be47cb969 [bug-65934] add removeTextParagraph
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898668 13f79535-47bb-0310-9956-ffa450edef68
2022-03-07 10:19:13 +00:00
PJ Fanning
83a90487cb [github-310] use XWPFRun
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898659 13f79535-47bb-0310-9956-ffa450edef68
2022-03-06 20:11:12 +00:00
PJ Fanning
ea2cc9e54c [github-310] Allow XWPF sections to have distinct headers and footers. Thanks to Joaquín Perez Valera. This close #310
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898653 13f79535-47bb-0310-9956-ffa450edef68
2022-03-06 13:27:16 +00:00
PJ Fanning
c3cf4e5403 5.2.0 release
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898571 13f79535-47bb-0310-9956-ffa450edef68
2022-03-03 23:17:12 +00:00
PJ Fanning
421636c6f2 plugin seems to be built with java version that does not support java 8
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898541 13f79535-47bb-0310-9956-ffa450edef68
2022-03-02 22:19:21 +00:00
PJ Fanning
21aafe2dbb upgrade guava
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898512 13f79535-47bb-0310-9956-ffa450edef68
2022-03-01 21:43:08 +00:00
PJ Fanning
58e6993b68 add license plugin
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898480 13f79535-47bb-0310-9956-ffa450edef68
2022-02-28 15:05:02 +00:00
PJ Fanning
cd1c603aaa add license plugin
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898477 13f79535-47bb-0310-9956-ffa450edef68
2022-02-28 14:15:40 +00:00
PJ Fanning
53300f5c84 change version to 5.2.2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898476 13f79535-47bb-0310-9956-ffa450edef68
2022-02-28 13:51:22 +00:00
PJ Fanning
622c20c516 graphics2d 0.35
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898475 13f79535-47bb-0310-9956-ffa450edef68
2022-02-28 13:24:31 +00:00
PJ Fanning
95cc8bc1ca log4j 2.17.2
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898463 13f79535-47bb-0310-9956-ffa450edef68
2022-02-28 10:42:33 +00:00
PJ Fanning
2a9a201742 [bug-65915] possible issue in boolean function support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898425 13f79535-47bb-0310-9956-ffa450edef68
2022-02-25 19:18:37 +00:00
PJ Fanning
18a5720eeb [bug-65915] possible issue in boolean function support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898421 13f79535-47bb-0310-9956-ffa450edef68
2022-02-25 18:25:35 +00:00
PJ Fanning
ba252f20b5 add index test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898420 13f79535-47bb-0310-9956-ffa450edef68
2022-02-25 18:04:56 +00:00
PJ Fanning
114eca28a8 [bug-65915] add test for 'OR' function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898416 13f79535-47bb-0310-9956-ffa450edef68
2022-02-25 12:56:06 +00:00
PJ Fanning
18d868173d add tests for 'OR' function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898413 13f79535-47bb-0310-9956-ffa450edef68
2022-02-25 12:17:51 +00:00
PJ Fanning
c8e0ab8ac0 remove test class as a variant of thos was added in another commit
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898396 13f79535-47bb-0310-9956-ffa450edef68
2022-02-24 21:45:28 +00:00
PJ Fanning
1e9d318a80 add space in log message
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898395 13f79535-47bb-0310-9956-ffa450edef68
2022-02-24 21:38:05 +00:00