aboutsummaryrefslogtreecommitdiffstats
path: root/poi-scratchpad/src/main
Commit message (Collapse)AuthorAgeFilesLines
* 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
* increase max size of hwmf picturePJ Fanning2022-03-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899135 13f79535-47bb-0310-9956-ffa450edef68
* use spaces for indentsPJ Fanning2022-03-206-36/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899082 13f79535-47bb-0310-9956-ffa450edef68
* Fix issues found when fuzzing Apache POI via JazzerDominik Stadler2022-03-203-3/+13
| | | | | | | 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
* Prevent one more case of allocating endlessly on invalid TNEF/HMEF/MAPI filesDominik Stadler2022-03-201-0/+2
| | | | | | 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
* Fix issues found when fuzzing Apache POI via JazzerDominik Stadler2022-03-205-21/+49
| | | | | | | | | | 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
* Add/update some JavaDocDominik Stadler2022-02-2412-41/+42
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898385 13f79535-47bb-0310-9956-ffa450edef68
* refactor some stream codePJ Fanning2022-02-194-35/+38
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898221 13f79535-47bb-0310-9956-ffa450edef68
* refactor some stream codePJ Fanning2022-02-192-33/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898216 13f79535-47bb-0310-9956-ffa450edef68
* refactor some stream codePJ Fanning2022-02-198-132/+142
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898213 13f79535-47bb-0310-9956-ffa450edef68
* [bug-65899] fix issue where malformed tnef file can cause memory problemsPJ Fanning2022-02-191-3/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898208 13f79535-47bb-0310-9956-ffa450edef68
* try to fix build for Java 9+PJ Fanning2022-01-221-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897344 13f79535-47bb-0310-9956-ffa450edef68
* Introduce an OldVisioFormatException similar to other file-typesDominik Stadler2022-01-223-8/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897321 13f79535-47bb-0310-9956-ffa450edef68
* remove use of deprecated commons-math methodsPJ Fanning2022-01-171-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897138 13f79535-47bb-0310-9956-ffa450edef68
* remove and prevent links to stackoverflowAndreas Beeker2022-01-102-33/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896899 13f79535-47bb-0310-9956-ffa450edef68
* Bug 65796: License violation in PICT.javaAxel Howind2022-01-101-19/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896887 13f79535-47bb-0310-9956-ffa450edef68