mariadb/mysys
Varun Gupta b94e8e4b25 MDEV-23867: insert... select crash in compute_window_func
There are 2 issues here:

Issue #1: memory allocation.
An IO_CACHE that uses encryption uses a larger buffer (it needs space for the encrypted data,
decrypted data, IO_CACHE_CRYPT struct to describe encryption parameters etc).

Issue #2: IO_CACHE::seek_not_done
When IO_CACHE objects are cloned, they still share the file descriptor.
This means, operation on one IO_CACHE may change the file read position
which will confuse other IO_CACHEs using it.

The fix of these issues would be:
Allocate the buffer to also include the extra size needed for encryption.
Perform seek again after one IO_CACHE reads the file.
2020-10-23 22:36:47 +05:30
..
array.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
base64.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ChangeLog
charset-def.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
charset.c MDEV-19750 mysql command wrong encoding 2019-06-17 18:04:47 +01:00
checksum.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
CMakeLists.txt Only link mysys_ssl when required. 2019-06-03 09:55:59 +02:00
errors.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
file_logger.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
get_password.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
hash.c UBSAN UndefinedBehaviorSanitizer: undefined-behavior ../mysys/hash.c:798:9 2020-10-03 12:38:43 +03:00
lf_alloc-pin.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
lf_dynarray.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
lf_hash.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
list.c Merge 10.1 into 10.2 2020-05-13 11:12:31 +03:00
ma_dyncol.c Merge 10.1 into 10.2 2018-02-08 13:53:21 +02:00
mf_arr_appstr.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_cache.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_dirname.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_fn_ext.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_format.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_getdate.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_iocache.c MDEV-23867: insert... select crash in compute_window_func 2020-10-23 22:36:47 +05:30
mf_iocache2.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_keycache.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
mf_keycaches.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_loadpath.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_pack.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_path.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_qsort.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_qsort2.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_radix.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_same.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_sort.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_soundex.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_tempdir.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_tempfile.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_unixpath.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_wcomp.c Update FSF Address 2019-05-11 21:29:06 +03:00
mulalloc.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_access.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_addr_resolve.c Merge branch '10.1' into 10.2 2020-03-06 15:42:45 +01:00
my_alarm.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_alloc.c MDEV-22387: Do not pass null pointer to some memcpy() 2020-09-03 09:05:56 +03:00
my_atomic.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_atomic_writes.c Make atomic writes general 2017-01-11 09:18:35 +02:00
my_basename.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_bit.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_bitmap.c assert(a && b); -> assert(a); assert(b); 2020-05-27 15:56:40 +02:00
my_chmod.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_chsize.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_compare.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_compress.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_conio.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_context.c Merge branch '10.1' into 10.2 2017-03-30 12:48:42 +02:00
my_copy.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_create.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_default.c Merge branch '10.1' into 10.2 2020-03-05 10:52:43 +02:00
my_delete.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_div.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_dlerror.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_error.c minor fixes of rpl_start_stop_slave and rpl_slave_grp_exec tests, expanding rpl_gtid_delete_domain for easier later analysis 2020-10-14 18:16:57 +02:00
my_file.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_fopen.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_fstream.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_gethwaddr.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_getncpus.c Correct FreeBSD cpuset_t type 2020-04-03 15:30:33 +02:00
my_getopt.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_getpagesize.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_getsystime.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_getwd.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_init.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_largepage.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_lib.c A better fix for edd7e7c 2020-04-01 16:25:07 +04:00
my_libwrap.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_lock.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_lockmem.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_malloc.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_memmem.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mess.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mkdir.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mmap.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_new.cc Update FSF Address 2019-05-11 21:29:06 +03:00
my_once.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_open.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_port.c Follow-up to changing FSF address 2019-05-11 18:30:45 +03:00
my_pread.c Fix debug assert to match its intention. 2019-06-17 19:01:15 +01:00
my_pthread.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_quick.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_rdtsc.c speed up my_timer_init() 2020-07-29 08:21:32 +03:00
my_read.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_redel.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_rename.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_rnd.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_safehash.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_safehash.h Update FSF address 2019-05-10 20:52:00 +03:00
my_seek.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_setuser.c MDEV-11676 Starting service with mysqld_safe_helper fails in SELINUX "enforcing" mode 2017-01-04 13:38:03 +01:00
my_sleep.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_static.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_static.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_symlink.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_symlink2.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_sync.c MDEV-20685: compile fixes for Solaris/OSX/AIX 2020-04-29 12:02:47 +03:00
my_thr_init.c cleanup THR_KEY_mysys 2020-04-25 00:55:39 +03:00
my_timer_cycles.il Update FSF Address 2019-05-11 21:29:06 +03:00
my_uuid.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_wincond.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_windac.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_winerr.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_winfile.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_winthread.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_write.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysys_priv.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
psi_noop.c Update FSF address 2019-05-11 19:25:02 +03:00
ptr_cmp.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
queues.c Merge branch '5.5' into 10.1 2020-04-30 17:36:41 +02:00
safemalloc.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
stacktrace.c Merge 10.1 into 10.2 2020-08-20 06:00:36 +03:00
string.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
test_charset.c Update FSF Address 2019-05-11 21:29:06 +03:00
test_dir.c Update FSF Address 2019-05-11 21:29:06 +03:00
test_thr_mutex.c Update FSF address 2019-05-10 20:52:00 +03:00
test_xml.c Update FSF Address 2019-05-11 21:29:06 +03:00
testhash.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thr_alarm.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thr_lock.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
thr_mutex.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
thr_rwlock.c Update FSF Address 2019-05-11 21:29:06 +03:00
thr_timer.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
tree.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
typelib.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
waiting_threads.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
wqueue.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00