Public bug reported:

nspluginwrapper can crash if the browser gives it a NULL plugin
instance. In npw-wrapper.c, it calls "plugin_instance" lots of times and
checks if the return value is NULL - which doesn't do any good, because
plugin_instance itself dereferences its return value inside of "assert":

static inline PluginInstance *plugin_instance(NPP instance)
{
  PluginInstance *plugin = (PluginInstance *)instance->pdata;
  assert(plugin->instance == instance);
  return plugin;
}

Changing it to "assert(!plugin || plugin->instance == instance)" should
fix it.

Also, asserts probably shouldn't be enabled in release mode...

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
nspluginwrapper crash in the "plugin_instance" function
https://bugs.launchpad.net/bugs/344639
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to