BIND 10 trac2383, updated. 0be210a2f53811e07a7ff0aad0aa388c3ef6048c [2383] Check the constructor gets some data
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Oct 30 11:23:44 UTC 2012
The branch, trac2383 has been updated
via 0be210a2f53811e07a7ff0aad0aa388c3ef6048c (commit)
from 8d2205ed3fc327862a0e3a7169e0432f221d514b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0be210a2f53811e07a7ff0aad0aa388c3ef6048c
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Tue Oct 30 12:23:10 2012 +0100
[2383] Check the constructor gets some data
It is invalid input if no data is passed.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/name.cc | 5 +++++
1 file changed, 5 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/name.cc b/src/lib/dns/name.cc
index fdb4ea4..733b52b 100644
--- a/src/lib/dns/name.cc
+++ b/src/lib/dns/name.cc
@@ -322,6 +322,11 @@ Name::Name(const std::string &namestring, bool downcase) {
}
Name::Name(const char* namedata, size_t data_len, const Name*, bool downcase) {
+ // Check validity of data
+ if (namedata == NULL || data_len == 0) {
+ isc_throw(isc::InvalidParameter,
+ "No data provided to Name constructor");
+ }
// Prepare inputs for the parser
const char* end = namedata + data_len;
More information about the bind10-changes
mailing list