This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/core/util
fl0l0u f2f94fc6e7 util: one bounded read for the files a container supplies
tokenizer.json, gen_config.json, an adapter's adapter_config.json and
the container's generation.* whitelist are all container-supplied, and
all read through the unbounded parser: a hostile file was refused only
by running out of stack -- the tree it grows is walked, dumped and
destroyed recursively on the way.

Json::parse_container is the wire's bounded read sized for files
instead: 2^24 values, because a tokenizer's vocabulary legitimately
carries a million flat strings, and 256 levels, because nothing
legitimate nests deeper. A file past either bound comes back discarded,
like a syntax error, and the four readers map that onto the failure
paths they already had -- ignore with a warning, refuse the adapter,
refuse the vocab. The bound fires during the read; no hostile tree
exists to be walked.
2026-11-15 20:38:09 +00:00
..
2026-10-16 18:25:18 +02:00
2026-11-14 22:32:28 +01:00
2026-11-14 22:32:28 +01:00
2026-11-14 22:32:28 +01:00
2026-11-14 22:32:28 +01:00
2026-11-14 22:32:28 +01:00
2026-10-27 16:47:35 +01:00
2026-10-27 16:47:35 +01:00