Archived
A tool schema's `pattern` reaches the grammar converter as client data,
and the group scanner recursed once per nested '(': a few tens of KB of
brackets inside one JSON string was an uncatchable stack overflow of the
request worker. The body's depth and value bounds never saw it -- the
brackets are string content, not JSON nesting -- and 0003, the patch that
made this same function survive a hostile pattern, hardened the empty and
the looping cases but never the recursing one. It is the one remote crash
in the audit, and one request is the whole attack.
transform() now counts its nesting and records the refusal once, where
every unwinding frame met the same '(' and repeated it; check_errors turns
it into the clean throw the server already answers with a 400. Proven on
the compile host against the real converter: the 20000-group pattern is
refused by name, a 40-group pattern -- far past anything a real schema
nests -- still compiles. The record keeps the addition under 0003's name,
whose footing it stands on.
57 lines
5.5 KiB
Plaintext
57 lines
5.5 KiB
Plaintext
a01f72edb9d0a7e9da75c5648cf62ae6f1c335afbfc150088a129288072dc32b vendor/CMakeLists.txt
|
|
d6f9a0fe461e2f7c0b051e39d7979c53e8b14884f87377e3b616a339d481fee9 vendor/cpp-httplib/httplib.cpp
|
|
d7168fd3d9266985c01e827c7a7cc002c0b0a0abcc8ff16d965ccbbaca3e4a2d vendor/cpp-httplib/httplib.h
|
|
4b45cbe16d7b71b89ae6127e26e0d90a029198ca5e958ad8e3d0b8bbed364d8b vendor/cpp-httplib/LICENSE
|
|
f5a25d5d70073fe26494962e0b4f300565511f0028f8b1548f1a0c6c531bfc6d vendor/llama/common/chat-auto-parser-generator.cpp
|
|
eb93af41e2ec50e62880af5da55f68bee83e00c5a6a4896e77cb9d3f8a970b20 vendor/llama/common/chat-auto-parser.h
|
|
4d09ee4cc08e491b080952fdc2b5958003122d8e51454149841f031c40add995 vendor/llama/common/chat-auto-parser-helpers.cpp
|
|
a2866e5411ab5c23171db7214fa9aa60171b52ed4737bd37ce66f828d8683998 vendor/llama/common/chat-auto-parser-helpers.h
|
|
0671967b8d7339df2690bdc64ab4044fd95b99da71d56158b8b993b494e48a8d vendor/llama/common/chat.cpp
|
|
15dc12c1211f57289ab904f068c3232a4f8e70d0b0f77f082be645f15d018b93 vendor/llama/common/chat-diff-analyzer.cpp
|
|
999bfbdbf4f193ccfa82193036893e57088e1767c84f26352a8b0805b32b5992 vendor/llama/common/chat.h
|
|
d69538a573f3490faa11f7c429ab6dac10305b903b41e957820a6acf82c5314b vendor/llama/common/chat-peg-parser.cpp
|
|
51b151ef2798c89e222188d60accaf2ef2dd7f29a01cd837fdecc92e9e757728 vendor/llama/common/chat-peg-parser.h
|
|
bb12b9cc7940d6728304b6ae1d0d9c53637098f6df00119d4ba5ef7f186c385e vendor/llama/common/jinja/caps.cpp
|
|
97866824d4dacfdeeb14839183e959d665ac766e12014f38e74610933a8b9cdc vendor/llama/common/jinja/caps.h
|
|
3d6774bc2dac477e10ddbee69eff403df36f5925c8512ccf8a249bde5c26dbd7 vendor/llama/common/jinja/lexer.cpp
|
|
93aecd72cc952fab08f657aa2a70e9f58421672b19d3179f8bdf555e683a1cc7 vendor/llama/common/jinja/lexer.h
|
|
284c3dcc92cfcbdb3391f4b251bdc2bd5191899973bf665e9351aca3b795c724 vendor/llama/common/jinja/parser.cpp
|
|
6225eb759da910f3dd7753aed71c6938131cfa04c609d744e6f1390396422316 vendor/llama/common/jinja/parser.h
|
|
e3bfa255e10e81c756e1376740d752d6f73762233253f830dea2bcedd50f247f vendor/llama/common/jinja/README.md
|
|
dee35610e7de346501f49a0f62bb9c99f9dc10534a22c0ee20baabf11fc61ca3 vendor/llama/common/jinja/runtime.cpp
|
|
427e1a8471394674b56c24c1946393b6c242481ffa49f3af396e6b257634a645 vendor/llama/common/jinja/runtime.h
|
|
1f7b1d6161c48a735853608849781736b69e526bf31549fc2cb692469f193715 vendor/llama/common/jinja/string.cpp
|
|
943ad34975e87c1a39570ac45238e2416cfb99530b53d853547c630198ea4b18 vendor/llama/common/jinja/string.h
|
|
61ae8bc57a7a551bdfb294a23a0ef8b5ba8e3cf4d695389f0f0797e2d7689781 vendor/llama/common/jinja/utils.h
|
|
9de5a424bc1339427800c3a22b708badd534bba2099ea35676a7e759a2a2cdb9 vendor/llama/common/jinja/value.cpp
|
|
fe5bb39af419fffc5291796848edc9f6d990c416ea8ff5fe602b9e4b8dd4140b vendor/llama/common/jinja/value.h
|
|
00a6eb892deb9c0578fec97e72b8dbb2518216bb325a972987691b67a14ecc02 vendor/llama/common/json-partial.cpp
|
|
1ff33e25293b376c9262c5e5842fcb50ebcf8f4e5c5222505a8a757be53fd4a5 vendor/llama/common/json-partial.h
|
|
c330c964ffc9f895c9d3c7050eb4a2372c9116c8aee85b4c6542952eb4134c35 vendor/llama/common/json-schema-to-grammar.cpp
|
|
e2e2d20d39e57ecf3c440df04097be4c6b3d59ba09f0655f675384d1c99f6801 vendor/llama/common/json-schema-to-grammar.h
|
|
d4b2739e4b06668dc14a1d3c6ed15c4fcb93d5c6e976f06bc3363e797fff9c1c vendor/llama/common/peg-parser.cpp
|
|
4e77267b71d77a5a5617d89a1cfb1e7b43df0af52e6ba38f305abfdf9f443464 vendor/llama/common/peg-parser.h
|
|
40f1cd28206abfd16e8ec9716d08f1455b74e55cbfef1d581fce08b7984775f8 vendor/llama/common/regex-partial.cpp
|
|
c4198e922a2a889668e3e03fabfc7d2ab0ae7d54b324bbda490831d8f8d5748d vendor/llama/common/regex-partial.h
|
|
a07137a4fe6a657acf0d4b16ee5fa4ba388f7e9c8d3c98993410b28720b69b6d vendor/llama/common/unicode.cpp
|
|
b88c29194f028c27988c05a64bd72948ff55081dc1b07e5ff9c3bb72601c62b5 vendor/llama/common/unicode.h
|
|
94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d vendor/llama/LICENSE
|
|
228ae6466cd7efc9196bbc2b5eedbe94fa6acd37a706fe514b518213a6fb4a6b vendor/llama/src/unicode.cpp
|
|
95170cd1c105a5b41a1b2dce73b0fae8ce8011ef7897600828bb2babe8b26e5d vendor/llama/src/unicode-data.cpp
|
|
1854f4494e5666db6036f0bf4cf818e01588b40b48a89e3372e775c4d5174402 vendor/llama/src/unicode-data.h
|
|
f1562388d5b9d2dac1152ad8eda56e0bcae25dd407cf15d9dd2e96fe0124f4e7 vendor/llama/src/unicode.h
|
|
e9115a6b8ba3388b271beb76c06a5d322305957650e0898a7bc83d12a169bb1e vendor/patches/0001-unicode-reject-codepoints-above-U-10FFFF.patch
|
|
f8b105c8e5032ab557e3d24632d7c07938383b3d183ce8dd0fe9051b5ea1e4b9 vendor/patches/0022-httplib-the-drain-keeps-a-five-second-budget.patch
|
|
d21acdde3276a3706f41c0a7e911a3953ac1ca6b33c5ae05f92d6651f77ce627 vendor/rapidyaml/LICENSE.txt
|
|
0d0b8076174cf62f034406b03529fda542ebc9a17506d3bd6d949aedc4bfa6ab vendor/rapidyaml/ryml.hpp
|
|
2970cf5b064edfd93581f0f1e027cff69ab328a60bb8ab23eaeb4854c841a412 vendor/shim/common.h
|
|
699953eab99abd173ee2b3b16f540b3c72dff103dbe92f1ac733bc9e26a798e7 vendor/shim/ggml.h
|
|
d5104362705e687271807f499481db6033d85988e13fac12f36e370c6fce0551 vendor/shim/llama.h
|
|
5d556a22069133f7931850a13094d7390ba091051f0dc98cb1cfca824142a705 vendor/shim/llama_shim.cpp
|
|
628efd8a88524082c4736d3bc52790aa459b40728f213246c54550011f2754a2 vendor/shim/log.h
|
|
1c343ff2dbf801873acc2ee67c0e874137fb36df31421f36fc5cb6812463aae4 vendor/shim/ryml_impl.cpp
|
|
4e3fcc1f56d00c21967fa16e1d81aa9a012f1669c514ed16226204ff62e25d02 vendor/UPSTREAM
|
|
45e384d3d52c73cba3a64d6e6c25d47cd738cd8a55c30629e3201046eda62947 vendor/yyjson/LICENSE
|
|
d2d58ef0a3b2267862dc363832c4f3185fd375aea933d5d3419d1a940d6ece2e vendor/yyjson/yyjson.c
|
|
ef803cda5c06b8962face6dfa39c3284b3bcf3e73f4d7317664690cc779679ca vendor/yyjson/yyjson.h
|