Skip to content
Permalink
Browse files Browse the repository at this point in the history
CVE-2017-13687/CHDLC: Add a test.
This is for the fix made a few commits before, which had no tests.

Add a test using the capture file supplied by Kamil Frankowicz.
  • Loading branch information
guyharris authored and infrastation committed Sep 13, 2017
1 parent d6ba8dc commit 866c602
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/TESTLIST
Expand Up @@ -455,6 +455,7 @@ hoobr_juniper hoobr_juniper.pcap hoobr_juniper.out
hoobr_juniper2 hoobr_juniper2.pcap hoobr_juniper2.out
hoobr_juniper3 hoobr_juniper3.pcap hoobr_juniper3.out
hoobr_parse_field hoobr_parse_field.pcap hoobr_parse_field.out
hoobr_chdlc_print hoobr_chdlc_print.pcap hoobr_chdlc_print.out

# bad packets from Wilfried Kirsch
slip-bad-direction slip-bad-direction.pcap slip-bad-direction.out -ve
Expand Down
26 changes: 26 additions & 0 deletions tests/hoobr_chdlc_print.out
@@ -0,0 +1,26 @@
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
unknown CHDLC protocol (0x3030)
[|chdlc]
Binary file added tests/hoobr_chdlc_print.pcap
Binary file not shown.

0 comments on commit 866c602

Please sign in to comment.