• D
    Fix allocation of arglist in qemuStringToArgvEnv · 150c1db5
    Daniel P. Berrange 提交于
    In
    
      commit 41b55056
      Author: Eric Blake <eblake@redhat.com>
      Date:   Wed Aug 28 15:01:23 2013 -0600
    
        qemu: simplify list cleanup
    
    The qemuStringToArgvEnv method was changed to use virStringFreeList
    to free the 'arglist' array. This method assumes the string list
    array is NULL terminated, however, qemuStringToArgvEnv was not
    ensuring this when populating 'arglist'. This caused an out of
    bounds access by virStringFreeList when OOM occured in the initial
    loop of qemuStringToArgvEnv
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    150c1db5
qemu_command.c 412.2 KB