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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user