Skip to content

Commit

Permalink
sanitizer: make parser memory|address|undefined|.etc aware
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Dec 4, 2019
1 parent 5915799 commit 4ac34a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sanitizers.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ size_t sanitizers_parseReport(run_t* run, pid_t pid, funcs_t* funcs, uint64_t* p
}
headerFound = true;
sscanf(lineptr,
"==%*d==ERROR: AddressSanitizer: %*[^ ] on address 0x%" PRIx64 " at pc 0x%" PRIx64,
"==%*d==ERROR: %*[^:]: %*[^ ] on address 0x%" PRIx64 " at pc 0x%" PRIx64,
pc, crashAddr);
sscanf(lineptr,
"==%*d==ERROR: AddressSanitizer: %*[^ ] on %*s address 0x%" PRIx64
"==%*d==ERROR: %*[^:]: %*[^ ] on %*s address 0x%" PRIx64
" (pc 0x%" PRIx64,
crashAddr, pc);
sscanf(lineptr, "==%*d==ERROR: AddressSanitizer: %" HF_XSTR(HF_STR_LEN_MINUS_1) "[^\n]",
sscanf(lineptr, "==%*d==ERROR: %" HF_XSTR(HF_STR_LEN_MINUS_1) "[^\n]",
description);
} else {
char* pLineLC = lineptr;
Expand Down

0 comments on commit 4ac34a6

Please sign in to comment.