aboutsummaryrefslogtreecommitdiffstats
path: root/poi-scratchpad/src/main
Commit message (Collapse)AuthorAgeFilesLines
...
* Bug 66425: Avoid an AssertionError found via oss-fuzzDominik Stadler2023-08-072-1/+12
| | | | | | | | | 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
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-071-1/+6
| | | | | | | | | 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
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-071-1/+1
| | | | | | Add exception details and fix expected exceptions to make tests run again git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911503 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-061-56/+54
| | | | | | | | | | | We try to avoid throwing ClassCastException, but it was possible to trigger one here with a specially crafted input-file Also rework test a bit to use try-with-resources and proper formatting Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61221 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911494 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-051-1/+6
| | | | | | | | | 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=61162 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911459 13f79535-47bb-0310-9956-ffa450edef68
* apply some spelling fixesPJ Fanning2023-06-281-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910659 13f79535-47bb-0310-9956-ffa450edef68
* apply some spelling fixesPJ Fanning2023-06-272-3/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910627 13f79535-47bb-0310-9956-ffa450edef68
* Remove deprecation warnings reported with newer commons-ioDominik Stadler2023-06-0838-54/+60
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910300 13f79535-47bb-0310-9956-ffa450edef68
* use 'an'PJ Fanning2023-03-185-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908483 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66521: Add a utility to clear all thread localsDominik Stadler2023-03-111-0/+5
| | | | | | | | Otherwise some applications may complain about left-over things, e.g. Tomcat sometimes reports warning logs if Threads are not cleaned up before being passed back into the global thread-pool. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908263 13f79535-47bb-0310-9956-ffa450edef68
* Update/fix JavaDoc and add "throws"Dominik Stadler2023-03-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908240 13f79535-47bb-0310-9956-ffa450edef68
* [bug-66518] fix issue in AbstractExcelUtils.getColor(HSSFColor)PJ Fanning2023-03-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908192 13f79535-47bb-0310-9956-ffa450edef68
* [bug-66518] fix issue in AbstractExcelUtils.getColor(HSSFColor)PJ Fanning2023-03-081-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908191 13f79535-47bb-0310-9956-ffa450edef68
* revert use of ExceptionUtil on caught exceptions (not useful)PJ Fanning2023-02-1414-78/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907654 13f79535-47bb-0310-9956-ffa450edef68
* fix up use of ExceptionUtil in main poi-scratchpad modulePJ Fanning2023-02-1414-8/+78
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907652 13f79535-47bb-0310-9956-ffa450edef68
* Avoid some NullPointerException and ClassCastExceptions found when fuzzing ↵Dominik Stadler2023-01-037-10/+54
| | | | | | | | | Apache POI This mostly only makes thrown runtime-exceptions a bit more consistent and improves information in exceptions. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906360 13f79535-47bb-0310-9956-ffa450edef68
* Change more assertions to proper checksDominik Stadler2023-01-011-2/+6
| | | | | | | A broken input-document should not trigger assertions, but proper exceptions with useful information for the user git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906327 13f79535-47bb-0310-9956-ffa450edef68
* Prevent more cases of unbounded allocationDominik Stadler2023-01-011-15/+15
| | | | | | Test WordToTextConverter with all sample files git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906326 13f79535-47bb-0310-9956-ffa450edef68
* Avoid some NullPointerExceptions and ClassCastExceptions found when fuzzing ↵Dominik Stadler2023-01-016-10/+24
| | | | | | | | | Apache POI This mostly only makes thrown exceptions a bit more consistent or may allow some broken documents to be still read. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906322 13f79535-47bb-0310-9956-ffa450edef68
* try to get rid of cached module-info classesPJ Fanning2022-12-271-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906232 13f79535-47bb-0310-9956-ffa450edef68
* [bug-66335] apply rest of fixPJ Fanning2022-11-041-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905062 13f79535-47bb-0310-9956-ffa450edef68
* [bug-66335] add test case for issue and add some of the code from purported fixPJ Fanning2022-11-041-0/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905061 13f79535-47bb-0310-9956-ffa450edef68
* update javadocPJ Fanning2022-11-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905029 13f79535-47bb-0310-9956-ffa450edef68
* [bug-66301] Add a method to properly write the header necessary for a MSG ↵PJ Fanning2022-10-182-2/+80
| | | | | | attachment. Thanks to Lyn Evans. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904685 13f79535-47bb-0310-9956-ffa450edef68
* try to use IllegalStateException instead of RuntimeExceptionPJ Fanning2022-09-146-17/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904065 13f79535-47bb-0310-9956-ffa450edef68
* try to use IllegalStateException instead of RuntimeExceptionPJ Fanning2022-09-1412-12/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904051 13f79535-47bb-0310-9956-ffa450edef68
* try to use IllegalStateException instead of RuntimeExceptionPJ Fanning2022-09-142-4/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904050 13f79535-47bb-0310-9956-ffa450edef68
* some lgtm issuesPJ Fanning2022-09-132-8/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904048 13f79535-47bb-0310-9956-ffa450edef68
* [bug-63576] support capitalized text in WordExtractor (HWPF)PJ Fanning2022-08-281-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903738 13f79535-47bb-0310-9956-ffa450edef68
* sonar issuesPJ Fanning2022-08-252-11/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903686 13f79535-47bb-0310-9956-ffa450edef68
* more int narrowingPJ Fanning2022-08-192-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903562 13f79535-47bb-0310-9956-ffa450edef68
* more int narrowingPJ Fanning2022-08-195-22/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903560 13f79535-47bb-0310-9956-ffa450edef68
* test issuePJ Fanning2022-08-191-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903555 13f79535-47bb-0310-9956-ffa450edef68
* some int narrowingPJ Fanning2022-08-197-23/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903551 13f79535-47bb-0310-9956-ffa450edef68
* [github-367] use uppercase L for longs. Thanks to Arturo Bernal. This closes ↵PJ Fanning2022-08-075-5/+5
| | | | | | #367 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903265 13f79535-47bb-0310-9956-ffa450edef68
* [github-365] use lambdas. Thanks to Arturo Bernal. This closes #365PJ Fanning2022-08-063-26/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903258 13f79535-47bb-0310-9956-ffa450edef68
* [github-366] remove unnecessary local vars. Thanks to Arturo Bernal. This ↵PJ Fanning2022-08-062-8/+4
| | | | | | closes #366 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903257 13f79535-47bb-0310-9956-ffa450edef68
* [github-364] use Math.min/max. Thanks to Arturo Bernal. This closes #364PJ Fanning2022-08-061-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903256 13f79535-47bb-0310-9956-ffa450edef68
* update some module-info classesPJ Fanning2022-07-251-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903003 13f79535-47bb-0310-9956-ffa450edef68
* [github-353] Use printf. Thanks to XenoAmess. This closes #353PJ Fanning2022-07-171-14/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902802 13f79535-47bb-0310-9956-ffa450edef68
* [github-354] Add extra methods to StringUtil and refactor some code to use ↵PJ Fanning2022-07-176-47/+52
| | | | | | them. Thanks to XenoAmess. This closes #354 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902801 13f79535-47bb-0310-9956-ffa450edef68
* [github-339] Add extra methods to StringUtil and refactor some code to use ↵PJ Fanning2022-07-173-3/+6
| | | | | | them. Thanks to XenoAmess. This closes #339 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902789 13f79535-47bb-0310-9956-ffa450edef68
* java 17 compile issuePJ Fanning2022-07-161-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902783 13f79535-47bb-0310-9956-ffa450edef68
* [github-342] Use foreach. Thanks to XenoAmess. This closes #342PJ Fanning2022-07-168-39/+38
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902778 13f79535-47bb-0310-9956-ffa450edef68
* [github-345] Use switch instead of if. Thanks to XenoAmess. This closes #345PJ Fanning2022-07-161-6/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902772 13f79535-47bb-0310-9956-ffa450edef68
* java 17 compile issuesPJ Fanning2022-07-162-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902761 13f79535-47bb-0310-9956-ffa450edef68
* [github-341] Remove unused imports. Thanks to XenoAmess. This closes #341PJ Fanning2022-07-156-8/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902760 13f79535-47bb-0310-9956-ffa450edef68
* [github-361] reuse regex pattern instances. Thanks to XenoAmess. This closes ↵PJ Fanning2022-07-151-647/+670
| | | | | | #361 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902756 13f79535-47bb-0310-9956-ffa450edef68
* [github-340] make more use of StandardCharsets. Thanks to XenoAmess. This ↵PJ Fanning2022-07-154-5/+8
| | | | | | closes #340 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902755 13f79535-47bb-0310-9956-ffa450edef68
* Fix issues found when fuzzing Apache POI via JazzerDominik Stadler2022-03-241-2/+0
| | | | | | Do not assert when the next line will throw a proper exception anyway git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899162 13f79535-47bb-0310-9956-ffa450edef68