On file drivers/video/neofb.c it seems there are multiple buffer overrrun errors involving "info->fix.id" For example, on line 2103 the statement sprintf(info->fix.id, "MagicGraph 256XL+"); writes 18 bytes (including the terminator character) into info->fix.id, yet fix.id is only 16 bytes long. Is there any catch here, or the programmer did overlook the lenght of "id"?
I queued neofb-avoid-overwriting-fb_info-fields.patch to address this.
It is a correct patch w.r.to the overflow, but it produces truncated names. I would rather see one which renames "MagicGraph 128V+" into "MagicGr 128V+". An in any case snprintf is clearly an overkill where strlcpy would do.
Changing title to reflect current bug