1. 11 6月, 2014 4 次提交
    • L
      dump: fill in the flat header signature more pleasingly to the eye · ae3f88f6
      Laszlo Ersek 提交于
      The "mh.signature" array field has size 16, and is zeroed by the preceding
      memset(). MAKEDUMPFILE_SIGNATURE expands to a string literal with string
      length 12 (size 13). There's no need to measure the length of
      MAKEDUMPFILE_SIGNATURE at runtime, nor for the extra zero-filling of
      "mh.signature" with strncpy().
      
      Use memcpy() with MIN(sizeof, sizeof) for robustness (which is an integer
      constant expression, evaluable at compile time.)
      Approximately-suggested-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NLaszlo Ersek <lersek@redhat.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      ae3f88f6
    • P
      Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-06-10' into staging · b780bf8e
      Peter Maydell 提交于
      trivial patches for 2014-06-10
      
      # gpg: Signature made Tue 10 Jun 2014 17:07:19 BST using RSA key ID A4C3D7DB
      # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>"
      # gpg:                 aka "Michael Tokarev <mjt@corpit.ru>"
      # gpg:                 aka "Michael Tokarev <mjt@debian.org>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 6EE1 95D1 886E 8FFB 810D  4324 457C E0A0 8044 65C5
      #      Subkey fingerprint: 6F67 E18E 7C91 C5B1 5514  66A7 BEE5 9D74 A4C3 D7DB
      
      * remotes/mjt/tags/trivial-patches-2014-06-10: (25 commits)
        virtio.c: fix error message
        hw: vmware_vga: don't return cursorx when the driver asks for cursory register
        migration: Plug memory leak in migrate-set-cache-size command
        libcacard: Clean up dead stores before g_free()
        libcacard: Drop superfluous conditionals around g_free()
        cpu/x86: correctly set errors in x86_cpu_parse_featurestr
        smbios: use g_free directly on NULL pointers
        vdi: remove double conversion
        apb: Fix compiler warnings (large constants)
        hw/net/ne2000-isa: Register vmstate struct
        target-microblaze: Delete unused sign_extend() function
        hw/misc/milkymist-softusb: Remove unused softusb_{read, write}_pmem()
        target-i386/translate.c: Remove unused tcg_gen_lshift()
        hw/isa/pc87312: Remove unused function is_parallel_epp()
        hw/intc/openpic: Remove unused function IRQ_testbit()
        hw/dma/xilinx_axidma: Remove unused stream_halted() function
        util/qemu-sockets.c: Avoid unused variable warnings
        hw/sd/sd.c: Drop unused sd_acmd_type[] array
        hw/i386/pc.c: Remove unused parallel_io and parallel_irq variables
        slirp: Remove unused zero_ethaddr[] variable
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b780bf8e
    • M
      virtio.c: fix error message · 1a285899
      Michael Tokarev 提交于
      Suggested-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      1a285899
    • N
      hw: vmware_vga: don't return cursorx when the driver asks for cursory register · e2bb4ae7
      Nicolas Owens 提交于
      hello qemu-*@nongnu.org, this is my first contribution. apologies if
      something is incorrect.
      
      this patch fixes vmware_vga.c so that it actually returns the cursory
      register when asked for, instead of cursorx.
      Signed-off-by: NNicolas Owens <mischief@offblast.org>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      e2bb4ae7
  2. 10 6月, 2014 36 次提交