diff options
author | Rene Treffer <treffer@measite.de> | 2014-04-03 10:51:05 +0200 |
---|---|---|
committer | Rene Treffer <treffer@measite.de> | 2014-04-03 10:51:05 +0200 |
commit | 921674b3f1585dde76d13f181abcfc6d49bd737d (patch) | |
tree | 3b5a3a1ca876fb836a029620fea8c995954ff520 /src/de/measite/minidns | |
parent | 8a8a7f3b0dd7928802a97e346b307bb06fdb3322 (diff) |
Fix negative jump targets
Diffstat (limited to '')
-rw-r--r-- | src/de/measite/minidns/util/NameUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/measite/minidns/util/NameUtil.java b/src/de/measite/minidns/util/NameUtil.java index a7edc22a..91a6649d 100644 --- a/src/de/measite/minidns/util/NameUtil.java +++ b/src/de/measite/minidns/util/NameUtil.java @@ -70,7 +70,7 @@ public class NameUtil { ) { int c = data[offset] & 0xff; if ((c & 0xc0) == 0xc0) { - c = ((c & 0x3f) << 8) + data[offset + 1]; + c = ((c & 0x3f) << 8) + (data[offset + 1] & 0xff); if (jumps.contains(c)) { throw new IllegalStateException("Cyclic offsets detected."); } |