Canon LBP2900 install

Asked by simon banks

Can you help, I am running Natty 11.04 and am trying to get my Canon printer to work. I have installed it and the computer recognises it as being there however it will not print. Jobs get queued and processed. I have run

captstatusui -P LBP2900

and it says 'aborted' and *** buffer overflow detected ***: captstatusui terminated

Any thoughts?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu cups Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
VK Sameer (vksameer) said :
#2

For me, this occurred at this line:

        strcpy(pCnskt->req_header, HEADER_REQ_STR);

in CnsktModule* cnsktNew(char *printer, char *locale, char *folder_path, int port_num)

req_header is defined as:

        char req_header[4];

while HEADER_REQ_STR is defined as:

#define HEADER_REQ_STR "ccp0"

Basic C programming knowledge should have set req_header size to be 1 more than the number of chars in HEADER_REQ_STR.

Changing to:

        char req_header[5];

and rebuilding worked.

HTH,
Sameer