From d11a93604349744b161650e9e4914f750e40dd4a Mon Sep 17 00:00:00 2001 From: David Major Date: Tue, 15 Apr 2014 11:40:42 +1200 Subject: [PATCH] Bug 973138: Block DLLs that match the MovieMode pattern. r=bsmedberg --- mozglue/build/WindowsDllBlocklist.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mozglue/build/WindowsDllBlocklist.cpp b/mozglue/build/WindowsDllBlocklist.cpp index 8da5b819e58c..f56b348080af 100644 --- a/mozglue/build/WindowsDllBlocklist.cpp +++ b/mozglue/build/WindowsDllBlocklist.cpp @@ -512,6 +512,17 @@ patched_LdrLoadDll (PWCHAR filePath, PULONG flags, PUNICODE_STRING moduleFileNam printf_stderr("LdrLoadDll: dll name '%s'\n", dllName); #endif + // Block a suspicious binary that uses various 12-digit hex strings + // e.g. MovieMode.48CA2AEFA22D.dll (bug 973138) + char * dot = strchr(dllName, '.'); + if (dot && (strchr(dot+1, '.') == dot+13)) { + char * end = nullptr; + _strtoui64(dot+1, &end, 16); + if (end == dot+13) { + return STATUS_DLL_NOT_FOUND; + } + } + // then compare to everything on the blocklist info = &sWindowsDllBlocklist[0]; while (info->name) {