libICE: Changes to 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Sun Jul 19 08:38:26 PDT 2015


 src/ICElibint.h |   32 ++++++++++++++++----------------
 src/process.c   |   10 +++++-----
 2 files changed, 21 insertions(+), 21 deletions(-)

New commits:
commit b1720edc9b9f3e7a05caa3fcd81761e5818ea255
Author: Remko van der Vossen <bugs at yuugen.jp>
Date:   Sun Jul 19 08:34:11 2015 -0700

    Bug 90616 - libICE build fails on array bounds check
    
    https://bugs.freedesktop.org/show_bug.cgi?id=90616
    
    Recent versions of gcc have array bounds checking turned on by default,
    this leads to build failures of libICE. As the _IceVersionCount variable
    in ICElibint.h is not declared const the compiler cannot assume that the
    nested for loop in ProcessConnectionSetup stays within bounds.
    
    The simple fix is of course to change the declarations of _IceVersionCount,
    _IceVersions, and the local variable myVersionCount to const declarations.
    
    Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list