Closed JarLob closed 6 years ago
@JarLob awesome find. I'll tinker with this and see if it resolves the issue.
@meadisu27 Do you know if this is corrected in the latest version about to be pushed?
@ejohn20 No I don't believe it is. The release candidate still needs the VS2015 combatibility issues merged in. Can squeeze this in as well.
I'm debugging this now. Definitely was the root of the issue. I'm going to put a check in the loop to prevent it at that layer. I also like the idea of a timeout as @JarLob describes above to prevent the analyzers from hosing up the build as well.
OK - patch fix in flight. This will be in the 2.x version of the open source package to be released shortly.
Deployed in 1.0.7 release this morning.
It might be the cause of https://github.com/pumasecurity/puma-scan/issues/39 because I found it running the same project. There is no
break
at the end ofwhile(true)
inGetParentLocalDeclarationStatement
as it is inSymbolInheritsFrom
. This causes an eternal loop when an item is notnull
, notLocalDeclarationStatementSyntax
and doesn't have a parent.May I suggest also adding something similar to snippet below to prevent it in the future: