Fix variable suppression name_not_regex.

Kernel symbol whitelisting symbol is implemented using a regex to
suppress all function and variable names that don't match the given
list. This was completely broken for variables, resulting in all
variables being filtered out if a kernel whitelist was specified.

	* src/abg-suppression-priv.h: In get_symbol_name_not_regex
	method of variable_suppression::priv, fix typo causing
	miscompilation of regex.

Signed-off-by: Giuliano Procida <gprocida@google.com>
This commit is contained in:
Giuliano Procida 2020-04-14 19:38:13 +01:00 committed by Dodji Seketeli
parent 254cafb7d7
commit 9e5ca9c074

View File

@ -680,7 +680,7 @@ struct variable_suppression::priv
{
sptr_utils::regex_t_sptr r = sptr_utils::build_sptr<regex_t>();
if (regcomp(r.get(), symbol_name_not_regex_str_.c_str(),
REG_EXTENDED == 0) == 0)
REG_EXTENDED) == 0)
symbol_name_not_regex_ = r;
}
return symbol_name_not_regex_;