mirror of
https://github.com/tladesignz/dnstt.git
synced 2026-10-06 13:57:54 +03:00
Add another test case for a truncated DNS name compression pointer.
This commit is contained in:
@@ -259,6 +259,7 @@ func TestReadName(t *testing.T) {
|
||||
// EOF while reading label.
|
||||
{0, "\x0aexample", io.ErrUnexpectedEOF},
|
||||
// EOF before second byte of pointer.
|
||||
{0, "\xc0", io.ErrUnexpectedEOF},
|
||||
{0, "\x07example\xc0", io.ErrUnexpectedEOF},
|
||||
} {
|
||||
r := bytes.NewReader([]byte(test.input))
|
||||
|
||||
Reference in New Issue
Block a user