module: increase dirs array size by one
With the module upgrades code change, the statically sized dirs array can now overflow. Increase it's size by one, according to the new maximum possible usage. Fixes: bd83c861c0 ("modules: load modules from versioned /var/run dir") Signed-off-by: Bruce Rogers <brogers@suse.com> Message-Id: <20200411010746.472295-1-brogers@suse.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d489ae4ac5
commit
267514b33f
@ -177,7 +177,7 @@ bool module_load_one(const char *prefix, const char *lib_name)
|
||||
char *version_dir;
|
||||
#endif
|
||||
const char *search_dir;
|
||||
char *dirs[4];
|
||||
char *dirs[5];
|
||||
char *module_name;
|
||||
int i = 0, n_dirs = 0;
|
||||
int ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user