]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix unit test for malformed svcb for test on Windows. master
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 9 Jul 2026 07:52:09 +0000 (09:52 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 9 Jul 2026 07:52:09 +0000 (09:52 +0200)
doc/Changelog
testdata/iter_svcb_malformed.rpl

index 15bb424777bb8e79a07d8c53fe9c696d467d4cd7..d5276f302a0db727c11c3bbc3e9b37e02ab6d784 100644 (file)
@@ -1,6 +1,7 @@
 9 July 2026: Wouter
        - Merge #1383 from jdek: Fix randomness generation on
          macOS/iOS under chroot.
+       - Fix unit test for malformed svcb for test on Windows.
 
 2 July 2026: Wouter
        - Merge #1087: Overload `local_data_remove` to support removing
index 8ac31fd2d403509d9f51c82c1b1e561fe3678e4b..e08ed8e52cb02383bf251828d13d413d8606a318 100644 (file)
@@ -151,7 +151,14 @@ REPLY QR RD RA NOERROR
 SECTION QUESTION
 www.example.com. IN HTTPS
 SECTION ANSWER
-www.example.com.        0       IN      HTTPS   1 . alpn="h2" alpn="h3"
+; www.example.com.        0       IN      HTTPS   1 . alpn="h2" alpn="h3"
+; in unknown record format, otherwise the zonefile format reader converts
+; the svcb and sorts the svcbparams, and puts them in-order. That qsort is
+; not stable, on some systems(windows), and that would put the identical
+; key elements in a different order. With the unknown record format this
+; conversion is ommitted, and the bad svcb record with duplicate keys stays
+; in the same byte format.
+www.example.com. IN HTTPS \# 17 00 01 00 00 01 00 03 02 68 32 00 01 00 03 02 68 33
 ENTRY_END
 
 STEP 20 QUERY