- Feb 25, 2023
-
-
Alan Coopersmith authored
Oracle no longer includes this term in our copyright & license notices. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Feb 17, 2023
-
-
Alan Coopersmith authored
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>
-
- Nov 27, 2022
-
-
Jeremy Huddleston Sequoia authored
This avoids undefined behavior (left shift overflow in signed integer type) Signed-off-by:
Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-
- Nov 10, 2022
-
-
The great libxfont2 rewrite 135fb032 split fs_wakeup into fs_wakeup and fs_fd_handler. The fs_fd_handler side is called when there is new data on the socket. The fs_wakeup side is called on a timeout. If there's a connection timeout, the block handler will set the timeout to zero, expecting fs_wakeup to handle the timeout. Therefore, we need to call _fs_check_reconnect in fs_wakeup to handle the connection timeout. If we don't, the X server will go to 100% CPU (and the font server connection will not be retried). Signed-off-by:
Peter Harris <pharris@opentext.com>
-
- Nov 05, 2022
-
-
Alan Coopersmith authored
Avoid unnecessary library dependency when using a libc with these functions included Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Oct 06, 2022
-
-
Guillem Jover authored
This is the preferred usage form for libbsd, as it makes the code more portable and requires no special includes for libbsd, by transparently injects the needed standard headers that would be used on a BSD. Signed-off-by:
Guillem Jover <guillem@hadrons.org>
-
- Aug 26, 2022
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Aug 11, 2022
-
-
When dirName is "" (eg. when called by BuiltinReadDirectory), FontFileMakeDir would read after the string when WIN32 is defined. Fix the overrun issue by checking the location of the found : before adding two. Signed-off-by:
Peter Harris <pharris@opentext.com> Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Jun 22, 2022
-
-
Alan Coopersmith authored
Commit 6c290077 removed OS/2 support from the code, but missed updating the comments to match. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Jun 21, 2022
-
-
Regressed-in: 6972ea08 Fixes: #13 Signed-off-by:
Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-
- Jun 20, 2022
-
-
Alan Coopersmith authored
Preserves fallback for systems like darwin without zlib.pc Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Apr 06, 2022
-
-
Alan Coopersmith authored
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Aug 02, 2021
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Jul 14, 2021
-
-
Alexander Richardson authored
BuiltinReadDirectory() calls FontFileMakeDir ("", builtin_dir_count); and this causes the `dirName[dirlen - 1]` access to read before the start of the string. I found this while porting Xvnc to CHERI-RISC-V (which has bounds and permissions on all pointers).
-
- Jun 12, 2021
-
-
- Mar 02, 2021
-
-
Peter Harris authored
If there are multiple blocks waiting for the same font, only one of them will have ->freeFont set. The rest will be in a state of FS_DEPENDING. If the font server dies before the font finishes opening, the block with ->freeFont set will call ->unload_font, invalidating the pfont pointers in the remaining FS_DEPENDING blocks. Avoid a use after free (and potential crash) by passing conn to fs_cleanup_font instead of dereferencing pfont to find the conn. Signed-off-by:
Peter Harris <pharris@opentext.com>
-
- Mar 06, 2020
-
-
Peter Harris authored
Always initialize the return value of fs_new_block_rec. Even if the conn->blockState is FS_BROKEN_CONNECTION | FS_RECONNECTING, we must not return with an uninitialized blockrec on the block list. When the blockrec times out, _fs_clean_aborted_blockrec calls fs_cleanup_bfont, which will try to follow pointers in the blockrec (which has not been initialized). Signed-off-by:
Peter Harris <pharris@opentext.com>
-
- Oct 25, 2019
-
-
Jon Turney authored
Provide Win32 replacements for realpath() and err.h
-
- Sep 16, 2019
-
-
Adam Jackson authored
xfs was ported to libXfont2 in release 1.2, and bdftopcf 1.1 includes a copy of enough of the old libXfont1 code to not need an external libXfont at all.
-
- Sep 14, 2019
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Found when "make distcheck" failed. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Aug 17, 2019
-
-
Alan Coopersmith authored
Resolves coverity warning def16 from the list in xorg/lib/libxfont#6 Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
None of the callers of CatalogueRescan check for failure before accessing the cat pointer so don't free it (especially without clearing the pointer to it in fpe->private), just unref the contents. Can only be triggered if somehow stat() succeeds on the directory, but opendir fails anyway (removed between the calls? permission problem?). Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Resolves coverity warning def23 from the list in xorg/lib/libxfont#6 Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
-
- Aug 04, 2019
-
-
Alan Coopersmith authored
Quiets: src/util/fontxlfd.c: In function ‘FontParseXLFDName’: src/util/fontxlfd.c:450:14: warning: this statement may fall through [-Wimplicit-fallthrough=] replaceChar = '*'; ~~~~~~~~~~~~^~~~~ src/util/fontxlfd.c:451:5: note: here case FONT_XLFD_REPLACE_ZERO: ^~~~ Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Introduces mallocarray as a macro calling reallocarray with a NULL pointer for the old allocation. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Implementation copied from the Xserver Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Replace strcpy, strcat, sprintf with strlcpy, strlcat, snprintf everywhere, even where there were already bounds checks in place, to reduce time spent checking static analysis results. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Implementations copied from the Xserver Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Aug 03, 2019
-
-
Alan Coopersmith authored
The test/utils directory contains some standalone test programs for testing libXfont funtionality without needing a full X server session. They could be used to generate automated unit testing in the future, but that work has not yet been done. [v2: updated original work from libXfont 1.5 to 2.0 API & makefiles] Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- May 14, 2019
-
-
Adam Jackson authored
Whatever this is, we're not using it. On my machine we allocate about 1100 of these structs, and this change reduces the struct from 152 to 48 bytes, so this saves about 100k of memory. Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- Mar 16, 2019
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Nov 20, 2018
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Mar 25, 2018
-
-
https://bugs.freedesktop.org/show_bug.cgi?id=99882 Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Nov 25, 2017
-
-
Matthieu Herrb authored
Signed-off-by:
Matthieu Herrb <matthieu@herrb.eu>
-