aboutsummaryrefslogtreecommitdiffstats
path: root/test-data
Commit message (Collapse)AuthorAgeFilesLines
* workaround stray whitespace in sst index (#874)PJ Fanning3 days1-0/+0
| | | | | | | * tolerate whitespace in ints * try to workaround stray whitespace in sst index * Update TestAllFiles.java
* check xwpf node depth (#869)PJ Fanning7 days1-0/+0
| | | | | | | * check xwpf node depth * Update TestAllFiles.java * Update TestAllFiles.java
* add poifs testPJ Fanning9 days1-0/+0
|
* Support all possible alignment values for docx tables. (#848)Jacobo Aragunde Pérez2025-07-171-0/+0
| | | | | | | Besides the start/center/end values specified in the OOXML standard, Word also uses "left" and "right" as values. We need to support this to prevent POI code from crashing with such documents. Fixes: https://bz.apache.org/bugzilla/show_bug.cgi?id=69744
* Add getters and setters for XWPFTable indentation. (#843)Jacobo Aragunde Pérez2025-07-151-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add getters and setters for XWPFTable indentation. The element tblPr->tblInd represents "table indent from leading margin". It specifies the indentation which shall be added before the leading edge of the current table in the document (the left edge in a left-to-right table, and the right edge in a right-to-left table). This indentation should shift the table into the text margin by the specified amount. This value is specified in the units applied via its type attribute. Any width value of type pct or auto for this element shall be ignored. If this element is omitted, then the table shall inherit the table indentation from the associated table style. If table indentation is never specified in the style hierarchy, no indentation shall be added to the parent table. If the resulting justification on any table row is not left, then this property shall be ignored. To implement this property, we included a getter and a setter for the property value, and another couple of getter/setter for the existence (and validity) or absence of the property itself, for clients to know they must fall back to the table style. * Address reviewer comments.
* Allow null values in XWPFParagraph.get/setAlignment(). (#829)Jacobo Aragunde Pérez2025-07-091-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * Allow null values in XWPFParagraph.get/setAlignment(). A null value in this field would indicate that the paragraph should follow the alignment provided by the style hierarchy. Fixes: https://bz.apache.org/bugzilla/show_bug.cgi?id=69720 * Revert getAlignment() and implement isAlignmentSet() instead. * Replace test case file. * Implement XWPFParagraph.getTCPPr(create). It lets the caller choose if a new PPr should be created in case it doesn't exist. * use getCTPPr(boolean) * compile issue --------- Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>
* [bug-69697] HSLF getPictureData can return null for some picturesPJ Fanning2025-06-141-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1926414 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69628] add test casePJ Fanning2025-03-261-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924643 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2025-01-202-0/+0
| | | | | | | | | | | | | | Prevent too deep nesting by throwing an exception instead of just not parsing more nesting-levels as this still caused OOMs. Allow to adjust the limit via static setter as elsewhere to give users a chance to parse very complicated files if really necessary. https://issues.oss-fuzz.com/issues/42528505 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923277 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2025-01-202-0/+0
| | | | | | | | Prevent NullPointerException Fixes https://issues.oss-fuzz.com/issues/389724915 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923276 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2025-01-112-0/+0
| | | | | | | | Prevent a NullPointerException Fixes https://issues.oss-fuzz.com/issues/42537720 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923061 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2025-01-112-0/+0
| | | | | | | | Prevent a NullPointerException Fixes https://issues.oss-fuzz.com/issues/42537550 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923060 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2025-01-112-0/+0
| | | | | | | | Prevent a NullPointerException Fixes https://issues.oss-fuzz.com/issues/379574870 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923059 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2025-01-112-0/+0
| | | | | | | | Prevent a NullPointerException Fixes https://issues.oss-fuzz.com/issues/42538163 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923058 13f79535-47bb-0310-9956-ffa450edef68
* Add test for bug 58805Dominik Stadler2025-01-111-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923055 13f79535-47bb-0310-9956-ffa450edef68
* Bug 69315: HSMF: At least continue processing properties after multivalued ↵Dominik Stadler2025-01-112-0/+0
| | | | | | | | | | properties Currently processing stops at multivalued properties. This at least continues processing, so other properties are processed properly. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923051 13f79535-47bb-0310-9956-ffa450edef68
* [github-733] Fix rate order in Mirr function. Thanks to Aleksandrs Jansons. ↵PJ Fanning2024-11-251-0/+0
| | | | | | This closes #733 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922095 13f79535-47bb-0310-9956-ffa450edef68
* [github-692] D* functions are incompatible with the diamond operator. Thanks ↵PJ Fanning2024-09-201-0/+0
| | | | | | to Luk Spiewak. This closes #692 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1920817 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-07-282-0/+0
| | | | | | | | Prevent a possible NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70467 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919562 13f79535-47bb-0310-9956-ffa450edef68
* add chinese hssf testPJ Fanning2024-07-191-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919373 13f79535-47bb-0310-9956-ffa450edef68
* remove 22742.xlsPJ Fanning2024-07-191-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919372 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-07-182-0/+0
| | | | | | | | | | | | | | 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-162-0/+0
| | | | | | | | | | | 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-152-0/+0
| | | | | | | | | | | | 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
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-07-152-0/+0
| | | | | | | | Prevent too much memory usage Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67413 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919237 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-07-142-0/+0
| | | | | | | | Prevent a NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68104 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919215 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-07-142-0/+0
| | | | | | | | Prevent a ClassCastException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66089 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919214 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-07-142-0/+0
| | | | | | | | Prevent a NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70273 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919213 13f79535-47bb-0310-9956-ffa450edef68
* List expected failures in stress.xls instead of fully excluding themDominik Stadler2024-07-141-0/+0
| | | | | | | | We list expected failures in stress.xls to verify that the error message is correct and no unexpected exception is introduced git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919212 13f79535-47bb-0310-9956-ffa450edef68
* add negative testPJ Fanning2024-07-091-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919065 13f79535-47bb-0310-9956-ffa450edef68
* add test casePJ Fanning2024-07-091-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919064 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-07-072-0/+0
| | | | | | | | Prevent a NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=69450 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918985 13f79535-47bb-0310-9956-ffa450edef68
* add dataformatter testPJ Fanning2024-07-021-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918819 13f79535-47bb-0310-9956-ffa450edef68
* rename filePJ Fanning2024-07-011-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918803 13f79535-47bb-0310-9956-ffa450edef68
* throw exception if xlsx contains duplicate file namesPJ Fanning2024-07-011-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918800 13f79535-47bb-0310-9956-ffa450edef68
* Change one exception to warning-log to avoid regressions in mass-testsDominik Stadler2024-06-021-0/+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
* Avoid NPE and improve error message when saving a package-part failsDominik Stadler2024-06-021-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918117 13f79535-47bb-0310-9956-ffa450edef68
* [bug-69021] add guard around castPJ Fanning2024-05-171-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917779 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-04-222-0/+0
| | | | | | | | Avoid a possible NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67922 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917269 13f79535-47bb-0310-9956-ffa450edef68
* One integration-test file now fails in "additional" as wellDominik Stadler2024-04-201-0/+0
| | | | | | Not sure which change introduced this as it worked initially... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917223 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-04-201-0/+0
| | | | | | | | Prevent a NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65448 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917175 13f79535-47bb-0310-9956-ffa450edef68
* Integration tests: Add writing out the documentDominik Stadler2024-04-201-0/+0
| | | | | | This will cover some more functionality git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917174 13f79535-47bb-0310-9956-ffa450edef68
* [bug-63189] support hyperlink relationships. Thanks to Ohyoung Kwon. This ↵PJ Fanning2024-04-191-0/+0
| | | | | | closes #617 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917134 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-04-172-0/+0
| | | | | | | | 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
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-04-172-0/+0
| | | | | | | | Prevent a NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66386 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917069 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2024-04-172-0/+0
| | | | | | | | Prevent a few NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66400 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917068 13f79535-47bb-0310-9956-ffa450edef68
* [bug-68703] fix issue with XSLFTextRuns in XSLFTableCellsPJ Fanning2024-03-041-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916105 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-302-0/+0
| | | | | | | | 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-301-0/+0
| | | | | | | | Prevent NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64495 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915005 13f79535-47bb-0310-9956-ffa450edef68
* Bug 66425: Avoid exceptions found via poi-fuzzDominik Stadler2023-12-302-0/+0
| | | | | | | | 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