- 10 May, 2020 4 commits
-
-
Alan Coopersmith authored
Reported by Oracle Parfait: Error: Memory leak Memory leak [memory-leak] (CWE 401): Memory leak of pointer authdata allocated with malloc((authdatalen - 1)) at line 1955 of process.c in function 'do_generate'. authdata allocated at line 1946 with malloc((authdatalen - 1)) Memory leak of pointer authdata allocated with malloc((authdatalen - 1)) at line 1971 of process.c in function 'do_generate'. authdata allocated at line 1946 with malloc((authdatalen - 1)) authdata leaks when (i + 1) >= argc at line 1910. at line 1980 of process.c in function 'do_generate'. authdata allocated at line 1946 with malloc((authdatalen - 1)) authdata leaks when (i + 1) >= argc at line 1910. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Reported by Oracle Parfait: Error: Memory leak Memory leak [memory-leak] (CWE 401): Memory leak of pointer argv allocated with malloc(32) at line 283 of process.c in function 'split_into_words'. argv allocated at line 264 with malloc(32) argv leaks when cur == total at line 280. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
If an -f argument is exactly 1022 characters in size, an off-by-one stack overflow happens in auth_finalize. The overflow could be even larger if locks are ignored for authentication files. Make sure that a given authentication file name fits into temporary buffer and that this buffer matches buffer sizes of libXau which is used by xauth.
-
- 03 May, 2020 1 commit
-
-
Tobias Stoeckmann authored
The hex key supplied with an add command can be quoted, in which case the quotation marks are removed. The check itself makes sure that a given string starts with a double quotation mark and ends with a double quotation mark. Buf if only " is supplied, the code crashes because it subtracts 2 from the length (which is 1) and therefore copies too much memory into a 0 allocated memory area. Proof of concept: $ xauth add :0 0 \"
-
- 20 Jun, 2019 1 commit
-
-
Adam Jackson authored
unlink()ing the old auth file before link()ing the temp to the new is just silly. rename() is atomic and will happily clobber the destination, and the only thing link() can give you here is the ability to fail on filesystems that don't support hardlinks. Fixes: #2
-
- 09 Jun, 2019 2 commits
-
-
There is no point in adding entry or merging lists if a FamilyWild entry would end in front of any entry, or entry without display number would end in front of entry with number. This sorts all entries in order: * FamilyWild without display number * FamilyWild with display number * Other family without display number * Other family with display number The order of the entries in each category is kept. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Merging two lists, or adding entry a into list acts unexpectedly if the list contains FamilyWild or entry with an empty display numbers. For example: > xauth list #ffff#6f70656e737573652d74756d626c6577656564#: MIT-MAGIC-COOKIE-1 1500d80327733252cc42ba469138a259 > xauth add test/unix:2 MIT-MAGIC-COOKIE-1 aabbccddeeff00112233445566778899 > xauth list test/unix:2 MIT-MAGIC-COOKIE-1 aabbccddeeff00112233445566778899 This is because merge_entries compares entries using `match_auth`, which follows the same rules as XauGetBestAuthByAddr. Following these rules is good when filtering the output of `xauth list`, but for merging we should compare for equality. It used to be done that way before commit 1555fff4 . That commit changed it to improve the `xauth list` behavior, but did not seem consider the impact on merge. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 05 May, 2018 1 commit
-
-
Alan Coopersmith authored
Needs to match one of the regexps shown under https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/Warning-Options.html#index-Wimplicit-fallthrough Silences warning from gcc 7.3: process.c: In function ‘dump_entry’: process.c:1007:9: warning: this statement may fall through [-Wimplicit-fallthrough=] if (dpyname) { ^ process.c:1012:4: note: here default: ^~~~~~~ Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 23 Jun, 2014 1 commit
-
-
Tilmann Bubeck authored
If xauth must store its XAUTHORITY file on a file system which is full, it will be unable to write the changes. This condition was not detected and therefore often the whole XAUTHORITY file was cleared. Here is the fix. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=21260 Signed-off-by:
Dr. Tilmann Bubeck <tilmann@bubecks.de>
-
- 13 Oct, 2013 1 commit
-
-
Tilmann Bubeck authored
-
- 08 Oct, 2013 1 commit
-
-
Tilmann Bubeck authored
-
- 06 Oct, 2013 3 commits
-
-
Tilmann Bubeck authored
-
Tilmann Bubeck authored
-
Xlib (xcb) uses XauGetBestAuthByAddr() when looking for an authorization. 'xauth [n]list $DISPLAY' used a slightly stricter algorithm which doesn't find a possible authorization for cases where either the family is set to FamilyWild or address the address length is 0. Signed-off-by:
Egbert Eich <eich@freedesktop.org>
-
- 29 Sep, 2013 1 commit
-
-
Jeremy Huddleston Sequoia authored
Signed-off-by:
Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-
- 24 Sep, 2013 2 commits
-
-
Tilmann Bubeck authored
-
Hello! I see you're the official xauth maintainer according to http://cgit.freedesktop.org/xorg/doc/xorg-docs/tree/MAINTAINERS#n80 Can you please take a look at the attached patch and merge it? Thanks, Thomas ----- Forwarded message from Thomas Klausner <wiz@NetBSD.org> ----- Date: Sun, 30 Jun 2013 13:29:44 +0200 From: Thomas Klausner <wiz@NetBSD.org> To: xorg-devel@lists.x.org Cc: Thomas Klausner <wiz@NetBSD.org> Subject: [PATCH:xauth] Use copystring to create non-const string. Fixes "error: assignment discards qualifiers from pointer target type" Signed-off-by:
Thomas Klausner <wiz@NetBSD.org>
-
- 23 Sep, 2013 1 commit
-
-
Running past the end of the chain would cause a SEGV. Signed-off-by:
Egbert Eich <eich@freedesktop.org>
-
- 23 Feb, 2013 1 commit
-
-
Alan Coopersmith authored
Drops use of autoconf's obsolete AC_TYPE_SIGNAL and Imake's even more obsolete SIGNALRETURNSINT. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 05 Nov, 2012 1 commit
-
-
Jon Turney authored
For AF_INET6, include Xwinsock.h rather than sys/socket.h on WIN32 Signed-off-by:
Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by:
Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
-
- 29 Sep, 2011 3 commits
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 24 May, 2011 1 commit
-
-
Jeremy Huddleston Sequoia authored
On some file systems (like AFP), hard links are not supported. If link fails, try rename() before giving up. Reported-by:
Jamie Kennea <jamie@pompey.org> Signed-off-by:
Jeremy Huddleston <jeremyhu@apple.com>
-
- 07 May, 2011 1 commit
-
-
Jeremy Huddleston Sequoia authored
process.c:567:14: warning: Call to 'malloc' has an allocation size of 0 bytes retval = malloc (len); ^ ~~~ 1 warning generated. Found-by: clang static analyzer Signed-off-by:
Jeremy Huddleston <jeremyhu@apple.com>
-
- 07 Oct, 2010 1 commit
-
-
Signed-off-by:
Jesse Adkins <jesserayadkins@gmail.com>
-
- 26 Aug, 2010 1 commit
-
-
Jeremy Huddleston Sequoia authored
What we had in place before was a hack that always used ':0'. This change results in the bundle id being used to differentiate different connections. Signed-off-by:
Jeremy Huddleston <jeremyhu@apple.com>
-
- 10 Oct, 2009 1 commit
-
-
Alan Coopersmith authored
https://bugs.freedesktop.org/show_bug.cgi?id=7051 Signed-off-by:
Alan Coopersmith <alan.coopersmith@sun.com>
-
- 19 Jul, 2009 1 commit
-
-
Matthieu Herrb authored
This avoids reading uninitialized memory later. Problem reported by Philip Guenther. Thanks. Signed-off-by:
Matthieu Herrb <matthieu.herrb@laas.fr>
-
- 07 Mar, 2009 1 commit
-
-
Michael Scherer authored
-
- 02 Dec, 2007 1 commit
-
-
Jeremy Huddleston authored
From Martin Costabel
-
- 12 Dec, 2006 1 commit
-
-
Alan Coopersmith authored
-
- 26 Jul, 2005 1 commit
-
-
Alan Coopersmith authored
autoconf in addition to Imake's SIGNALRETURNSINT.
-
- 24 Apr, 2004 1 commit
-
-
Alan Coopersmith authored
-
- 23 Apr, 2004 1 commit
-
-
Egbert Eich authored
-
- 14 Mar, 2004 1 commit
-
-
Egbert Eich authored
-
- 03 Mar, 2004 1 commit
-
-
Egbert Eich authored
-
- 26 Feb, 2004 2 commits
-
-
Egbert Eich authored
-
Egbert Eich authored
-