brcupsconfig3 is crashing because it uses a very small buffer when
anaylsing the command line parameters and it doesn't check the size of
the command line it copies into this buffer.

The attached patch makes the buffer larger and makes sure it doesn't
copy more bytes than the buffer can hold.

This fixes the crash I had on my machine, but the code is full of
buffers with static sizes and no size checks...


** Patch added: "Fix for brcupsconfig3"
   
https://bugs.launchpad.net/ubuntu/+source/brother-cups-wrapper-laser/+bug/438356/+attachment/4005604/+files/brcupsconfig.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/438356

Title:
  brcupsconfig3 assert failure: *** stack smashing detected ***:
  /usr/Brother/cupswrapper/brcupsconfig3 terminated

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/brother-cups-wrapper-laser/+bug/438356/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to