docsis icon indicating copy to clipboard operation
docsis copied to clipboard

Segfault when input is incorrect

Open federicoemartinez opened this issue 4 years ago • 0 comments

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;

federicoemartinez avatar Mar 05 '20 21:03 federicoemartinez