ports/70514: GCC 3.4 patch for net-mgmt/bsd-airtools

Jake Hamby jhamby at anobject.com
Mon Aug 16 04:40:15 UTC 2004


>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 at 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:



More information about the freebsd-ports-bugs mailing list