Re: memory corruption in dos_fs_redirect?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Egon,

1st.
you can try to decrease HLIST_WATCH_CNT from 64 to 16 in mfs.c, this works fine for me.

2nd.
function hlist_push() should never reach the HLIST_STACK_SIZE. For this case
hlist_push() should leave dosemu, return -1 is sensless:

  if (hlists.tos >= HLIST_STACK_SIZE) {
    Debug0((dbg_fd, "hlist_push: past maximum stack\n"));
    error("MFS: hlist_push: past maximum stack\n");
    /* return -1; */
    leavedos(1);
  }

Your idea 'let the dos_fs_redirect fail if hlist_push fails' will end up
in functional errors in the application program.



regards Manfred

--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux