Hi! 18-Авг-2006 11:26 [EMAIL PROTECTED] (Eric Auer) wrote to freedos-devel@lists.sourceforge.net:
EA> I hope you also like my kernel patch for it... EA> [... QuickBASIC frees a block, resizes another block to the max after EA> finding the max size with resize to -1 size, then frees the first EA> block again, which fails on FreeDOS as free invalidates the block ...] EA> I would suggest the following patch for kernel 2036 (stable) --> EA> +#if 0 /* this disturbs QB 4.x double-free... */ EA> q->m_type = 'K'; /* Invalidate the magic number */ EA> +#else EA> + q->m_type = MCB_NORMAL; /* make QB 4.x happy... */ EA> + q->m_psp = FREE_PSP; /* leave MCB as "valid but free" */ EA> +#endif First, not need to re-add header. Second, there should be added check, that "segment points to block in chain", in DosMemChange(), to make fool-prof. EA> At least compiling the whole updated 2036 kernel under the EA> updated 2036 kernel itself worked just fine... Well, after I EA> removed the TSR instance of Quarterdeck MFT (now freeware) EA> from RAM, that is, otherwise NASM ran out of memory ;-) . ? You wish to say, that with your patch there now not enough memory for NASM after unloading MFT? ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel