Re: RFA: Fail gracefully when registering info for an unknown plugin

2016-10-24 Thread Jeff Law
On 10/20/2016 08:19 AM, Nick Clifton wrote: Hi Guys, Whilst experimenting with writing a plugin for gcc I discovered that I could cause a segfault if I attempted to register a PLUGIN_INFO callback with any name other than the name of the plugin. The attached patch fixes this problem and

RFA: Fail gracefully when registering info for an unknown plugin

2016-10-20 Thread Nick Clifton
Hi Guys, Whilst experimenting with writing a plugin for gcc I discovered that I could cause a segfault if I attempted to register a PLUGIN_INFO callback with any name other than the name of the plugin. The attached patch fixes this problem and produces an error message instead. OK to