[MDEV-10888] encryption.filekeys_emptyfile fails in buildbot with valgrind Created: 2016-09-25  Updated: 2016-09-27  Resolved: 2016-09-27

Status: Closed
Project: MariaDB Server
Component/s: Encryption, Tests
Affects Version/s: 10.1
Fix Version/s: 10.1.18

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-7069 Fix buildbot failures in main server ... Stalled

 Description   

http://buildbot.askmonty.org/buildbot/builders/work-amd64-valgrind/builds/9376/steps/test/logs/stdio

encryption.filekeys_emptyfile 'xtradb'   w2 [ fail ]  Found warnings/errors in server log file!
        Test ended at 2016-09-25 07:31:56
line
==1964== Conditional jump or move depends on uninitialised value(s)
==1964==    at 0xFFDC75: is_prefix (is_prefix.c:42)
==1964==    by 0xB5ED8EF: Parser::read_and_decrypt_file(char const*) (parser.cc:336)
==1964==    by 0xB5EDA76: Parser::parse_file(Dynamic_array<keyentry>*, char const*) (parser.cc:196)
==1964==    by 0xB5EDC0C: Parser::parse(Dynamic_array<keyentry>*) (parser.cc:159)
==1964==    by 0xB5ECDC7: file_key_management_plugin_init(void*) (file_key_management_plugin.cc:169)
==1964==    by 0x85A3BE: initialize_encryption_plugin(st_plugin_int*) (encryption.cc:53)
==1964==    by 0x6A84D8: plugin_initialize(st_mem_root*, st_plugin_int*, int*, char**, bool) (sql_plugin.cc:1408)
==1964==    by 0x6ACCD9: plugin_init(int*, char**, int) (sql_plugin.cc:1685)
==1964==    by 0x5CB825: init_server_components() (mysqld.cc:5188)
==1964==    by 0x5CD8CC: mysqld_main(int, char**) (mysqld.cc:5768)
==1964==    by 0x5BCE16: main (main.cc:25)



 Comments   
Comment by Jan Lindström (Inactive) [ 2016-09-26 ]

http://lists.askmonty.org/pipermail/commits/2016-September/009924.html

Comment by Sergei Golubchik [ 2016-09-26 ]

ok to push

Comment by Jan Lindström (Inactive) [ 2016-09-27 ]

commit 4e2a0c34b02dd556c2a521555662ed993cdc66a6
Author: Jan Lindström <jan.lindstrom@mariadb.com>
Date: Mon Sep 26 09:58:50 2016 +0300

MDEV-10888: encryption.filekeys_emptyfile fails in buildbot with valgrind

Problem was that length of the filekeys file was not checked and if
length is less than OpenSSL_prefix_len uninitialized memory was
accessed.

Generated at Thu Feb 08 07:45:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.