libXext: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 13 23:15:00 UTC 2023


 src/Xge.c |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit e8db0fc7c047ccdd6c11381681b184bbe9ea8270
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Oct 8 09:57:09 2023 -0700

    _xgeDpyClose: handle NULL return from _xgeFindDisplay
    
    Resolves gcc warning:
    Xge.c: In function ‘_xgeDpyClose’:
    Xge.c:211:13: warning: dereference of NULL ‘info’ [CWE-476]
      [-Wanalyzer-null-dereference]
      211 |     if (info->data != NULL) {
          |         ~~~~^~~~~~
    
    Fixes: 850263a ("Add GenericEvent extension (XGE).")
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 7bed7727a86096a0f83a785a5a9a2ecad50507d9
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Oct 8 09:41:30 2023 -0700

    Check for malloc failure in _xgeGetExtensionVersion
    
    Handles gcc warning:
    Xge.c: In function ‘_xgeGetExtensionVersion’:
    Xge.c:196:25: warning: dereference of possibly-NULL ‘vers’ [CWE-690]
      [-Wanalyzer-possible-null-dereference]
    
    Fixes: 850263a ("Add GenericEvent extension (XGE).")
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit fe0c5f29cdd80d8d2c42f7c21a7077b6d744df9f
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Oct 8 09:35:01 2023 -0700

    _xgeGetExtensionVersion should not free info on failure
    
    Flagged by gcc:
    Xge.c: In function ‘_xgeCheckExtInit’:
    Xge.c:154:20: warning: use after ‘free’ of ‘info’ [CWE-416]
     [-Wanalyzer-use-after-free]
    
    _xgeCheckExtInit passes the info pointer to _xgeGetExtensionVersion
    and continues to use it after the call returns.
    
    Fixes: 850263a ("Add GenericEvent extension (XGE).")
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list