From 24843614ecb8bbbd148ff00f1775443725652e05 Mon Sep 17 00:00:00 2001 From: Tor Brede Vekterli Date: Thu, 27 Feb 2020 11:42:04 +0000 Subject: Use Google RE2 as underlying regex engine This introduces guaranteed upper bounds for memory usage and CPU time during regex evaluation. Most importantly, it removes the danger of catastrophic backtracking that is currrently present in GCC's std::regex implementation. With this commit, RE2 will be used instead of std::regex for: * Document selection regex/glob operators * Attribute regex search * Evaluation of mTLS authorization rules --- .../policy_checking_certificate_verifier_test.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'vespalib/src/tests/net/tls/policy_checking_certificate_verifier/policy_checking_certificate_verifier_test.cpp') diff --git a/vespalib/src/tests/net/tls/policy_checking_certificate_verifier/policy_checking_certificate_verifier_test.cpp b/vespalib/src/tests/net/tls/policy_checking_certificate_verifier/policy_checking_certificate_verifier_test.cpp index ad45c217701..a9e823bf3ab 100644 --- a/vespalib/src/tests/net/tls/policy_checking_certificate_verifier/policy_checking_certificate_verifier_test.cpp +++ b/vespalib/src/tests/net/tls/policy_checking_certificate_verifier/policy_checking_certificate_verifier_test.cpp @@ -1,11 +1,8 @@ // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include #include -#include #include #include #include -#include using namespace vespalib; using namespace vespalib::net::tls; -- cgit v1.2.3