Skip to content

Commit

Permalink
Fix crash reported by KillerInstinct
Browse files Browse the repository at this point in the history
  • Loading branch information
spender-sandbox committed Oct 5, 2016
1 parent 5b4a3b2 commit 0143581
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hook_special.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,11 @@ HOOKDEF_NOTAIL(WINAPI, JsEval,
#else

p = (PUCHAR)scriptobj[4 * Index - 2];
jsbuf = *(PWCHAR *)(p + 8);
if (jsbuf)
LOQ_ntstatus("browser", "u", "Javascript", jsbuf);
if (p) {
jsbuf = *(PWCHAR *)(p + 8);
if (jsbuf)
LOQ_ntstatus("browser", "u", "Javascript", jsbuf);
}

return ret;
#endif
Expand Down

0 comments on commit 0143581

Please sign in to comment.