Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/libICE/dist initial import of libICE-1.0.10



details:   https://anonhg.NetBSD.org/xsrc/rev/6e9a11749788
branches:  trunk
changeset: 10346:6e9a11749788
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jul 15 05:38:04 2019 +0000

description:
initial import of libICE-1.0.10

diffstat:

 external/mit/libICE/dist/ChangeLog                  |   405 +
 external/mit/libICE/dist/Makefile.am                |     2 +
 external/mit/libICE/dist/Makefile.in                |    48 +-
 external/mit/libICE/dist/README.md                  |    23 +
 external/mit/libICE/dist/aclocal.m4                 |  5312 +++++++++-------
 external/mit/libICE/dist/compile                    |     2 +-
 external/mit/libICE/dist/config.guess               |   854 +-
 external/mit/libICE/dist/config.h.in                |    12 +-
 external/mit/libICE/dist/config.sub                 |   345 +-
 external/mit/libICE/dist/configure                  |  2702 +++++---
 external/mit/libICE/dist/configure.ac               |     8 +-
 external/mit/libICE/dist/depcomp                    |     2 +-
 external/mit/libICE/dist/doc/ICElib.xml             |     2 +-
 external/mit/libICE/dist/doc/Makefile.in            |    29 +-
 external/mit/libICE/dist/include/X11/ICE/ICEmsg.h   |    12 +-
 external/mit/libICE/dist/include/X11/ICE/ICEproto.h |    32 +-
 external/mit/libICE/dist/install-sh                 |   354 +-
 external/mit/libICE/dist/ltmain.sh                  |  5812 +++++++++++-------
 external/mit/libICE/dist/missing                    |     6 +-
 external/mit/libICE/dist/specs/Makefile.in          |    29 +-
 external/mit/libICE/dist/specs/ice.xml              |    10 +-
 external/mit/libICE/dist/src/ICElibint.h            |    36 +-
 external/mit/libICE/dist/src/Makefile.am            |     3 +-
 external/mit/libICE/dist/src/Makefile.in            |    30 +-
 external/mit/libICE/dist/src/authutil.c             |    71 +-
 external/mit/libICE/dist/src/connect.c              |    83 +-
 external/mit/libICE/dist/src/error.c                |    11 +-
 external/mit/libICE/dist/src/getauth.c              |    10 +-
 external/mit/libICE/dist/src/iceauth.c              |    70 +-
 external/mit/libICE/dist/src/listen.c               |    36 +-
 external/mit/libICE/dist/src/listenwk.c             |    27 +-
 external/mit/libICE/dist/src/misc.c                 |    22 +-
 external/mit/libICE/dist/src/process.c              |   121 +-
 external/mit/libICE/dist/src/protosetup.c           |    37 +-
 external/mit/libICE/dist/src/register.c             |     2 +-
 external/mit/libICE/dist/src/replywait.c            |     6 +-
 external/mit/libICE/dist/src/setauth.c              |     2 +-
 external/mit/libICE/dist/src/shutdown.c             |    90 +-
 external/mit/libICE/dist/src/watch.c                |     6 +-
 39 files changed, 9837 insertions(+), 6827 deletions(-)

diffs (truncated from 30067 to 300 lines):

diff -r 78716d9ac09b -r 6e9a11749788 external/mit/libICE/dist/ChangeLog
--- a/external/mit/libICE/dist/ChangeLog        Mon Jul 15 04:54:47 2019 +0000
+++ b/external/mit/libICE/dist/ChangeLog        Mon Jul 15 05:38:04 2019 +0000
@@ -1,3 +1,408 @@
+commit 8e6a14c63d6b73cde87cb331439f2a4d19cba5b9
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Jul 14 10:37:25 2019 -0700
+
+    libICE 1.0.10
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit b6aad584c1dc278364c295165512b5f5b98c173e
+Author: Olivier Fourdan <ofourdan%redhat.com@localhost>
+Date:   Thu Apr 11 09:05:15 2019 +0200
+
+    cleanup: Separate variable assignment and test
+    
+    Assigning and testing a value in a single statement hinders code clarity
+    and may confuses static code analyzers.
+    
+    Separate the assignment and the test for clarity.
+    
+    Signed-off-by: Olivier Fourdan <ofourdan%redhat.com@localhost>
+
+commit 772e5b0fdfc9dbd8bec070bd0c4c7eb5565df2ee
+Author: Olivier Fourdan <ofourdan%redhat.com@localhost>
+Date:   Wed Apr 10 11:15:11 2019 +0200
+
+    _IceRead: Avoid possible use-after-free
+    
+    `_IceRead()` gets called from multiple places which do not expect the
+    connection to be freed.
+    
+    Do not free the connection data in `_IceRead()` to avoid potential
+    use-after-free issue in the various callers.
+    
+    The connection data will be freed eventually in `ProcessWantToClose()`,
+    so not freeing it in `_IceRead()` should not introduce an memory leak.
+    
+    Signed-off-by: Olivier Fourdan <ofourdan%redhat.com@localhost>
+
+commit 1493beba2aa03bdadeed8b4fa5d424df6e113071
+Author: Olivier Fourdan <ofourdan%redhat.com@localhost>
+Date:   Wed Apr 10 11:01:31 2019 +0200
+
+    IceListenForWellKnownConnections: Fix memleak
+    
+    The function `_IceTransMakeAllCOTSServerListeners` allocates memory for
+    `transConns` which is leaked in case of error.
+    
+    Signed-off-by: Olivier Fourdan <ofourdan%redhat.com@localhost>
+
+commit a67a477eefdc93c32fa82da6ff0b4e69dd4c2ccb
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Mar 24 15:29:34 2019 -0700
+
+    IceWritePad: always use zero values for pad bytes
+    
+    Previously it would just bump the pointer in the buffer leaving
+    whatever values were previously there in place.
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 2318ace3340009c44e78eab094f159f0e0b4a197
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Mar 24 14:36:10 2019 -0700
+
+    IceOpenConnection: check for malloc failure on connect_to_you too
+    
+    Fixes: https://gitlab.freedesktop.org/xorg/lib/libice/issues/4
+    
+    Reported-by: mahendra <mahendra.n%samsung.com@localhost>
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit b484311c929a1b64966d89da92fafce7263006e1
+Author: Allison Lortie <desrt%desrt.ca@localhost>
+Date:   Tue Jun 14 16:09:46 2016 -0400
+
+    authutil: support $XDG_RUNTIME_DIR/ICEauthority
+    
+    If we find that $XDG_RUNTIME_DIR is set (and $ICEAUTHORITY is not), then
+    the ICEauthority file is stored in the XDG_RUNTIME_DIR instead of the
+    home directory, and without a leading dot.
+    
+    https://bugs.freedesktop.org/show_bug.cgi?id=49173
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 48ed5e04b5a8ba64dcfeea090cf3a32d3087b749
+Author: Allison Lortie <desrt%desrt.ca@localhost>
+Date:   Tue Jun 14 16:08:21 2016 -0400
+
+    authutil: fix an out-of-bounds access
+    
+    There is a theoretical edge case where the $HOME environment variable
+    could be set to the empty string.  IceAuthFileName() unconditionally
+    checks index 1 of this string, which is out of bounds.
+    
+    Fix that up by rejecting empty strings in the same way as we reject
+    NULL.
+    
+    https://bugs.freedesktop.org/show_bug.cgi?id=49173
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 468b83ec4810b4ea2373182b5801f998f3dcd471
+Author: Tobias Stoeckmann <tobias%stoeckmann.org@localhost>
+Date:   Mon Jul 30 20:50:58 2018 +0200
+
+    Always terminate strncpy results.
+    
+    The function strncpy does not guarantee to append a terminating
+    NUL character to the destination.
+    
+    This patch merges libSM's way of handling this issue into libICE.
+    
+    Signed-off-by: Tobias Stoeckmann <tobias%stoeckmann.org@localhost>
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 1cc4ae8648590f04557a20c8d88d39cef7fe8119
+Author: walter harms <wharms%bfs.de@localhost>
+Date:   Thu Sep 7 18:52:13 2017 +0200
+
+    iceauth.c: FIX warning: unused variable 'ret' in 'arc4random_buf'
+    
+    commit ff5e59f32255913bb1cdf51441b98c9107ae165b left ret outside the #if
+    causing a gcc warning:
+    
+     In function 'arc4random_buf':
+     iceauth.c:89:13: warning: unused variable 'ret' [-Wunused-variable]
+    
+    fixed by moving  #if 1 up
+    
+    Signed-off-by:  Walter Harms <wharms%bfs.de@localhost>
+    Reviewed-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit ccbcae7d3409789bf346ca35963264d064f54cba
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Fri Dec 7 19:29:55 2018 -0800
+
+    Update configure.ac bug URL for gitlab migration
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit e72ca90879db149bbee6232dd78a565e630e917d
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sun Nov 18 21:48:59 2018 -0800
+
+    Update README for gitlab migration
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit dc73ec034c9083b8c7d980e80eb6d4c88bcfaa51
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Nov 10 13:13:45 2018 -0800
+
+    Remove obsolete B16 & B32 tags in struct definitions
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit f66955f7250d7c150dfb97862878acc2222781e5
+Author: walter harms <wharms%bfs.de@localhost>
+Date:   Fri Sep 8 20:03:03 2017 +0200
+
+    make IceProtocolShutdown() more readable
+    
+    I found IceProtocolShutdown() hard to read only to find that was
+    it does it aktually very simple. So i rearranged the code to make
+    it more readable.
+    
+    Signed-off-by: Walter Harms <wharms%bfs.de@localhost>
+    Reviewed-by: Eric Engestrom <eric.engestrom%imgtec.com@localhost>
+    [Emil Velikov: whitespace fixes]
+    Signed-off-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+
+commit 936dcaac07f7db569ed91a34e0a4b5944aac205f
+Author: walter harms <wharms%bfs.de@localhost>
+Date:   Fri Sep 8 19:59:17 2017 +0200
+
+    Drop NULL check prior to free()
+    
+    free() can handle NULL just fine - remove the check.
+    
+    Signed-off-by: Walter Harms <wharms%bfs.de@localhost>
+    Reviewed-by: Eric Engestrom <eric.engestrom%imgtec.com@localhost>
+    Reviewed-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+
+commit 43644931cb9cb5cc92391f6f5431535b9b7a3f24
+Author: Eric Engestrom <eric.engestrom%imgtec.com@localhost>
+Date:   Fri Jul 7 11:23:48 2017 +0100
+
+    Make sure string is never NULL
+    
+    `error_message` is passed in to strncpy() without any check, which
+    doesn't handle NULL itself, so let's make it a valid empty string in
+    cases where it was NULL.
+    
+    Signed-off-by: Eric Engestrom <eric.engestrom%imgtec.com@localhost>
+    Acked-by: Walter Harms <wharms%bfs.de@localhost>
+    Reviewed-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+
+commit e8c21056134498c49733f6baf572ffbb051ed886
+Author: Eric Engestrom <eric.engestrom%imgtec.com@localhost>
+Date:   Fri Jul 7 11:23:47 2017 +0100
+
+    Make sure error_message is a free-able string
+    
+    Similar to the previous commit, assigning a static string would crash
+    upon freeing.
+    
+    Signed-off-by: Eric Engestrom <eric.engestrom%imgtec.com@localhost>
+    Acked-by: Walter Harms <wharms%bfs.de@localhost>
+    Reviewed-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+
+commit 7a7844bf5ade915268fe7f9b292908c6cd75f3ba
+Author: Eric Engestrom <eric.engestrom%imgtec.com@localhost>
+Date:   Fri Jul 7 11:23:46 2017 +0100
+
+    Make sure errorStr is a free-able string
+    
+    If the `errorClass` isn't handled by the switch, `errorStr`'s initial
+    value would be a pointer to some static memory with an empty string,
+    and freeing it would most likely crash.
+    
+    Let's set it to NULL instead, as is done in other similar places.
+    
+    Signed-off-by: Eric Engestrom <eric.engestrom%imgtec.com@localhost>
+    Acked-by: Walter Harms <wharms%bfs.de@localhost>
+    Reviewed-by: Emil Velikov <emil.velikov%collabora.com@localhost>
+
+commit 7ef9680caa8c223a09beb637e26fd3471128e6ba
+Author: Emil Velikov <emil.l.velikov%gmail.com@localhost>
+Date:   Sun May 8 09:19:36 2016 +0100
+
+    configure.ac: set TRANS_CLIENT/SERVER
+    
+    Similar to ICE_t just set the define globally and remove the multiple
+    definitions throughout the tree
+    
+    Signed-off-by: Emil Velikov <emil.l.velikov%gmail.com@localhost>
+    Reviewed-by: Adam Jackson <ajax%redhat.com@localhost>
+    Reviewed-by: Eric Engestrom <eric.engestrom%imgtec.com@localhost> (IRC)
+
+commit ab64a947b5de5b778f31ede9cfce386566023a14
+Author: Emil Velikov <emil.l.velikov%gmail.com@localhost>
+Date:   Sun May 8 09:19:35 2016 +0100
+
+    Kill off local ICE_t definitions
+    
+    Already defined at global scale in configure.ac
+    
+    Signed-off-by: Emil Velikov <emil.l.velikov%gmail.com@localhost>
+    Reviewed-by: Adam Jackson <ajax%redhat.com@localhost>
+    Reviewed-by: Eric Engestrom <eric.engestrom%imgtec.com@localhost> (IRC)
+
+commit f4c00d345edf3dad5893b50ff0ae7cd3e0cfd780
+Author: Emil Velikov <emil.l.velikov%gmail.com@localhost>
+Date:   Sun May 8 09:19:34 2016 +0100
+
+    Remove unneeded ^L symbols.
+    
+    Signed-off-by: Emil Velikov <emil.l.velikov%gmail.com@localhost>
+    Reviewed-by: Adam Jackson <ajax%redhat.com@localhost>
+    Reviewed-by: Eric Engestrom <eric.engestrom%imgtec.com@localhost> (IRC)
+
+commit d603d7d7d989c4ff1094810e9fcf2a29bc00bb0c
+Author: Emil Velikov <emil.l.velikov%gmail.com@localhost>
+Date:   Sun May 8 09:19:33 2016 +0100
+
+    Kill off Time_t macro
+    
+    Analogous to previous commit, including the megacommit that removed the
+    need for it.
+    
+    Signed-off-by: Emil Velikov <emil.l.velikov%gmail.com@localhost>
+    Reviewed-by: Adam Jackson <ajax%redhat.com@localhost>
+    Reviewed-by: Eric Engestrom <eric.engestrom%imgtec.com@localhost> (IRC)
+
+commit 82250f26fc76d7b7574cfd472646a98e325d944a
+Author: Emil Velikov <emil.l.velikov%gmail.com@localhost>
+Date:   Sun May 8 09:19:32 2016 +0100
+
+    Kill off Strstr macro
+    
+    Directly use the strstr function as opposed to wrapping it in a macro.
+    The latter is no longer needed as of
+    
+    commit 72e353567f8927996a26e72848d86f692c3f0737
+    Author: Kaleb Keithley <kaleb%freedesktop.org@localhost>
+    Date:   Fri Nov 14 16:48:46 2003 +0000
+    
+        XFree86 4.3.0.1
+    
+    Signed-off-by: Emil Velikov <emil.l.velikov%gmail.com@localhost>
+    Reviewed-by: Adam Jackson <ajax%redhat.com@localhost>
+    Reviewed-by: Eric Engestrom <eric.engestrom%imgtec.com@localhost> (IRC)
+
+commit ff5e59f32255913bb1cdf51441b98c9107ae165b
+Author: Benjamin Tissoires <benjamin.tissoires%gmail.com@localhost>
+Date:   Tue Apr 4 19:12:53 2017 +0200



Home | Main Index | Thread Index | Old Index