fuzz: Remove unnecessary calls to set plugin dirs
All the plugins are linked statically into the binaries, so there is no reason to set the directories that are only required when loading them from files.
This commit is contained in:
+1
-2
@@ -7,8 +7,7 @@ AM_CPPFLAGS = @CPPFLAGS@ \
|
||||
-I$(top_srcdir)/src/libtpmtss \
|
||||
-I$(top_srcdir)/src/libtnccs \
|
||||
-I$(top_srcdir)/src/libtnccs/plugins/tnccs_20 \
|
||||
-I$(top_srcdir)/src/libradius \
|
||||
-DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\""
|
||||
-I$(top_srcdir)/src/libradius
|
||||
|
||||
fuzz_cppflags_def = ${AM_CPPFLAGS} \
|
||||
-DPLUGINS="\"${fd_plugins}\""
|
||||
|
||||
@@ -24,7 +24,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
|
||||
|
||||
dbg_default_set_level(-1);
|
||||
library_init(NULL, "fuzz_certs");
|
||||
plugin_loader_add_plugindirs(PLUGINDIR, PLUGINS);
|
||||
if (!lib->plugins->load(lib->plugins, PLUGINS))
|
||||
{
|
||||
return 1;
|
||||
|
||||
@@ -24,7 +24,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
|
||||
|
||||
dbg_default_set_level(-1);
|
||||
library_init(NULL, "fuzz_crls");
|
||||
plugin_loader_add_plugindirs(PLUGINDIR, PLUGINS);
|
||||
if (!lib->plugins->load(lib->plugins, PLUGINS))
|
||||
{
|
||||
return 1;
|
||||
|
||||
@@ -24,7 +24,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
|
||||
|
||||
dbg_default_set_level(-1);
|
||||
library_init(NULL, "fuzz_ocsp_req");
|
||||
plugin_loader_add_plugindirs(PLUGINDIR, PLUGINS);
|
||||
if (!lib->plugins->load(lib->plugins, PLUGINS))
|
||||
{
|
||||
return 1;
|
||||
|
||||
@@ -24,7 +24,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
|
||||
|
||||
dbg_default_set_level(-1);
|
||||
library_init(NULL, "fuzz_ocsp_rsp");
|
||||
plugin_loader_add_plugindirs(PLUGINDIR, PLUGINS);
|
||||
if (!lib->plugins->load(lib->plugins, PLUGINS))
|
||||
{
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user