mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-26 06:38:00 +00:00
Fix windows symbol converter blacklisting.
- Was attempting "full match" when we meant to do "partial match". Change-Id: Ia748a7fc8707e11f44c205e57f218f5f4bbc5612 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1676936 Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
This commit is contained in:
parent
e1b5fef027
commit
b62101dead
1 changed files with 3 additions and 2 deletions
|
@ -276,11 +276,12 @@ static bool SendFetchFailedPing(const wstring &fetch_symbol_failure_url,
|
|||
// external request unless the symbol file's debug_file string matches
|
||||
// the given blacklist regular expression.
|
||||
// The debug_file name is used from the MissingSymbolInfo struct,
|
||||
// matched against the PCRE blacklist_regex.
|
||||
// matched against the blacklist_regex.
|
||||
static bool SafeToMakeExternalRequest(const MissingSymbolInfo &missing_info,
|
||||
std::regex blacklist_regex) {
|
||||
string file_name = missing_info.debug_file;
|
||||
if (std::regex_match(file_name, blacklist_regex)) {
|
||||
// Use regex_search because we want to match substrings.
|
||||
if (std::regex_search(file_name, blacklist_regex)) {
|
||||
FprintfFlush(stderr, "Not safe to make external request for file %s\n",
|
||||
file_name.c_str());
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue