On Wed, Mar 13, 2002 at 05:19:45PM -0300, Adriano Camargo Rodrigues da Cunha wrote:
> > Well, of course you should do that as well. But if it gets ignored and
> > you receive data anyway, then this data should not overwrite anything
> > important. In the linux kernel this aproach would generate an oops,
> > which is considered pretty bad.
> 
> It's obvious. But remember that MSX has no memory protection.
> Ignoring data if buffer is full is my last option. If I can't make Z8530
> understand the DTR signal, I'll do it.

The point is that it is not the Z8530 which has to react. The other
computer can just ignore the signal if it feels like it. This should in
no case cause data corruption. The fact MSX does not have memory
protection and can therefor not be really secure, doesn't mean you
shouldn't implement any other checks. You should try to follow the
protocol. But if the other computer (which runs untrusted code, in
general) doesn't follow it, the MSX should just handle that. That's just
good programming practice.

Bye,
shevek
--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html

Reply via email to