summaryrefslogtreecommitdiff
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.9 into 10.10Marko Mäkelä2023-04-142-1/+2
|\
| * Merge 10.8 into 10.9Marko Mäkelä2023-04-142-1/+2
| |\
| | * Merge 10.6 into 10.8Marko Mäkelä2023-04-122-1/+2
| | |\
| | | * Merge 10.5 into 10.6Marko Mäkelä2023-04-112-1/+2
| | | |\
| | | | * Merge remote-tracking branch '10.4' into 10.5Oleksandr Byelkin2023-03-314-5/+6
| | | | |\
| | | | | * Update feedback plugin URL to use feedback.mariadb.org subdomainbb-10.4-vicentiuVicențiu Ciorbaru2023-03-201-1/+1
| | | | | |
| | | | | * move alloca() definition from all *.h files to one new header fileJulius Goryavsky2023-03-073-5/+3
| | | | | |
| | | | | * Fix few vulnerabilities found by CppcheckHugo Wen2023-03-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While performing SAST scanning using Cppcheck against source code of commit 81196469, several code vulnerabilities were found. Fix following issues: 1. Parameters of `snprintf` function are incorrect. Cppcheck error: client/mysql_plugin.c:1228: error: snprintf format string requires 6 parameters but only 5 are given. It is due to commit 630d7229 introduced option `--lc-messages-dir` in the bootstrap command. However the parameter was not even given in the `snprintf` after changing the format string. Fix: Restructure the code logic and correct the function parameters for `snprintf`. 2. Null pointer is used in a `snprintf` which could cause a crash. Cppcheck error: extra/mariabackup/xbcloud.cc:2534: error: Null pointer dereference The code intended to print the swift_project name, if the opt_swift_project_id is NULL but opt_swift_project is not NULL. However the parameter of `snprintf` was mistakenly using `opt_swift_project_id`. Fix: Change to use the correct string from `opt_swift_project`. 3. Potential double release of a memory Cppcheck error: plugin/auth_pam/testing/pam_mariadb_mtr.c:69: error: Memory pointed to by 'resp' is freed twice. A pointer `resp` is reused and allocated new memory after it has been freed. However, `resp` was not set to NULL after freed. Potential double release of the same pointer if the call back function doesn't allocate new memory for `resp` pointer. Fix: Set the `resp` pointer to NULL after the first free() to make sure the same address is not freed twice. All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.
* | | | | | Merge 10.9 into 10.10Marko Mäkelä2023-03-173-5/+3
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge 10.8 into 10.9Marko Mäkelä2023-03-173-5/+3
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge 10.6 into 10.8Marko Mäkelä2023-03-163-5/+3
| | |\ \ \ \ | | | |/ / /
| | | * | | Merge 10.5 into 10.6Marko Mäkelä2023-03-103-5/+3
| | | |\ \ \ | | | | |/ /
| | | | * | move alloca() definition from all *.h files to one new header fileJulius Goryavsky2023-03-073-5/+3
| | | | | |
* | | | | | Merge 10.9 into 10.10Marko Mäkelä2023-02-168-18/+14
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge 10.8 into 10.9Marko Mäkelä2023-02-169-20/+16
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge 10.6 into 10.8Marko Mäkelä2023-02-109-20/+16
| | |\ \ \ \ | | | |/ / /
| | | * | | Merge 10.5 into 10.6Marko Mäkelä2023-02-109-20/+16
| | | |\ \ \ | | | | |/ /
| | | | * | Merge 10.4 into 10.5Marko Mäkelä2023-02-109-21/+17
| | | | |\ \ | | | | | |/
| | | | | * Apply clang-tidy to remove empty constructors / destructorsVicențiu Ciorbaru2023-02-098-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is the result of running run-clang-tidy -fix -header-filter=.* -checks='-*,modernize-use-equals-default' . Code style changes have been done on top. The result of this change leads to the following improvements: 1. Binary size reduction. * For a -DBUILD_CONFIG=mysql_release build, the binary size is reduced by ~400kb. * A raw -DCMAKE_BUILD_TYPE=Release reduces the binary size by ~1.4kb. 2. Compiler can better understand the intent of the code, thus it leads to more optimization possibilities. Additionally it enabled detecting unused variables that had an empty default constructor but not marked so explicitly. Particular change required following this patch in sql/opt_range.cc result_keys, an unused template class Bitmap now correctly issues unused variable warnings. Setting Bitmap template class constructor to default allows the compiler to identify that there are no side-effects when instantiating the class. Previously the compiler could not issue the warning as it assumed Bitmap class (being a template) would not be performing a NO-OP for its default constructor. This prevented the "unused variable warning".
* | | | | | Merge branch '10.9' into 10.10Oleksandr Byelkin2023-01-311-8/+8
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge branch '10.8' into 10.9Oleksandr Byelkin2023-01-311-8/+8
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge branch '10.7' into 10.8Oleksandr Byelkin2023-01-311-8/+8
| | |\ \ \ \
| | | * \ \ \ Merge branch '10.6' into 10.7Oleksandr Byelkin2023-01-311-8/+8
| | | |\ \ \ \ | | | | |/ / /
* | | | | | | MDEV-30146 Change maturity of plugins for January 2023 ReleasesAlexander Barkov2023-01-202-2/+2
| | | | | | |
* | | | | | | Merge 10.9 into 10.10Marko Mäkelä2023-01-101-0/+1
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 10.8 into 10.9Marko Mäkelä2023-01-101-0/+1
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 10.7 into 10.8Marko Mäkelä2023-01-101-0/+1
| | |\ \ \ \ \ | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MDEV-25004 test innodb_fts.versioning is omitted because ever since commit 685d958e38b825ad9829be311f26729cccf37c46 InnoDB would not allow writes to a database where the redo log file ib_logfile0 is missing.
| | | * | | | Fixed usage of unitialised value error in test_sql_servicebb-10.7-montyMonty2022-12-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This caused valgrind errors when using plugins.test_sql_service
* | | | | | | Merge 10.9 into 10.10Marko Mäkelä2022-12-141-2/+4
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 10.8 into 10.9Marko Mäkelä2022-12-131-2/+4
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 10.7 into 10.8Marko Mäkelä2022-12-131-2/+4
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | Merge 10.6 into 10.7Marko Mäkelä2022-12-131-2/+4
| | | |\ \ \ \ | | | | |/ / /
| | | | * | | Merge 10.5 into 10.6Marko Mäkelä2022-12-131-2/+4
| | | | |\ \ \ | | | | | |/ /
| | | | | * | Merge 10.4 into 10.5Marko Mäkelä2022-12-131-2/+4
| | | | | |\ \ | | | | | | |/
| | | | | | * Merge 10.3 into 10.4Marko Mäkelä2022-12-131-2/+4
| | | | | | |\
| | | | | | | * MDEV-29473 UBSAN: Signed integer overflow: X * Y cannot be represented in ↵Alexander Barkov2022-11-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type 'int' in strings/dtoa.c Fixing a few problems relealed by UBSAN in type_float.test - multiplication overflow in dtoa.c - uninitialized Field::geom_type (and Field::srid as well) - Wrong call-back function types used in combination with SHOW_FUNC. Changes in the mysql_show_var_func data type definition were not properly addressed all around the code by the following commits: b4ff64568c88ab3ce559e7bd39853d9cbf86704a 18feb62feeb833494d003615861b9c78ec008a90 0ee879ff8ac1b80cd9a963015344f5698a81f309 Adding a helper SHOW_FUNC_ENTRY() function and replacing all mysql_show_var_func declarations using SHOW_FUNC to SHOW_FUNC_ENTRY, to catch mysql_show_var_func in the future at compilation time.
* | | | | | | | Merge 10.9 into 10.10Marko Mäkelä2022-11-281-1/+2
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Merge 10.8 into 10.9Marko Mäkelä2022-11-281-1/+2
| |\ \ \ \ \ \ \ | | |/ / / / / /
| | * | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-11-281-1/+2
| | |\ \ \ \ \ \ | | | |/ / / / /
| | | * | | | | fix password_reuse_check plugin to link in embeddedSergei Golubchik2022-11-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it uses C client API, so needs RECOMPILE_FOR_EMBEDDED
* | | | | | | | Merge branch '10.9' into 10.10Oleksandr Byelkin2022-11-015-11/+15
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Merge branch '10.8' into 10.9Oleksandr Byelkin2022-11-014-6/+14
| |\ \ \ \ \ \ \ | | |/ / / / / /
| | * | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-11-014-6/+14
| | |\ \ \ \ \ \ | | | |/ / / / /
| | | * | | | | Merge branch '10.6' into 10.7Oleksandr Byelkin2022-10-293-5/+13
| | | |\ \ \ \ \ | | | | |/ / / /
| | | | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-10-253-5/+13
| | | | |\ \ \ \ | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To prevent ASAN heap-use-after-poison in the MDEV-16549 part of ./mtr --repeat=6 main.derived the initialization of Name_resolution_context was cleaned up.
| | | | | * | | Merge 10.4 into 10.5Marko Mäkelä2022-10-252-4/+13
| | | | | |\ \ \ | | | | | | |/ /
| | | | | | * | Merge 10.3 into 10.4Marko Mäkelä2022-10-252-4/+13
| | | | | | |\ \ | | | | | | | |/
| | | | | | | * MDEV-25343 Error log message not helpful when filekey is too longkurt2022-10-211-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a test related to the Encrypted Key File by following instructions in kb example https://mariadb.com/kb/en/file-key-management-encryption-plugin/#creating-the-key-file Reviewed by Daniel Black (with minor formatting and re-org of duplicate close(f) calls).
| | | | | | | * Revert "MDEV-25343 add read secret size in file key plugin"Daniel Black2022-10-191-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit cee7175b79a22c29a82ef328aba208f90afcea86.
| | | | | | | * MDEV-25343 add read secret size in file key pluginkurt2022-10-191-1/+12
| | | | | | | |