Don Omondi
d60b6bf883
fix(doc): count the values buffered before an object's type ( #3587 )
...
NodeKind's reader buffers the fields that come before `type` as
serde_json::Values. VectorCraft writes `type` first, but a crafted file
can put a long array there: a group whose children held 50M numbers before
its type (a 96 KB gzip) peaked at 1.6 GB, and the cost grows with the
array up to MAX_JSON, before any object in it is counted.
The buffer is read through a counting visitor: each JSON value counts
against MAX_BUFFERED_VALUES (32M, 4M on wasm32) as it is read, and values
replayed from the buffer aren't counted twice. load_file reads within it;
the same file is now refused at a 1.1 GB peak.
2026-10-29 11:07:37 +07:00
..
2026-10-27 17:47:12 +00:00
2026-10-26 19:32:10 +00:00
2026-10-27 17:47:12 +00:00
2026-10-29 11:07:37 +07:00
2026-10-12 14:50:00 +07:00
2026-10-26 18:26:53 +00:00
2026-10-27 17:47:12 +00:00
2026-10-27 14:36:13 +07:00
2026-10-27 17:47:12 +00:00
2026-10-11 23:26:53 +07:00
2026-10-29 09:57:33 +07:00
2026-10-23 09:22:20 +07:00
2026-10-24 17:19:16 +07:00
2026-10-18 01:21:30 +07:00
2026-10-21 23:38:03 +07:00
2026-10-24 17:19:59 +07:00
2026-10-16 01:36:24 +07:00
2026-10-27 17:47:12 +00:00
2026-10-27 17:47:12 +00:00
2026-10-27 17:47:12 +00:00
2026-10-24 17:19:16 +07:00
2026-10-27 17:47:12 +00:00
2026-10-27 17:47:12 +00:00
2026-10-26 18:18:17 +00:00
2026-10-25 12:32:45 -04:00
2026-10-05 15:13:10 +07:00
2026-10-08 15:45:34 -07:00
2026-10-16 04:44:52 +07:00
2026-10-26 21:17:08 +00:00
2026-10-27 17:47:12 +00:00
2026-10-27 14:36:12 +07:00
2026-10-17 15:14:43 +07:00
2026-10-26 21:17:08 +00:00
2026-10-05 13:05:20 +07:00
2026-10-19 21:51:32 +07:00
2026-10-24 19:21:31 +07:00
2026-10-29 11:07:37 +07:00
2026-10-21 16:46:13 +07:00
2026-10-21 15:42:36 +07:00
2026-10-25 12:32:45 -04:00
2026-10-25 12:32:45 -04:00
2026-10-12 11:02:32 +07:00
2026-10-17 16:38:41 +07:00
2026-10-24 17:19:54 +07:00
2026-10-23 05:40:00 +07:00
2026-10-05 12:27:02 +07:00
2026-10-06 11:16:10 +07:00
2026-10-25 12:32:45 -04:00
2026-10-05 09:55:48 +07:00
2026-10-05 02:55:23 +07:00
2026-10-24 04:49:06 +07:00
2026-10-27 17:47:12 +00:00
2026-10-21 23:38:02 +07:00
2026-10-26 09:09:47 +07:00
2026-10-08 22:52:23 +01:00
2026-10-14 12:27:04 +07:00
2026-10-26 18:33:16 +00:00
2026-10-25 12:32:45 -04:00
2026-10-22 22:38:41 +07:00
2026-10-21 15:42:36 +07:00
2026-10-16 15:27:52 +07:00
2026-10-17 16:38:41 +07:00
2026-10-16 04:45:03 +07:00
2026-10-14 04:56:30 +07:00
2026-10-26 19:32:10 +00:00
2026-10-26 21:17:08 +00:00
2026-10-24 04:49:06 +07:00
2026-10-27 17:47:12 +00:00
2026-10-17 17:13:03 +07:00
2026-10-24 21:03:43 +07:00