summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-11unifdef -UsgiHEADmasterAlan Coopersmith
SGI's End of Support Life for Irix was December 2013 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-15xkbprint 1.0.6xkbprint-1.0.6Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-16gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-16Stop leaking XkbAtomGetString allocationsAlan Coopersmith
XkbAtomGetString is a wrapper around XGetAtomName, and like XGetAtomName returns a newly allocated string (or NULL) on every call, so we should free those strings when done instead of leaking them. Reported by Oracle Parfait static analyser: Error: Memory leak Memory leak [memory-leak] (CWE 401): Memory leak of pointer pointer allocated with XkbAtomGetString(state->dpy, state->geom->name) at line 720 of app/xkbprint/psgeom.c in function 'PSProlog'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' pointer allocated at line 612 of app/xkbprint/psgeom.c in function 'PSProlog' with XkbAtomGetString(state->dpy, state->geom->name) pointer leaks when (i + 1) >= state->geom->num_colors at line 694 and (i + 1) >= state->geom->num_shapes at line 712. Memory leak [memory-leak] (CWE 401): Memory leak of pointer pointer allocated with XkbAtomGetString(state->dpy, state->geom->name) at line 720 of app/xkbprint/psgeom.c in function 'PSProlog'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' pointer allocated at line 657 of app/xkbprint/psgeom.c in function 'PSProlog' with XkbAtomGetString(state->dpy, state->geom->name) pointer leaks when (i + 1) >= state->geom->num_colors at line 694 and (i + 1) >= state->geom->num_shapes at line 712. Error: Memory leak Memory leak [memory-leak] (CWE 401): Memory leak of pointer name allocated with XkbAtomGetString(state->dpy, geom->name) at line 962 of app/xkbprint/psgeom.c in function 'PSPageTrailer'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' name allocated at line 845 of app/xkbprint/psgeom.c in function 'PSPageTrailer' with XkbAtomGetString(state->dpy, geom->name) name leaks when (p + 1) >= state->args->copies at line 926. Memory leak [memory-leak] (CWE 401): Memory leak of pointer sName allocated with XkbAtomGetString(state->dpy, sAtom) at line 962 of app/xkbprint/psgeom.c in function 'PSPageTrailer'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' sName allocated at line 877 of app/xkbprint/psgeom.c in function 'PSPageTrailer' with XkbAtomGetString(state->dpy, sAtom) sName leaks when (p + 1) >= state->args->copies at line 926. Memory leak [memory-leak] (CWE 401): Memory leak of pointer sName allocated with XkbAtomGetString(state->dpy, sAtom) at line 962 of app/xkbprint/psgeom.c in function 'PSPageTrailer'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' sName allocated at line 910 of app/xkbprint/psgeom.c in function 'PSPageTrailer' with XkbAtomGetString(state->dpy, sAtom) sName leaks when (p + 1) >= state->args->copies at line 926. Error: Memory leak Memory leak [memory-leak] (CWE 401): Memory leak of pointer dname allocated with XkbAtomGetString(xkb->dpy, doodad.any.name) at line 1068 of app/xkbprint/psgeom.c in function 'PSDoodad'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' dname allocated at line 974 of app/xkbprint/psgeom.c in function 'PSDoodad' with XkbAtomGetString(xkb->dpy, doodad.any.name) Memory leak [memory-leak] (CWE 401): Memory leak of pointer name allocated with XkbAtomGetString(...) at line 1068 of app/xkbprint/psgeom.c in function 'PSDoodad'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' name allocated at line 980 of app/xkbprint/psgeom.c in function 'PSDoodad' with XkbAtomGetString(...) Memory leak [memory-leak] (CWE 401): Memory leak of pointer name allocated with XkbAtomGetString(...) at line 1068 of app/xkbprint/psgeom.c in function 'PSDoodad'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' name allocated at line 1044 of app/xkbprint/psgeom.c in function 'PSDoodad' with XkbAtomGetString(...) Memory leak [memory-leak] (CWE 401): Memory leak of pointer name allocated with XkbAtomGetString(...) at line 1068 of app/xkbprint/psgeom.c in function 'PSDoodad'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' name allocated at line 1058 of app/xkbprint/psgeom.c in function 'PSDoodad' with XkbAtomGetString(...) Error: Memory leak Memory leak [memory-leak] (CWE 401): Memory leak of pointer pointer allocated with XkbAtomGetString(dpy, section->name) at line 2063 of app/xkbprint/psgeom.c in function 'PSSection'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' pointer allocated at line 1907 of app/xkbprint/psgeom.c in function 'PSSection' with XkbAtomGetString(dpy, section->name) pointer leaks when (k + 1) >= (section->rows + <pointer arithmetic>)->num_keys at line 1936 Memory leak [memory-leak] (CWE 401): Memory leak of pointer pointer allocated with XkbAtomGetString(dpy, shape->name) at line 2063 of app/xkbprint/psgeom.c in function 'PSSection'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' pointer allocated at line 1945 of app/xkbprint/psgeom.c in function 'PSSection' with XkbAtomGetString(dpy, shape->name) pointer leaks when (k + 1) >= (section->rows + <pointer arithmetic>)->num_keys at line 1936 and (r + 1) >= section->num_rows at line 1925. Memory leak [memory-leak] (CWE 401): Memory leak of pointer pointer allocated with XkbAtomGetString(dpy, shape->name) at line 2063 of app/xkbprint/psgeom.c in function 'PSSection'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' pointer allocated at line 1951 of app/xkbprint/psgeom.c in function 'PSSection' with XkbAtomGetString(dpy, shape->name) pointer leaks when (k + 1) >= (section->rows + <pointer arithmetic>)->num_keys at line 1936 and (r + 1) >= section->num_rows at line 1925. Memory leak [memory-leak] (CWE 401): Memory leak of pointer pointer allocated with XkbAtomGetString(dpy, shape->name) at line 2063 of app/xkbprint/psgeom.c in function 'PSSection'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' pointer allocated at line 1960 of app/xkbprint/psgeom.c in function 'PSSection' with XkbAtomGetString(dpy, shape->name) pointer leaks when (k + 1) >= (section->rows + <pointer arithmetic>)->num_keys at line 1936 and (r + 1) >= section->num_rows at line 1925. Memory leak [memory-leak] (CWE 401): Memory leak of pointer pointer allocated with XkbAtomGetString(dpy, shape->name) at line 2063 of app/xkbprint/psgeom.c in function 'PSSection'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' pointer allocated at line 1966 of app/xkbprint/psgeom.c in function 'PSSection' with XkbAtomGetString(dpy, shape->name) pointer leaks when (k + 1) >= (section->rows + <pointer arithmetic>)->num_keys at line 1936 and (r + 1) >= section->num_rows at line 1925. Error: Memory leak Memory leak [memory-leak] (CWE 401): Memory leak of pointer name allocated with XkbAtomGetString(...) at line 2131 of app/xkbprint/psgeom.c in function 'GeometryToPostScript'. Allocated value returned to caller at line 207 of lib/libxkbfile/src/xkbatom.c in function 'XkbAtomGetString' name allocated at line 2110 of app/xkbprint/psgeom.c in function 'GeometryToPostScript' with XkbAtomGetString(...) name leaks when name != NULL at line 2111. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-02man page: remove out-of-date COPYRIGHT sectionAlan Coopersmith
The information previously listed here didn't match what is present in the source code or the COPYING file, and the X(7) man page doesn't list any license information as this had claimed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06Build xz tarballs instead of bzip2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06gitlab CI: add a basic build testAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-11-03xkbprint 1.0.5xkbprint-1.0.5Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2019-09-15xkbprint(1): Some (typographical) corrections to the manualAlan Coopersmith
Fixes: https://gitlab.freedesktop.org/xorg/app/xkbprint/issues/2 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742356 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2015-04-16xkbprint 1.0.4xkbprint-1.0.4Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31configure: Drop AM_MAINTAINER_MODEAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Remove old CVS id tagsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Add -version option to print program versionAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Fix some sign/size conversion warnings from clangAlan Coopersmith
psgeom.c:1320:17: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] if ((sym & (~0xff)) == 0x700) { ~ ^~~~~ psgeom.c:1666:31: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] else if (((sym & (~0xff)) == 0) && isprint(sym) && (!isspace(sym))) { ~ ^~~~~ psgeom.c:1860:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int len = strlen(top->label[i]); ~~~ ^~~~~~~~~~~~~~~~~~~~~ xkbprint.c:460:19: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int len = strlen(inputFile); ~~~ ^~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Remove unused INPUT_* definitionsAlan Coopersmith
Flagged by clang: xkbprint.c:62:9: warning: macro is not used [-Wunused-macros] ^ xkbprint.c:61:9: warning: macro is not used [-Wunused-macros] ^ xkbprint.c:60:9: warning: macro is not used [-Wunused-macros] ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Move some local variables to the scope in which they liveAlan Coopersmith
Helps both human readers and static code analyzers realize they're not used outside these scopes. Flagged by cppcheck 1.64: [psgeom.c:1761]: (style) The scope of the variable 'keycode' can be reduced. [psgeom.c:1858]: (style) The scope of the variable 'len' can be reduced. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Combine IsoKeyCaps array of strings into a single stringAlan Coopersmith
Packs more efficiently in binary, reduces number of calls to output, gets rid of ~4k array of pointers to each string in data segment to initialize on program load. "xkbprint -if IsoKeyCaps" generates identical IsoKeyCaps.pfa files before & after this change. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace calls to index() with calls to strchr()Alan Coopersmith
Both were in use in different functions, adopt the ANSI C standard function for all calls. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Combine repeated sequences of fprintf() calls into single callsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace remaining sprintf calls with snprintf()Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace several malloc+sprintf pairs with asprintf() callsAlan Coopersmith
Includes fallback uAsprintf() for systems without asprintf yet Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Add printf & noreturn attributes recommended by gccAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace uStrCaseCmp() with direct calls to strcasecmp()Alan Coopersmith
strcasecmp is available in Unix98 and later, so part of the X.Org base platform requirements. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace uStringDup() with direct calls to strdup()Alan Coopersmith
strdup is available in Unix98 and later, so part of the X.Org base platform requirements. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-27Replace custom uAlloc/uCalloc with plain malloc/callocAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Replace sole call to uFree() with direct call to free()Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Remove unused uTmpAlloc & uTmpFree fallbacks for allocaAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Remove unused uRealloc & uRecalloc functionsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Remove unused uStrCasePrefix fallback for strncasecmpAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Remove unused debugging & function tracing frameworksAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Remove unused uASSERT macroAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Fix many const char * warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26unifdef -Unotyet -UNOTYETAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-26Convert sources to X.Org standard coding styleAlan Coopersmith
Via util/modular/x-indent-all.sh Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: replace hard coded man page section with substitution stringsGaetan Nadon
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-07xkbprint 1.0.3xkbprint-1.0.3Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-05config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Add missing AC_CONFIG_SRCDIR Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-05config: upgrade to util-macros 1.8 for additional man page supportAlan Coopersmith
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS Enables use of platform appropriate version of sed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-05config: update AC_PREREQ statement to 2.60Gaetan Nadon
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-05config: Remove unnecessary calls from configure.acAlan Coopersmith
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-11-26Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-11-11INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon
Add missing INSTALL file. Use standard GNU file on building tarball README may have been updated Remove AUTHORS file as it is empty and no content available yet. Remove NEWS file as it is empty and no content available yet.