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
00089ead
Commit
00089ead
authored
Jul 21, 2023
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-31633 Assertion `!item->null_value' failed in Type_handler::Item_send_str
parent
5de39c5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
mysql-test/main/func_str.result
mysql-test/main/func_str.result
+9
-0
mysql-test/main/func_str.test
mysql-test/main/func_str.test
+7
-0
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-0
No files found.
mysql-test/main/func_str.result
View file @
00089ead
...
...
@@ -5511,6 +5511,15 @@ NULL
select hex(aes_decrypt(x'9E6F76516B4DE68FED7A77632FC0913D', 'bar', 'abcdefghabcdefgh', 'aes-128-ctr')) `expected garbage`;
expected garbage
98D7BC3151620F384B0A953686AF37C9
set @@block_encryption_mode=default;
#
# MDEV-31633 Assertion `!item->null_value' failed in Type_handler::Item_send_str
#
select aes_encrypt(a,a) is null from (values('a'),(NULL),('b')) x;
aes_encrypt(a,a) is null
0
1
0
#
# End of 11.2 tests
#
mysql-test/main/func_str.test
View file @
00089ead
...
...
@@ -2456,6 +2456,13 @@ select aes_decrypt(x'9E6F76516B4DE68FED7A77632FC0913D', 'bar', 'abcdefghabcdefgh
# but ctr doesn't use padding, so:
select
hex
(
aes_decrypt
(
x
'9E6F76516B4DE68FED7A77632FC0913D'
,
'bar'
,
'abcdefghabcdefgh'
,
'aes-128-ctr'
))
`expected garbage`
;
set
@@
block_encryption_mode
=
default
;
--
echo
#
--
echo
# MDEV-31633 Assertion `!item->null_value' failed in Type_handler::Item_send_str
--
echo
#
select
aes_encrypt
(
a
,
a
)
is
null
from
(
values
(
'a'
),(
NULL
),(
'b'
))
x
;
--
echo
#
--
echo
# End of 11.2 tests
--
echo
#
sql/item_strfunc.cc
View file @
00089ead
...
...
@@ -405,6 +405,7 @@ String *Item_aes_crypt::val_str(String *str2)
str2
->
length
((
uint
)
aes_length
);
DBUG_ASSERT
(
collation
.
collation
==
&
my_charset_bin
);
str2
->
set_charset
(
&
my_charset_bin
);
null_value
=
0
;
return
str2
;
}
}
...
...
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