• M
    security: Fix libvirtd crash possibility · b2c5a911
    Martin Kletzander 提交于
    Fix for CVE-2012-4423.
    
    When generating RPC protocol messages, it's strictly needed to have a
    continuous line of numbers or RPC messages. However in case anyone
    tries backporting some functionality and will skip a number, there is
    a possibility to make the daemon segfault with newer virsh (version of
    the library, rpc call, etc.) even unintentionally.
    
    The problem is that the skipped numbers will get func filled with
    NULLs, but there is no check whether these are set before the daemon
    tries to run them. This patch very simply enhances one check and fixes
    that.
    (cherry picked from commit b7ff9e69)
    b2c5a911
virnetserverprogram.c 16.2 KB