1. 18 11月, 2017 4 次提交
  2. 29 8月, 2017 1 次提交
  3. 20 7月, 2017 1 次提交
  4. 23 3月, 2017 2 次提交
  5. 14 2月, 2017 1 次提交
    • J
      util: fix off-by-one when expanding a bitmap · 4a41cf18
      Ján Tomko 提交于
      To make sure bit 'b' fits into the bitmap, we need to allocate b+1
      bits, since we number from 0.
      
      Adjust the bitmap test to set a bit at a multiple of 16.
      That way the test fails without this fix, because the VIR_REALLOC
      call clears the newly added memory even if the original pointer
      has not changed.
      4a41cf18
  6. 12 10月, 2016 1 次提交
  7. 09 7月, 2016 2 次提交
  8. 20 6月, 2016 4 次提交
  9. 03 6月, 2016 1 次提交
    • M
      Fix building with -Og · 3470cd86
      Martin Kletzander 提交于
      When building using -Og, gcc sees that some variables can be used
      uninitialized  It can be debatable whether it is possible with our
      codeflow, but functions should be self-contained and initializations are
      always good.  The return instead of goto is due to actualType being used
      in the cleanup.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      3470cd86
  10. 30 3月, 2016 1 次提交
    • P
      util: bitmap: Introduce self-expanding bitmap APIs · 917426c8
      Peter Krempa 提交于
      In some cases it's impractical to use the regular APIs as the bitmap
      size needs to be pre-declared. These new APIs allow to use bitmaps that
      self expand.
      
      The new code adds a property to the bitmap to track the allocation of
      memory so that VIR_RESIZE_N can be used.
      917426c8
  11. 05 2月, 2016 1 次提交
  12. 23 9月, 2015 1 次提交
  13. 08 7月, 2015 1 次提交
  14. 03 6月, 2015 1 次提交
  15. 13 4月, 2015 1 次提交
  16. 13 3月, 2015 1 次提交
    • J
      Introduce virBitmapIsBitSet · 22fd3ac3
      Ján Tomko 提交于
      A helper that never returns an error and treats bits out of bitmap range
      as false.
      
      Use it everywhere we use ignore_value on virBitmapGetBit, or loop over
      the bitmap size.
      22fd3ac3
  17. 31 1月, 2015 1 次提交
  18. 29 1月, 2015 1 次提交
  19. 15 11月, 2014 1 次提交
  20. 04 11月, 2014 1 次提交
  21. 12 8月, 2014 1 次提交
  22. 29 7月, 2014 1 次提交
  23. 06 6月, 2014 3 次提交
  24. 25 3月, 2014 1 次提交
  25. 10 3月, 2014 1 次提交
  26. 22 8月, 2013 1 次提交
  27. 16 8月, 2013 1 次提交
    • P
      virbitmap: Refactor virBitmapParse to avoid access beyond bounds of array · 47b9127e
      Peter Krempa 提交于
      The virBitmapParse function was calling virBitmapIsSet() function that
      requires the caller to check the bounds of the bitmap without checking
      them. This resulted into crashes when parsing a bitmap string that was
      exceeding the bounds used as argument.
      
      This patch refactors the function to use virBitmapSetBit without
      checking if the bit is set (this function does the checks internally)
      and then counts the bits in the bitmap afterwards (instead of keeping
      track while parsing the string).
      
      This patch also changes the "parse_error" label to a more common
      "error".
      
      The refactor should also get rid of the need to call sa_assert on the
      returned variable as the callpath should allow coverity to infer the
      possible return values.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=997367
      
      Thanks to Alex Jia for tracking down the issue. This issue is introduced
      by commit 0fc89098.
      47b9127e
  28. 11 7月, 2013 1 次提交
  29. 10 7月, 2013 1 次提交
  30. 24 5月, 2013 1 次提交