]> git.pld-linux.org Git - packages/tcpdump.git/commitdiff
- fix sigsegv during decode NFS (patch from Conectiva).
authorkloczek <kloczek@pld-linux.org>
Sat, 11 Jan 2003 01:29:03 +0000 (01:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    tcpdump-snaplen.patch -> 1.1

tcpdump-snaplen.patch [new file with mode: 0644]

diff --git a/tcpdump-snaplen.patch b/tcpdump-snaplen.patch
new file mode 100644 (file)
index 0000000..51e9131
--- /dev/null
@@ -0,0 +1,10 @@
+--- tcpdump-3.7.1-orig/interface.h     2002-01-21 09:39:58.000000000 -0200
++++ tcpdump-3.7.1/interface.h  2002-05-31 14:53:23.000000000 -0300
+@@ -137,6 +137,7 @@
+ /* True if  "l" bytes of "var" were captured */
+ #define TTEST2(var, l) ((const u_char *)&(var) <= snapend - (l))
++#define TTEST2(var, l) ((l < 65535) && ((u_char *)&(var) <= snapend - (l)))
+ /* True if "var" was captured */
+ #define TTEST(var) TTEST2(var, sizeof(var))
This page took 0.071704 seconds and 4 git commands to generate.