aboutsummaryrefslogtreecommitdiffstats
path: root/poi-scratchpad/src/test
Commit message (Collapse)AuthorAgeFilesLines
* PoiLogManagerPJ Fanning2024-11-241-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922055 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69434] -- add more properties to AttachmentChunksTim Allison2024-11-061-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1921800 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-07-181-1/+2
| | | | | | | | | | | | | | Processing formats uses regular expressions. Very complex formats can recurse very deeply and thus can cause StackOVerflows depending on the used stack-size. In order to handle this a bit more gracefully, we now catch this and report a better exception with details about the parsed format and potential mitigation. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66137 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919342 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-07-163-0/+12
| | | | | | | | | | | Avoid a possible OutOfMemoryException with many child-records This avoids having too many children in EscherRecords, the limit of 100_000 is arbitrarily chosen and can be adjusted if needed Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62924 and maybe others git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919272 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-07-151-0/+1
| | | | | | | | | | | | Avoid a possible StackOverflowException This adds support of counting of the "nesting level" into the base EscherRecord and thus makes this existing limitation much more effective as it kicks in for more types of nested records. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66374 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919256 13f79535-47bb-0310-9956-ffa450edef68
* Reformat and add more testsDominik Stadler2024-07-151-4/+115
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919238 13f79535-47bb-0310-9956-ffa450edef68
* use standard ASF headerPJ Fanning2024-07-012-8/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918804 13f79535-47bb-0310-9956-ffa450edef68
* Change one exception to warning-log to avoid regressions in mass-testsDominik Stadler2024-06-022-2/+0
| | | | | | This avoids "breaking" a few documents which could be opened before. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918118 13f79535-47bb-0310-9956-ffa450edef68
* fix Logging issues:Axel Howind2024-02-211-3/+3
| | | | | | | - don't use foreign class in Logger initialization - update log statements to use MessageFormat syntax git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915930 13f79535-47bb-0310-9956-ffa450edef68
* try to fix poi-scratchpad test module-infoPJ Fanning2024-02-101-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915701 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-302-2/+4
| | | | | | | | Prevent NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64943 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915004 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-301-0/+1
| | | | | | | | Prevent StackOverflow via endless nesting Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65303 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914989 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-062-2/+4
| | | | | | | | | Change an assertion which can be triggered via an input-document. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63309 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914403 13f79535-47bb-0310-9956-ffa450edef68
* Close document always in SlideShowRecordDumperDominik Stadler2023-11-151-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913795 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-10-272-1/+3
| | | | | | | | | Fix one expected exception-text which is different on newer Java versions Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63143 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913384 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid Exceptions found via oss-fuzzDominik Stadler2023-10-071-5/+6
| | | | | | | | | | 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
* Bug 66425: Avoid a NullPointerException found via oss-fuzzDominik Stadler2023-10-072-1/+3
| | | | | | | | | 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
* commons-io 2.14.0PJ Fanning2023-10-011-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912638 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-09-212-1/+3
| | | | | | | | | 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
* Bug47950 -- make stream/directory name lookup in OLE2 case insensitiveTim Allison2023-09-208-43/+57
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912438 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-09-202-2/+3
| | | | | | | | | 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
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-09-181-0/+2
| | | | | | | | | | 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
* Bug 66425: Avoid NullPointerExceptions and ClassCastExceptions found via ↵Dominik Stadler2023-09-177-7/+61
| | | | | | | | | | | | | 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
* Bug 66425: Avoid a NullPointerException found via oss-fuzzDominik Stadler2023-09-112-1/+14
| | | | | | | | | 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
* Bug 66425: Avoid a NullPointerException found via oss-fuzzDominik Stadler2023-09-082-6/+5
| | | | | | | | | 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
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-231-1/+3
| | | | | | | | | 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
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-091-0/+1
| | | | | | | | | 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
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-092-2/+4
| | | | | | | | | 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
* Bug 66425: Avoid a StackOverflowException found via oss-fuzzDominik Stadler2023-08-092-2/+4
| | | | | | | | | | | | 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
* Bug 66425: Add memory-safeguard in one more placeDominik Stadler2023-08-072-6/+31
| | | | | | | | | | | | | | 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
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-071-0/+3
| | | | | | Fix previous changes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911522 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid a ClassCastException found via oss-fuzzDominik Stadler2023-08-072-13/+36
| | | | | | | | | 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-061-290/+291
| | | | | | | | | | | 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
* Remove deprecation warnings reported with newer commons-ioDominik Stadler2023-06-0854-101/+101
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1910300 13f79535-47bb-0310-9956-ffa450edef68
* [bug-66518] license headerPJ Fanning2023-03-081-0/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908193 13f79535-47bb-0310-9956-ffa450edef68
* add testPJ Fanning2023-03-081-0/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908190 13f79535-47bb-0310-9956-ffa450edef68
* Prevent more cases of unbounded allocationDominik Stadler2023-01-011-0/+53
| | | | | | Test WordToTextConverter with all sample files git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906326 13f79535-47bb-0310-9956-ffa450edef68
* [github-409] Textruns not honouring highlight. Thans to gffloodg. This ↵PJ Fanning2022-12-281-0/+1
| | | | | | closes #409 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906248 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
* license issuePJ Fanning2022-11-041-0/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905063 13f79535-47bb-0310-9956-ffa450edef68
* [bug-66335] apply rest of fixPJ Fanning2022-11-041-2/+1
| | | | 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/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905061 13f79535-47bb-0310-9956-ffa450edef68
* [bug-66301] Add a method to properly write the header necessary for a MSG ↵PJ Fanning2022-10-181-15/+33
| | | | | | attachment. Thanks to Lyn Evans. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904685 13f79535-47bb-0310-9956-ffa450edef68
* [bug-63576] support capitalized text in WordExtractor (HWPF)PJ Fanning2022-08-281-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903738 13f79535-47bb-0310-9956-ffa450edef68
* remove unnecessary lPJ Fanning2022-08-072-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903266 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-354] Add extra methods to StringUtil and refactor some code to use ↵PJ Fanning2022-07-171-1/+1
| | | | | | 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-341] Remove unused imports. Thanks to XenoAmess. This closes #341PJ Fanning2022-07-154-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902760 13f79535-47bb-0310-9956-ffa450edef68
* [github-351] make test loop more efficientPJ Fanning2022-07-151-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902752 13f79535-47bb-0310-9956-ffa450edef68
* [bug-65634] NotOLE2FileException not thrown in POI 5.0.0 by opening an ↵PJ Fanning2022-07-011-0/+31
| | | | | | XML-RAW File with SlideShowFactory.create() git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902395 13f79535-47bb-0310-9956-ffa450edef68