summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2009-10-17 18:27:21 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2009-10-17 18:27:21 +0000
commit9d561ad898d70b3427a90bb5519643a72c73afee (patch)
tree3f8763cae00ccb7aec29128a88137a6f03beebb5 /net-analyzer/ettercap/files
parentPatch to fix a segfault bug in editor (#287113) (diff)
downloadhistorical-9d561ad898d70b3427a90bb5519643a72c73afee.tar.gz
historical-9d561ad898d70b3427a90bb5519643a72c73afee.tar.bz2
historical-9d561ad898d70b3427a90bb5519643a72c73afee.zip
fix 64bit seg fault ( bug #288348 )
Package-Manager: portage-2.2_rc46/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/ettercap/files')
-rw-r--r--net-analyzer/ettercap/files/ettercap-0.7.3-64bit-casting.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-analyzer/ettercap/files/ettercap-0.7.3-64bit-casting.patch b/net-analyzer/ettercap/files/ettercap-0.7.3-64bit-casting.patch
new file mode 100644
index 000000000000..3f0c7bf7912c
--- /dev/null
+++ b/net-analyzer/ettercap/files/ettercap-0.7.3-64bit-casting.patch
@@ -0,0 +1,19 @@
+commit 8cdf08d401d368d5678f9d9c2cf36ddbdef03aec
+Author: Timothy Redaelli <timothy@redaelli.eu>
+Date: Tue Jun 23 09:16:27 2009 +0000
+
+ Fix a crash in 64 bit CPUs
+
+diff --git a/src/protocols/ec_tcp.c b/src/protocols/ec_tcp.c
+index ea0c997..be8f3e0 100644
+--- a/src/protocols/ec_tcp.c
++++ b/src/protocols/ec_tcp.c
+@@ -116,7 +116,7 @@ FUNC_DECODER(decode_tcp)
+ tcp = (struct tcp_header *)DECODE_DATA;
+
+ opt_start = (u_char *)(tcp + 1);
+- opt_end = (u_char *)((int)tcp + tcp->off * 4);
++ opt_end = (u_char *)(tcp + tcp->off * 4);
+
+ DECODED_LEN = (u_int32)(tcp->off * 4);
+