CodeIntelligenceTesting / jazzer

Coverage-guided, in-process fuzzing for the JVM
https://code-intelligence.com
Other
1.03k stars 137 forks source link

runtime: Fix ClassCastException for primitive `compare` calls #792

Closed fmeum closed 1 year ago

fmeum commented 1 year ago

Previously, calls to {Byte,Short}.compare{Unsigned,} resulted in exceptions such as the following:

java.lang.ClassCastException: class java.lang.Short cannot be cast to class java.lang.Integer (java.lang.Short and java.lang.Integer are in module java.base of loader 'bootstrap')
    at com.code_intelligence.jazzer.runtime.TraceCmpHooks.integerCompare(TraceCmpHooks.java:40)
        ...

Fixes #790