=?utf-8?q?Balázs_Kéri?= <[email protected]>,
=?utf-8?q?Balázs_Kéri?= <[email protected]>,
=?utf-8?q?Balázs_Kéri?= <[email protected]>,
=?utf-8?q?Balázs_Kéri?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


vbvictor wrote:

Reduced example

```
// llvm-project/build/bin/clang --analyze -Xclang 
-analyzer-checker=security.UnsafeSymlinkTest -o /dev/null 
unsafe-symlink-fstat-crash.c

struct stat {
  unsigned st_mode;
  unsigned long st_ino;
  unsigned long st_dev;
};
int fstat(int fd, struct stat *buf);

int get_size(int fd) {
  struct stat st;
  if (fstat(fd, &st) != 0)
    return -1;
  return 0;
}
```

https://github.com/llvm/llvm-project/pull/221184
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to