This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
A suspicious use of an incrementer in for loop #33
Comments
Indeed, this looks suspicious. How did you find that error? Just by accident? Have you tested the method where it is used? |
I used a static analysis tool. Then, after reading the source code file, I found that it is quite suspicious as the loop was only one using inconsistent incrementers compared to that in other methods. I have not tested the method. Sorry for it. |
No worries. Thanks for finding that issue. |
No, I'm just a researcher who wants to develop useful tools for developers. I was implementing my own static analysis tool that provides less (hopefully no) false positive results. Thanks! |
fredg02
added a commit
to fredg02/windowtester
that referenced
this issue
Feb 9, 2017
"A suspicious use of an incrementer in for loop"
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
I've found a suspicious use of an incrementer in the recent snapshot.
(Path: com.windowtester.swt.runtime/src/com/windowtester/runtime/swt/internal/finder/eclipse/views/ViewExplorer.java)
In Line 57, should views[i] be views[j]? I have no idea if categories.length is same as views.length so just report the issue.
Thanks!
The text was updated successfully, but these errors were encountered: