Age | Commit message (Collapse) | Author |
|
Noticed-by: Jon Meredith
|
|
The io_list_len() function returns an int, where a negative return
value indicates a type error. One problem is that an int only consists
of 32 bits in a 64-bit emulator. Changing the return type to Sint
will solve that problem, but in the 32-bit emulator, a large iolist
and a iolist with a type error will both return a negative number.
(Noticed by Jon Meredith.)
Another problem is that for iolists whose total size exceed the
word size, the result would be truncated, leading to a subsequent
buffer overflow and emulator crash.
Therefore, introduce the new erts_iolist_size() function which
returns a status indication and writes the result size through
a passed pointer. If the result size does not fit in a word,
return an overflow indication.
|
|
Also rename the fun_to_port/1 test case to outputv_errors/1 and
test sending more kinds of bad data to an outputv-enabled driver.
|
|
io_list_vec_len() is slightly more general than it needs to be.
Specifically:
* The only caller always passes ERL_SMALL_IO_BIN_LIMIT as the
value for the bin_limit parameter, so the bin_limit parameter
can be eliminated.
* The only caller never passes any NULL pointers, so there is
no need test the pointers before writing through them.
|
|
iolist_size/1 would silently return a truncated result for iolists
whose size exceeded the word size. For example:
iolist(lists:duplicate(256, <<0:(1 bsl 24)/unit:8>>)).
would return 0 (instead of 4294967296 or 1 bsl 32).
Rewrite iolist_size/1 to accumulate the size in a bignum if
necessary and result the correct result.
|
|
|
|
In older releases of Erlang/OTP, the '=:=' operator could run out
of stack if used to compare very deep lists. Since that problem
has been fixed, we can remove the workaround used in the deep/1
test case.
|
|
|
|
* ia/ssl/dialyzer-socket-options-spec:
Dialyzer spec fix
|
|
|
|
* ta/unicode-non-chars:
unicode: document 16#FFFE and 16#FFFF (non chars)
OTP-9256
|
|
* mh/inhibit-newline-inside-typespec:
Inhibit electric newline after "->" when inside a type spec
OTP-9255
|
|
* ia/ssl/dialyzer-iodata:
Changed iolist() to iodata()
|
|
* nick/ssh/memory_leak/OTP-9232:
OTP-9232: A memory leak has been fixed. I.e. per terminated connection the size of a pid and the length of a user name string was not cleared.
Added deletion of clients to be used when a session is terminated.
|
|
* ta/driver_entry-typo:
driver_entry: Remove gratuitous paren and fix typo
OTP-9254
|
|
* ks/prim_file-fixes:
add prim_file.beam
Driver names should be strings, not atoms
Cleanup and cosmetic changes
OTP-9253
|
|
* ms/erl_interface-compile-error:
erl_interface: fix compile error
OTP-9252
|
|
* ms/unsigned-integer-overflow-in-error:
Unsigned integer may overflow in error message
OTP-9251
|
|
ssl:send/2 takes iodata() as a second
argument. erlang:iolist_to_binary should really be called
erlang:iodata_to_binary which caused the mismatch in the first place.
|
|
* peppe/common_test/r14b03_tickets:
Have test_server locate the source code file for a test suite module if it's not in the same directory as the beam file.
Fix error in vts mode, making it impossible to execute suites with test case groups.
Fix problem with merging ticket branch.
Fix problems with timetrap handling in common_test: 1. ct:timetrap(infinity) not supported. 2. Previous set timetrap for a test case is not cancelled by new one.
Document the new init_per_testcase return value.
Make it possible to fail test case by returning {fail,Reason} from init_per_testcase.
Fix problem with merging a ticket branch.
Fix issues related to test case groups: 1. Allow empty group to be specified without generating an error. 2. Sort out potential problem with unnecessary call to delete_subs/2.
Add test case for suite with empty group.
Improve validation of test events.
Fix failing tests on Windows.
Make it possible to refresh the top level index page at the start of a test run.
Fix problem with CT hook start error causing IO to be sent to wrong group leader process.
Do minor updates of the ts test framework.
Correct failing test cases.
OTP-9233
OTP-9210
OTP-9195
OTP-9161
OTP-9160
OTP-9159
OTP-9138
|
|
not in the same directory as the beam file.
|
|
groups.
|
|
|
|
1. ct:timetrap(infinity) not supported.
2. Previous set timetrap for a test case is not cancelled by new one.
|
|
|
|
init_per_testcase.
|
|
|
|
1. Allow empty group to be specified without generating an error.
2. Sort out potential problem with unnecessary call to delete_subs/2.
|
|
|
|
|
|
|
|
|
|
* ta/common_test-ignore-ct_slave-xml:
Ignore lib/common_test/doc/src/ct_slave.xml
|
|
|
|
* ms/file-fix-hang-reading-compressed-files:
file: fix hang reading compressed files
OTP-9245
|
|
* raimo/inet_res-crash-rest-time-0/OTP-9221:
Do not UDP send when there is 0 ms left to wait for reply
Check return values from UDP send functions
Cleanup timeout handling, fix bug for remaining time =:= 0
Add DNS proxy and first test case for late answer
|
|
'siri/stdlib/supervisor-terminate_child-simple_one_for_one/OTP-9201' into dev
* siri/stdlib/supervisor-terminate_child-simple_one_for_one/OTP-9201:
Add terminate_child(Sup, Pid) for simple_one_for_one
Allow supervisor:terminate_child(SupRef,Pid) for simple_one_for_one
|
|
* km/pool_connect-to-running-nodes:
Change pool module to attempt to attach to nodes that are already running
OTP-9244
|
|
* sverker/code_SUITE-false_dependency-bug:
Fix bug in test case code_SUITE:false_dependency
|
|
* sverker/enif_is_exception/OTP-9150:
add support for checking if an ERL_NIF_TERM is an exception
|
|
|
|
* sverker/erts_printf-halfword:
erts_printf %be to print integers of size Eterm
Fix use of type BeamInstr in hipe_debug.c
Conflicts:
erts/emulator/hipe/hipe_debug.c
|
|
A memory leak has been fixed. I.e. per terminated connection the size of
a pid and the length of a user name string was not cleared.
|
|
|
|
|
|
|
|
|
|
* ia/year-fix:
Fixed blunder in year tag
|
|
|
|
|