diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-05-22 18:33:28 +0200 |
|---|---|---|
| committer | serpilliere <fabrice.desclaux@cea.fr> | 2015-05-24 20:54:08 +0200 |
| commit | d4415735882b108bdc8b272230868c6280495c24 (patch) | |
| tree | 8a4ab5a52e2de4c4eefffbd767ad4577a8af1bf9 | |
| parent | f69ba70ca17155de58811b10f52b4c011865a21d (diff) | |
| download | miasm-d4415735882b108bdc8b272230868c6280495c24.tar.gz miasm-d4415735882b108bdc8b272230868c6280495c24.zip | |
Win_api: fix getprocaddr bad ptr tuncation
| -rw-r--r-- | miasm2/os_dep/win_api_x86_32.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/os_dep/win_api_x86_32.py b/miasm2/os_dep/win_api_x86_32.py index 075663f2..913a63cf 100644 --- a/miasm2/os_dep/win_api_x86_32.py +++ b/miasm2/os_dep/win_api_x86_32.py @@ -913,7 +913,7 @@ def kernel32_LoadLibraryExA(jitter): def kernel32_GetProcAddress(jitter): ret_ad, args = jitter.func_args_stdcall(["libbase", "fname"]) # Ensure high-order WORD is 0 - fname = args.fname & 0xFFFFFFFF + fname = args.fname if fname < 0x10000: fname = fname else: |