]> granicus.if.org Git - pdns/commitdiff
this commit fixes ticket #29 properly, thanks to Bernd Froemel for reporting.
authorBert Hubert <bert.hubert@netherlabs.nl>
Fri, 11 Nov 2005 11:15:18 +0000 (11:15 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Fri, 11 Nov 2005 11:15:18 +0000 (11:15 +0000)
Very slight security risk.

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@538 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnspacket.cc

index c7810b6691a83cbfe07bb83aeb12828d50cf1ce6..069550a2e2fdc45dc9b8abea9fbeda12b27d61ed 100644 (file)
@@ -613,7 +613,7 @@ void DNSPacket::addRPRecord(const string &domain, const string &content, uint32_
  string piece1;
 
  toqname(domain.c_str(),&piece1);
- char p[10];
+ char p[11];
  makeHeader(p,17,ttl);
  
  // content contains: mailbox-name more-info-domain (Separated by a space)
@@ -670,7 +670,7 @@ void DNSPacket::addNAPTRRecord(const string &domain, const string &content, uint
 
   //xtoqname(domain.c_str(),&piece1);
   toqname(domain.c_str(),&piece1);
-  char p[10];
+  char p[11];
   makeHeader(p,QType::NAPTR,ttl);
  
   // content contains: 100  100  "s"   "http+I2R"   ""    _http._tcp.foo.com.