diff options
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index ae698c3..c1796ac 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -322,6 +322,9 @@ int plugin_load(const char* plugin, void* parameter) splash(HZ*2, true, buf); return fd; } + + /* zero out plugin buffer to ensure a properly zeroed bss area */ + memset(pluginbuf, 0, PLUGIN_BUFFER_SIZE); plugin_start = (void*)&pluginbuf; plugin_size = read(fd, plugin_start, PLUGIN_BUFFER_SIZE); |