Parser error on empty multipart TXT records #178

Closed
Habbie opened this Issue Apr 26, 2013 · 2 comments

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

The DNS parser barfs when it encounters a multipart txt records where one or more part is empty, ie:

example.com. IN TXT "foobar" ""

pdns will log this error:

Feb 19 13:08:33 machine pdns_recursor[5465]: DNS parser error: example.com., Error parsing packet of 210 bytes (rd=0), out of bounds: vector::_M_range_check

Attached patch should fix this bug.

@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Attachment '' (empty-multi-txt.patch) https://gist.github.com/5466627

@Habbie
Member
Habbie commented Apr 26, 2013

Author: ahu
Fixed in commit 1166, thanks

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