note that compression pointer support is lacking
This commit is contained in:
parent
0dc182772b
commit
de723fca8d
|
@ -57,6 +57,12 @@ pdns.unpackQname = function (ui8) {
|
||||||
|
|
||||||
do {
|
do {
|
||||||
len = ui8[total];
|
len = ui8[total];
|
||||||
|
if (0xc0 === len) {
|
||||||
|
throw new Error("discovered a compression pointer at byte " + total
|
||||||
|
+ " pointing to byte " + ui8[total + 1]
|
||||||
|
+ ", but compression pointer support is not yet implemented"
|
||||||
|
);
|
||||||
|
}
|
||||||
//str.length = 0; // fast empty array
|
//str.length = 0; // fast empty array
|
||||||
if (ui8.byteLength - total < len) {
|
if (ui8.byteLength - total < len) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|
Loading…
Reference in New Issue