get_plugin_info tool SIGSEGV on bad arguments
Closed this issue · 4 comments
jchabod commented
In file C/plugins/utils/get_plugin_info.cpp
, The application will SIGSEGV in ARGC=2,
Replace
if (argc<2)
by
if (argc<3)
MarkRiddoch commented
Thanks for raising this. I will get this seen fixed.
jchabod commented
Note:
As the prgram only work for "plugin_init" function, Isn't ist better to remove second argument and make it hard-coded?
Anyway, this clearly is a very minor fix...
Regards.
MarkRiddoch commented
A fix for this is now in the develop branch. Also the function has been made an optional argument. This will be released in the next patch release, 2.0.1.
ashish-jabble commented
Fixed in PR-#833 and available onwards v2.0.1