Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Static analysis shouldn't be stopped in case of parsing error #154

Closed
WaldoFR opened this issue Sep 12, 2018 · 0 comments
Closed

Static analysis shouldn't be stopped in case of parsing error #154

WaldoFR opened this issue Sep 12, 2018 · 0 comments
Assignees

Comments

@WaldoFR
Copy link

WaldoFR commented Sep 12, 2018

Expected behavior

Static analysis shouldn't be stopped in case of parsing problem, it should be raised inside a specialized rule showing the problem.

Actual behavior

Analysis are stoped when JFlex is reaching a parsing problem, causing the analysis to crash.

Steps to reproduce behavior

Analyzing for instance non-UNIX compliant encoded files.

Detection version

3.0.1

@WaldoFR WaldoFR self-assigned this Sep 12, 2018
WaldoFR pushed a commit that referenced this issue Sep 13, 2018
@WaldoFR WaldoFR mentioned this issue Sep 13, 2018
begarco pushed a commit to begarco/i-CodeCNES that referenced this issue Jan 25, 2020
…ng problem

Modifications were made by adding a "Parsing error" rule and to raise it
on JFlexException throwing instead of making the analysis stop.
begarco pushed a commit that referenced this issue Feb 2, 2020
Modifications were made by adding a "Parsing error" rule and to raise it
on JFlexException throwing instead of making the analysis stop.
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant