summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | | | Eliminate crash in beam_ssa_typeBjörn Gustavsson2023-05-032-15/+34
|/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #7197
* | | | | | | | | | | | Merge pull request #7112 from frej/frej/erl_interface-warning-fixesRickard Green2023-05-033-7/+7
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | erl_interface and escript warning fixes
| * | | | | | | | | | | | erl_interface: Avoid warnings about safe sprintf usageFrej Drejhammar2023-05-022-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In erl_interface there are three uses of `sprintf` to construct host name strings. GCC 12 gives a `‘%s’ directive writing up to 254 bytes into a region of size between 1 and 256` warning at these locations, as it isn't smart enough to see that the manual bounds check is correct and that the write is safe. By switching to `snprintf` and removing the manual size calculation of the resulting string, we can both simplify the relevant code and avoid the warnings.
| * | | | | | | | | | | | escript: Avoid warning about truncated output in strncpyFrej Drejhammar2023-05-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GCC warns about how `strncpy` is used in `erts/etc/common/escript.c`: ``` escript.c: In function ‘main’: escript.c:289:17: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 289 | strncpy(dir, beg, sz); | ^ In function ‘find_prog’, inlined from ‘main’ at escript.c:483:25: escript.c:282:26: note: length computed here 282 | sz = strlen(beg); ``` The warning is triggered as GCC understands that, as `sz = strlen(beg)`, `strncpy` will never see and copy a terminating nul character to `dir`. As we manually null-terminate `dir`, by `dir[sz] = '\0';` on the line following `strncpy` we can avoid the warning, and speed up the copy a little (there is no need to look for a nul terminator), by using a plain `memcpy`.
* | | | | | | | | | | | | Merge pull request #7182 from Maria-12648430/patch-9Björn Gustavsson2023-05-033-42/+74
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / |/| | | | | | | | | | | | Remove incorrect compatibility section from `gb_sets` docs
| * | | | | | | | | | | | Move compatibility section to sets documentationMaria Scott2023-05-033-42/+74
| | | | | | | | | | | | |
* | | | | | | | | | | | | Merge branch 'dgud/ssl/default-fail-no-peercert/OTP-18567'Dan Gudmundsson2023-05-036-25/+30
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dgud/ssl/default-fail-no-peercert/OTP-18567: ssl: Fix that users can send data during renegotiation ssl: Make fail_if_no_peer_cert default true if verify_peer is set
| * | | | | | | | | | | | ssl: Fix that users can send data during renegotiationDan Gudmundsson2023-04-271-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A timing issue was found during testing of the previous commit. Users should be allowed to send data during the renegotiation.
| * | | | | | | | | | | | ssl: Make fail_if_no_peer_cert default true if verify_peer is setDan Gudmundsson2023-04-275-20/+26
| | |_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the client could not send a certificate and the server will accept the connection even if verify_peer is set and the user have forgot to set the fail_if_no_peer_cert. This is changed to make the default options safer.
* | | | | | | | | | | | Merge branch 'maint'Sverker Eriksson2023-05-020-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / / / / | |/| | | | | | | | | |
| * | | | | | | | | | | Merge branch 'sverker/24.3.4.11/erts/hashmap-collision-nodes/OTP-18569' into ↵Sverker Eriksson2023-05-020-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maint
| | * \ \ \ \ \ \ \ \ \ \ Merge branch 'sverker/24/erts/hashmap-collision-nodes/OTP-18569' into ↵Sverker Eriksson2023-04-279-365/+693
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sverker/24.3.4.11/erts/hashmap-collision-nodes/OTP-18569
* | | \ \ \ \ \ \ \ \ \ \ \ Merge branch 'maint'Sverker Eriksson2023-05-021-0/+9
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / | | | | | | / / / / / / / / | |_|_|_|_|/ / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Merge branch 'sverker/crypto/libre-ssl-fixing/OTP-18571' into maintSverker Eriksson2023-05-021-0/+9
| |\ \ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | | crypto: Fix cmac_update aes_128_cbc for LibreSSLSverker Eriksson2023-04-251-0/+9
| | | |_|_|_|_|/ / / / / / | | |/| | | | | | | | | |
* | | | | | | | | | | | | Merge branch 'raimo/test-cuddle'Raimo Niskanen2023-05-022-14/+13
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * raimo/test-cuddle: CMAC is only possible with CBC mode Test all algorithms documented for CMAC Update Remove unsuported algorithm from cmac_update test
| * | | | | | | | | | | | | CMAC is only possible with CBC modeRaimo Niskanen2023-04-272-9/+7
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Test all algorithms documented for CMAC UpdateRaimo Niskanen2023-04-251-14/+17
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Remove unsuported algorithm from cmac_update testRaimo Niskanen2023-04-251-4/+2
| | |/ / / / / / / / / / / | |/| | | | | | | | | | |
* | | | | | | | | | | | | Merge branch 'maint'Sverker Eriksson2023-05-021-12/+7
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / | |/| | | | | | | | | | |
| * | | | | | | | | | | | Merge branch 'sverker/25/erts/hashmap-collision-nodes/OTP-18569' into maintSverker Eriksson2023-05-021-12/+7
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AGAIN
| | * \ \ \ \ \ \ \ \ \ \ \ Merge branch 'sverker/24/erts/hashmap-collision-nodes/OTP-18569'Sverker Eriksson2023-04-271-12/+7
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | into sverker/25/erts/hashmap-collision-nodes/OTP-18569
| | | * | | | | | | | | | | erts: Remove dead codeSverker Eriksson2023-04-271-12/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merging of two key-value leafs with equal keys are handled by hashmap_merge() itself, which means merge_colliding_node() will always end up with at least two distinct keys and return a collision node.
* | | | | | | | | | | | | | Merge pull request #7096 from frej/frej/fix-bitwise-on-booleansRickard Green2023-05-023-3/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | erts: Fix warning about bitwise operations on booleans
| * | | | | | | | | | | | | | erts: Fix warning about bitwise operations on booleansFrej Drejhammar2023-04-053-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang 16 warns when `&` and `|` are used on boolean operands.
* | | | | | | | | | | | | | | Merge branch 'maint'Björn Gustavsson2023-05-020-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: Fix two type-related bugs
| * | | | | | | | | | | | | | Merge branch 'bjorn/compiler/beam_validator/25/GH-7147/OTP-18565' into maintBjörn Gustavsson2023-05-024-9/+110
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bjorn/compiler/beam_validator/25/GH-7147/OTP-18565: Fix two type-related bugs
| | * | | | | | | | | | | | | Fix two type-related bugsBjörn Gustavsson2023-05-024-9/+110
| | | |_|_|/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #7147 uncovered two bugs in the compiler. The first one is in the swapping of operands for commutative operands, that the compiler does to simplify for the JIT. When the operands were swapped, types for the operands in the annotation were not updated. The second one is in `beam_validator`, which assumed that if the binary construction `<<F/float>>` succeeded, then `F` must be a float. That is not correct, because `F` could also be an integer. Closes #7147
* | | | | | | | | | | | | | Merge pull request #7188 from bjorng/bjorn/compiler/fix-beam_jump/GH-7180Björn Gustavsson2023-05-022-0/+9
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate unsafe sharing optimization in beam_jump
| * | | | | | | | | | | | | | Eliminate unsafe sharing optimization in beam_jumpBjörn Gustavsson2023-04-282-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #7180
* | | | | | | | | | | | | | | Merge pull request #7186 from bjorng/bjorn/compiler/fix-is_function-type/GH-7179Björn Gustavsson2023-05-022-7/+31
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate crash in beam_ssa_type
| * | | | | | | | | | | | | | | Eliminate crash in beam_ssa_typeBjörn Gustavsson2023-04-282-7/+31
| |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #7179
* | | | | | | | | | | | | | | Merge pull request #7185 from bjorng/bjorn/compiler/float-overflow/GH-7178Björn Gustavsson2023-05-022-4/+52
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate internal error in beam_types:float_from_range/1
| * | | | | | | | | | | | | | | Eliminate internal error in beam_types:float_from_range/1Björn Gustavsson2023-04-282-4/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #7178
* | | | | | | | | | | | | | | | Merge branch 'maint'Rickard Green2023-04-304-5/+155
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / / / |/| | / / / / / / / / / / / / / | | |/ / / / / / / / / / / / / | |/| | | | | | | | | | | | | * maint: [erts] ensure no mix of external and internal identifiers
| * | | | | | | | | | | | | | Merge branch 'rickard/creation-fix/25.3.1/OTP-18570' into maintRickard Green2023-04-304-5/+155
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|/ / / / / / | |/| | | | | | | | | | | / / | | | |_|_|_|_|_|_|_|_|_|/ / | | |/| | | | | | | | | | | * rickard/creation-fix/25.3.1/OTP-18570: [erts] ensure no mix of external and internal identifiers
| | * | | | | | | | | | | | Merge branch 'rickard/creation-fix/24.3.4/OTP-18570' into ↵Rickard Green2023-04-294-5/+155
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rickard/creation-fix/25.3.1/OTP-18570 * rickard/creation-fix/24.3.4/OTP-18570: [erts] ensure no mix of external and internal identifiers
| | | * | | | | | | | | | | Merge branch 'rickard/creation-fix/23.3.4/OTP-18570' into ↵Rickard Green2023-04-294-2/+154
| | | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rickard/creation-fix/24.3.4/OTP-18570 * rickard/creation-fix/23.3.4/OTP-18570: [erts] ensure no mix of external and internal identifiers
| | | | * | | | | | | | | | | [erts] ensure no mix of external and internal identifiersRickard Green2023-04-294-2/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Silently reject proposed creation and select another one when a node goes alive if there are external identifiers in the system with the proposed creation and the same node name that are to be used. Such identifiers would not work as expected in various situations, and are not from the instance of the node that are about to go alive.
* | | | | | | | | | | | | | | Merge branch 'bmk/kernel/20230414/test_tweaking'Micael Karlberg2023-04-282-0/+12
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | [kernel|test] Add skip conditionMicael Karlberg2023-04-211-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add skip condition for network related issues (on OpenBSD).
| * | | | | | | | | | | | | | | [kernel|esock|test] Tweaked broadcast test caseMicael Karlberg2023-04-141-0/+4
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Merge branch 'bmk/erts/esock/20230414/win_async_io_continue/OTP-18029'Micael Karlberg2023-04-2817-793/+1656
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / / / / / / / / |/| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | [erts|esock] Add function for handling 'more_data' errorMicael Karlberg2023-04-261-0/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When, on Windows, reading with recvfrom, if the buffer is too small for the data available, the result is an error: 'more_data'. Add a function for handling this special error case. OTP-18029
| * | | | | | | | | | | | | | | [kernel|esock] Fixed doc for socket:cancel/2Micael Karlberg2023-04-263-18/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And also fixed all "resulting (dialyzer) issues..." OTP-18029
| * | | | | | | | | | | | | | | [erts|esock] Add one more (Windows) error codeMicael Karlberg2023-04-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OTP-18029
| * | | | | | | | | | | | | | | [erts|preloaded|esock] sendto did not handle completionMicael Karlberg2023-04-212-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OTP-18029
| * | | | | | | | | | | | | | | [kernel|esock|test] Add more explicit skips on WindowsMicael Karlberg2023-04-181-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, the functions sendmsg and recvmsg are not supported. So, instead of letting the test framework 'catch' the 'notsup' (which it does not in all cases), just skip. OTP-18029
| * | | | | | | | | | | | | | | [kernel|esock|test] More tweaking to the 18240 test case(s)Micael Karlberg2023-04-181-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tweaked to make it (maybe) run cleanly on OpenBSD.
| * | | | | | | | | | | | | | | [kernel|test] Tweaked 18240 test caseMicael Karlberg2023-04-171-0/+6
| | | | | | | | | | | | | | | |