Commits
- Commit:
831dfaf6374a1345cdf4512f4cc504973802afa5
- From:
- Sergey Bronnikov <sergeyb@tarantool.org>
- Date:
cmake: propagate UBsan option to LuaJIT build
The commit bf01fb200777 ("luajit: bump new version") introduced
the LUAJIT_USE_UBSAN option in LuaJIT. The patch propagates the
CMake option ENABLE_UB_SANITIZER used in Tarantool to the LuaJIT
build.
Needed for #10145
NO_CHANGELOG=build
NO_DOC=build
NO_TEST=build
(cherry picked from commit b58791cf532c5a76a6941221358ca007bc97a85b)
- Commit:
16d11f88099b05c375ce3c45f0ff7ca2c8ded772
- From:
- Sergey Bronnikov <sergeyb@tarantool.org>
- Date:
varbinary: fix UB in a varbinary.new()
With enabled UndefinedBehavior Sanitizer runtime error like
below is triggered:
NO_WRAP
$ UBSAN_OPTIONS=external_symbolizer_path=/usr/lib/llvm-13/bin/llvm-symbolizer:print_stacktrace=1
$ ./build/src/tarantool -e "require('varbinary').new()"
/home/sergeyb/sources/MRG/tarantool/third_party/luajit/src/lib_ffi.c:710:14: \
runtime error: null pointer passed as argument 2, which is declared to never be null
/usr/include/string.h:44:28: note: nonnull attribute specified here
NO_WRAP
This happened because in the varbinary constructor, the NULL
pointer was passed to `ffi.copy()` and then to `memcpy()`, which
is an undefined behaviour.
The patch fixes that.
Needed for #10145
NO_CHANGELOG=codehealth
NO_DOC=codehealth
NO_TEST=codehealth
(cherry picked from commit 30179d44da65f835d81494ad63e86935f1c5aad0)
- Commit:
a9dad9f84826bea49dc107a60eab0e6ca4ac9967
- From:
- Alexander Turenko <alexander.turenko@tarantool.org>
- Via:
- Alexander Turenko <totktonada.ru@gmail.com>
- Date:
doc: fix tt start command in --help
Fixes #10563
NO_DOC=The documentation on the website has correct command, this is a
purely --help output problem.
NO_CHANGELOG=This commit is not related to tarantool's behavior or
public APIs.
(cherry picked from commit 22e86d2ed3f5f36099cf143868619d1f0df611ac)
- Commit:
c6127c195e03fe3cf5aee4c4501b6a46f317d21e
- From:
- Sergey Bronnikov <sergeyb@tarantool.org>
- Via:
- Vladimir Davydov <vdavydov@tarantool.org>
- Date:
test: disable flaky testcases in http_client_test
The testcase "http_client.sock_family:\"AF_UNIX\".test_follow_location"
is flaky in each run of `release_clang_asan` and
`debug_asan_clang` workflows. Disabling a single testcase does not
help. The patch disables a group of testcases executed with Unix
domain socket.
Needed for #9854
NO_CHANGELOG=testing
NO_DOC=testing
(cherry picked from commit 8fae8004f79ecd555537960c60c6e646b037c4cc)
- Commit:
058bc3ccca0e1d6482ff018285b8d2bb9e163e21
- From:
- Sergey Bronnikov <sergeyb@tarantool.org>
- Via:
- Vladimir Davydov <vdavydov@tarantool.org>
- Date:
test: fix luacheck warnings
The patch fixes a warning produced by luacheck:
NO_WRAP
test/app-luatest/http_client_test.lua:27:8: Error prone negation: negation is executed before relational operator.
test/app-luatest/http_client_test.lua:28:8: Error prone negation: negation is executed before relational operator.
NO_WRAP
Found by Luacheck 1.2.0.
Closes #10037
NO_CHANGELOG=codehealth
NO_DOC=codehealth
NO_TEST=codehealth
(cherry picked from commit 8fd37731b68e1e1d8e258ab919d65907d52ec764)