cvs commit: src/sys/dev/if_ndis if_ndis.c

Bill Paul wpaul at FreeBSD.org
Tue Mar 23 21:35:04 PST 2004


wpaul       2004/03/23 21:35:03 PST

  FreeBSD src repository

  Modified files:
    sys/dev/if_ndis      if_ndis.c 
  Log:
  The ndis_wlan_bssid_ex structure we retrieve in ndis_get_assoc() is
  variable length, so we should not be trying to copy it into a fixed
  length buffer, especially one on the stack. malloc() a buffer of the
  right size and return a pointer to that instead.
  
  Fixes a crash I discovered when testing whe a Cisco AP in infrastructure
  mode, which returns several information elements that make the
  ndis_wlan_bssid_ex structure larger than expected.
  
  Revision  Changes    Path
  1.50      +11 -5     src/sys/dev/if_ndis/if_ndis.c


More information about the cvs-all mailing list