1. 06 9月, 2018 6 次提交
  2. 05 9月, 2018 1 次提交
  3. 28 8月, 2018 2 次提交
  4. 24 8月, 2018 3 次提交
  5. 21 8月, 2018 3 次提交
  6. 17 8月, 2018 3 次提交
  7. 16 8月, 2018 1 次提交
    • M
      qemu_command: Fix memleak in qemuBuildFloppyCommandLineControllerOptions · 480d47cd
      Michal Privoznik 提交于
      There are some path where the buffer is not passed to
      virCommandAddArgBuffer and therefore the buffer might leak.
      
      ==191201== 1,010 bytes in 1 blocks are definitely lost in loss record 826 of 836
      ==191201==    at 0x4C2CE3F: malloc (vg_replace_malloc.c:298)
      ==191201==    by 0x4C2F1BF: realloc (vg_replace_malloc.c:785)
      ==191201==    by 0x5D39E82: virReallocN (viralloc.c:245)
      ==191201==    by 0x5D3E8F2: virBufferGrow (virbuffer.c:150)
      ==191201==    by 0x5D3E9C8: virBufferAdd (virbuffer.c:185)
      ==191201==    by 0x56EAC98: qemuBuildFloppyCommandLineControllerOptions (qemu_command.c:2162)
      ==191201==    by 0x56EB3E1: qemuBuildDisksCommandLine (qemu_command.c:2370)
      ==191201==    by 0x570055E: qemuBuildCommandLine (qemu_command.c:10315)
      ==191201==    by 0x575EA7F: qemuProcessCreatePretendCmd (qemu_process.c:6777)
      ==191201==    by 0x113DAB: testCompareXMLToArgv (qemuxml2argvtest.c:598)
      ==191201==    by 0x13A75B: virTestRun (testutils.c:180)
      ==191201==    by 0x138BE8: mymain (qemuxml2argvtest.c:2975)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      480d47cd
  8. 13 8月, 2018 1 次提交
  9. 10 8月, 2018 2 次提交
  10. 09 8月, 2018 4 次提交
  11. 07 8月, 2018 1 次提交
  12. 26 7月, 2018 1 次提交
    • D
      conf: don't use virDomainVirtType in struct field · 9e66ecb5
      Daniel P. Berrangé 提交于
      Use of enum types for struct fields is generally avoided since it causes
      warnings if the compiler assumes the enum is unsigned. For example
      
        commit 8e2982b5
        Author: Cole Robinson <crobinso@redhat.com>
        Date:   Tue Jul 24 16:27:54 2018 -0400
      
          conf: Clean up virDomainDefParseCaps
      
      Introduced a line:
      
        if ((def->virtType = virDomainVirtTypeFromString(virttype)) < 0) {
      
      which causes a build failure with CLang
      
        conf/domain_conf.c:19143:65: error: comparison of unsigned enum expression < 0 is always false [-Werror,-Wtautological-compare]
      
      as the compiler is free to optimize away the "< 0" check due to the
      assumption that the enum type is unsigned and always in range.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      9e66ecb5
  13. 23 7月, 2018 1 次提交
    • A
      src: Make virStr*cpy*() functions return an int · 6c0d0210
      Andrea Bolognani 提交于
      Currently, the functions return a pointer to the
      destination buffer on success or NULL on failure.
      
      Not only does this kind of error handling look quite
      alien in the context of libvirt, where most functions
      return zero on success and a negative int on failure,
      but it's also somewhat pointless because unless there's
      been a failure the returned pointer will be the same
      one passed in by the user, thus offering no additional
      value.
      
      Change the functions so that they return an int
      instead.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      6c0d0210
  14. 20 7月, 2018 1 次提交
  15. 19 7月, 2018 4 次提交
  16. 18 7月, 2018 1 次提交
  17. 10 7月, 2018 5 次提交