From 28172e2ceaf670511dbbbc2cef3e7b439329ea84 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 20 Sep 2018 21:36:15 -0400 Subject: [PATCH] improve v8 hook --- vnrhook/engine/engine.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/vnrhook/engine/engine.cc b/vnrhook/engine/engine.cc index be0f8bd..8d000ed 100644 --- a/vnrhook/engine/engine.cc +++ b/vnrhook/engine/engine.cc @@ -10173,6 +10173,7 @@ void SpecialHookV8String(DWORD dwDatabase, HookParam* hp, BYTE, DWORD* data, DWO DWORD strPtr = *(DWORD*)ecx; *data = strPtr + 0xb; *len = *(short*)(strPtr + 7); + if (*len < 12) *len = 0; // To ensure this is caught by cyclic repetition detection, only send with 6+ wide chars //*split = *(DWORD*)((BYTE*)hp->split + dwDatabase); }