1. 13 4月, 2019 3 次提交
  2. 08 4月, 2019 2 次提交
  3. 07 3月, 2019 1 次提交
    • M
      cpu: Don't access invalid memory in virCPUx86Translate · 62cb9c33
      Michal Privoznik 提交于
      Problem is that if there are no signatures for a CPU, then we
      still allocate cpu->signatures (even though with size 0). Later,
      we access cpu->signatures[0] if cpu->signatures is not NULL.
      
       Invalid read of size 4
          at 0x5F439D7: virCPUx86Translate (cpu_x86.c:2930)
          by 0x5F3C239: virCPUTranslate (cpu.c:927)
          by 0x57CE7A1: qemuProcessUpdateGuestCPU (qemu_process.c:5870)
          ...
        Address 0xf752d40 is 0 bytes after a block of size 0 alloc'd
          at 0x4C30EC6: calloc (vg_replace_malloc.c:711)
          by 0x5DBDE4E: virAllocN (viralloc.c:190)
          by 0x5F3E4FA: x86ModelCopySignatures (cpu_x86.c:990)
          by 0x5F3E60F: x86ModelCopy (cpu_x86.c:1008)
          by 0x5F3E7CB: x86ModelFromCPU (cpu_x86.c:1068)
          by 0x5F4397E: virCPUx86Translate (cpu_x86.c:2922)
          by 0x5F3C239: virCPUTranslate (cpu.c:927)
          by 0x57CE7A1: qemuProcessUpdateGuestCPU (qemu_process.c:5870)
          ...
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
      62cb9c33
  4. 05 3月, 2019 10 次提交
  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. 15 11月, 2018 2 次提交
  7. 20 9月, 2018 1 次提交
  8. 17 9月, 2018 1 次提交
  9. 28 8月, 2018 3 次提交
  10. 17 8月, 2018 3 次提交
  11. 28 5月, 2018 3 次提交
  12. 10 1月, 2018 2 次提交
  13. 04 1月, 2018 2 次提交
  14. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  15. 18 10月, 2017 1 次提交
  16. 16 10月, 2017 4 次提交