1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-30 15:00:21 +02:00
guile/test-suite/tests
Liliana Marie Prikler 01b686b701 Allow null bytes in UNIX sockets.
The current socket address constructors all assume, that there are no
null bytes in the socket path.  This assumption does not hold in Linux,
which uses an initial null byte to demarcate abstract sockets and
ignores all further null bytes [1].

[1] https://www.man7.org/linux/man-pages/man7/unix.7.html

* libguile/sockets.c (scm_fill_sockaddr)[HAVE_UNIX_DOMAIN_SOCKETS]:
Use scm_to_locale_stringn to construct c_address.
Use memcpy instead of strcpy and calculate size directly instead of
using SUN_LEN.
(_scm_from_sockaddr): Copy the entire path up to the limits imposed by
addr_size.
* test-suite/tests/00-socket.test: ("make-socket-address"): Add case for
abstract unix sockets.
("AF_UNIX/SOCK_STREAM"): Add abstract socket versions of bind, listen,
connect and accept.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-06-16 09:54:29 +02:00
..
00-initial-env.test Add optimized tagged integer addition/subtractions for x86_64. 2010-11-19 13:34:43 +01:00
00-repl-server.test Use mkdtemp to simplify repl server test 2021-01-21 10:41:10 -08:00
00-socket.test Allow null bytes in UNIX sockets. 2022-06-16 09:54:29 +02:00
alist.test Resolve unresolved alist test cases 2017-03-14 16:04:14 +01:00
and-let-star.test Update and-let-star.test 2016-06-21 13:40:02 +02:00
array-map.test Support non-zero lower bounds in array-slice-for-each 2017-10-31 13:23:17 +01:00
arrays.test Remove the 'simple vector' concept 2021-08-16 15:39:21 +02:00
asyncs.test Check for working profiling and virtual itimers 2017-03-06 23:06:12 -08:00
atomic.test Compiler support for atomics 2016-09-06 12:18:35 +02:00
bit-operations.test
bitvectors.test New function bitvector-copy (scm_bitvector_copy) 2022-01-04 12:28:41 +01:00
brainfuck.test move (test-suite lib) to lower dir; cleans up uninstalled paths. 2012-04-23 21:46:06 +02:00
bytevectors.test Extend bytevector-fill! to handle a partial fill 2021-08-17 16:47:04 +02:00
c-api.test tests: Use NUL instead of /dev/null on MinGW. 2014-06-11 14:36:55 +02:00
chars.test Read-in-scheme replaces boot "read" definition 2021-03-03 17:08:55 +01:00
coding.test Make temporary file in coding.test work on MS-Windows. 2014-08-13 18:41:15 +03:00
common-list.test
compiler.test psyntax: Honor source properties for things other than syntax objects. 2022-03-07 10:52:16 +01:00
continuations.test with-continuation-barrier calls exit(3) _after_ unwinding 2011-03-30 12:43:50 +02:00
control.test Nonlocal prompt returns cause all effects 2017-03-13 22:20:16 +01:00
copy-tree.test Move copy-tree to (ice-9 copy-tree); deprecate main binding 2020-09-10 21:57:21 +02:00
coverage.test Fix coverage test for top-level binding optimization 2019-08-18 22:27:12 +02:00
cross-compilation.test Allow empty vendor string in GNU target triplets. 2022-06-16 09:42:05 +02:00
curried-definitions.test
dwarf.test Read Scheme via read-syntax 2021-02-25 16:07:47 +01:00
ecmascript.test Fix tree-il code generation for ECMAscript `new' expression. 2016-10-25 23:39:30 +02:00
elisp-compiler.test Fix test suite for constant literals change 2017-04-19 09:26:11 +02:00
elisp-reader.test use correct names for quasiquotation operators 2010-12-07 13:21:02 +01:00
elisp.test Move copy-tree to (ice-9 copy-tree); deprecate main binding 2020-09-10 21:57:21 +02:00
encoding-escapes.test Change `scm_encoding_error' to pass the port and faulty character. 2011-02-02 18:06:29 +01:00
encoding-iso88591.test Improve handling of locales in the test suite. 2014-02-07 21:49:35 -05:00
encoding-iso88597.test Improve handling of locales in the test suite. 2014-02-07 21:49:35 -05:00
encoding-utf8.test Improve handling of locales in the test suite. 2014-02-07 21:49:35 -05:00
eval-string.test add ice-9 eval-string 2011-03-05 23:16:11 +01:00
eval.test Move copy-tree to (ice-9 copy-tree); deprecate main binding 2020-09-10 21:57:21 +02:00
exceptions.test Rebase throw/catch on top of raise-exception/with-exception-handler 2019-11-13 22:24:19 +01:00
fdes-finalizers.test Add file descriptor finalizers 2016-08-30 23:35:10 +02:00
filesys.test the mkdtemp tests don't clean up the directories created 2021-02-04 02:48:35 -08:00
fluids.test Respect thread local fluid defaults 2020-01-12 22:04:29 +01:00
foreign.test Support C99 complex types in (system foreign) 2021-11-15 11:34:09 +01:00
format.test (ice-9 format): Fix scaling floats with leading zeros 2021-10-19 02:52:15 +02:00
fractions.test Fix incorrect rationalize tests. 2013-07-21 08:09:46 -04:00
ftw.test ice-9 ftw: handle non-working inodes 2021-03-11 10:46:35 -08:00
future.test futures: Limit the number of nested futures on the same stack. 2013-03-27 18:09:49 +01:00
gc.test Fix one remaining use of make-record-type with string type name 2019-10-23 14:45:36 +02:00
getopt-long.test Implement #:stop-at-first-non-option option for getopt-long 2011-05-26 17:58:18 +01:00
goops.test goops: Preserve all slot options in redefinable classes. 2021-03-19 21:45:53 +01:00
guardians.test Deprecate vector-ref, vector-length, vector-set! on weak vectors 2014-02-07 12:42:44 +01:00
hash.test Add 'hash' test for keywords. 2020-03-06 17:17:41 +01:00
hooks.test
i18n.test Fix recent i18n tests 2021-03-16 21:55:22 +01:00
iconv.test U+FFFD is the input substitution character 2016-05-16 10:48:35 +02:00
import.test
interp.test
keywords.test
linker.test Fix linker.test 2019-02-22 15:01:01 +01:00
list.test Improve error reporting in 'append!' 2012-10-06 06:04:29 -04:00
load.test primitive-load returns the value(s) of the last expression 2012-01-09 16:15:00 +01:00
match.test Hotfix to unify (x ...) patterns in match 2021-09-30 15:47:41 +02:00
match.test.upstream Hotfix to unify (x ...) patterns in match 2021-09-30 15:47:41 +02:00
modules.test Fix deprecated 1-arg `make-module' in tests 2019-10-22 14:00:12 +02:00
multilingual.nottest
net-db.test tests: Have `getaddrinfo' test work for Darwin 8. 2012-02-03 10:30:52 +01:00
numbers.test Have log and log10(real nan) return real nan regardless of sign 2022-01-13 09:37:17 +01:00
optargs.test Warning and optimization levels always small integers 2020-05-08 16:35:04 +02:00
options.test fix up options.test 2010-09-25 12:12:45 +02:00
pairs.test
parameters.test current-input-port et al are srfi-39 parameters 2011-12-10 21:37:19 +01:00
peg.bench PEG Renames 2013-01-16 10:11:49 +01:00
peg.test PEG Renames 2013-01-16 10:11:49 +01:00
peval.test 'peval' test uses (language tree-il peval). 2020-05-17 17:55:30 +02:00
poe.test
popen-child.scm Fix hanging of popen.test 2010-07-01 22:16:54 +01:00
popen.test disable popen 'no duplicates' test for MinGW 2021-03-10 01:59:59 -08:00
ports.test Fix "non-revealed port is closed" ports.test 2022-03-16 22:23:37 -05:00
posix.test Add mkstemp; undocument mkstemp! 2021-03-10 20:40:10 +01:00
print.test Fix bitvectors and non-zero lower bound arrays in truncated-print 2017-10-31 13:23:44 +01:00
procprop.test remove @apply memoizer 2013-06-27 22:02:35 +02:00
procs.test Add compose', negate', and `const'. 2010-12-16 23:45:23 +01:00
q.test
r4rs.test Placate a number of `syntax-check' verifications. 2012-01-05 23:38:10 +01:00
r5rs_pitfall.test Rewrite boot-9 map to be recursive and pure 2014-05-01 21:17:28 +02:00
r6rs-arithmetic-bitwise.test Optimize R6RS bitwise operators. 2013-07-21 10:00:48 -04:00
r6rs-arithmetic-fixnums.test Fix fixnum-range changes in R6RS fixnum bitops 2016-06-21 09:32:30 +02:00
r6rs-arithmetic-flonums.test Fix numerator and denominator handling of signed zeroes and infinities. 2013-08-09 06:09:56 -04:00
r6rs-base.test R6RS `string-for-each' should accept multiple string arguments 2012-11-22 22:26:16 +01:00
r6rs-conditions.test Some tweaks to the R6RS support 2010-11-25 23:04:12 +01:00
r6rs-control.test
r6rs-enums.test Enumeration set universe comparisons should be done with `equal?' 2010-11-21 15:35:44 -05:00
r6rs-eval.test
r6rs-exceptions.test Convert guile exceptions to R6RS conditions in R6RS exception handlers. 2013-11-18 00:35:42 -05:00
r6rs-files.test Add mkstemp; undocument mkstemp! 2021-03-10 20:40:10 +01:00
r6rs-hashtables.test (rnrs hashtables): Hash functions of eq? and eqv? hashtables 2016-06-21 09:48:36 +02:00
r6rs-lists.test Fix R6RS `fold-left' so the accumulator is the first argument. 2011-11-01 01:11:46 +01:00
r6rs-ports.test Add tests for get-bytevector-some! 2021-03-12 22:11:51 +01:00
r6rs-records-inspection.test
r6rs-records-procedural.test Rebase R6RS records on top of core records 2019-10-29 11:35:16 +01:00
r6rs-records-syntactic.test fix r6rs-records-syntactic.test to not shadow a literal 2011-07-01 12:01:58 +02:00
r6rs-unicode.test
r7rs.test (scheme base) member: return #f, not (), for no match 2021-01-17 13:25:40 -06:00
random.test Support general arrays in random:hollow-sphere! 2017-10-31 13:30:01 +01:00
rdelim.test Revert "Handle CRLF and Unicode line endings in read-line" 2021-03-12 22:08:16 +01:00
reader.test tests: Add read-syntax + syntax-source test. 2022-03-07 10:52:16 +01:00
receive.test
records.test Add support for immutable fields in core records 2019-10-28 16:59:58 +01:00
regexp.test Merge commit '0ce224594a' 2014-02-08 14:48:56 +01:00
rnrs-libraries.test Fix R6RS imports of interfaces that use interfaces 2016-04-14 12:35:55 +02:00
rnrs-test-a.scm move (test-suite lib) to lower dir; cleans up uninstalled paths. 2012-04-23 21:46:06 +02:00
rtl-compilation.test Rename "RTL" to "bytecode" 2013-12-02 21:31:47 +01:00
rtl.test Fix RTL tests for recent arity change 2019-06-07 17:10:32 +02:00
sandbox.test Add sandboxed evaluation facility 2017-04-18 21:27:45 +02:00
session.test Fix procedure-arguments on RTL programs, and tweak session.test 2013-11-08 13:29:03 +01:00
signals.test Disable test for current value of setitimer on Cygwin 2019-05-23 17:32:17 +02:00
sort.test Fix sort, sort! for arrays with nonzero lower bound 2017-10-31 13:23:17 +01:00
srcprop.test Add tests to verify that 'read' sets source properties when appropriate 2012-02-15 12:23:12 -05:00
srfi-1.test Move copy-tree to (ice-9 copy-tree); deprecate main binding 2020-09-10 21:57:21 +02:00
srfi-2.test Add SRFI-2 (and-let*) test suite. 2016-06-21 13:40:01 +02:00
srfi-4.test New function srfi-4-vector-type-size in (srfi srfi-4 gnu) 2021-12-06 14:00:03 +01:00
srfi-6.test Make SRFI-6 string ports Unicode-capable. 2012-06-20 15:50:27 +02:00
srfi-9.test Adapt srfi-9.test to error reporting improvements; update copyright dates. 2013-09-12 18:14:54 -04:00
srfi-10.test
srfi-11.test srfi-11: Do not expose variables to later clauses 2020-01-12 22:18:41 +01:00
srfi-13.test Fix 'string-copy!' to work properly with overlapping src/dest. 2014-01-08 21:42:24 -05:00
srfi-14.test Improve handling of locales in the test suite. 2014-02-07 21:49:35 -05:00
srfi-17.test adapt tests to new syntax-error form 2010-11-18 11:04:15 +01:00
srfi-18.test SRFI-18 uses core exceptions 2019-11-14 16:33:10 +01:00
srfi-19.test Fix tests for SRFI-19 date->string ~N 2019-05-23 17:14:29 +02:00
srfi-26.test
srfi-27.test Add implementation of SRFI 27 2010-09-27 22:15:51 +02:00
srfi-31.test Rewrite SRFI-31 in terms of `syntax-rules'. 2012-09-11 23:39:32 +02:00
srfi-34.test
srfi-35.test Rebase srfi-35 conditions on top of make-record-type 2019-10-23 14:42:35 +02:00
srfi-37.test SRFI-37: Fix infinite loop when processing short option with no required arg. 2013-03-25 23:25:57 +01:00
srfi-38.test Add implementation of SRFI 38 2010-11-03 00:19:54 +01:00
srfi-39.test
srfi-41.test Add SRFI-41. 2013-03-27 13:37:45 -04:00
srfi-42.test Remove stale test file. 2012-01-30 20:57:42 +01:00
srfi-43.test Implement SRFI-43 Vector Library. 2014-02-01 01:19:49 -05:00
srfi-45.test SRFI-45: add promise? predicate. 2013-03-26 21:22:11 -04:00
srfi-60.test SRFI-60: Reimplement 'rotate-bit-field' on inums to be more portable. 2014-03-11 21:39:26 -04:00
srfi-64-test.scm Fix bug #42713: srfi-64: Reset test-runner-current if done 2020-08-05 12:46:27 +02:00
srfi-64.test Fix srfi-64.test for #:select borkage. The irony... 2016-06-21 22:46:03 +02:00
srfi-67.test Placate a number of `syntax-check' verifications. 2012-01-05 23:38:10 +01:00
srfi-69.test
srfi-71.test tests: Add SRFI-71 test. 2018-08-07 12:09:06 +02:00
srfi-88.test
srfi-98.test
srfi-105.test Relax srfi-105 source expectations 2021-03-03 17:08:55 +01:00
srfi-111.test Implement SRFI-111 Boxes. 2014-01-24 10:50:51 -05:00
srfi-171.test Add SRFI-171 to guile 2020-03-25 22:44:27 +01:00
statprof.test Check for working profiling and virtual itimers 2017-03-06 23:06:12 -08:00
streams.test
strings.test read: Use "invalid" rather than "illegal". 2020-06-18 00:30:11 +02:00
structs.test Replace "pr" struct fields with "pw" fields 2017-09-23 15:33:02 +02:00
suspendable-ports.test Update port documentation, rename sports to suspendable ports 2016-06-09 10:50:32 +02:00
sxml-match-tests.ss
sxml.fold.test
sxml.match.test move (test-suite lib) to lower dir; cleans up uninstalled paths. 2012-04-23 21:46:06 +02:00
sxml.simple.test add #:doctype-handler to xml->sxml 2013-01-30 15:29:18 +01:00
sxml.ssax.test
sxml.transform.test
sxml.xpath.test
symbols.test symbols with odd characters print better in #{}# 2011-04-11 13:48:11 +02:00
syncase.test Fix infinite loop in expander 2015-02-13 16:43:01 +01:00
syntax.test Fix crash on #nil in syntaxes 2021-07-11 15:00:33 -05:00
texinfo.docbook.test
texinfo.html.test Fix texinfo->html for @acronym, @itemize 2016-06-24 17:09:39 +02:00
texinfo.plain-text.test texinfo: Properly render @acronym in plain text. 2020-01-29 15:19:37 +01:00
texinfo.serialize.test Texinfo serialization: add braces when needed 2016-10-11 22:08:03 +02:00
texinfo.string-utils.test texinfo: Add whitespace after periods. 2013-03-22 22:05:23 +01:00
texinfo.test texinfo: Add basic support for @w{...}. 2020-06-18 00:30:30 +02:00
threads.test Back to simple unlock-mutex 2016-11-05 11:50:31 +01:00
time.test strptime test shouldn't presume that initial whitespace is ignored 2021-01-23 12:35:01 -08:00
tree-il.test analyze: 'unbound-variable' warning handles re-exported bindings. 2021-05-02 01:20:19 +02:00
types.test types: Recognize 'scm_t_port_type' and decode port type name. 2018-08-07 12:13:45 +02:00
unicode.test Add (ice-9 unicode) module 2014-09-29 21:54:14 -04:00
vectors.test Remove the 'simple vector' concept 2021-08-16 15:39:21 +02:00
version.test skip version test if git-version-gen can't compute version from git 2021-01-21 15:35:09 -08:00
vlist.test Merge remote-tracking branch 'origin/stable-2.0' 2013-03-28 05:09:53 -04:00
vm.test 'load-thunk-from-memory' reports the correct error. 2018-08-07 11:34:35 +02:00
weaks.test Merge commit '9b5da400dd' 2014-02-07 15:36:06 +01:00
web-client.test Generic port facility provides buffering uniformly 2016-04-06 19:21:44 +02:00
web-http.test Revert "web: Add support for HTTP header continuation lines." 2019-06-24 11:33:13 -04:00
web-request.test web: add support for URI-reference 2017-05-21 13:42:29 +02:00
web-response.test web: Fix 'close' method of delimited input ports. 2016-05-22 19:48:47 +02:00
web-server.test tests: web-server: Wait until the server is listening. 2022-03-15 14:38:40 +01:00
web-uri.test web: Accept URI host names consisting only of hex digits. 2020-06-18 17:06:29 +02:00