On Mon, 30 Apr 2007, Dave Mielke wrote:

> [quoted lines by hermann on 2007/04/30 at 17:05 +0200]
> 
> >I wonder why it worked so long without problems, instead of causing the
> >trouble at once.
> 
> Revision 3005 increased the size of a data structure (ScreenDescription for 
> the
> curious). If any older code was declaring that data structure then it would've
> allocated it with its older, smaller size and memory could've become corrupted
> by newer code modifying data within the additional bytes.

Maybe the dynamically linked driver modules should have a version bump 
in those cases to make sure they're compatible.

Better yet, the BRLTTY version could be stored in every dynamically 
loaded drivers and BRLTTY refuse to use them if the version doesn't 
match.  This is the best way to avoid mysterious bug reports like this 
one was.


Nicolas
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: BRLTTY@mielke.cc
For general information, go to: http://mielke.cc/mailman/listinfo/brltty

Reply via email to