Skip to content

Segfault when input is incorrect #69

@federicoemartinez

Description

@federicoemartinez

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions