[MDEV-22717] Conditional jump or move depends on uninitialised value(s) in find_uniq_filename(char*, unsigned long) Created: 2020-05-26  Updated: 2020-06-09  Resolved: 2020-06-09

Status: Closed
Project: MariaDB Server
Component/s: Replication
Affects Version/s: 10.1.45, 10.2.32, 10.3.23, 10.4.13, 10.5.3
Fix Version/s: 10.5.4, 10.1.46, 10.2.33, 10.3.24, 10.4.14

Type: Bug Priority: Major
Reporter: Sujatha Sivakumar (Inactive) Assignee: Sujatha Sivakumar (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

./mtr rpl.rpl_special_charset --valgrind

==3376== Conditional jump or move depends on uninitialised value(s)
==3376==    at 0x90ED5B: find_uniq_filename(char*, unsigned long) (log.cc:2446)
==3376==    by 0x90EFB8: MYSQL_LOG::generate_new_name(char*, char const*, unsigned long) (log.cc:2747)
==3376==    by 0x90F072: MYSQL_LOG::init_and_set_log_file_name(char const*, char const*, unsigned long, enum_log_type, cache_type) (log.cc:2523)
==3376==    by 0x91859B: MYSQL_BIN_LOG::open(char const*, enum_log_type, char const*, unsigned long, cache_type, unsigned long, bool, bool) (log.cc:3378)
==3376==    by 0x542468: init_server_components (mysqld.cc:5511)
==3376==    by 0x542468: mysqld_main(int, char**) (mysqld.cc:5946)
==3376==    by 0x533012: main (main.cc:25)
^ Found warnings in /home/sujatha/bug_repo/test-10.2e/bld/mysql-test/var/log/mysqld.1.err



 Comments   
Comment by Andrei Elkin [ 2020-06-08 ]

The patch looks good. Thanks!

Comment by Sujatha Sivakumar (Inactive) [ 2020-06-09 ]

Patch has been tested on higher versions and test results are fine. Code changes remain the same.

10.2: https://github.com/MariaDB/server/commit/8ea171398b09902778a9e066556aea26e2dab7cb
10.3: https://github.com/MariaDB/server/commit/7726fda3bb825cb32c7ada2db09b1d90159c6117
10.4: https://github.com/MariaDB/server/commit/7f7073a1f92950e877948e69f10f6d55c983d353
10.5: https://github.com/MariaDB/server/commit/8529c7b1a759e445263344902cbc625aa989369f

Generated at Thu Feb 08 09:16:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.