int main(int argc, char* argv[]){
char* pszPath = "/tmp/";
struct stat xST[2]; <------
printf("<sizeof=%d>\n",sizeof(struct stat));
//memset(&xST,0,sizeof(struct stat));
if (lstat(pszPAth,&xST[0])){ printf("no\n"); return 0; }
printf("ok\n");
return 0;
}
ok
*** stack smashing detected ***: terminated
./test.sh: line 4: 5239 Aborted
le.elf /.........