libucl icon indicating copy to clipboard operation
libucl copied to clipboard

Parser does not handle recursive includes

Open chmeeedalf opened this issue 9 years ago • 1 comments

Given the following files: a.conf: .include b.conf

b.conf: .include a.conf

The parser doesn't detect a loop, and instead crashes with a segmentation fault.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/37449385-parser-does-not-handle-recursive-includes?utm_campaign=plugin&utm_content=tracker%2F483345&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F483345&utm_medium=issues&utm_source=github).

chmeeedalf avatar Aug 31 '16 13:08 chmeeedalf

I cannot reproduce it. When I create a recursive include ucl parser correctly produces the following error:

Error occurred (phase 1): maximum include nesting limit is reached: 17

vstakhov avatar Oct 03 '16 16:10 vstakhov