summaryrefslogtreecommitdiff
path: root/mysql-test/main/ctype_ucs.result
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-04-05 16:28:41 +0400
committerAlexander Barkov <bar@mariadb.com>2019-04-05 16:29:13 +0400
commitc84dde148f8d82232a110f9ff7c80df94d0d6c8c (patch)
tree8c0873a838766948698562b66ca6724ad9659adc /mysql-test/main/ctype_ucs.result
parent02d9b048a2ab549a3227a81e15ff2f8c45562a65 (diff)
downloadmariadb-git-c84dde148f8d82232a110f9ff7c80df94d0d6c8c.tar.gz
MDEV-19184 Crash in IS_IPV6(_ucs2 0x0031)
Diffstat (limited to 'mysql-test/main/ctype_ucs.result')
-rw-r--r--mysql-test/main/ctype_ucs.result24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/main/ctype_ucs.result b/mysql-test/main/ctype_ucs.result
index db09bf116fc..a59a25db4e6 100644
--- a/mysql-test/main/ctype_ucs.result
+++ b/mysql-test/main/ctype_ucs.result
@@ -6393,5 +6393,29 @@ SELECT HEX(INET6_ATON('1::1')), HEX(INET6_ATON(CONVERT('1::1' USING ucs2)));
HEX(INET6_ATON('1::1')) HEX(INET6_ATON(CONVERT('1::1' USING ucs2)))
00010000000000000000000000000001 00010000000000000000000000000001
#
+# MDEV-19184 Crash in IS_IPV6(_ucs2 0x0031)
+#
+SET NAMES utf8;
+SELECT IS_IPV6(_ucs2 0x0031);
+IS_IPV6(_ucs2 0x0031)
+0
+SELECT IS_IPV4(_ucs2 0x0031);
+IS_IPV4(_ucs2 0x0031)
+0
+SELECT IS_IPV6(_ucs2 0x003A003A);
+IS_IPV6(_ucs2 0x003A003A)
+1
+SELECT IS_IPV4(_ucs2 0x00310030002E0030002E0030002E0031);
+IS_IPV4(_ucs2 0x00310030002E0030002E0030002E0031)
+1
+SET NAMES utf8, collation_connection=ucs2_bin;
+SELECT IS_IPV6('::');
+IS_IPV6('::')
+1
+SELECT IS_IPV4('10.0.0.1');
+IS_IPV4('10.0.0.1')
+1
+SET NAMES utf8;
+#
# End of 10.4 tests
#