Takuya Shimizu 0c9c9dd9a2 [clang][Sema] Add truncation warning on fortified snprintf
This patch warns on snprintf calls whose n argument is known to be smaller than the size of the formatted string like

```
char buf[5];
snprintf(buf, 5, "Hello");
```
This is a counterpart of gcc's Wformat-truncation
Fixes https://github.com/llvm/llvm-project/issues/64871

Reviewed By: aaron.ballman, nickdesaulniers
Differential Revision: https://reviews.llvm.org/D158562
2023-08-26 14:41:05 +09:00
..
2023-08-11 07:43:43 -04:00
2023-05-08 13:08:23 -07:00
2023-01-08 10:35:26 +01:00