|  | auto result = REAL(open)(path, oflag, args); | 
    
   
 
Hi @drowaudio!
Was just poking around your repo, and noticed a bug that I just fixed in RADSan also here, wanted to file an issue so you don't get weird reports later on.
The fix can be seen in this PR:
https://github.com/realtime-sanitizer/llvm-project/pull/23/files
You must unpack the va_arg first, then pass it in to the REAL call. The three in our code that had this problem were:
- open
- openat
- fcntl
but be wary of any of these syscalls that accept variable args.
Cheers!