Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 2004 21:39:44 -0700 (PDT)
From:      Jake Hamby <jhamby@anobject.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/70514: GCC 3.4 patch for net-mgmt/bsd-airtools
Message-ID:  <200408160439.i7G4di10020966@localhost.my.domain>
Resent-Message-ID: <200408160440.i7G4eFuv044112@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70514
>Category:       ports
>Synopsis:       GCC 3.4 patch for net-mgmt/bsd-airtools
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 16 04:40:15 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jake Hamby
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
Software Factory x
>Environment:
System: FreeBSD fuji 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Sat Aug 14 19:00:56 PDT 2004 root@fuji:/usr/home/work/sys/FUJI i386

>Description:

The bsd-airtools-0.3 port doesn't compile under GCC 3.4 (patch attached).

>How-To-Repeat:

Try to build using FreeBSD-current.

>Fix:

--- patch-weakksa.c begins here ---
--- dweputils/dwepcrack/weakksa.c.orig	Sat Jul 19 22:43:59 2003
+++ dweputils/dwepcrack/weakksa.c	Sun Aug 15 21:34:45 2004
@@ -161,14 +161,13 @@
          (B != 0 && !(B % 2) ? (x == 1 && y == (B / 2) + 1) ||
          (x == (B / 2) + 2 && y == (N - 1) - x) : 0))
         {
-          if(BITSET(sample_check[x][y], z))
-            goto fail;
-          SETBIT(sample_check[x][y], z);
+          if(!BITSET(sample_check[x][y], z))
+          {
+            SETBIT(sample_check[x][y], z);
 
-          memcpy(samples[B].s[samples[B].len].iv, iv, IV_SIZE);
-          samples[B].s[samples[B].len++].byte = iv[4] ^ 0xaa;
-
-          fail:
+            memcpy(samples[B].s[samples[B].len].iv, iv, IV_SIZE);
+            samples[B].s[samples[B].len++].byte = iv[4] ^ 0xaa;
+          }
         }
       }
     }
--- patch-weakksa.c ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408160439.i7G4di10020966>