- 16 Apr, 2022 3 commits
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Most of these came from a mass bcopy() -> memmove() substitution in 1993 with a commit comment of "ANSIfied for R6". Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Reported by Oracle Parfait static analyzer: Memory leak [memory-leak] (CWE 401): Memory leak of pointer alts allocated with FSalloc((16 * num)) at line 229 of app/xfs/os/osglue.c in function 'SetAlternateServers'. malloc called at line 372 of app/xfs/os/utils.c in function 'FSalloc' Allocated value returned to caller at line 373 alts allocated at line 218 of app/xfs/os/osglue.c in function 'SetAlternateServers' with FSalloc((16 * num)) alts leaks when (*t) == 44 at line 225. Memory leak [memory-leak] (CWE 401): Memory leak of pointer alts allocated with FSalloc((16 * num)) at line 245 of app/xfs/os/osglue.c in function 'SetAlternateServers'. malloc called at line 372 of app/xfs/os/utils.c in function 'FSalloc' Allocated value returned to caller at line 373 alts allocated at line 218 of app/xfs/os/osglue.c in function 'SetAlternateServers' with FSalloc((16 * num)) alts leaks when (*(list + <pointer arithmetic>)) == 0 at line 224. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 09 Jan, 2022 1 commit
-
-
Alan Coopersmith authored
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 06 Dec, 2021 2 commits
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 22 Nov, 2018 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 17 Nov, 2018 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 10 Nov, 2018 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 28 Nov, 2017 1 commit
-
-
Adam Jackson authored
Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- 06 Nov, 2017 1 commit
-
-
Adam Jackson authored
This appears to work, in the sense that xfsinfo and fslsfonts print the same thing before and after. Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- 24 Apr, 2017 1 commit
-
-
Adam Jackson authored
The old code is redundant, since our caller looks like: OldListen = _FontTransGetInetdListenInfo (inetdListener); if (OldListen == NULL) { FatalError("failed to initialize OldListen to inetd socket: %s\n", strerror(errno)); } Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- 26 Jan, 2017 3 commits
-
-
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>
-
Peter Hutterer authored
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>
-
- 23 Jul, 2015 1 commit
-
-
Thomas Klausner authored
(To avoid having this header moved lower.) Signed-off-by:
Thomas Klausner <wiz@NetBSD.org> Reviewed-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
- 19 Jul, 2015 2 commits
-
-
Thomas Klausner authored
Signed-off-by:
Thomas Klausner <wiz@NetBSD.org> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Move X11/Xpoll.h include earlier than sys/select.h to avoid missing out on setting FD_SETSIZE early enough. Signed-off-by:
Thomas Klausner <wiz@NetBSD.org> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 09 Jun, 2015 1 commit
-
-
Alan Coopersmith authored
Reported by Oracle Parfait 1.5.1: Error: Memory leak (CWE 401) Memory leak of pointer client_auth allocated with FSalloc((prefix->num_auths * 24)) at line 256 of difs/dispatch.c in function 'ProcEstablishConnection'. client_auth allocated at line 243 with FSalloc((prefix->num_auths * 24)). client_auth leaks when (((Atom)ad) - ((Atom)(prefix + 8))) > ((stuff->length << 2) - 4) at line 252. malloc called at line 372 of os/utils.c in function 'FSalloc' at line 276 of difs/dispatch.c in function 'ProcEstablishConnection'. client_auth allocated at line 243 with FSalloc((prefix->num_auths * 24)). client_auth leaks when (i + 1) >= ((fsConnClientPrefix*)client->requestBuffer)[1].num_auths at line 251. malloc called at line 372 of os/utils.c in function 'FSalloc' Error: Memory leak (CWE 401) Memory leak of pointer acp allocated with FSalloc((stuff->num_auths * 24)) at line 604 of difs/dispatch.c in function 'ProcCreateAC'. acp allocated at line 590 with FSalloc((stuff->num_auths * 24)). acp leaks when ((((Atom)ad) - ((Atom)client->requestBuffer)) + 8) > ((stuff->length << 2) - 4) at line 599. malloc called at line 372 of os/utils.c in function 'FSalloc' at line 622 of difs/dispatch.c in function 'ProcCreateAC'. acp allocated at line 590 with FSalloc((stuff->num_auths * 24)). acp leaks when (i + 1) >= ((fsCreateACReq*)client->requestBuffer)->num_auths at line 597. malloc called at line 372 of os/utils.c in function 'FSalloc' Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 23 Aug, 2014 1 commit
-
-
Alan Coopersmith authored
Before this patch, gcc always warns: os/xfstrans.c: In function ‘_FontTransGetInetdListenInfo’: os/xfstrans.c:38:18: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default] char *port = "0"; ^ After this patch, with prior versons of libxtrans, gcc will warn about passing a const to TRANS(ReopenCOTSServer) where non-const is expected. With both this patch & the libxtrans const patches, there are no warnings. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 22 Aug, 2014 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 12 Aug, 2014 1 commit
-
-
Alan Coopersmith authored
automake 1.14.1 is asking for it: warning: possible forward-incompatibility. At least a source file is in a subdirectory, but the 'subdir-objects' automake option hasn't been enabled. For now, the corresponding output object file(s) will be placed in the top-level directory. However, this behaviour will change in future Automake versions: they will unconditionally cause object files to be placed in the same subdirectory of the corresponding sources. You are advised to start using 'subdir-objects' option throughout your project, to avoid future incompatibilities. and repeating for every source file: Makefile.am:35: warning: source file 'difs/charinfo.c' is in a subdirectory, Makefile.am:35: but option 'subdir-objects' is disabled This quiets it, and brings us into line with the future state. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 10 Aug, 2014 1 commit
-
-
Yaakov Selkowitz authored
As in xserver, FD_SETSIZE must be overridden due to a too-low default, and symbols must be exported for compatibility with the shared libXfont stub handling on these platforms. Signed-off-by:
Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 03 Jun, 2014 2 commits
-
-
Alan Coopersmith authored
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 24 May, 2014 2 commits
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 23 May, 2014 3 commits
-
-
Alan Coopersmith authored
Xprint support stubs were required for libXfont prior to removal of Xprint support in libXfont commit e1927f80deabe in 2009, but are no longer needed. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Fits in better with other swap vectors there Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
No extensions were defined, but the code was ready for them, just in case someone came up with one. If someone ever does, they can restore from git history or an old tarball - until then, less code for us to maintain & worry about checking for proper encoding/decoding of protocol. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 21 May, 2014 7 commits
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Removes a bonus unchecked strcat() call as well. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Mostly removes resource class code copied from the X server resource handling code and never used. Also removes reset on last client disconnect code (similarly copied from the X server and not used). Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Instead of individually registering support for font files and font servers, use the libXfont-provided register_fpe_functions() which will do the right thing (as of 1.4.2) depending how libXfont was configured. This should let xfs run against a libXfont configured with --disable-fc. Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 25 Apr, 2014 1 commit
-
-
Alan Coopersmith authored
Too many fonts is no reason to drop everything, dump core, and exit. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 25 Feb, 2014 1 commit
-
-
XFS replicates quite a bit of X server infrastructure so that it can share libXfont. Many of those shared functions are declared in shared font header files (either fontsproto.h or fontmisc.h). This patch removes duplicate definitions from the XFS header files and makes sure the shared header files are included in the right places to get the functions declared before being defined. Of course, some of those function types have changed, in particular CopyISOLatin1Lowered now takes a const char * source parameter. This patch also stops re-using the 'port' variable in GetInetdListenInfo when fetching the ReopenInfo. That's not strictly necessary here, but will be useful when the Reopen API in libxtrans changes to take a constant parameter. Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Tested-by:
Gaetan Nadon <memsize@videotron.ca> Signed-off-by:
Keith Packard <keithp@keithp.com> Signed-off-by:
Gaetan Nadon <memsize@videotron.ca>
-
- 06 Jul, 2013 1 commit
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-