On Thu, Jan 22, 2026 at 02:07:54PM -0800, Ben Collver wrote: > Today i found that the pre-processor doesn't check malloc() return > values. It silently dereferences NULL pointers when it runs out of > memory, which happens while compiling vfscanf.o from scanf.c. > Somehow the compiler doesn't crash and it still manages to compile > the C library. In other words, it accidentally succeeds. > > As far as i can tell, BCC 0.16.21 needs more than just conventional > memory to compile its own C library! The compiler in bcc_pt4.zip is > not to be trusted. I guess i'm going back to the drawing board...
p.s. I mis-interpreted the results. In this case malloc() return NULL not because it ran out of memory, but because BCC requested zero bytes, i.e. malloc(0). I plan to post a new build soon. _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
