4492. [bug] irs_resconf_load failed to initialise sortlistnxt

causing bad writes if resolv.conf contained a
                        sortlist directive. [RT #43459]
This commit is contained in:
Mark Andrews
2016-10-27 13:17:58 +11:00
parent 8eaf918adf
commit 55b78fff62
26 changed files with 243 additions and 13 deletions

1
lib/irs/tests/testdata/domain.conf vendored Normal file
View File

@@ -0,0 +1 @@
domain example.com

View File

@@ -0,0 +1 @@
nameserver 10.0.0.1

View File

@@ -0,0 +1 @@
nameserver 2001:DB8::1

View File

@@ -0,0 +1 @@
options debug

View File

@@ -0,0 +1 @@
option ndots:2

View File

@@ -0,0 +1 @@
options timeout:1

View File

@@ -0,0 +1 @@
options unknown

1
lib/irs/tests/testdata/options.conf vendored Normal file
View File

@@ -0,0 +1 @@
options unknown debug timeout:1 ndots:2

1
lib/irs/tests/testdata/port.conf vendored Normal file
View File

@@ -0,0 +1 @@
port 5300

8
lib/irs/tests/testdata/resolv.conf vendored Normal file
View File

@@ -0,0 +1,8 @@
port 5300
nameserver 10.0.0.1
nameserver 2001:DB8::1
search example.com example.net
sortlist 130.155.160.0/255.255.240.0 130.155.0.0
timeout 10
unknown directive
options unknown debug timeout:1 ndots:2

1
lib/irs/tests/testdata/search.conf vendored Normal file
View File

@@ -0,0 +1 @@
search example.com example.net

View File

@@ -0,0 +1 @@
sortlist 130.155.160.0/255.255.240.0 130.155.0.0

1
lib/irs/tests/testdata/timeout.conf vendored Normal file
View File

@@ -0,0 +1 @@
timeout 10

1
lib/irs/tests/testdata/unknown.conf vendored Normal file
View File

@@ -0,0 +1 @@
unknown directive