2230. [bug] We could INSIST reading a corrupted journal.

[RT #17132]
This commit is contained in:
Mark Andrews
2007-09-07 05:14:33 +00:00
parent b9eb3de20b
commit 709220567f
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2230. [bug] We could INSIST reading a corrupted journal.
[RT #17132]
2229. [bug] Null pointer dereference on query pool creation
failure. [RT #17133]

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: journal.c,v 1.98 2007/09/02 23:02:53 marka Exp $ */
/* $Id: journal.c,v 1.99 2007/09/07 05:14:33 marka Exp $ */
#include <config.h>
@@ -1629,6 +1629,8 @@ read_one_rr(dns_journal_t *j) {
/*
* Parse the rdata.
*/
if (isc_buffer_remaininglength(&j->it.source) != rdlen)
FAIL(DNS_R_FORMERR);
isc_buffer_setactive(&j->it.source, rdlen);
dns_rdata_reset(&j->it.rdata);
CHECK(dns_rdata_fromwire(&j->it.rdata, rdclass,