Adolanium
ffdbc883ee
fix(read_extract): cap anydoc input size before conversion
...
The anydoc path from #79781 passed every covered file straight to
to_markdown with no pre-check. anydoc loads the whole document through
its Rust core and the read_file char budget only applies after
conversion, so one large PDF or deck could pin a tool turn and spike
RAM.
_extract_anydoc now rejects inputs over MAX_ANYDOC_BYTES (50 MB) with
ExtractionError before calling the converter, which routes them to the
existing read_file fallthrough instead of converting. No timeout is
added: the conversion is a synchronous Rust call that cannot be
cancelled from Python, so a thread-based deadline would bound the wait
but leave the RAM burn running in the background.
2026-08-05 22:02:42 -07:00
..
2026-08-02 20:21:59 -07:00
2026-08-03 22:53:32 +05:30
2026-07-28 07:58:16 -07:00
2026-08-04 12:43:38 -04:00
2026-08-02 15:11:37 -07:00
2026-07-28 11:52:44 -07:00
2026-07-29 11:53:39 -07:00
2026-08-02 00:11:50 -07:00
2026-07-27 14:32:05 -07:00
2026-07-29 10:54:04 -07:00
2026-08-02 11:18:41 +05:30
2026-07-29 10:14:11 -07:00
2026-07-26 17:46:55 -07:00
2026-07-29 10:14:00 -07:00
2026-07-29 11:53:39 -07:00
2026-08-02 16:02:26 -07:00
2026-07-29 12:19:37 -07:00
2026-07-31 17:43:37 -04:00
2026-08-02 14:04:52 +05:30
2026-08-05 14:00:25 +05:30
2026-08-02 00:11:50 -07:00
2026-08-02 00:36:03 -07:00
2026-08-01 21:17:51 -04:00
2026-08-06 05:31:17 +05:30
2026-08-05 17:07:47 -07:00
2026-07-31 10:17:55 -04:00
2026-08-02 15:51:43 -07:00
2026-08-02 00:11:50 -07:00
2026-07-29 09:33:48 -07:00
2026-07-31 17:43:37 -04:00
2026-08-06 03:16:26 +05:30
2026-08-05 17:07:47 -07:00
2026-08-02 10:02:33 -07:00
2026-07-28 00:53:16 -05:00
2026-07-29 10:02:03 -07:00
2026-08-03 14:24:37 +05:30
2026-08-03 14:24:37 +05:30
2026-07-29 16:49:07 +05:30
2026-07-29 10:13:50 -07:00
2026-07-28 14:07:21 -07:00
2026-08-02 10:02:33 -07:00
2026-08-01 10:47:20 -07:00
2026-08-04 14:34:24 +05:30
2026-07-29 10:14:00 -07:00
2026-08-02 15:11:02 -07:00
2026-07-30 00:08:28 -05:00
2026-08-05 22:02:42 -07:00
2026-08-05 16:35:00 +00:00
2026-07-29 11:53:39 -07:00
2026-08-03 18:44:38 +05:30
2026-07-28 14:37:19 -07:00
2026-08-02 10:01:16 -07:00
2026-08-03 17:50:58 +05:30
2026-07-31 07:30:30 -07:00
2026-07-31 07:30:30 -07:00
2026-08-03 09:56:36 +05:30
2026-08-02 20:12:37 -07:00
2026-07-30 22:31:42 -07:00
2026-07-28 04:24:50 -05:00
2026-08-02 20:12:37 -07:00
2026-08-02 15:08:35 -07:00
2026-08-05 20:34:59 +05:30
2026-08-02 10:04:48 -07:00
2026-08-02 10:04:48 -07:00
2026-08-03 19:11:30 +05:30
2026-08-03 14:30:05 +05:30
2026-07-28 22:31:40 -07:00
2026-07-28 11:55:01 -07:00
2026-08-03 10:25:15 +05:30
2026-07-28 14:17:45 -07:00
2026-07-29 10:54:04 -07:00
2026-07-29 10:08:53 -07:00
2026-08-05 10:06:49 -06:00
2026-07-29 11:53:39 -07:00
2026-07-26 18:28:20 -07:00
2026-07-23 21:06:47 -07:00
2026-08-02 10:04:48 -07:00