public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-analyzer/ettercap/files: ettercap-0.7.3-64bit-casting.patch
@ 2009-10-17 18:27 Markos Chandras (hwoarang)
  0 siblings, 0 replies; only message in thread
From: Markos Chandras (hwoarang) @ 2009-10-17 18:27 UTC (permalink / raw
  To: gentoo-commits

hwoarang    09/10/17 18:27:21

  Added:                ettercap-0.7.3-64bit-casting.patch
  Log:
  fix 64bit seg fault ( bug #288348 )
  (Portage version: 2.2_rc46/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-analyzer/ettercap/files/ettercap-0.7.3-64bit-casting.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ettercap/files/ettercap-0.7.3-64bit-casting.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ettercap/files/ettercap-0.7.3-64bit-casting.patch?rev=1.1&content-type=text/plain

Index: ettercap-0.7.3-64bit-casting.patch
===================================================================
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);
 






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-17 18:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-17 18:27 [gentoo-commits] gentoo-x86 commit in net-analyzer/ettercap/files: ettercap-0.7.3-64bit-casting.patch Markos Chandras (hwoarang)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox