Uncrustify segfaults when given a simple conditional.
% echo "if (true) { foo(); }" | uncrustify -l cpp
Parsing: 21 bytes (21 chars) from stdin as language CPP
[1] 1068 done echo "if (true) { foo(); }" |
1069 segmentation fault (core dumped) uncrustify -l cpp
I've attached the config file.
I found the single configuration line that causes the problem:
mod_full_brace_if_chain=true
This is with version 0.61.
Fixed in commit 5bfa273.