aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-09-29 13:54:48 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-09-29 13:54:48 +0200
commit93fd7757dc4900da697b9d5e884e1a343e2facda (patch)
tree91faf28e84d65269a0328e2e7f5934e253886af5 /README.md
parent4710b5224f24992dabb2a2dd9230cac586f20ffd (diff)
downloadele-93fd7757dc4900da697b9d5e884e1a343e2facda.tar.gz
ele-93fd7757dc4900da697b9d5e884e1a343e2facda.zip
Bound filter parsing and reject excessive expression depth
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6d842e4..a2c63db 100644
--- a/README.md
+++ b/README.md
@@ -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