mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Python: Highlight problem picking DataFlow::Node for Assign
This commit is contained in:
@@ -646,8 +646,9 @@ module AiohttpWebModel {
|
||||
|
||||
AiohttpResponseCookieSubscriptWrite() {
|
||||
exists(Assign assign, Subscript subscript |
|
||||
// there doesn't seem to be any _good_ choice for `this`, so just picking the
|
||||
// whole subscript...
|
||||
// Since there is no `DataFlow::Node` for the assign (since it's a statement,
|
||||
// and not an expression) there doesn't seem to be any _good_ choice for `this`,
|
||||
// so just picking the whole subscript...
|
||||
this.asExpr() = subscript
|
||||
|
|
||||
assign.getATarget() = subscript and
|
||||
|
||||
@@ -1413,8 +1413,9 @@ private module PrivateDjango {
|
||||
|
||||
DjangoResponseCookieSubscriptWrite() {
|
||||
exists(Assign assign, Subscript subscript, DataFlow::AttrRead cookieLookup |
|
||||
// there doesn't seem to be any _good_ choice for `this`, so just picking the
|
||||
// whole subscript...
|
||||
// Since there is no `DataFlow::Node` for the assign (since it's a statement,
|
||||
// and not an expression) there doesn't seem to be any _good_ choice for `this`,
|
||||
// so just picking the whole subscript...
|
||||
this.asExpr() = subscript
|
||||
|
|
||||
cookieLookup.getAttributeName() = "cookies" and
|
||||
|
||||
Reference in New Issue
Block a user