Taint analysis was interrupted because of an unexpected error

Hello,

I am getting the following error on taint analysis:

[INFO] 0 / 774 UCFGs simulated, memory usage: 1052 MB
[INFO] 600 / 774 UCFGs simulated, memory usage: 701 MB
[ERROR] Taint analysis was interrupted because of an unexpected error.
java.lang.IllegalArgumentException: 63 is not a valid line offset for pointer. File src/main/java/**mask**.java has 11 character(s) at line 98
	at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.checkValid(DefaultInputFile.java:343)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:276)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:292)
	at com.sonar.security.I.U.A(na:2759)
	at com.sonar.security.I.U.A(na:3374)
	at java.base/java.util.HashMap.forEach(Unknown Source)
	at com.sonar.security.I.U.A(na:1993)
	at com.sonar.security.I.U.A(na:624)
	at com.sonar.security.I.U.A(na:1886)

I’ve removed the class package and name and the error line 98 is in the below screenshot:

Environment:
JAVA 17
Maven sonar plugin 0.8.12

Regards,
Yogesh

Hello and welcome on the community forum.

Thanks you for reporting this issue, I have identified the problem and have created a ticket to fix this issue.

I will update this thread once the related issues has been fixed.

Thanks again for your post !

Kind regards,

-Christophe

Hello Yogesh,

The fix for the problem you’ve reported was fixed and deployed on SonarQube Cloud earlier this week.

You should be able to scan your project without the error anymore.

Kind regards,

-Christophe

2 Likes

Thank you Christophe!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.