Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
613be24b
Commit
613be24b
authored
Mar 20, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.0 into 10.1
parents
e0a0fe7d
04921000
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
0 deletions
+54
-0
extra/yassl/src/handshake.cpp
extra/yassl/src/handshake.cpp
+10
-0
include/my_valgrind.h
include/my_valgrind.h
+2
-0
mysql-test/r/having.result
mysql-test/r/having.result
+14
-0
mysql-test/t/having.test
mysql-test/t/having.test
+18
-0
storage/innobase/mem/mem0mem.cc
storage/innobase/mem/mem0mem.cc
+5
-0
storage/xtradb/mem/mem0mem.cc
storage/xtradb/mem/mem0mem.cc
+5
-0
No files found.
extra/yassl/src/handshake.cpp
View file @
613be24b
...
...
@@ -788,6 +788,16 @@ int DoProcessReply(SSL& ssl)
needHdr
=
true
;
else
{
buffer
>>
hdr
;
/*
According to RFC 4346 (see "7.4.1.3. Server Hello"), the Server Hello
packet needs to specify the highest supported TLS version, but not
higher than what client requests. YaSSL highest supported version is
TLSv1.1 (=3.2) - if the client requests a higher version, downgrade it
here to 3.2.
See also Appendix E of RFC 5246 (TLS 1.2)
*/
if
(
hdr
.
version_
.
major_
==
3
&&
hdr
.
version_
.
minor_
>
2
)
hdr
.
version_
.
minor_
=
2
;
ssl
.
verifyState
(
hdr
);
}
...
...
include/my_valgrind.h
View file @
613be24b
...
...
@@ -35,6 +35,8 @@
# define MEM_CHECK_DEFINED(a,len) VALGRIND_CHECK_MEM_IS_DEFINED(a,len)
#elif defined(__SANITIZE_ADDRESS__)
# include <sanitizer/asan_interface.h>
/* How to do manual poisoning:
https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning */
# define MEM_UNDEFINED(a,len) ASAN_UNPOISON_MEMORY_REGION(a,len)
# define MEM_NOACCESS(a,len) ASAN_POISON_MEMORY_REGION(a,len)
# define MEM_CHECK_ADDRESSABLE(a,len) ((void) 0)
...
...
mysql-test/r/having.result
View file @
613be24b
...
...
@@ -723,6 +723,20 @@ SELECT * FROM t1 JOIN t2 ON c1 = c2 HAVING c2 > 'a' ORDER BY c2 LIMIT 1;
c1 c2
x x
DROP TABLE t1,t2;
#
# MDEV-6736: Valgrind warnings 'Invalid read' in subselect_engine::calc_const_tables with SQ
# in WHERE and HAVING, ORDER BY, materialization+semijoin
#
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
INSERT INTO t1 VALUES (3),(8);
CREATE TABLE t2 (b INT) ENGINE=MyISAM;
INSERT INTO t2 VALUES (2),(1);
SELECT a FROM t1
WHERE 9 IN ( SELECT MIN( a ) FROM t1 )
HAVING a <> ( SELECT COUNT(*) FROM t2 )
ORDER BY a;
a
DROP TABLE t1,t2;
End of 10.0 tests
#
# MDEV-10716: Assertion `real_type() != FIELD_ITEM' failed in
...
...
mysql-test/t/having.test
View file @
613be24b
...
...
@@ -759,6 +759,24 @@ SELECT * FROM t1 JOIN t2 ON c1 = c2 HAVING c2 > 'a' ORDER BY c2 LIMIT 1;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# MDEV-6736: Valgrind warnings 'Invalid read' in subselect_engine::calc_const_tables with SQ
--
echo
# in WHERE and HAVING, ORDER BY, materialization+semijoin
--
echo
#
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
MyISAM
;
INSERT
INTO
t1
VALUES
(
3
),(
8
);
CREATE
TABLE
t2
(
b
INT
)
ENGINE
=
MyISAM
;
INSERT
INTO
t2
VALUES
(
2
),(
1
);
SELECT
a
FROM
t1
WHERE
9
IN
(
SELECT
MIN
(
a
)
FROM
t1
)
HAVING
a
<>
(
SELECT
COUNT
(
*
)
FROM
t2
)
ORDER
BY
a
;
DROP
TABLE
t1
,
t2
;
--
echo
End
of
10.0
tests
--
echo
#
...
...
storage/innobase/mem/mem0mem.cc
View file @
613be24b
...
...
@@ -406,6 +406,11 @@ mem_heap_create_block_func(
heap
->
total_size
+=
len
;
}
/* Poison all available memory. Individual chunks will be unpoisoned on
every mem_heap_alloc() call. */
compile_time_assert
(
MEM_BLOCK_HEADER_SIZE
>=
sizeof
*
block
);
UNIV_MEM_FREE
(
block
+
1
,
len
-
sizeof
*
block
);
ut_ad
((
ulint
)
MEM_BLOCK_HEADER_SIZE
<
len
);
return
(
block
);
...
...
storage/xtradb/mem/mem0mem.cc
View file @
613be24b
...
...
@@ -406,6 +406,11 @@ mem_heap_create_block_func(
heap
->
total_size
+=
len
;
}
/* Poison all available memory. Individual chunks will be unpoisoned on
every mem_heap_alloc() call. */
compile_time_assert
(
MEM_BLOCK_HEADER_SIZE
>=
sizeof
*
block
);
UNIV_MEM_FREE
(
block
+
1
,
len
-
sizeof
*
block
);
ut_ad
((
ulint
)
MEM_BLOCK_HEADER_SIZE
<
len
);
return
(
block
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment