mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2025-01-08 00:38:23 +08:00
521ac1db3f
Replace calls to ipaddr_string()/ip6addr_string() with calls to
GET_IPADDR_STRING()/GET_IP6ADDR_STRING() macros performing bounds
checking.
Fix a regression in 78a4ee8222
.
This fixes a buffer over-read in ldp_tlv_print() discovered by
Jason Xiaole.
Add a test using the capture file supplied by the reporter updated
to keep only the packet showing the buffer over-read.
8 lines
541 B
Plaintext
8 lines
541 B
Plaintext
1 05:27:12.1010580 IP (tos 0x30, ttl 48, id 12336, offset 0, flags [none], proto UDP (17), length 12336, bad cksum 3030 (->699d)!)
|
|
48.48.48.48.12336 > 48.48.48.48.646:
|
|
LDP, Label-Space-ID: 48.48.48.48:12336, pdu-length: 12336
|
|
Hello Message (0x0100), length: 20, Message ID: 0x30303030, Flags: [ignore if unknown]
|
|
Unknown TLV (0x3030), length: 4, Flags: [ignore and don't forward if unknown]
|
|
0x0000: 3030 3030
|
|
IPv4 Transport Address TLV (0x0401), length: 4, Flags: [ignore and don't forward if unknown] [|ldp]
|