Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG #1689: fix stack overflow when parsing variables #1902

Closed
wants to merge 1 commit into from
Closed

BUG #1689: fix stack overflow when parsing variables #1902

wants to merge 1 commit into from

Conversation

gozzy
Copy link
Contributor

@gozzy gozzy commented Mar 4, 2016

Reworked #1832

Suricata crashed when variable (either address or port) referred to itself. For instance, if one declared HOME_NET as !$HOME_NET or created a looped chain of variables.

Suricata crashed when variable (either address or port)
referred to itself. For instance, if one declared HOME_NET
as !$HOME_NET or created a looped chain of variables.
@@ -1453,7 +1477,8 @@ int DetectAddressParse(const DetectEngineCtx *de_ctx,
goto error;
}

r = DetectAddressParse2(de_ctx, gh, ghn, str, /* start with negate no */0);
printf("CHECK PORTS\n");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug left over

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn it :)

@inliniac
Copy link
Contributor

inliniac commented Mar 4, 2016

I like this implementation a lot more, nice work.

@gozzy gozzy closed this Mar 4, 2016
@gozzy gozzy deleted the recursive_var_fix5 branch March 4, 2016 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants