avahi-daemon segfaults when a txt-record has no value

Bug #1935884 reported by 小畑 勝也
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Avahi
Fix Released
Unknown
avahi (Ubuntu)
New
Undecided
Unassigned
focal (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

This bug is reported upstream( https://github.com/lathiat/avahi/issues/247 ) but ubuntu focal did not fix it.

Version: avahi-daemon (0.7-4ubuntu7.1) on Focal Fossa

Service XML causing the segfault:

```
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name replace-wildcards="yes">Printer</name>
  <service protocol="ipv4">
    <type>_ipp._tcp.</type>
    <host-name>printer.local</host-name>
    <port>631</port>
    <txt-record>note=</txt-record>
  </service>
</service-group>
```

The line `<txt-record>note=</txt-record>` causes avahi to segfault.

The Workaround I found was: `<txt-record>note=""</txt-record>` I.e. setting the `note` to an empty string.

It can fix to merge this ( https://github.com/lathiat/avahi/pull/226 ).

This bug fixed on upstream version 0.8, so this bug remains on bionic and focal.

Changed in avahi:
status: Unknown → Fix Released
Revision history for this message
Paul White (paulw2u) wrote :

'focal' is a release name and not the name of a
package currently in a supported release of Ubuntu.

Changed in focal (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.