1. 22 11月, 2019 1 次提交
    • E
      libvirt-<module>: Check caller-provided buffers to be NULL with size > 0 · d6064e27
      Erik Skultety 提交于
      Pre-Glib era which used malloc allowed the size of the client-side
      buffers to be declared as 0, because malloc documents that it can either
      return 0 or a unique pointer on 0 size allocations.
      With glib this doesn't work anymore, because glib documents that for
      such allocation requests NULL is always returned which results in an
      error in our public API checks server-side.
      This patch complements the fix in the RPC layer by explicitly erroring
      out on the following combination of args used by our legacy APIs (their
      moder equivalents don't suffer from this):
      
      function(caller-allocated-array, size, ...) {
          if (!caller-allocated-array && size > 0)
              return error;
      }
      
      treating everything else as a valid input and potentially let that fail
      on the server-side rather than client-side.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1772842Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      d6064e27
  2. 18 4月, 2018 2 次提交
  3. 21 3月, 2018 1 次提交
  4. 25 9月, 2017 1 次提交
  5. 26 5月, 2017 1 次提交
  6. 18 5月, 2017 1 次提交
  7. 17 2月, 2017 1 次提交
    • M
      nodedev: Introduce new drm cap · 78c01869
      Michal Privoznik 提交于
      After 7f1bdec5 our nodedev driver is capable of
      determining DRM devices (DRM stands for Direct Render Manager not
      Digital rights management). There is still one bit missing
      though: virConnectListAllNodeDevices() is capable of listing
      either all devices or just those with specified capability. Well,
      DRM capability is missing there.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      78c01869
  8. 26 9月, 2016 1 次提交
  9. 22 9月, 2016 1 次提交
  10. 02 8月, 2016 1 次提交
    • J
      Introduce node device lifecycle event APIs · fcabc1ca
      Jovanka Gulicoska 提交于
      Node device lifecycle event API entry points for registering and
      deregistering node deivce events, as well as types of events
      associated with node device.
      These entry points will be used for implementing asynchronous
      lifecycle events.
      
      Node device API:
      virConnectNodeDeviceEventRegisterAny
      virConnectNodeDeviceEventDeregisterAny
      virNodeDeviceEventLifecycleType which has events CREATED and DELETED
      fcabc1ca
  11. 29 5月, 2015 1 次提交
    • L
      debug: assure NULLSTR() around all %s args in debug at top of public APIs · e983e625
      Laine Stump 提交于
      There are also a couple that were very uninformatively just logging
      the value of the pointer rather than the string itself:
      
      * the "name" arg to virNodeDeviceLookupByName()
      * wwnn and wwpn args to virNodeDeviceLookupSCSIHostByWWN()
      
      All char*'s that make sense should now have their contents logged
      rather than the pointer, and all %s args should now be inside
      NULLSTR().
      e983e625
  12. 15 11月, 2014 1 次提交
  13. 24 10月, 2014 1 次提交