blob: 3564f9e8c75cd3f6b997787c653f3909876bd79b [file] [log] [blame]
// RUN: test.sh -e -t %t %s silly
//
// TEST: argv-001
//
// Description:
// Test that array bounds checking works on argv strings
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int
main (int argc, char ** argv) {
int index = 0;
for (index = 0; index < strlen (argv[1]) + 2; ++index) {
printf ("%c", argv[1][index]);
}
return 0;
}