From cc499d537d154ec411a340796f0d0dbd7a9efcc6 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Mon, 16 Feb 2015 15:25:29 +0100 Subject: PyLint: Remove `global` variables undefined /miasm2/os_dep/win_api_x86_32_seh.py:596: [W0601(global-variable-undefined), init_seh] Global variable 'seh_count' undefined at the module level miasm2/os_dep/win_api_x86_32_seh.py:729: [W0601(global-variable-undefined), fake_seh_handler] Global variable 'seh_count' undefined at the module level --- miasm2/os_dep/win_api_x86_32_seh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miasm2/os_dep/win_api_x86_32_seh.py b/miasm2/os_dep/win_api_x86_32_seh.py index 8075a284..e77e30d9 100644 --- a/miasm2/os_dep/win_api_x86_32_seh.py +++ b/miasm2/os_dep/win_api_x86_32_seh.py @@ -590,7 +590,7 @@ def build_fake_InLoadOrderModuleList(modules_name): all_seh_ad = dict([(x, None) for x in xrange(FAKE_SEH_B_AD, FAKE_SEH_B_AD + 0x1000, 0x20)]) # http://blog.fireeye.com/research/2010/08/download_exec_notes.html - +seh_count = 0 def init_seh(myjit): global seh_count -- cgit 1.4.1