https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/67772
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/bwendling approved this pull request.
https://github.com/llvm/llvm-project/pull/67772
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
kees wrote:
This is great! Thanks for fixing this!
https://github.com/llvm/llvm-project/pull/67772
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/JustinStitt approved this pull request.
LGTM!
FWIW, here's a test file that does not trip the sanitizer before this PR and
_does_ trip after the PR:
```c
#include
int main(int argc, char **argv) {
void *p = NULL;
printf("p: %p\n", p);
p = p - argc;
printf("p: %p\n"
llvmbot wrote:
@llvm/pr-subscribers-clang-codegen
Changes
Pointer arithmetic on void pointers (a GNU extension) was going through a
different code path and bypassed the pointer-overflow sanitizer.
Fixes https://github.com/llvm/llvm-project/issues/66451.
---
Full diff: https://github.com/
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/67772
Pointer arithmetic on void pointers (a GNU extension) was going through a
different code path and bypassed the pointer-overflow sanitizer.
Fixes https://github.com/llvm/llvm-project/issues/66451.
>From ef96c971b50