From e0168c7becf017f2cfbee326b5b3a847c7f69e4c Mon Sep 17 00:00:00 2001 From: superponible Date: Mon, 10 Mar 2025 14:03:45 -0500 Subject: [PATCH] Potential fix for code scanning alert no. 374: Testing equality to None Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- volatility3/framework/plugins/windows/prefetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility3/framework/plugins/windows/prefetch.py b/volatility3/framework/plugins/windows/prefetch.py index 3997bc012..30642b269 100644 --- a/volatility3/framework/plugins/windows/prefetch.py +++ b/volatility3/framework/plugins/windows/prefetch.py @@ -74,7 +74,7 @@ def prefix_code_tree_add_leaf(treeNodes: List[PREFIX_CODE_NODE], leafIndex: int, while bits > 1: bits -= 1 childIndex = (mask >> bits) & 1 - if node.child[childIndex] == None: + if node.child[childIndex] is None: node.child[childIndex] = treeNodes[i] treeNodes[i].leaf = False i += 1