Mail Archives: djgpp/1996/11/14/10:47:53
On Thu, 14 Nov 1996, Cesar Scarpini Rabak wrote:
> > char *ptr; /* will be initialized to zero by the linker */
> >
> > void myfunc(void)
> > {
> > char c = *ptr; /* this will crash your program under DJGPP */
> > }
>
> Eli, this code fragment compiled w/DJGPP (albeit replacing myfunc by main
> straight) runs w/o problems!
What is your DPMI host? If it's not CWSDPMI or 386Max, then you lose:
all of the rest don't disallow null pointer dereference, but rather let
you get away with it.
- Raw text -