diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 13:54:48 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 13:54:48 +0200 |
| commit | 93fd7757dc4900da697b9d5e884e1a343e2facda (patch) | |
| tree | 91faf28e84d65269a0328e2e7f5934e253886af5 /README.md | |
| parent | 4710b5224f24992dabb2a2dd9230cac586f20ffd (diff) | |
| download | ele-93fd7757dc4900da697b9d5e884e1a343e2facda.tar.gz ele-93fd7757dc4900da697b9d5e884e1a343e2facda.zip | |
Bound filter parsing and reject excessive expression depth
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -28,7 +28,7 @@ usage: aip-filter [-p|--print] <expr> [file...] * An unquoted boolean field name evaluates that field. A dotted name resolves a field path first and otherwise becomes a global literal. Quote a search term to prevent field lookup, for example `'"active"'` or `'"example.com"'`. * String `=` and `!=` ignore ASCII case and support one leading or trailing `*`. The two operators are opposites. * String `:` matches words or phrases bounded by whitespace or ASCII punctuation, or a leading/trailing wildcard. Lists match any element; maps match keys. `field:*` tests for a non-default value, including a nonempty list or map. -* Functions are parsed but not evaluated. Regexes are validated when parsing and recompiled during evaluation. Filter nesting is not bounded; do not accept untrusted filter expressions without external limits. +* Functions are parsed but not evaluated. Regexes are validated when parsing and recompiled during evaluation. Filters are limited to 64 KiB, 512 non-whitespace tokens, 64 recursive parser calls, and an expression tree of at most 128 levels and 512 nodes. Excessive filters return errors instead of recursing without a bound. ### Examples |
