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

Fix a crash when txt records has an empty value #226

Merged

Conversation

krnowak
Copy link
Contributor

@krnowak krnowak commented May 10, 2019

That's a regression that came with 3b067e0 ("Add support for
binary values in TXT records in service files"), we dropped the NULL
check for the strlen call. Other txt record types already check for
NULL value in the decode functions.

Reported at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882386

That's a regression that came with 3b067e0 ("Add support for
binary values in TXT records in service files"), we dropped the NULL
check for the strlen call. Other txt record types already check for
NULL value in the decode functions.

Reported at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882386
Copy link

@invidian invidian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (:wave: @krnowak)

@mtdcr
Copy link

mtdcr commented Feb 9, 2020

This segfault is older than two years now. Is anybody going to merge this PR?

See also: #247

@lathiat lathiat merged commit 4a6d6cc into avahi:master Feb 12, 2020
@lathiat lathiat added this to the v0.8 milestone Feb 12, 2020
@krnowak krnowak deleted the krnowak/empty-value-crash-fix branch February 12, 2020 21:24
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

Successfully merging this pull request may close these issues.

None yet

4 participants