michitomo/rough-auditing-tool-for-security

Segmentation Fault under cygwin rats v2.3

Opened this issue · 2 comments

What steps will reproduce the problem?
1. $ rats -w 3
2. seg fault

What is the expected output? What do you see instead?
Should not seg fault

What version of the product are you using? On what operating system?
2.3 cygwin windows 7

Please provide any additional information below.
also segfaults on "rats --version". Looks like it's a problem parsing command 
line options.

Original issue reported on code.google.com by gavinswa...@gmail.com on 20 May 2013 at 11:43

Hi, actually rats segfault for all long argument that does not exist.

The array long_options, the fourth parameter of getopt_long, must be terminated 
with all fields to 0.

The patch to fix this issue is attached to this comment.

Original comment by inceax64 on 2 Jul 2013 at 3:41

Attachments:

Looks like this should be closed now, since it appears the patch was applied.

Original comment by gavinswa...@gmail.com on 20 Feb 2014 at 8:50