mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
added casting
This commit is contained in:
@@ -16,5 +16,5 @@ import semmle.code.xml.AndroidManifest
|
||||
from AndroidApplicationXmlElement androidAppElem
|
||||
where
|
||||
androidAppElem.isDebuggable() and
|
||||
not androidAppElem.getFile().isInBuildDirectory()
|
||||
not androidAppElem.getFile().(AndroidManifestXmlFile).isInBuildDirectory()
|
||||
select androidAppElem.getAttribute("debuggable"), "The 'android:debuggable' attribute is enabled."
|
||||
|
||||
@@ -11,7 +11,7 @@ class DebuggableAttributeEnabledTest extends InlineExpectationsTest {
|
||||
tag = "hasDebuggableAttributeEnabled" and
|
||||
exists(AndroidApplicationXmlElement androidAppElem |
|
||||
androidAppElem.isDebuggable() and
|
||||
not androidAppElem.getFile().isInBuildDirectory()
|
||||
not androidAppElem.getFile().(AndroidManifestXmlFile).isInBuildDirectory()
|
||||
|
|
||||
androidAppElem.getAttribute("debuggable").getLocation() = location and
|
||||
element = androidAppElem.getAttribute("debuggable").toString() and
|
||||
|
||||
Reference in New Issue
Block a user