libX11: Changes to 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Sat Mar 10 01:22:36 UTC 2018


 src/GetImage.c |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

New commits:
commit 34f4464f69a4d6ff0d1042500a62f9a5ed7f3647
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Tue Mar 6 11:42:27 2018 -0800

    If XGetImage fails to create image, don't dereference it to bounds check
    
    Reported by gcc 7.3:
    
    GetImage.c:110:25: warning: potential null pointer dereference [-Wnull-dereference]
      if (planes < 1 || image->height < 1 || image->bytes_per_line < 1 ||
                        ~~~~~^~~~~~~~
    
    Introduced by 8ea762f94f4c942d898fdeb590a1630c83235c17 in Xlib 1.6.4
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Reviewed-by: Emil Velikov <emil.velikov at collabora.com>



More information about the xorg-commit mailing list