================
@@ -8,6 +8,5 @@
 // main function
 int main(int argc, char *argv[]) { // expected-warning{{'argv' is an unsafe 
pointer used for buffer access}}
   char tmp;
-  tmp = argv[5][5];                // expected-note{{used in buffer access 
here}} \
-                                     expected-warning{{unsafe buffer access}}
----------------
jkorous-apple wrote:

We need this warning. `argv` is a two-dimensional pointer and we don't know the 
bounds.

https://github.com/llvm/llvm-project/pull/118249
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to