Home | History | Annotate | Download | only in Analysis

Lines Matching refs:buffer

34 int Buffer[BUFSIZE];
39 Buffer[n] = 1; // expected-warning {{Out of bound memory access }}
46 Buffer[m] = 1; // expected-warning {{Out of bound memory access }}
53 Buffer[m] = 1; // expected-warning {{Out of bound memory access }}
62 Buffer[m] = 1; // expected-warning {{Out of bound memory access }}
73 Buffer[m] = 1; //expected-warning {{Out of bound memory access (index is tainted)}}
111 char buffer[156];
117 sprintf(buffer, "/bin/mail %s < /tmp/email", addr);
118 system(buffer); // expected-warning {{Untrusted data is passed to a system call}}
143 int *buf1 = (int*)malloc(ts*sizeof(int)); // expected-warning {{Untrusted data is used to specify the buffer size}}
144 char *dst = (char*)calloc(ts, sizeof(char)); //expected-warning {{Untrusted data is used to specify the buffer size}}
145 bcopy(buf1, dst, ts); // expected-warning {{Untrusted data is used to specify the buffer size}}
146 __builtin_memcpy(dst, buf1, (ts + 4)*sizeof(char)); // expected-warning {{Untrusted data is used to specify the buffer size}}
149 char *dst2 = (char*)malloc(ts*sizeof(char)); // expected-warning {{Untrusted data is used to specify the buffer size}}
163 char buffer[100];
166 read(sock, buffer, 100);
167 execl(buffer, "filename", 0); // expected-warning {{Untrusted data is passed to a system call}}
170 read(sock, buffer, 100);
171 execl(buffer, "filename", 0); // no-warning