[MDEV-19865] AddressSanitizer error in open_or_create_log_file() in mariabackup Created: 2019-06-26  Updated: 2019-06-26  Resolved: 2019-06-26

Status: Closed
Project: MariaDB Server
Component/s: mariabackup
Affects Version/s: 10.2.25, 10.3.16, 10.4.6
Fix Version/s: 10.2.26

Type: Bug Priority: Major
Reporter: Vladislav Lesin Assignee: Vladislav Lesin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate

 Description   

================================================================
==128464==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffed662b8c0 at pc 0x556b71667135 bp 0x7ffed6629df0 sp 0x7ffed6629de0
WRITE of size 2 at 0x7ffed662b8c0 thread T0
   #0 0x556b71667134 in memcpy /usr/include/x86_64-linux-gnu/bits/string3.h:53
   #1 0x556b71667134 in open_or_create_log_file /__w/1/s/extra/mariabackup/xtrabackup.cc:3947
   #2 0x556b71667134 in xtrabackup_backup_func /__w/1/s/extra/mariabackup/xtrabackup.cc:4593
   #3 0x556b71667134 in main_low /__w/1/s/extra/mariabackup/xtrabackup.cc:6811
   #4 0x556b71614682 in main /__w/1/s/extra/mariabackup/xtrabackup.cc:6610
   #5 0x7fb6e040b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
   #6 0x556b71647c68 in _start (/__w/1/s/build/extra/mariabackup/mariabackup+0x7a2c68)


Generated at Thu Feb 08 08:54:57 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.