blob: f3a824b500c5d6e99c4f434b976d6ee0b4f6f4f2 [file] [log] [blame]
// RUN: test.sh -e -t %t %s
#include <dirent.h>
// Buffer overflow with readdir_r()
int main()
{
DIR *root = opendir("/");
int x;
struct dirent *result;
readdir_r(root, (struct dirent *) &x, &result);
closedir(root);
return 0;
}