'chroot', 'chdir("..")', and IMFS crash.

Sergei Organov osv at javad.ru
Wed Jan 31 18:18:49 UTC 2001


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.




More information about the users mailing list