]> git.ipfire.org Git - thirdparty/pdns.git/commit
Use unsigned char* in getRawLabels() and countLabels() 3779/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Apr 2016 15:20:07 +0000 (17:20 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Apr 2016 15:22:56 +0000 (17:22 +0200)
commite358efcb6cb78f6596044fee04820480ad60ef1f
treef84a761a0d02111fb8f45362273095dcf629684c
parentfb2e6a11b24ff328c65e0a1379942161c8e3d570
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.
pdns/dnsname.cc