nimble-code / Cobra

An interactive (fast) static source code analyzer
139 stars 31 forks source link

Segmentation fault in 3.5 but not in 3.1 #16

Closed keck-in-space closed 3 years ago

keck-in-space commented 3 years ago

Hello,

I am seeing a Segmentation fault (core dumped) error in Cobra 3.5 that isn't present in 3.1.

This only occurs for two rulesets -- MISRA 1997 and MISRA 2004.

misra1997

:m97_rule82
eval: '(.txt != } || .curly > 1)'
:m97_rule83
Segmentation fault (core dumped)

misra2004

:m04_rule16.5
:m04_rule16.8
Segmentation fault (core dumped)

The other included rulesets run without issue.

nimble-code commented 3 years ago

thanks for reporting. will check it and fix

nimble-code commented 3 years ago

fixed