1. 11 5月, 2015 1 次提交
  2. 30 4月, 2015 1 次提交
  3. 28 4月, 2015 2 次提交
  4. 25 3月, 2015 1 次提交
  5. 10 3月, 2015 1 次提交
    • R
      fix GCC 5.0.0 logical-not-parentheses warnings · 8c1ac475
      Radim Krčmář 提交于
      man gcc:
        Warn about logical not used on the left hand side operand of a
        comparison.  This option does not warn if the RHS operand is of a
        boolean type.
      
      By preferring bool over int where sensible, but without modifying any
      depending code, make GCC happy in cases like this,
        qemu-img.c: In function ‘compare_sectors’:
        qemu-img.c:992:39: error: logical not is only applied to the left hand
        side of comparison [-Werror=logical-not-parentheses]
                 if (!!memcmp(buf1, buf2, 512) != res) {
      
      hw/ide/core.c:1836 doesn't throw an error,
        assert(!!s->error == !!(s->status & ERR_STAT));
      even thought the second operand is int (and first hunk of this patch has
      a very similar case), maybe GCC developers still have a little faith in
      C programmers.
      Signed-off-by: NRadim Krčmář <rkrcmar@redhat.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      8c1ac475
  6. 26 2月, 2015 2 次提交
  7. 12 1月, 2015 1 次提交
    • P
      net: remove all cleanup methods from NIC NetClientInfos · 57407ea4
      Paolo Bonzini 提交于
      All NICs have a cleanup function that, in most cases, zeroes the pointer
      to the NICState.  In some cases, it frees data belonging to the NIC.
      
      However, this function is never called except when exiting from QEMU.
      It is not necessary to NULL pointers and free data here; the right place
      to do that would be in the device's unrealize function, after calling
      qemu_del_nic.  Zeroing the NIC multiple times is also wrong for multiqueue
      devices.
      
      This cleanup function gets in the way of making the NetClientStates for
      the NIC hold an object_ref reference to the object, so get rid of it.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      57407ea4
  8. 28 11月, 2014 1 次提交
  9. 15 10月, 2014 2 次提交
  10. 19 9月, 2014 1 次提交
  11. 05 9月, 2014 2 次提交
  12. 02 9月, 2014 1 次提交
  13. 30 6月, 2014 4 次提交
  14. 27 6月, 2014 1 次提交
  15. 23 6月, 2014 1 次提交
  16. 19 6月, 2014 4 次提交
  17. 06 5月, 2014 1 次提交
  18. 05 5月, 2014 1 次提交
  19. 11 4月, 2014 1 次提交
    • M
      virtio-net: fix guest-triggerable buffer overrun · edc24385
      Michael S. Tsirkin 提交于
      When VM guest programs multicast addresses for
      a virtio net card, it supplies a 32 bit
      entries counter for the number of addresses.
      These addresses are read into tail portion of
      a fixed macs array which has size MAC_TABLE_ENTRIES,
      at offset equal to in_use.
      
      To avoid overflow of this array by guest, qemu attempts
      to test the size as follows:
      -    if (in_use + mac_data.entries <= MAC_TABLE_ENTRIES) {
      
      however, as mac_data.entries is uint32_t, this sum
      can overflow, e.g. if in_use is 1 and mac_data.entries
      is 0xffffffff then in_use + mac_data.entries will be 0.
      
      Qemu will then read guest supplied buffer into this
      memory, overflowing buffer on heap.
      
      CVE-2014-0150
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-id: 1397218574-25058-1-git-send-email-mst@redhat.com
      Reviewed-by: NMichael Tokarev <mjt@tls.msk.ru>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      edc24385
  20. 26 3月, 2014 2 次提交
  21. 10 3月, 2014 1 次提交
  22. 25 2月, 2014 3 次提交
  23. 10 12月, 2013 4 次提交
  24. 09 12月, 2013 1 次提交