aboutsummaryrefslogtreecommitdiffstats
path: root/poi
Commit message (Collapse)AuthorAgeFilesLines
* Comment out flaky assertion and add more information to find which file ↵Dominik Stadler2024-04-171-14/+15
| | | | | | fails in CI git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917072 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-04-174-1/+37
| | | | | | | | Use correct default date-format, add some tests Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66381 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917070 13f79535-47bb-0310-9956-ffa450edef68
* [github-607] Support SVGs in XWPF. Thanks to Etienne Gautier. This closes #607PJ Fanning2024-03-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916582 13f79535-47bb-0310-9956-ffa450edef68
* Bug 68778: Verify "ignoreMissingFontSystem" for ↵Dominik Stadler2024-03-142-2/+185
| | | | | | | | | | | | | | | | | SheetUtil.getDefaultCharWidthAsFloat() This functionality saw some regressions at times and thus should be verified via unit-tests. We can simulate failures in the low-level font-system by mocking the FontRenderContext and triggering exceptions from there. This hopefully now verifies behavior of SheetUtil.getDefaultCharWidthAsFloat() both with "ignoreMissingFontSystem" enabled and disabled. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916297 13f79535-47bb-0310-9956-ffa450edef68
* use method referenceAxel Howind2024-02-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916035 13f79535-47bb-0310-9956-ffa450edef68
* use Map.computeIfAbsent()Axel Howind2024-02-281-6/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916034 13f79535-47bb-0310-9956-ffa450edef68
* rework testsPJ Fanning2024-02-261-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916017 13f79535-47bb-0310-9956-ffa450edef68
* Math.toIntExact is unnecessary because value is guaranteed to be between 0 ↵Axel Howind2024-02-221-1/+1
| | | | | | and 15 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915959 13f79535-47bb-0310-9956-ffa450edef68
* replace List<Byte> with ByteArrayOutputStream to avoid boxing/unboxing and ↵Axel Howind2024-02-221-32/+28
| | | | | | repeated copying of data git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915958 13f79535-47bb-0310-9956-ffa450edef68
* fix Logging issues:Axel Howind2024-02-212-2/+2
| | | | | | | - 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
* make loggers static finalAxel Howind2024-02-212-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915929 13f79535-47bb-0310-9956-ffa450edef68
* move setting of locale for tests to top level build.gradleAxel Howind2024-02-201-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915910 13f79535-47bb-0310-9956-ffa450edef68
* [github-596] Change cast logic in HSSFChart. Thanks to Ruby Hartono. This ↵PJ Fanning2024-02-191-25/+25
| | | | | | closes #596 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915881 13f79535-47bb-0310-9956-ffa450edef68
* remove unused loggers. Thanks to Ruby Hartono. This closes #594 and closes #595PJ Fanning2024-02-193-7/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915870 13f79535-47bb-0310-9956-ffa450edef68
* fix #68635: POI unit tests fail when run under non-US localeAxel Howind2024-02-171-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915827 13f79535-47bb-0310-9956-ffa450edef68
* remove unused loggers - thanks to Ruby Hartono. This closes #588 and closes #589PJ Fanning2024-02-161-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915819 13f79535-47bb-0310-9956-ffa450edef68
* [github-590] simplify some logging. This closes #590PJ Fanning2024-02-161-7/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915818 13f79535-47bb-0310-9956-ffa450edef68
* [github-582] improve performance CodepointsUtil.iteratorFor. Thanks to Jason ↵PJ Fanning2024-02-031-3/+12
| | | | | | Mirra. This closes #582 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915572 13f79535-47bb-0310-9956-ffa450edef68
* remove one use of CodepointsUtil.iteratorForPJ Fanning2024-02-031-5/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915571 13f79535-47bb-0310-9956-ffa450edef68
* Fix handling missing font libraries to again not throw on some types of ↵Dominik Stadler2024-01-301-2/+12
| | | | | | | | exception The previous change broke this handling by always re-throwing "Fatal" exceptions. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915482 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-01-301-2/+8
| | | | | | | | | | Prevent a few NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65450 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63907 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63727 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915480 13f79535-47bb-0310-9956-ffa450edef68
* [github-578] allow any non-fatal exception when setting up fonts to indicate ↵PJ Fanning2024-01-251-3/+5
| | | | | | that the fonts are probably not installed. This closes #578 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915397 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-303-3/+8
| | | | | | | | Prevent NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64212 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915006 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-302-0/+5
| | | | | | | | Prevent ClassCastException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63736 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915003 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-303-2/+9
| | | | | | | | Prevent ClassCastException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63504 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914991 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-301-1/+5
| | | | | | | | Prevent ClassCastException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63375 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914990 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-302-3/+20
| | | | | | | | 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
* try to javadoc more unsupported methodsPJ Fanning2023-12-203-1/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914791 13f79535-47bb-0310-9956-ffa450edef68
* Make sure OLE2ScratchpadExtractorFacory is sorted firstDominik Stadler2023-12-062-1/+17
| | | | | | | | Otherwise order of found extractors would depend on jar-loading order and thus might have unexpected side-effects and missing features in text-extraction. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914407 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-063-1/+5
| | | | | | | | | Avoid a ClassCastException and trigger some more code in integration-testing. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63358 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914404 13f79535-47bb-0310-9956-ffa450edef68
* [bug-68094] try to improve cell width derivation by not roundingPJ Fanning2023-11-082-6/+62
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913676 13f79535-47bb-0310-9956-ffa450edef68
* [github-545] Make exported sheet names compatible with Excel. Thanks to ↵PJ Fanning2023-11-072-46/+93
| | | | | | Aleksandrs Jansons. This closes #545 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913660 13f79535-47bb-0310-9956-ffa450edef68
* try to fix broken sxssf testsPJ Fanning2023-11-072-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913651 13f79535-47bb-0310-9956-ffa450edef68
* fix broken HSSFWorkbook testPJ Fanning2023-11-072-7/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913648 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-10-271-1/+5
| | | | | | | | | 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-67579] test that we close input streamPJ Fanning2023-10-261-0/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913352 13f79535-47bb-0310-9956-ffa450edef68
* try to close streams in HSSF testsPJ Fanning2023-10-261-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913351 13f79535-47bb-0310-9956-ffa450edef68
* [bug-67784] add test for divide errorPJ Fanning2023-10-171-0/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913065 13f79535-47bb-0310-9956-ffa450edef68
* [bug-67784] add test for divide errorPJ Fanning2023-10-171-0/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1913064 13f79535-47bb-0310-9956-ffa450edef68
* [bug-67475] better support for edge cases in TEXT function. Thanks to Jakub ↵PJ Fanning2023-10-142-12/+181
| | | | | | Vojtisek git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912973 13f79535-47bb-0310-9956-ffa450edef68
* add back leading len into slideshow DrawTextFragment heightPJ Fanning2023-10-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912967 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid Exceptions found via oss-fuzzDominik Stadler2023-10-074-1/+7
| | | | | | | | | | 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
* Bug 66425: Avoid Exceptions found via oss-fuzzDominik Stadler2023-10-075-4/+21
| | | | | | | | | | 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 Exceptions found via oss-fuzzDominik Stadler2023-10-074-3/+9
| | | | | | | | | | 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
* Bug 66425: Avoid a NullPointerException found via oss-fuzzDominik Stadler2023-10-071-1/+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=62626 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912792 13f79535-47bb-0310-9956-ffa450edef68
* Assert that deleting test-files and entries works in testsDominik Stadler2023-10-032-6/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912709 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-10-031-1/+1
| | | | | | | | | | | | | 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
* commons-io 2.14.0PJ Fanning2023-10-011-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912637 13f79535-47bb-0310-9956-ffa450edef68
* [github-523] set locales for some tests. This closes #523PJ Fanning2023-09-282-0/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912583 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-09-211-1/+1
| | | | | | | | | 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