Commit 4a60204
committed
MDEV-8903: Buildbot valgrind failure: Invalid read of size 1 in sql_memdup...
When we calculate max_key_len for RANGE_OPT_PARAM::min_key/max_key, take into account that QUICK_RANGE::QUICK_RANGE for some reason assumes that there is one more byte there: max_key((uchar*) sql_memdup(max_key_arg,max_length_arg+1)),1 parent 1289794 commit 4a60204
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3108 | 3108 | | |
3109 | 3109 | | |
3110 | 3110 | | |
| 3111 | + | |
3111 | 3112 | | |
3112 | 3113 | | |
3113 | 3114 | | |
| |||
3367 | 3368 | | |
3368 | 3369 | | |
3369 | 3370 | | |
| 3371 | + | |
3370 | 3372 | | |
3371 | 3373 | | |
3372 | 3374 | | |
| |||
4963 | 4965 | | |
4964 | 4966 | | |
4965 | 4967 | | |
| 4968 | + | |
4966 | 4969 | | |
4967 | 4970 | | |
4968 | 4971 | | |
| |||
0 commit comments