pawelchcki / semicomplete

Automatically exported from code.google.com/p/semicomplete
0 stars 0 forks source link

discogrok enters endless loop while parsing commandline arguments and later while parsing data. #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run discogrok

What is the expected output? What do you see instead?

Discogrok enters a endlessloop while parsing commandline arguments to fix 

change line 81 to:

  while ((opt = getopt_long_only(argc, argv, "hp:v", options, NULL)) != -1) {

What version of the product are you using? 
grok-1.20110708.1

On what operating system?
FreeBSD 8.0-RC3 

Please provide any additional information below.
after fix discogrok enters a new endless loop this is the output

[78230] [discover] [grok_discover:116] 7250: Round starting
[78230] [discover] [grok_discover:117] 7250: String: Sep 23 12:42:47 <2.6> mx2 
postfix/smtpd[43385]: NOQUEUE: reject: RCPT from unknown[41.230.227.1]: 554 
5.7.1 Service unavailable; Client host [41.230.227.1] blocked using 
zen.spamhaus.org; http://www.spamhaus.org/query/bl?ip=41.230.227.1; 
from=<0-0-0-0-ludy@chiennes-extremes.com> to=<hksantoskei@standby.dk> 
proto=ESMTP helo=<[41.230.227.1]>
[78230] [discover] [grok_discover:118] 7249: Offset:  ^

Original issue reported on code.google.com by steffen....@gmail.com on 23 Sep 2011 at 2:00