Overview Description: When Java-Implemented Plugin try to invoke the newStream(MimeType,target) method of PlugletInstancePeer object with some of arguments equals to null,then Mozilla crashes. Steps to reproduce: In initialize method of pluglet instance of any pluglet try to invoke method PlugletInstancePeer.newStream with first or second argument equals to null. Actual Results: The crash message, similar to: "The instruction at "0x12345678" referenced memory at "0x00000000"".Mozilla's abnormal termination. Expected Results: Mozilla shouldn't crash on any pluglet's action. Build Date & Platform Bug Found: Bug reproduced on Windows NT4.0. Currently pluglets doesn't work on other platforms, so can't check any more. The sources of build from 10.27.99
The reason of this bug is : we do not check for NULL in native method implementation So, env->GetStringUTFChars(_target,NULL) in case _target == NULL, crashes mozilla. -- Suggested fix: Return NULL in the event of NULL argument.
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
Adding crash keyword
Verified with Mozilla 0.9.5 (Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.5+) Gecko/20011030). Mozilla do not crashed.
Status: RESOLVED → VERIFIED
Component: Java-Implemented Plugins → Java-Implemented Plugins
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.