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 #1832

Closed
wants to merge 1 commit into from
Closed

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

wants to merge 1 commit into from

Conversation

gozzy
Copy link
Contributor

@gozzy gozzy commented Feb 3, 2016

Reworked #1831.

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

Suricata crashed when variable referred to itself.
For instance, if one declared HOME_NET as !$HOME_NET
or created a looped chain of variables.
TAILQ_ENTRY(ResolvedVariable_) next;
} ResolvedVariable;

static TAILQ_HEAD(, ResolvedVariable_) resolved_variables_list =
Copy link
Contributor

Choose a reason for hiding this comment

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

if no one outside of DetectAddressParse2 accesses this list, can we move it into DetectAddressParse2? Saves us a global.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants