Files
codeql/python/ql/examples/snippets/store_none.ql
2019-08-08 10:55:45 +01:00

19 lines
385 B
Plaintext

/**
* @id py/examples/store-none
* @name Store None to collection
* @description Finds places where `None` is used as an index when storing to a collection
* @tags None
* parameter
* argument
* collection
* add
*/
import python
from SubscriptNode store
where
store.isStore() and
store.getIndex().pointsTo(Value::named("None"))
select store