From b7666027296a4f89a8ce6b22af335e8aee7a7782 Mon Sep 17 00:00:00 2001 From: Paul Dreik Date: Sat, 14 Sep 2019 03:16:09 +0200 Subject: doh: fix (harmless) buffer overrun Added unit test case 1655 to verify. Close #4352 the code correctly finds the flaws in the old code, if one temporarily restores doh.c to the old version. --- tests/data/Makefile.inc | 2 +- tests/data/test1655 | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1655 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 3733bd6b9..a3ce5a965 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -183,7 +183,7 @@ test1590 test1591 test1592 test1593 test1594 \ test1600 test1601 test1602 test1603 test1604 test1605 test1606 test1607 \ test1608 test1609 test1620 test1621 \ \ -test1650 test1651 test1652 test1653 test1654 \ +test1650 test1651 test1652 test1653 test1654 test1655 \ \ test1700 test1701 test1702 \ \ diff --git a/tests/data/test1655 b/tests/data/test1655 new file mode 100644 index 000000000..0c10bedf4 --- /dev/null +++ b/tests/data/test1655 @@ -0,0 +1,26 @@ + + + +unittest +doh + + + +# +# Client-side + + +none + + +unittest + + +unit test for doh_encode + + +unit1655 + + + + -- cgit v1.2.3