justincady
justincady
On FreeBSD (and potentially other platforms), `uv__udp_recvmmsg` can pass the recv callback a pointer to uninitialized stack memory as the peer address, which can cause a crash in consumers that...
Beginning with clang 13.0.0, the following behavior is observed beginning at `-O1`: ```c extern int foo; void bar(void); int foo; void comparison_eliminated() { // clang 13+ eliminates this conditional at...
The profiling runtime APIs for freestanding environments do not consider value profiling data. Specifically, after a bit of investigation, I believe that: - `__llvm_profile_get_size_for_buffer` does not consider the size of...
Using ASAN with LLVM 17 fails to detect ODR violations that are detected with LLVM 16 and earlier. I bisected to this commit: https://github.com/llvm/llvm-project/commit/a8d3ae712290d6f85db2deb9164181058f5c1307 I'm not sure if this is...
Building FreeBSD kernel modules with a standard LLVM 17.0.6 toolchain and `-fstack-protector` results in them containing R_X86_64_REX_GOTPCRELX relocations (for `__stack_chk_guard`). These are unloadable, because this relocation type isn't handled by...
It appears `-fprofile-list` cannot be used to ignore coverage for non-emitted code. Here's an example (LLVM 17.0.6): ```c // discard.c static int foo() { return 55; } int main() {...
Tested with clang 19. Here's the reproducer: ``` typedef union { struct {} first; struct { int x; } second; } foo; void bar() { foo f = {}; }...
The `__noreturn__` attribute appears to invalidate coverage of the following line, whereas `_Noreturn` demonstrates correct behavior. ```c // coverage.c #include __attribute__ ((__noreturn__)) void foo(void) { while (1); } _Noreturn void...
### Why Are you requesting commit access ? I previously had commit access for several years (pre and post GitHub migration) in which I made a handful of commits. I'm...
Code coverage reporting is incorrect for `try`/`catch` blocks where the contents of the `try` _cannot_ throw. Example: ``` // coverage.cc #include #include static __attribute__((noinline)) int do_throw(bool b) { if (b)...