Fixed major bug: drivers that accepted size arguments could wind
up with more than 80 characters (20x4) in their display, and thus overwrite memory outside of the allocated 80 characterwframebuffer. For example, using a 20x6 screen would do this. All drivers now either ignore a missing framebuffer, or allocate it themselves - the latter is prefered.
This commit is contained in:
@@ -26,13 +26,6 @@ debug_init (struct lcd_logical_driver *driver, char *args)
|
||||
|
||||
debug_drv = driver;
|
||||
|
||||
if (driver->framebuf)
|
||||
syslog(LOG_INFO, "frame buffer at: %010X", (int) driver->framebuf);
|
||||
else {
|
||||
syslog(LOG_ERR, "no frame buffer!");
|
||||
return -1;
|
||||
}
|
||||
|
||||
debug_clear ();
|
||||
|
||||
driver->daemonize = 0;
|
||||
|
||||
Reference in New Issue
Block a user