BIND 10 trac2426, updated. 8ec8a19d2342170d7deb9ee771c157eb439bc278 [2426] Initialize rdlen (apparently cppcheck doesn't detect the throw and complains)

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Feb 18 12:52:46 UTC 2014


The branch, trac2426 has been updated
       via  8ec8a19d2342170d7deb9ee771c157eb439bc278 (commit)
      from  659fb323f0b7fdd279cc1c36b0f5fe6526a0994e (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 8ec8a19d2342170d7deb9ee771c157eb439bc278
Author: Mukund Sivaraman <muks at isc.org>
Date:   Tue Feb 18 18:20:02 2014 +0530

    [2426] Initialize rdlen (apparently cppcheck doesn't detect the throw and complains)

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/rdata.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/rdata.cc b/src/lib/dns/rdata.cc
index 4f7962c..bc0b403 100644
--- a/src/lib/dns/rdata.cc
+++ b/src/lib/dns/rdata.cc
@@ -221,7 +221,8 @@ Generic::constructFromLexer(MasterLexer& lexer) {
                   "unknown RDATA encoding");
     }
 
-    uint32_t rdlen;
+    // Initialize with an absurd value.
+    uint32_t rdlen = 65536;
 
     try {
         rdlen = lexer.getNextToken(MasterToken::NUMBER).getNumber();



More information about the bind10-changes mailing list