mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Overlay annotation script shouldn't manage overlay[local] and overlay[global]
This commit is contained in:
@@ -27,7 +27,7 @@ def filter_out_annotations(filename):
|
|||||||
Read the file and strip all existing overlay[...] annotations from the contents.
|
Read the file and strip all existing overlay[...] annotations from the contents.
|
||||||
Return the file modified file content as a list of lines.
|
Return the file modified file content as a list of lines.
|
||||||
'''
|
'''
|
||||||
overlays = ["local", "local?", "global", "caller"]
|
overlays = ["local?", "caller"]
|
||||||
annotations = [f"overlay[{t}]" for t in overlays]
|
annotations = [f"overlay[{t}]" for t in overlays]
|
||||||
with open(filename, 'r') as file_in:
|
with open(filename, 'r') as file_in:
|
||||||
lines = [l for l in file_in if not l.strip() in annotations]
|
lines = [l for l in file_in if not l.strip() in annotations]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
overlay[local?]
|
||||||
|
module;
|
||||||
|
|
||||||
import java
|
import java
|
||||||
import semmle.code.java.dataflow.DataFlow
|
import semmle.code.java.dataflow.DataFlow
|
||||||
import semmle.code.java.dataflow.TaintTracking
|
import semmle.code.java.dataflow.TaintTracking
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
overlay[local?]
|
||||||
|
module;
|
||||||
|
|
||||||
private import java as Language
|
private import java as Language
|
||||||
private import semmle.code.java.security.InsecureRandomnessQuery
|
private import semmle.code.java.security.InsecureRandomnessQuery
|
||||||
private import semmle.code.java.security.RandomQuery
|
private import semmle.code.java.security.RandomQuery
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* A language-independent library for reasoning about cryptography.
|
* A language-independent library for reasoning about cryptography.
|
||||||
*/
|
*/
|
||||||
|
overlay[local?]
|
||||||
|
module;
|
||||||
|
|
||||||
import codeql.util.Location
|
import codeql.util.Location
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user