Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
shared: recognize DNS names with more than one trailing dot as invalid #4111
Conversation
martinpitt
added
resolve
bug
labels
Sep 8, 2016
martinpitt
self-assigned this
Sep 8, 2016
keszybz
merged commit f35c467
into
systemd:master
Sep 9, 2016
martinpitt
deleted the
martinpitt:dns-name-dotdot
branch
Sep 13, 2016
added a commit
to NixOS/systemd
that referenced
this pull request
Sep 30, 2016
|
Hmpf. This fix looks wrong. dns_label_unescape() is supposed to look at a single label only, but now you make it look one more label ahead... |
|
hmm, i figure the patch is actually Ok after all, even though not particularly pretty. But I figure it's the best we can do, given that dns_label_unescape() is supposed to treat "" and "." the same way, and thus not looking forward will indeed allow a name ending in two trailing dots pass... Sorry for the noise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
martinpitt commentedSep 8, 2016
One trailing dot is valid, but more than one isn't. This also fixes glibc's
posix/tst-getaddrinfo5test.This commit includes unit tests, but I also verified that with the fixed resolved this now works:
Fixes #3978