[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
'chroot', 'chdir("..")', and IMFS crash.
- Date: 31 Jan 2001 21:18:49 +0300
- From: osv at javad.ru (Sergei Organov)
- Subject: 'chroot', 'chdir("..")', and IMFS crash.
The following sequence of calls results in IMFS crash in `IMFS_eval_path'
(apparently due to NULL pointer dereference):
char buf[SIZE];
rtems_libio_set_private_env();
chroot("/dev");
chdir("/");
chdir(".."); // Note attempt to chdir behind allowed tree
getcwd(buf, SIZE);
Without either `chdir("..")' or `chroot("/dev")' everything works just fine.
This is latest ss-20010126 snapshot.
Sergei.