-
fix: add depth limit to TableBorderProcessor to prevent stack overflow
发布于
2026-02-05 05:45:36 +00:00 Add defensive depth limit (MAX_NESTED_TABLE_DEPTH=10) for nested table
processing. Uses ThreadLocal to track recursion depth and prevents
stack overflow from malicious or malformed PDFs with deeply nested tables.Real-world PDFs rarely have tables nested more than 2-3 levels, so
depth limit of 10 provides ample margin for legitimate use cases.Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
下载附件