You need to sign in or sign up before continuing.
  • J
    conf: check for buffer errors before virBufferUse · 7330a365
    Ján Tomko 提交于
    After an OOM error, virBuffer* APIs set buf->use to zero.
    Adding a buffer to the parent buffer only if use is non-zero
    would quietly drop data on error.
    
    Check the error beforehand to make sure buf->use is zero
    because we have not attempted to add anything to it.
    7330a365
domain_conf.c 853.0 KB