summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-04-18test: Avoid incorrect -Wuse-after-free warning from gcc 13HEADmasterAlan Coopersmith1-0/+14
Workaround for gcc noticing that the test_nonfatal_assertions path through g_assert_null could return, thus leaving a possible path where we hadn't proved that p2 was NULL and thus p was safe to use, as discussed in: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114776 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/merge_requests/16>
2024-04-16libXmu 1.2.1libXmu-1.2.1Matt Turner1-1/+1
2024-04-16test: Add prototype for Xmureallocarray to silence warningMatt Turner1-0/+3
In file included from reallocarray.c:50: ../src/reallocarray.c:35:1: warning: no previous prototype for ‘Xmureallocarray’ [-Wmissing-prototypes] 35 | Xmureallocarray(void *optr, size_t nmemb, size_t size) | ^~~~~~~~~~~~~~~ Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/merge_requests/14>
2024-04-16test: Add missing setjmp()Matt Turner1-2/+6
Bug: https://bugs.gentoo.org/928419 Closes: https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues/2 Fixes: d729c59 ("test: Add simple test cases for functions in src/StrToShap.c") Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/merge_requests/12>
2024-03-24libXmu 1.2.0libXmu-1.2.0Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17Use XtAsprintf to simplify os_name string generationAlan Coopersmith2-7/+3
Raises minimum libXt requirement to 1.1.0 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17unifdef SYSVAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17Remove "#ifndef notdef" checksAlan Coopersmith2-4/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17unifdef LynxAlan Coopersmith1-5/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-17unifdef hpuxAlan Coopersmith1-4/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27XmuReadBitmapDataFromFile: set close-on-exec when opening filesAlan Coopersmith1-1/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Add simple test cases for functions in src/reallocarray.cAlan Coopersmith3-0/+236
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Add simple test cases for functions in src/StrToShap.cAlan Coopersmith2-1/+202
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Add simple test cases for functions in src/StrToOrnt.cAlan Coopersmith2-1/+170
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Add simple test cases for functions in src/StrToLong.cAlan Coopersmith2-1/+171
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Add simple test cases for functions in src/StrToJust.cAlan Coopersmith2-1/+170
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Add simple test cases for functions in src/StrToGrav.cAlan Coopersmith2-1/+205
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Add simple test cases for functions in src/StrToBS.cAlan Coopersmith2-1/+173
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Add simple test cases for functions in src/Lower.cAlan Coopersmith2-1/+242
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Add simple test cases for functions in src/CursorName.cAlan Coopersmith2-1/+143
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Add simple test cases for functions in src/RdBitF.cAlan Coopersmith5-1/+210
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-27test: Convert test code to use glib test helpersAlan Coopersmith5-23/+69
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-06configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith1-2/+3
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008, so it's time to rely on it. Clears autoconf warnings: configure.ac:13: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:13: You should run autoupdate. aclocal.m4:3465: AC_PROG_LIBTOOL is expanded from... configure.ac:13: the top level libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-16src/Makefile.am: Remove hardcoded -D_BSD_SOURCEAlan Coopersmith1-1/+1
Not needed now that AC_USE_SYSTEM_EXTENSIONS is in configure.ac Avoids compiler warning of: /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-16configure: raise minimum autoconf requirement to 2.70Alan Coopersmith2-5/+6
Needed for builds on NetBSD to work correctly, since it depends on AC_USE_SYSTEM_EXTENSIONS defining _OPENBSD_SOURCE to expose the prototype for reallocarray() in the system headers. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-17libXmu 1.1.4libXmu-1.1.4Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-17Add .git-blame-ignore-revs to hide whitespace commits from git blameAlan Coopersmith1-0/+18
To use this in your local repo clone, you will need to either run `git blame --ignore-revs-file .git-blame-ignore-revs` or set it permanently with `git config blame.ignoreRevsFile .git-blame-ignore-revs` Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-13Add simple test cases for _XEditRes{Put,Get}* functionsAlan Coopersmith4-1/+131
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-13_XEditResGet32: Fix casts to avoid unexpected sign extension in 64-bitAlan Coopersmith1-1/+1
Like _XEditResGet16 we need to cast to our destination type, not the source type, before combining the upper & lower halves. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-13Handle -Wmissing-field-initializers warningsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-13Handle -Wsign-compare warningsAlan Coopersmith3-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-13Clear some more -Wdiscarded-qualifiers warningsAlan Coopersmith2-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-13Use _CONST_X_STRING to make libXt declare String as const char *Alan Coopersmith4-5/+5
Clears 11 out of 58 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-13Use memcpy instead of memmove when buffers are known not to overlapAlan Coopersmith2-4/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-13More typo fixesAlan Coopersmith7-17/+17
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-21get_os_name: Use autoconf to detect uname() supportAlan Coopersmith2-26/+11
Stop maintaining a list of #ifdefs for ancient platforms Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-21XmuGetHostname: Drop support for ancient USG systemsAlan Coopersmith1-19/+0
USG was defined for a handful of pre-SVR4 systems based on AT&T's Unix System Group releases in the old imake configs and has never been defined in X11R7 modular builds. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-21Remove support for XA_IP_ADDRESSMatthieu Herrb3-33/+3
This code has a number of issues: - It doesn't support IPv6 https://bugs.freedesktop.org/show_bug.cgi?id=7611 - The IP address is set by the selection owner so it doesn't bring any security for anyone querying the selection - The extra DNS query that it does is problematic in some sandboxed environments (like OpenBSD's pledge https://marc.info/?l=openbsd-bugs&m=157842725819911&w=2) Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-21Fix OWNER_OS in XmuConvertStandardSelection() on LinuxMatthieu Herrb1-0/+3
It used to return BSD Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-21Unifdef SYSVNETMatthieu Herrb1-9/+0
This has not been set by configure since the switch to autotools. Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-06Convert code to use Xmumallocarray() & reallocarray()Alan Coopersmith3-13/+22
Provides automatic integer overflow checking in allocation size calculations Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-06Import reallocarray() from libX11 (originally from OpenBSD)Alan Coopersmith5-1/+113
Wrapper for realloc() that checks for overflow when multiplying arguments together, so we don't have to add overflow checks to every single call. For documentation on usage, see: http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/calloc.3 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-06Remove unnnecessary casts from *alloc() and free() callsAlan Coopersmith9-48/+43
These are not needed in C89 and later. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-06COPYING: correct source file path namesAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-17gitlab CI: add a basic build testAlan Coopersmith1-0/+99
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-17Fix spelling/wording issuesAlan Coopersmith10-37/+37
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-17Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-03-16libXmu 1.1.3libXmu-1.1.3Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-19Update README for gitlab migrationAlan Coopersmith2-12/+9
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>