[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GEM and memory protection
Hi all
> Well. Programs should use globally accessible memory for the AV
> protocol,
> and Gemini, the first program to implement that protocol certainly does.
>
> If other programs fail to do it properly, why not set the program flags
> just for them, instead of disabling MP for all GEM programs?
Because Gemini doesn't handle wrong Software correctly. If Software sends
a protected string via AV to GEMINI, GEMINI will be killed. To prevent that
Gemini should hook into the SIGSEGV Signal and set a flag there. When a
Message arrives the flag should be cleared. Then you try to access the
Memoryblock. If the Flag is set afterwards the Memory was protected. You
can display an allertbox.
I know, that it is not Gemini's fault, but why not making it better? BTW
I have not hered of any Desktop that does that though I have written that in
a Newsgroup a few months ago. Maybe I've missed something...
Christof