Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aff6b6c

Browse filesBrowse files
committed
[spelling] constaint -> constraint
1 parent 4b495ad commit aff6b6c
Copy full SHA for aff6b6c

File tree

Expand file treeCollapse file tree

1 file changed

+5
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-6
lines changed

‎pyt/vulnerabilities/vulnerabilities.py

Copy file name to clipboardExpand all lines: pyt/vulnerabilities/vulnerabilities.py
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,12 @@ def how_vulnerable(
359359

360360
def get_tainted_node_in_sink_args(
361361
sink_args,
362-
nodes_in_constaint
362+
nodes_in_constraint
363363
):
364364
if not sink_args:
365365
return None
366366
# Starts with the node closest to the sink
367-
for node in nodes_in_constaint:
367+
for node in nodes_in_constraint:
368368
if node.left_hand_side in sink_args:
369369
return node
370370

@@ -398,19 +398,18 @@ def get_vulnerability(
398398
Returns:
399399
A Vulnerability if it exists, else None
400400
"""
401-
nodes_in_constaint = [secondary for secondary in reversed(source.secondary_nodes)
401+
nodes_in_constraint = [secondary for secondary in reversed(source.secondary_nodes)
402402
if lattice.in_constraint(secondary,
403403
sink.cfg_node)]
404-
nodes_in_constaint.append(source.cfg_node)
405-
404+
nodes_in_constraint.append(source.cfg_node)
406405
if sink.trigger.all_arguments_propagate_taint:
407406
sink_args = get_sink_args(sink.cfg_node)
408407
else:
409408
sink_args = get_sink_args_which_propagate(sink, sink.cfg_node.ast_node)
410409

411410
tainted_node_in_sink_arg = get_tainted_node_in_sink_args(
412411
sink_args,
413-
nodes_in_constaint,
412+
nodes_in_constraint,
414413
)
415414

416415
if tainted_node_in_sink_arg:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.