- 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 \"
-
- 11 Jul, 2019 1 commit
-
-
Adam Jackson authored
-
- 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>
-
- 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>
-
- 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>
-
- 29 Jan, 2017 2 commits
-
-
Matt Turner authored
Signed-off-by:
Matt Turner <mattst88@gmail.com>
-
Matt Turner authored
Otherwise make check fails if make hasn't previously been run. Signed-off-by:
Matt Turner <mattst88@gmail.com>
-
- 26 Jan, 2017 5 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>
-
Peter Hutterer authored
See xserver commit 4bf3eac5fe20f Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 15 May, 2015 1 commit
-
-
Søren Sandmann Pedersen authored
This option is mentioned in the man page, but not in the help text Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 05 Jan, 2015 2 commits
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Jeremy Huddleston Sequoia <jeremyhu@apple.com> Reviewed-by:
Mark Kettenis <kettenis@openbsd.org>
-
Jon Turney authored
Fix error in the !HAVE_STRLCPY case, introduced in commit f990dd93 It seems that "path[sizeof(path) - 1]" rather than "buf[sizeof(path) - 1]" must be meant here, especially as the second instance doesn't even compile... parsedpy.c: In function ‘parse_displayname’: parsedpy.c:176:9: error: ‘buf’ undeclared (first use in this function) Signed-off-by:
Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-
- 31 Dec, 2014 1 commit
-
-
Jeremy Huddleston Sequoia authored
Signed-off-by:
Jeremy Huddleston Sequoia <jeremyhu@apple.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>
-
- 02 Apr, 2014 4 commits
-
-
Tilmann Bubeck authored
Changed clone URL and improved text. Removed section GARBAGE. Signed-off-by:
Dr. Tilmann Bubeck <tilmann@bubecks.de>
-
Tilmann Bubeck authored
Minor change in README to include 1.0.9 in diff so that release.sh is happy. Signed-off-by:
Dr. Tilmann Bubeck <tilmann@bubecks.de>
-
Tilmann Bubeck authored
Minor change in README to push the version bump. Signed-off-by:
Dr. Tilmann Bubeck <tilmann@bubecks.de>
-
Tilmann Bubeck authored
The tests/Makefile.am missed the EXTRA_DIST definition which resulted in missing files for the test done with "make check". This was fixed. README was extended to describe howto release a new version of this software and to clarify something from ReleaseHOWTO of x.org. Prepare anything for releasing 1.0.9. Signed-off-by:
Dr. Tilmann Bubeck <tilmann@bubecks.de>
-
- 31 Mar, 2014 1 commit
-
-
Tilmann Bubeck authored
Prepare for a new version 1.0.9 of xauth. Signed-off-by:
Dr. Tilmann Bubeck <t.bubeck@reinform.de>
-
- 30 Dec, 2013 1 commit
-
-
Alan Coopersmith authored
Required on Solaris to expose definitions in system headers that are not defined in the XPG standards now that xtrans 1.3 defines _XOPEN_SOURCE to 600 on Solaris. Fixes build failures: gethost.c: In function ‘get_hostname’: gethost.c:97:21: error: ‘INET6_ADDRSTRLEN’ undeclared (first use in this function) gethost.c:97:21: note: each undeclared identifier is reported only once for each function it appears in gethost.c:97:16: warning: unused variable ‘addr’ [-Wunused-variable] gethost.c: In function ‘get_address_info’: gethost.c:196:9: error: implicit declaration of function ‘strlcpy’ [-Werror=implicit-function-declaration] gethost.c:196:9: warning: nested extern declaration of ‘strlcpy’ [-Wnested-externs] Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Daniel Stone <daniel@fooishbar.org>
-
- 13 Oct, 2013 2 commits
-
-
Tilmann Bubeck authored
-
Tilmann Bubeck authored
only used during "make check". * perror out, if test_xauth does not find "cmdtest".
-
- 09 Oct, 2013 3 commits
-
-
Tilmann Bubeck authored
-
Tilmann Bubeck authored
-
Tilmann Bubeck authored
-
- 08 Oct, 2013 3 commits
-
-
Tilmann Bubeck authored
-
Tilmann Bubeck authored
-
Tilmann Bubeck authored
-
- 06 Oct, 2013 2 commits
-
-
Tilmann Bubeck authored
-
Tilmann Bubeck authored
-