libXaw: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Mar 4 23:21:32 UTC 2024


 src/Actions.c     |   17 ++++++++++-------
 src/DisplayList.c |    2 +-
 2 files changed, 11 insertions(+), 8 deletions(-)

New commits:
commit b116d033a5b4daf75a10ad959e42aac398036ef9
Author: Thomas E. Dickey <dickey at invisible-island.net>
Date:   Sun Mar 3 19:04:21 2024 -0500

    clang/gcc warnings about undefined behavior (minor bug-fix)
    
    Signed-off-by: Thomas E. Dickey <dickey at invisible-island.net>

commit fd4b2ce63feae01744a850fa6f1809ff15361a8b
Author: Thomas E. Dickey <dickey at invisible-island.net>
Date:   Sun Mar 3 18:51:46 2024 -0500

    fix clang/gcc warnings for undefined behavior, also fix a bug
    
    XtConvertAndStore may update the XrmValue value, changing its size.
    clang and gcc warn about undefined behavior in the case-statement
    following the call (which uses the size), but do not explain what
    the problem is.  Since this code is not intended to handle changes
    of the size, simply reject that case.  That quiets the gcc warnings
    and is actually all that is needed for correctness.  clang still
    complains (neither knows what the call does), but can be quieted
    by initializing the variable before calling the function.
    
    The code happens to work without the fix as long as it is not
    used to convert between resource types which would increase the
    size.
    
    Signed-off-by: Thomas E. Dickey <dickey at invisible-island.net>



More information about the xorg-commit mailing list