libICE: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 22 00:41:41 UTC 2024


 src/error.c |   40 +++++++++++++++++++++++++---------------
 1 file changed, 25 insertions(+), 15 deletions(-)

New commits:
commit a767164a8e4467a5faa1265536f05a4bea8f8df0
Author: mahendra <mahendra.n at samsung.com>
Date:   Tue Nov 10 14:01:39 2015 +0530

    libICE : Dereferencing a possible NULL pointer in error.c
    
    In function _IceErrorSetupFailed at line no 188, IceAllocScratch is used to
    allocate memory for variable pStart and pBuf.
    
    IceAllocScratch is using malloc for memory allocation, malloc can return
    NULL on failure. So before dereferencing pStart and pBuf, NULL check must
    apply.
    
    v2 (by alanc): correct inverted tests for NULL from original patch
    
    Closes: #5
    Signed-off-by: mahendra <mahendra.n at samsung.com>
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/lib/libice/-/merge_requests/22>



More information about the xorg-commit mailing list