Menu

#616 Segmentation fault on simple input

0.62
fixed
crash (6)
C++
3
2015-02-08
2015-01-22
Sean Ahern
No

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.

1 Attachments

Discussion

  • Sean Ahern

    Sean Ahern - 2015-01-22

    I found the single configuration line that causes the problem:

    mod_full_brace_if_chain=true

     
  • Sean Ahern

    Sean Ahern - 2015-01-23

    This is with version 0.61.

     
  • Ben Gardner

    Ben Gardner - 2015-02-08

    Fixed in commit 5bfa273.

     
  • Ben Gardner

    Ben Gardner - 2015-02-08
    • labels: --> crash
    • status: open --> fixed
    • assigned_to: Ben Gardner
    • Language: --> C++
    • Group: Future --> 0.62