diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_dns.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coremods/core_dns.cpp b/src/coremods/core_dns.cpp index b16658242..40de989b6 100644 --- a/src/coremods/core_dns.cpp +++ b/src/coremods/core_dns.cpp @@ -211,7 +211,13 @@ class Packet : public Query break; } default: + { + if (pos + rdlength > input_size) + throw Exception("Unable to skip resource record"); + + pos += rdlength; break; + } } if (!record.name.empty() && !record.rdata.empty()) |