blob: e1fe02fdec51e6df4564e1f42d78685cdf655a2b [file] [log] [blame]
// RUN: test.sh -e -t %t %s
#include <string.h>
// Call memchr() on a bytestring with the result of reading out of bounds.
int main()
{
char b[] = "dddddddddd";
char c[7] = "ABCDEF";
char d[] = "dddddddddd";
char *pt;
pt = memchr(&c[0], 'd', 10);
return 0;
}