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

False positive on COM.DATA.Invariant rule #183

Open
labeyrb opened this issue Jan 8, 2020 · 1 comment
Open

False positive on COM.DATA.Invariant rule #183

labeyrb opened this issue Jan 8, 2020 · 1 comment

Comments

@labeyrb
Copy link

labeyrb commented Jan 8, 2020

Expected behavior

  • A declaration for a constant integer variable (NBW) should not raise a COM.DATA.Invariant violation.
  • A declaration of a variable (DATE) inside a loop shoud not raise a COM.DATA.Invariant

Actual behavior

The following scripts
image
image

raise the following results in i-Code
image
image

Steps to reproduce behavior

Detection version

3.0

@leleur
Copy link

leleur commented Jun 9, 2021

Thises falses positives are still present in the version 4.0 of i-code.

I add the repeated case of the variable "user"

comdatainvariant
comdatainvariant1

.

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

No branches or pull requests

3 participants