Use unsigned char* in getRawLabels() and countLabels() #3779

Merged
merged 1 commit into from Apr 27, 2016

Projects

None yet

2 participants

@rgacogne
Member

Otherwise we treat values larger than INT8_MAX as negatives
in pointer arithmetic.
Found with American Fuzzy Lop and Address Sanitizer.

@rgacogne rgacogne Use unsigned char* in getRawLabels() and countLabels()
Otherwise we treat values larger than INT8_MAX as negatives
in pointer arithmetic.
Found with American Fuzzy Lop and Address Sanitizer.
e358efc
@rgacogne rgacogne added the defect label Apr 26, 2016
@ahupowerdns ahupowerdns merged commit bba5db6 into PowerDNS:master Apr 27, 2016

1 check passed

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