#238 Segmentation fault on faulty input

closed-fixed
None
2015-01-03
2013-10-07
Cley Faye
No

Hi,

Using astyle on some invalid C preprocessor code cause a segmentation fault.
I understand that parsing invalid input is not a priority, but just crashing looks like a serious issue.

Using astyle v2.03:
$ more input.h
#define SOMEDEF \
#ifdef SOMEVAR \
stuff();
#endif
$ astyle -V
Artistic Style Version 2.03
$ astyle -w input.h
Segmentation fault

This is really annoying, since some editors automatically call astyle to "clean" the code when saving, and this result in truncated files.

Discussion

  • Jim Pattee

    Jim Pattee - 2013-10-09
    • status: open --> open-fixed
    • assigned_to: Jim Pattee
    • Priority: 5 --> 7
     
  • Jim Pattee

    Jim Pattee - 2013-10-09

    Fixed in SVN.

     
  • Jim Pattee

    Jim Pattee - 2013-11-05
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks