1. 27 8月, 2019 1 次提交
  2. 09 7月, 2019 5 次提交
  3. 17 4月, 2019 2 次提交
  4. 04 3月, 2019 2 次提交
  5. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  6. 07 12月, 2018 1 次提交
  7. 27 11月, 2018 2 次提交
  8. 21 9月, 2018 6 次提交
  9. 17 9月, 2018 2 次提交
  10. 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: Don't rely on strncpy()-like behavior · 583bdfa6
      Andrea Bolognani 提交于
      The strncpy() function has this quirk where it will copy
      *up* to the requested number of bytes, that is, it will
      stop early if it encounters a NULL byte in the source
      string.
      
      This makes it legal to pass the size of the destination
      buffer (minus one byte needed for the string terminator)
      as the number of bytes to copy and still get something
      somewhat reasonable out of the operation; unfortunately,
      it also makes the function difficult to reason about
      and way too easy to misuse.
      
      We want to move away from the way strncpy() behaves and
      towards better defined semantics, where virStrncpy()
      will always copy *exactly* the number of bytes it's
      been asked to copy; before we can do that, though, we
      have to change a few of the callers.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      583bdfa6
  11. 14 6月, 2018 1 次提交
  12. 11 6月, 2018 1 次提交
  13. 04 5月, 2018 1 次提交
  14. 24 4月, 2018 1 次提交
  15. 22 2月, 2018 1 次提交
  16. 14 12月, 2017 2 次提交
  17. 12 12月, 2017 1 次提交
    • M
      xenMakeIPList: Don't leak @address_array · 34fb67ef
      Michal Privoznik 提交于
      ==32171== 32 bytes in 1 blocks are definitely lost in loss record 44 of 107
      ==32171==    at 0x4C2DEF6: calloc (vg_replace_malloc.c:711)
      ==32171==    by 0x55744A9: virAllocN (viralloc.c:191)
      ==32171==    by 0x12CED2: xenMakeIPList (xen_common.c:1186)
      ==32171==    by 0x12D0BE: xenFormatNet (xen_common.c:1221)
      ==32171==    by 0x12F0D2: xenFormatVif (xen_common.c:1889)
      ==32171==    by 0x12F2B4: xenFormatConfigCommon (xen_common.c:1944)
      ==32171==    by 0x13BA32: xenFormatXL (xen_xl.c:1971)
      ==32171==    by 0x1186CA: testCompareParseXML (xlconfigtest.c:105)
      ==32171==    by 0x118A64: testCompareHelper (xlconfigtest.c:205)
      ==32171==    by 0x119E36: virTestRun (testutils.c:180)
      ==32171==    by 0x11970E: mymain (xlconfigtest.c:301)
      ==32171==    by 0x11BEE3: virTestMain (testutils.c:1119)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      34fb67ef
  18. 09 12月, 2017 2 次提交
  19. 25 11月, 2017 1 次提交
  20. 19 10月, 2017 2 次提交
  21. 21 7月, 2017 1 次提交
  22. 25 1月, 2017 1 次提交
  23. 03 9月, 2016 1 次提交