File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
python/ql/src/semmle/python/frameworks Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -646,8 +646,9 @@ module AiohttpWebModel {
646
646
647
647
AiohttpResponseCookieSubscriptWrite ( ) {
648
648
exists ( Assign assign , Subscript subscript |
649
- // there doesn't seem to be any _good_ choice for `this`, so just picking the
650
- // whole subscript...
649
+ // Since there is no `DataFlow::Node` for the assign (since it's a statement,
650
+ // and not an expression) there doesn't seem to be any _good_ choice for `this`,
651
+ // so just picking the whole subscript...
651
652
this .asExpr ( ) = subscript
652
653
|
653
654
assign .getATarget ( ) = subscript and
Original file line number Diff line number Diff line change @@ -1413,8 +1413,9 @@ private module PrivateDjango {
1413
1413
1414
1414
DjangoResponseCookieSubscriptWrite ( ) {
1415
1415
exists ( Assign assign , Subscript subscript , DataFlow:: AttrRead cookieLookup |
1416
- // there doesn't seem to be any _good_ choice for `this`, so just picking the
1417
- // whole subscript...
1416
+ // Since there is no `DataFlow::Node` for the assign (since it's a statement,
1417
+ // and not an expression) there doesn't seem to be any _good_ choice for `this`,
1418
+ // so just picking the whole subscript...
1418
1419
this .asExpr ( ) = subscript
1419
1420
|
1420
1421
cookieLookup .getAttributeName ( ) = "cookies" and
You can’t perform that action at this time.
0 commit comments