1. 03 4月, 2019 3 次提交
  2. 28 3月, 2019 1 次提交
    • M
      qemu_capabilities; Drop virQEMUCapsSetVAList · 087a74e1
      Michal Privoznik 提交于
      There is one specific caller (testInfoSetArgs() in
      qemuxml2argvtest.c) which expect the va_list argument to change
      after returning from the virQEMUCapsSetVAList() function.
      However, since we are passing plain va_list this is not
      guaranteed. The man page of stdarg(3) says:
      
        If ap is passed to a function that uses va_arg(ap,type), then
        the value of ap is undefined after the return of that function.
      
      (ap is a variable of type va_list)
      
      I've seen this in action in fact: on i686 the qemuxml2argvtest
      fails on the second test case because testInfoSetArgs() sees
      ARG_QEMU_CAPS and calls virQEMUCapsSetVAList to process the
      capabilities (in this case there's just one
      QEMU_CAPS_SECCOMP_BLACKLIST). But since the changes are not
      reflected in the caller, in the next iteration testInfoSetArgs()
      sees the QEMU capability and not ARG_END.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      087a74e1
  3. 22 3月, 2019 1 次提交
  4. 18 3月, 2019 3 次提交
  5. 12 3月, 2019 1 次提交
  6. 05 3月, 2019 5 次提交
  7. 04 3月, 2019 1 次提交
  8. 20 2月, 2019 13 次提交
  9. 12 2月, 2019 1 次提交
  10. 08 2月, 2019 11 次提交