1. 15 1月, 2011 17 次提交
  2. 14 1月, 2011 1 次提交
  3. 13 1月, 2011 9 次提交
  4. 12 1月, 2011 8 次提交
  5. 11 1月, 2011 4 次提交
  6. 10 1月, 2011 1 次提交
    • A
      slirp: fix unaligned access in bootp code · 8aaf42ed
      Aurelien Jarno 提交于
      Slirp code tries to be smart an avoid data copy by using pointer to
      the data. This solution leads to unaligned access, in this case
      preq_addr, which is a 32-bit long structure. There is no real point
      of avoiding data copy in a such case, as the value itself is smaller
      or the same size as a pointer.
      
      The patch replaces pointers to the preq_addr structure by the strcture
      itself, and use the address 0.0.0.0 if no address has been requested
      (this is not a valid address in such a request). It compares it with
      htonl(0L) for correctness reasons, in case a code checker look for such
      mistakes. It also uses memcpy() for copying the data, which takes care
      of alignement issues.
      
      This fixes an unaligned access on IA64 host while requesting a DHCP
      address.
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      8aaf42ed