================
@@ -50,7 +50,7 @@ void f5(void)
{
char buf[10];
memset((void *)0x100000000ULL, 0, 0x1000);
- memcpy((char *)NULL + 0x10000, buf, 0x10);
+ memcpy((char *)NULL + 0x10000, buf, 0x10); // expected-warning {{'memcpy'
reading 16 bytes from a region of size 10}}
----------------
erichkeane wrote:
I wonder if we should do a better job matching the spelling in the literal
here. 16 bytes from a region of size 10, when this is using hex is a touch
confusing.
https://github.com/llvm/llvm-project/pull/183004
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits