github-advanced-security[bot] commented on code in PR #2834:
URL: https://github.com/apache/groovy/pull/2834#discussion_r3888413775


##########
src/main/java/groovy/lang/GroovyClassLoader.java:
##########
@@ -760,6 +765,23 @@
         return cls;
     }
 
+    /**
+     * True only when a {@code .class} resource exists and decompiles to a
+     * different binary name. Missing or unreadable resources are not a
+     * confirmed mismatch: the linking {@link NoClassDefFoundError} is kept.
+     */
+    private boolean isConfirmedBytecodeNameMismatch(final String name) {
+        URL resource = getResource(name.replace('.', '/') + ".class");

Review Comment:
   ## CodeQL / Uncontrolled data used in path expression
   
   This path depends on a [user-provided value](1).
   
   [Show more 
details](https://github.com/apache/groovy/security/code-scanning/279)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to