Till, what if strlen(DNSSDComputerName) > AVAHI_LABEL_MAX - 4?  Wouldn't
that underflow the buffer? (Besides the fact that calling strlen()
several times on the same string in the same expression is ugly...)

Here's the fix I'm planning on going with.

** Patch added: "Better service name truncation patch"
   
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/793265/+attachment/2160793/+files/0001-Don-t-exceed-AVAHI_LABEL_MAX-for-Avahi-service-name-.patch

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

Title:
  If the service name is too long, printer does not get advertized via
  DNS-SD

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

Reply via email to