[LTP] [PATCH] nm01: fix regex matching internal symbols

Petr Vorel pvorel@suse.cz
Sun May 10 10:21:51 CEST 2020


> Current regex matches any word character followed by space
> and one of letters "abdft". So it doesn't match only symbol type,
> but can match for example value and size:
>   $ grep "\w [a,b,d,f,t]" nm.out
>   __libc_csu_init T 10000640 b4
>                    matches ^ ^

> Signed-off-by: Jan Stancek <jstancek@redhat.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Good catch, Jan.

Kind regards,
Petr


More information about the ltp mailing list