Fix truncation checks.  It checked the TCP packet length but not the
amount captured.  It won't overrun random data after the packet unless
it's formatted like a known telnet option, so this is very unlikely to
be exploitable.
1 file changed
tree: 9e400058cd97439a3c719451464ea0c61fea3cba
  1. lbl/
  2. missing/
  3. .cvsignore
  4. acconfig.h
  5. aclocal.m4
  6. addrtoname.c
  7. addrtoname.h
  8. ah.h
  9. appletalk.h
  10. arcnet.h
  11. atime.awk
  12. bootp.h
  13. bpf_dump.c
  14. CHANGES
  15. chdlc.h
  16. config.guess
  17. config.h.in
  18. config.sub
  19. configure
  20. configure.in
  21. CREDITS
  22. decnet.h
  23. dhcp6.h
  24. dhcp6opt.h
  25. esp.h
  26. ether.h
  27. ethertype.h
  28. extract.h
  29. fddi.h
  30. FILES
  31. gmt2local.c
  32. gmt2local.h
  33. icmp6.h
  34. ieee802_11.h
  35. igrp.h
  36. INSTALL
  37. install-sh
  38. interface.h
  39. ip.h
  40. ip6.h
  41. ipsec_doi.h
  42. ipx.h
  43. isakmp.h
  44. l2tp.h
  45. lane.h
  46. LICENSE
  47. llc.h
  48. machdep.c
  49. machdep.h
  50. Makefile-devel-adds
  51. Makefile.in
  52. makemib
  53. mib.h
  54. mkdep
  55. nameser.h
  56. netbios.h
  57. nfs.h
  58. nfsfh.h
  59. ntp.h
  60. oakley.h
  61. ospf.h
  62. ospf6.h
  63. packetdat.awk
  64. parsenfsfh.c
  65. PLATFORMS
  66. ppp.h
  67. print-802_11.c
  68. print-ah.c
  69. print-arcnet.c
  70. print-arp.c
  71. print-ascii.c
  72. print-atalk.c
  73. print-atm.c
  74. print-bgp.c
  75. print-bootp.c
  76. print-bxxp.c
  77. print-cdp.c
  78. print-chdlc.c
  79. print-cip.c
  80. print-cnfp.c
  81. print-decnet.c
  82. print-dhcp6.c
  83. print-domain.c
  84. print-dvmrp.c
  85. print-egp.c
  86. print-esp.c
  87. print-ether.c
  88. print-fddi.c
  89. print-frag6.c
  90. print-gre.c
  91. print-icmp.c
  92. print-icmp6.c
  93. print-igmp.c
  94. print-igrp.c
  95. print-ip.c
  96. print-ip6.c
  97. print-ip6opts.c
  98. print-ipcomp.c
  99. print-ipx.c
  100. print-isakmp.c
  101. print-isoclns.c
  102. print-krb.c
  103. print-l2tp.c
  104. print-lane.c
  105. print-lcp.c
  106. print-llc.c
  107. print-lwres.c
  108. print-mobile.c
  109. print-mpls.c
  110. print-netbios.c
  111. print-nfs.c
  112. print-ntp.c
  113. print-null.c
  114. print-ospf.c
  115. print-ospf6.c
  116. print-pim.c
  117. print-ppp.c
  118. print-pppoe.c
  119. print-pptp.c
  120. print-radius.c
  121. print-raw.c
  122. print-rip.c
  123. print-ripng.c
  124. print-rt6.c
  125. print-rx.c
  126. print-sctp.c
  127. print-sl.c
  128. print-sll.c
  129. print-smb.c
  130. print-snmp.c
  131. print-stp.c
  132. print-sunrpc.c
  133. print-tcp.c
  134. print-telnet.c
  135. print-tftp.c
  136. print-timed.c
  137. print-token.c
  138. print-udp.c
  139. print-vjc.c
  140. print-vrrp.c
  141. print-wb.c
  142. print-zephyr.c
  143. README
  144. route6d.h
  145. rx.h
  146. sctpConstants.h
  147. sctpHeader.h
  148. send-ack.awk
  149. setsignal.c
  150. setsignal.h
  151. slcompress.h
  152. slip.h
  153. sll.h
  154. smb.h
  155. smbutil.c
  156. stime.awk
  157. strcasecmp.c
  158. tcp.h
  159. tcpdump.1
  160. tcpdump.c
  161. telnet.h
  162. timed.h
  163. TODO
  164. token.h
  165. udp.h
  166. util.c
  167. VERSION
  168. vfprintf.c