mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:13:37 +03:00
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.
This commit is contained in:
parent
5eb75d4186
commit
b766602729
7 changed files with 163 additions and 5 deletions
|
|
@ -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 \
|
||||
\
|
||||
|
|
|
|||
26
tests/data/test1655
Normal file
26
tests/data/test1655
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
unittest
|
||||
doh
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
none
|
||||
</server>
|
||||
<features>
|
||||
unittest
|
||||
</features>
|
||||
<name>
|
||||
unit test for doh_encode
|
||||
</name>
|
||||
<tool>
|
||||
unit1655
|
||||
</tool>
|
||||
</client>
|
||||
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue