Comment 4 for bug 423817

Revision history for this message
Chris Parker (mrcsparker) wrote :

The problem here is that the /usr/Brother/Printer/mfc440cn/cupswrapper/brcupsconfpt1 file is returning a

*** stack smashing detected ***

error. There is a buffer overrun in the char media_command variable in the brcupsconfig.c file. A quick (and rather bad) fix is to make the array larger.

I changed the

char media_command[100];

to

char media_command[200];

and the driver works. I have attached my version of the file (I enabled debugging and added more debugging). Just change the line in the Ubuntu version of the file and it works. Ignore all of my excess debug statements.