Add consistency checks to segmentDNSNameRaw() #3789

Merged
merged 2 commits into from Apr 29, 2016

Projects

None yet

2 participants

@rgacogne
Member

This fixes most issues found by fuzzing rpzLoadFile() with American Fuzzy Lop.
Also throw on negative label length in DNSName::isPartOf(), just in case.

rgacogne added some commits Apr 28, 2016
@rgacogne rgacogne Throw on negative label length in `DNSName::isPartOf()`
Found with American Fuzzy Lop and Address Sanitizer.
c9742df
@rgacogne rgacogne Add consistency checks to segmentDNSNameRaw()
This fixes most issues found by fuzzing loadRPZFromFile() with
American Fuzzy Lop.
d0a4a4b
@rgacogne rgacogne added the defect label Apr 28, 2016
@ahupowerdns ahupowerdns merged commit a8792a2 into PowerDNS:master Apr 29, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@rgacogne rgacogne deleted the rgacogne:dnsname-negative-labellen-ispartof branch Apr 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment