You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix regex injection hook invocation for String functions
Fixes the incorrect invocation of the MethodHandle in the case where the
regex injection hook is applied to a String function, which do require
passing in the this object:
== Java Exception: java.lang.invoke.WrongMethodTypeException: cannot convert MethodHandle(String,String,String)String to (Object,Object)Object
at java.base/java.lang.invoke.MethodHandle.asTypeUncached(MethodHandle.java:881)
at java.base/java.lang.invoke.MethodHandle.asType(MethodHandle.java:866)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:729)
at com.code_intelligence.jazzer.sanitizers.RegexInjection.hookInternal(RegexInjection.kt:126)
at com.code_intelligence.jazzer.sanitizers.RegexInjection.patternHook(RegexInjection.kt:101)
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45246
0 commit comments