Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kirichkov opened this issue Sep 5, 2019 · 1 comment
Closed

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

kirichkov opened this issue Sep 5, 2019 · 1 comment
Milestone

Comments

@kirichkov
Copy link

Version: avahi-daemon 0.7 on Raspbian Buster

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. That did not happen on previous version of Raspbian.

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

lathiat added a commit that referenced this issue Feb 12, 2020
Fix a crash when txt records have an empty value (Closes: #257, #255, #247, #226)
@lathiat
Copy link
Contributor

lathiat commented Feb 12, 2020

Merged

@lathiat lathiat closed this as completed Feb 12, 2020
@lathiat lathiat added this to the v0.8 milestone Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants