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

Segfault when input is incorrect #69

Open
federicoemartinez opened this issue Mar 5, 2020 · 0 comments
Open

Segfault when input is incorrect #69

federicoemartinez opened this issue Mar 5, 2020 · 0 comments

Comments

@federicoemartinez
Copy link

I have tried to encode this file:

Main {
DsPacketClass
{
ClassifierRef 1;
ServiceFlowRef 1;
RulePriority 0;
ActivationState 1;
IpPacketClassifier {
IpSrcAddr 127.0.0.1;
}
LLCPacketClassifier {
EtherType 00257;
}
}
}

I would expect it to fail with an error, but I get segfault. I think the problem comes for the fact that the parsers put a number in yylval->intval and then the function to process an hexstring is called, which expects the value in yylval->strval;

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

No branches or pull requests

1 participant