| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Oracle no longer includes this term in our copyright & license notices.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
| |
By default, set to -n for gzip to stop recording timestamps and
enable reproducible builds, and to empty for all other methods.
Will require adding COMPRESS_FLAGS to Makefile.am in each font
module to become effective.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
| |
Found by using:
codespell --builtin clear,rare,usage,informal,code,names
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bdf file for testing:
STARTFONT 2.1
FONT "Bad quotes test font-ISO10646-1
SIZE 7 75 75
FONTBOUNDINGBOX 5 7 0 -1
STARTPROPERTIES 3
SPACING "C
SLANT "R
ENDPROPERTIES
CHARS 0
ENDFONT
Before this fix, the above segfaults when the NULL return from
zquotedcpy() is passed to other functions expecting a string.
Fixes: 21063_61 & 21063_86 from https://cyber-itl.org/2020/10/28/citl-7000-defects.html
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Test case:
grep -v SLANT ../../misc-misc/5x7.bdf > 5x7-noslant.bdf
ucs2any 5x7-noslant.bdf ../map-ISO8859-1 -d
Before this fix, the above segfaults in strcmp with a NULL slant pointer.
Fixes: 21063_131 from https://cyber-itl.org/2020/10/28/citl-7000-defects.html
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It is possible to crash ucs2any or provoke successful return value even
though the processing was not successful.
The problem lies within a possible integer overflow when adding elements
with a key which is too large.
You can trigger the issue this way on a 32 bit system:
$ cat > source.bdf << "EOF"
STARTFONT source
CHARS 1
ENCODING 1073741823
EOF
$ ucs2any source.bdf
Segmentation fault
$ _
Another possibility would be to add "ENCODING 1" right after the CHARS
line. In that case, realloc will allocate 0 bytes afterwards which is a
success but might return NULL, e.g. on Linux/glibc systems. Such a
result value is handled as an error and errno is evaluated and returned,
even though there was no error:
$ cat > source.bdf << "EOF"
STARTFONT source
CHARS 1
ENCODING 1
ENCODING 1073741823
EOF
$ ucs2any source.bdf
ucs2any: Success
$ echo $?
0
$ _
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
| |
New version is exactly as downloaded on August 25, 2014 from
ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0201.TXT
Does not change mappings, only changes comments (including license notice).
Reported-by: AGinsberg on #xorg-devel irc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
| |
Instead of assuming that pkg-config is on the path, require PKG_PROG_PKG_CONFIG
to be called and use $PKG_CONFIG.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
| |
http://people.gnome.org/~walters/docs/build-api.txt
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
|
|
|
| |
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ucs2any.c:149:36: warning: implicit conversion changes signedness: 'int' to 'si
ze_t' (aka 'unsigned long') [-Wsign-conversion]
*dest = zrealloc(*dest, dest_size + source_size);
~~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~
ucs2any.c:147:29: warning: implicit conversion loses integer precision: 'unsign
ed long' to 'int' [-Wshorten-64-to-32]
dest_size = strlen(*dest) + 1;
~ ~~~~~~~~~~~~~~^~~
ucs2any.c:148:16: warning: implicit conversion loses integer precision: 'size_t
' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
source_size = strlen(source);
~ ^~~~~~~~~~~~~~
ucs2any.c:159:8: warning: implicit conversion loses integer precision: 'int' to
'char' [-Wconversion]
*t = toupper(*t);
~ ^~~~~~~~~~~
ucs2any.c:305:27: warning: implicit conversion loses integer precision: 'int' t
o 'char' [-Wconversion]
(*buffer)[position++] = c;
~ ^
ucs2any.c:465:21: warning: comparison of integers of different signs: 'size_t'
(aka 'unsigned long') and 'int' [-Wsign-compare]
if (strlen(string) <= l) return NULL;
~~~~~~~~~~~~~~ ^ ~
ucs2any.c:466:31: warning: implicit conversion changes signedness: 'int' to 'si
ze_t' (aka 'unsigned long') [-Wsign-conversion]
if (strncmp(string, pattern, l) != 0) return NULL;
~~~~~~~ ^
ucs2any.c:463:10: warning: implicit conversion loses integer precision: 'size_t
' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
int l = strlen(pattern);
~ ^~~~~~~~~~~~~~~
ucs2any.c:730:14: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
target = strtol(p+2, &endp, 16);
~ ^~~~~~~~~~~~~~~~~~~~~~
ucs2any.c:738:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
ucs = strtol(p+2, &endp, 16);
~ ^~~~~~~~~~~~~~~~~~~~~~
ucs2any.c:843:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bbx.cwidth = w;
~ ^
ucs2any.c:844:20: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bbx.cheight = h;
~ ^
ucs2any.c:845:18: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bbx.cxoff = x;
~ ^
ucs2any.c:846:18: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bbx.cyoff = y;
~ ^
ucs2any.c:850:7: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
w, h, x, y, &bbx);
^
ucs2any.c:850:10: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
w, h, x, y, &bbx);
^
ucs2any.c:850:13: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
w, h, x, y, &bbx);
^
ucs2any.c:850:16: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
w, h, x, y, &bbx);
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
layout and comment the top portion of configure.ac
add missing AC_CONFIG_SRCDIR
Replace obsolete AM_CONFIG_HEADER with AC_CONFIG_HEADERS
replace deprecated AC_HELP_STRING with AS_HELP_STRING
Remove unnecessary AC_PROG_CC & AC_PROG_INSTALL (already
provided by XORG_DEFAULT_OPTIONS)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Gaetan Nadon<memsize@videotron.ca>
|
|
|
|
|
|
|
|
| |
ucs2any.c: In function ‘chars_compare’:
ucs2any.c:450:2: warning: cast discards qualifiers from pointer target type
ucs2any.c:451:2: warning: cast discards qualifiers from pointer target type
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
| |
bdftruncate.c: In function ‘main’:
bdftruncate.c:119:16: warning: ‘threshold’ may be used uninitialized in this function
(It's not actually, if you consider that usage() exits when
parse_threshold fails.)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If cross-compiling, we can run the host mkfontdir on the font directory,
since the output is arch independent (I think)
If cross-compiling and we can't find mkfontdir, just warn that mkfontdir
needs to be run on the target.
When not cross-compiling, the behaviour remains unchanged: mkfontdir
must be found and is run
(Also, bump version number to 1.2.90 as the next release must be 1.3.0
as this change adds a macro)
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Since the cache files produced by fc-cache are arch-dependent, there is
no point in running fc-cache if cross-compiling
So, even if we aren't using a DESTDIR, but are installing directly into
(a hopefully non-default) prefix, don't run fc-cache when cross-compiling
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
|
|
|
|
|
| |
Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
|
|
|
|
|
|
|
| |
Regression introduced by fb486bb1a5038912d064291b12c7aef5da3d8b63
Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
|
|
|
|
| |
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
|
|
|
|
|
|
| |
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Acked-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This option is useful to disable all possible font encodings at once,
without fine-graining the calling ebuilds for a list of encodings
supported by each font package.
The option is parsed before all other encoding options, so it basically
sets defaults for all of them. Afterwards, any encoding can be
re-enabled back using '--enable-<encoding>' (much like
'--disable-all-encodings --enable-iso8859-2').
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Gaetan Nadon <memsize@videotron.ca>
|
|
|
|
|
| |
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The macro was designed to test for a program and, when missing, stop
the configuration. The first parameter to the macro is a variable
name which is used by AC_PATH_PROG to store the program path.
The test failed to reference the variable content, it tested the
variable name which is never blank.
BDFTOPCF MKFONTSCALE MKFONTDIR COMPRESS and UCS2ANY were affected.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Tested-by: Jesse Adkins <jesserayadkins@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
|
|
|
|
|
|
|
| |
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
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
|
|
|
|
| |
It is automatically distributed in the tarball by Automake
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
|
|
|
|
|
| |
Generated files are not included in the tarball, only .in files
The fontutil.m4.in file is added in the tarball by Automake.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
|
|
| |
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
|
|
|
| |
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
|
|
|
|
|
|
| |
Add INSTALL target to generate file with INSTALL_CMD #24206
ChangeLog is not required in EXTRA_DIST #24432
ChangeLog is not required in MAINTAINERCLEANFILES #24432
|
|
|
|
|
|
|
|
| |
Add missing INSTALL file. Use standard GNU file on building tarball
README may have been updated
COPYING 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.
|
|
|
|
|
|
| |
Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.
|