Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/xkbprint/dist initial import of xkbprint-1.0.6
details: https://anonhg.NetBSD.org/xsrc/rev/5db38bfe63b4
branches: trunk
changeset: 7198:5db38bfe63b4
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Oct 16 23:49:12 2022 +0000
description:
initial import of xkbprint-1.0.6
diffstat:
external/mit/xkbprint/dist/ChangeLog | 172 +-
external/mit/xkbprint/dist/Makefile.in | 41 +-
external/mit/xkbprint/dist/aclocal.m4 | 2327 +++----
external/mit/xkbprint/dist/config.guess | 1545 +++--
external/mit/xkbprint/dist/config.h.in | 98 +-
external/mit/xkbprint/dist/config.sub | 2950 +++++-----
external/mit/xkbprint/dist/configure | 7915 ++++++++++++++------------
external/mit/xkbprint/dist/configure.ac | 6 +-
external/mit/xkbprint/dist/depcomp | 2 +-
external/mit/xkbprint/dist/install-sh | 157 +-
external/mit/xkbprint/dist/man/Makefile.in | 12 +-
external/mit/xkbprint/dist/man/xkbprint.man | 7 -
external/mit/xkbprint/dist/missing | 2 +-
external/mit/xkbprint/dist/psgeom.c | 82 +-
14 files changed, 8141 insertions(+), 7175 deletions(-)
diffs (truncated from 21310 to 300 lines):
diff -r f439e2495421 -r 5db38bfe63b4 external/mit/xkbprint/dist/ChangeLog
--- a/external/mit/xkbprint/dist/ChangeLog Sun Oct 16 23:49:10 2022 +0000
+++ b/external/mit/xkbprint/dist/ChangeLog Sun Oct 16 23:49:12 2022 +0000
@@ -1,3 +1,173 @@
+commit 7500b59a3ce665fa53c476fe26a01db96dc994be
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Sat Oct 15 10:26:33 2022 -0700
+
+ xkbprint 1.0.6
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 69deaf13057d3a8b9c01350e2cdfc40080f5433a
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Sat Apr 16 11:56:06 2022 -0700
+
+ gitlab CI: stop requiring Signed-off-by in commits
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit f586ae4a0a8d081c46f10f4cb4c27840d611edec
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Sat Apr 16 11:51:37 2022 -0700
+
+ Stop leaking XkbAtomGetString allocations
+
+ 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@localhost>
+
+commit cc85e7b233613633a5496f0fa27bf49b409c33e4
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Sat Apr 2 12:57:58 2022 -0700
+
+ man page: remove out-of-date COPYRIGHT section
+
+ 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@localhost>
+
+commit df4b45b62fafb218b613baade4a831522effdfcc
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Mon Dec 6 15:01:12 2021 -0800
+
+ Build xz tarballs instead of bzip2
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 963fd74b2c425e700e9a15942963fd78c9dcd447
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date: Mon Dec 6 15:01:09 2021 -0800
+
+ gitlab CI: add a basic build test
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
commit 7defa9ddfd5f5d1853b9f404af854b0f42fa6ee5
Author: Matt Turner <mattst88%gmail.com@localhost>
Date: Sun Nov 3 14:20:07 2019 -0800
@@ -663,7 +833,7 @@
configure cache, you cache it, and the cached value is probably wrong.
commit c4b22b69df1162dab5db3691053ac0b6fb4c4503
-Author: Søren Sandmann Pedersen <sandmann%daimi.au.dk@localhost>
+Author: Søren Sandmann Pedersen <sandmann%daimi.au.dk@localhost>
Date: Wed Jul 6 20:42:02 2005 +0000
Build system for xkbprint
diff -r f439e2495421 -r 5db38bfe63b4 external/mit/xkbprint/dist/Makefile.in
--- a/external/mit/xkbprint/dist/Makefile.in Sun Oct 16 23:49:10 2022 +0000
+++ b/external/mit/xkbprint/dist/Makefile.in Sun Oct 16 23:49:12 2022 +0000
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.16.1 from Makefile.am.
+# Makefile.in generated by automake 1.16.5 from Makefile.am.
# @configure_input@
-# Copyright (C) 1994-2018 Free Software Foundation, Inc.
+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -183,8 +183,8 @@
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
cscope distdir distdir-am dist dist-all distcheck
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
- $(LISP)config.h.in
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
+ config.h.in
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
@@ -201,13 +201,10 @@
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-CSCOPE = cscope
DIST_SUBDIRS = $(SUBDIRS)
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in COPYING \
- ChangeLog INSTALL compile config.guess config.sub depcomp \
- install-sh missing
+ ChangeLog INSTALL README.md compile config.guess config.sub \
+ depcomp install-sh missing
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
@@ -243,9 +240,11 @@
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
-DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
+DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz
GZIP_ENV = --best
-DIST_TARGETS = dist-bzip2 dist-gzip
+DIST_TARGETS = dist-xz dist-gzip
+# Exists only to be overridden by the user if desired.
+AM_DISTCHECK_DVI_TARGET = dvi
distuninstallcheck_listfiles = find . -type f -print
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
@@ -266,8 +265,9 @@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CHANGELOG_CMD = @CHANGELOG_CMD@
-CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
+CSCOPE = @CSCOPE@
+CTAGS = @CTAGS@
CWARNFLAGS = @CWARNFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
@@ -277,11 +277,10 @@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
-EGREP = @EGREP@
+ETAGS = @ETAGS@
EXEEXT = @EXEEXT@
FILE_MAN_DIR = @FILE_MAN_DIR@
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
-GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_CMD = @INSTALL_CMD@
INSTALL_DATA = @INSTALL_DATA@
@@ -362,6 +361,7 @@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
+runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
@@ -618,7 +618,6 @@
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
-
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
@@ -692,6 +691,7 @@
dist-gzip: distdir
tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
$(am__post_remove_distdir)
+
dist-bzip2: distdir
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
$(am__post_remove_distdir)
@@ -699,11 +699,14 @@
dist-lzip: distdir
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
$(am__post_remove_distdir)
-
dist-xz: distdir
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
$(am__post_remove_distdir)
+dist-zstd: distdir
+ tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
+ $(am__post_remove_distdir)
Home |
Main Index |
Thread Index |
Old Index