From b969d16b2986a491eb37706e09da888d9914a7dd Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 3 Sep 2009 12:31:21 -0700 Subject: [PATCH] Escape literal '.'s in regular expressions * dwflpp.cxx (dwflpp::build_blacklist): Escape '.'s in filenames. --- dwflpp.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dwflpp.cxx b/dwflpp.cxx index 04561d3c7..2437630e2 100644 --- a/dwflpp.cxx +++ b/dwflpp.cxx @@ -2376,15 +2376,15 @@ dwflpp::build_blacklist() blsection += "|\\.meminit\\."; blsection += "|\\.memexit\\."; - blfile += "kernel/kprobes.c"; // first alternative, no "|" - blfile += "|arch/.*/kernel/kprobes.c"; + blfile += "kernel/kprobes\\.c"; // first alternative, no "|" + blfile += "|arch/.*/kernel/kprobes\\.c"; // Older kernels need ... - blfile += "|include/asm/io.h"; - blfile += "|include/asm/bitops.h"; + blfile += "|include/asm/io\\.h"; + blfile += "|include/asm/bitops\\.h"; // While newer ones need ... - blfile += "|arch/.*/include/asm/io.h"; - blfile += "|arch/.*/include/asm/bitops.h"; - blfile += "|drivers/ide/ide-iops.c"; + blfile += "|arch/.*/include/asm/io\\.h"; + blfile += "|arch/.*/include/asm/bitops\\.h"; + blfile += "|drivers/ide/ide-iops\\.c"; // XXX: it would be nice if these blacklisted functions were pulled // in dynamically, instead of being statically defined here. -- 2.43.5