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
fd5a6d0f
Commit
fd5a6d0f
authored
Mar 01, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-27964: Test ENCRYPT() only in main.func_crypt
parent
07f4a4a6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
18 deletions
+21
-18
mysql-test/main/func_crypt.result
mysql-test/main/func_crypt.result
+10
-0
mysql-test/main/func_crypt.test
mysql-test/main/func_crypt.test
+11
-0
mysql-test/main/strings.result
mysql-test/main/strings.result
+0
-9
mysql-test/main/strings.test
mysql-test/main/strings.test
+0
-9
No files found.
mysql-test/main/func_crypt.result
View file @
fd5a6d0f
...
...
@@ -230,3 +230,13 @@ a b
hello 12NKz5XM5JeKI
DROP TABLE t1;
# End of 10.2 tests
#
# MDEV-25778 Overrun buffer in to_string_native()
#
CREATE TABLE t1 (a DECIMAL(15,11) ZEROFILL);
INSERT INTO t1 (a) VALUES (0.1),(0.2);
SELECT length(ENCRYPT(a)) AS f, COUNT(*) FROM t1 GROUP BY f;
f COUNT(*)
13 2
DROP TABLE t1;
# End of 10.6 tests
mysql-test/main/func_crypt.test
View file @
fd5a6d0f
...
...
@@ -149,3 +149,14 @@ SELECT * FROM t1;
DROP
TABLE
t1
;
--
echo
# End of 10.2 tests
--
echo
#
--
echo
# MDEV-25778 Overrun buffer in to_string_native()
--
echo
#
CREATE
TABLE
t1
(
a
DECIMAL
(
15
,
11
)
ZEROFILL
);
INSERT
INTO
t1
(
a
)
VALUES
(
0.1
),(
0.2
);
SELECT
length
(
ENCRYPT
(
a
))
AS
f
,
COUNT
(
*
)
FROM
t1
GROUP
BY
f
;
DROP
TABLE
t1
;
--
echo
# End of 10.6 tests
mysql-test/main/strings.result
View file @
fd5a6d0f
...
...
@@ -9,15 +9,6 @@ ERROR HY000: \042D\0442\0443 \043E\043F\0435\0440\0430\0446\0438\044E \043D\0435
STOP SLAVE;
RESET SLAVE ALL;
#
# MDEV-25778 Overrun buffer in to_string_native()
#
CREATE TABLE t1 (a DECIMAL(15,11) ZEROFILL);
INSERT INTO t1 (a) VALUES (0.1),(0.2);
SELECT length(ENCRYPT(a)) AS f, COUNT(*) FROM t1 GROUP BY f;
f COUNT(*)
13 2
DROP TABLE t1;
#
# MDEV-25754 ASAN: stack-buffer-overflow in Field_newdate::val_str
#
CREATE TABLE t1 (d DATE);
...
...
mysql-test/main/strings.test
View file @
fd5a6d0f
...
...
@@ -16,15 +16,6 @@ CHANGE MASTER TO master_user='user',master_password='pwd';
STOP
SLAVE
;
RESET
SLAVE
ALL
;
--
echo
#
--
echo
# MDEV-25778 Overrun buffer in to_string_native()
--
echo
#
CREATE
TABLE
t1
(
a
DECIMAL
(
15
,
11
)
ZEROFILL
);
INSERT
INTO
t1
(
a
)
VALUES
(
0.1
),(
0.2
);
SELECT
length
(
ENCRYPT
(
a
))
AS
f
,
COUNT
(
*
)
FROM
t1
GROUP
BY
f
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# MDEV-25754 ASAN: stack-buffer-overflow in Field_newdate::val_str
--
echo
#
...
...
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