Projects STRLCPY dnstt Commits cd40a072
🤬
  • Add another test case for a truncated DNS name compression pointer.

  • Loading...
  • David Fifield committed 4 years ago
    cd40a072
    1 parent b209ba29
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    dns/dns_test.go
    skipped 258 lines
    259 259   // EOF while reading label.
    260 260   {0, "\x0aexample", io.ErrUnexpectedEOF},
    261 261   // EOF before second byte of pointer.
     262 + {0, "\xc0", io.ErrUnexpectedEOF},
    262 263   {0, "\x07example\xc0", io.ErrUnexpectedEOF},
    263 264   } {
    264 265   r := bytes.NewReader([]byte(test.input))
    skipped 275 lines
Please wait...
Page is in error, reload to recover