shahshalin91 / rough-auditing-tool-for-security

Automatically exported from code.google.com/p/rough-auditing-tool-for-security
GNU General Public License v2.0
0 stars 0 forks source link

Segmentation Fault under cygwin rats v2.3 #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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