1. 08 8月, 2018 1 次提交
  2. 06 8月, 2018 1 次提交
  3. 28 7月, 2018 1 次提交
  4. 27 7月, 2018 1 次提交
  5. 26 7月, 2018 7 次提交
  6. 25 7月, 2018 1 次提交
  7. 23 7月, 2018 2 次提交
    • 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
    • A
      src: Use virStrcpyStatic() wherever possible · bfb8ab1b
      Andrea Bolognani 提交于
      This convenience macro was created for the simple cases
      where the length of the source string and the size of the
      destination buffer can be figued out with strlen() and
      sizeof() respectively, so we should use it wherever
      possible instead of open-coding parts of it.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      bfb8ab1b
  8. 19 7月, 2018 6 次提交
  9. 18 7月, 2018 1 次提交
  10. 10 7月, 2018 4 次提交
  11. 09 7月, 2018 3 次提交
  12. 05 7月, 2018 1 次提交
    • L
      virDomainConfNWFilterInstantiate: initialize @xml to avoid random crash · d7557f5f
      Luyao Huang 提交于
      If the code jump to the cleanup before assigning value to @xml
      libvirtd may crash when it tries to free an uninitialized pointer.
      
      backtrace:
      
      0  0x00007ffff428d59c in free () from /lib64/libc.so.6
      1  0x00007ffff721314a in virFree (ptrptr=ptrptr@entry=0x7fffc67f1b00) at util/viralloc.c:582
      2  0x00007ffff7345ac4 in virDomainConfNWFilterInstantiate (vmname=<optimized out>,
         vmuuid=vmuuid@entry=0x7fffc0181ca8 "߉\237\\۔H\262\206z\340\302f\265\233z", net=<optimized out>,
         ignoreExists=ignoreExists@entry=true) at conf/domain_nwfilter.c:122
      3  0x00007fffca5a77f6 in qemuProcessFiltersInstantiate (ignoreExists=true, def=0x7fffc0181ca0) at qemu/qemu_process.c:3028
      4  qemuProcessReconnect (opaque=<optimized out>) at qemu/qemu_process.c:7653
      5  0x00007ffff72c4895 in virThreadHelper (data=<optimized out>) at util/virthread.c:206
      6  0x00007ffff45dcdd5 in start_thread () from /lib64/libpthread.so.0
      7  0x00007ffff4305ead in clone () from /lib64/libc.so.6
      Signed-off-by: NLuyao Huang <lhuang@redhat.com>
      d7557f5f
  13. 04 7月, 2018 5 次提交
  14. 03 7月, 2018 3 次提交
  15. 27 6月, 2018 3 次提交