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

Invalid configuration for java/io/File#createTempFile in java-net.txt #328

Closed
topolik opened this issue Aug 16, 2017 · 0 comments
Closed

Comments

@topolik
Copy link
Member

topolik commented Aug 16, 2017

The methods are static so there is no "this" object on the stack to be mutated.

java/io/File.createTempFile(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;:0,1#2,3
java/io/File.createTempFile(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;:0,1,2#3,4

Throws:

Out of bounds mutables in com.liferay.portal.kernel.process.ProcessExecutor$SubprocessReactor.call()Lcom/liferay/portal/kernel/process/ProcessCallable
java.lang.AssertionError: Out of bounds mutables in com.liferay.portal.kernel.process.ProcessExecutor$SubprocessReactor.call()Lcom/liferay/portal/kernel/process/ProcessCallable;
	at com.h3xstream.findsecbugs.taintanalysis.TaintFrameModelingVisitor.transferTaintToMutables(TaintFrameModelingVisitor.java:589)
	at com.h3xstream.findsecbugs.taintanalysis.TaintFrameModelingVisitor.visitInvoke(TaintFrameModelingVisitor.java:407)
	at com.h3xstream.findsecbugs.taintanalysis.TaintFrameModelingVisitor.visitINVOKESTATIC(TaintFrameModelingVisitor.java:296)
topolik added a commit to topolik/find-sec-bugs that referenced this issue Aug 16, 2017
topolik added a commit to topolik/find-sec-bugs that referenced this issue Aug 16, 2017
Also show full configuration line with method and type signature so that it's easier to find and fix in defintion files
topolik added a commit to topolik/find-sec-bugs that referenced this issue Aug 16, 2017
Copy & Paste issue probably, stack doesn't contain "this" object (and "new" copy as in <init>)
topolik added a commit to topolik/find-sec-bugs that referenced this issue Aug 16, 2017
Also show full configuration line with method and type signature so that it's easier to find and fix in defintion files
h3xstream added a commit that referenced this issue Aug 17, 2017
Fix java/io/File#createTempFile #328
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants