Open tanguilp opened 5 years ago
Hi,
I've tried to use the grammar at https://tools.ietf.org/html/rfc7644#section-3.4.2.2 with ex_abnf parser. Here is the file: filter.txt
Had to add a few definitions from other specs (like ALPHA and DIGIT at the bottom).
Here are the last commands before the crash:
iex(4)> grammar = ABNF.load_file("priv/filter.abnf") %{ ...} iex(5)> initial_state = %{} %{} iex(6)> ABNF.apply(grammar, "FILTER", "userName sw \"J\"", initial_state) eheap_alloc: Cannot allocate 1318267840 bytes of memory (of type "heap"). Crash dump is being written to: erl_crash.dump...done
Seems similar to an infinite loop?
It seems that infinite recursion was allowed in the original document - corrected here: https://www.rfc-editor.org/errata/eid4690
Hi,
I've tried to use the grammar at https://tools.ietf.org/html/rfc7644#section-3.4.2.2 with ex_abnf parser. Here is the file: filter.txt
Had to add a few definitions from other specs (like ALPHA and DIGIT at the bottom).
Here are the last commands before the crash:
Seems similar to an infinite loop?