Skip to content

Conversation

@yuwata
Copy link
Member

@yuwata yuwata commented Feb 16, 2019

And use returned value by asprintf() instead.

This hopefully fixes #11733.

cc @mrc0mmand.

And use returned value by asprintf() instead.

This hopefully fixes systemd#11733.
@yuwata yuwata added the resolve label Feb 16, 2019
@mrc0mmand
Copy link
Member

Can confirm it fixes all relevant MSan warnings, thanks!

Copy link
Member

@keszybz keszybz left a comment

Choose a reason for hiding this comment

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

Nice.

@keszybz keszybz merged commit 4bb91a9 into systemd:master Feb 16, 2019
@yuwata yuwata deleted the fix-11733 branch February 16, 2019 22:38
return NULL;

r = asprintf(&s, "%s %u %u %s %n",
r = asprintf(&s, "%s %u %u %s",
Copy link
Member

Choose a reason for hiding this comment

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

hmm, you dropped the final space here, is that intended?

@yuwata
Copy link
Member Author

yuwata commented Feb 18, 2019

Ah, I thought base64_append() add the separator, but it is not...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Use of uninitialized variable in dns_resource_record_to_string

4 participants