==================================================================================== # # this file has been created for the Lame patcher program available for both *nix # and Windows platforms. # You need this program for continuing the patching of your files: # # http://aluigi.org/mytoolz.htm#lpatch # # Quick step-by-step for Windows: # - launch lpatch.exe # - select this swat4x1fix.lpatch file # - read the message windows and click yes # - select the file (usually executables or dlls) to patch # - read the message windows to know if everything has been patched correctly # - test your game TITLE SWAT 4 1.1 NULL pointers fix 0.1 by Luigi Auriemma e-mail: aluigi@autistici.org web: aluigi.org INTRO This unofficial patch for SWAT 4 is able to fix the bug A described here: . . http://aluigi.org/adv/swat4x-adv.txt . If you are unsure if your server is vulnerable please use the proof-of-concept provided there. . The patch is available only for version 1.1 of the dedicated server, older versions will be NOT supported by me so don't ask. FILE core.dll # fixes 4 functions, so could prevent other unknown NULL pointers BYTES_ORIGINAL CC CC CC CC CC CC CC CC 56 ; PUSH ESI 57 ; PUSH EDI 8B 7C 24 0C ; MOV EDI,DWORD PTR SS:[ESP+C] 8B F1 ; MOV ESI,ECX 3B F7 ; CMP ESI,EDI 74 36 ; JE SHORT Core.1011BC52 8B 47 04 ; MOV EAX,DWORD PTR DS:[EDI+4] BYTES_PATCH 8B F1 ; MOV ESI,ECX 85 FF ; TEST EDI,EDI 74 44 ; JE SHORT Core.1011BC52 EB 08 ; JMP SHORT Core.1011BC18 ?? ?? ?? ?? ?? ?? EB F0 ; JMP SHORT Core.1011BC08 ====================================================================================