2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 07:35:26 +00:00

dns_rdata_fromwire_text fixes:

* Disallow compression pointers in names as we are not
  reading from a packet and as a result length checks fail.
* Increase totext buffer size as fuzzer ran out of space on
  big bitmaps.
* NUL terminate totext to make fault diagnosis easier.
* Add debugging messages to make fault diagnosie easier.
This commit is contained in:
Mark Andrews
2020-08-13 12:18:57 +10:00
parent 6c7e50c267
commit a92d973430
3 changed files with 31 additions and 4 deletions

View File

@@ -24,6 +24,8 @@
#include <dirent.h>
bool debug = false;
static void
test_all_from(const char *dirname) {
DIR *dirp;
@@ -98,6 +100,10 @@ main(int argc, char **argv) {
UNUSED(argc);
UNUSED(argv);
if (argc != 1) {
debug = true;
}
target = (target != NULL) ? target + 1 : argv[0];
if (strncmp(target, "lt-", 3) == 0) {
target += 3;