summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_str.result
diff options
context:
space:
mode:
authorKristofer Pettersson <kristofer.pettersson@oracle.com>2011-09-06 09:42:14 +0200
committerKristofer Pettersson <kristofer.pettersson@oracle.com>2011-09-06 09:42:14 +0200
commit39175b922504c8e459040657e48c89ea14256683 (patch)
tree0e8fc253abe87a09d09ce097fb1e7b993ebaac36 /mysql-test/r/func_str.result
parent3603b28da4911bc97c84c30a6ae4da6417ebf94e (diff)
downloadmariadb-git-39175b922504c8e459040657e48c89ea14256683.tar.gz
Bug11764310 - 57132: CONV FUNCTION CRASHES, NEGATIVE ARGUMENT TO MEMCPY
Failure to check the return state of a longlong2str() call caused a crash. This could happen if a user executed the sql function CONV() with certain parameters. The patch fixes the issue by checking that the returned pointer isn't NULL.
Diffstat (limited to 'mysql-test/r/func_str.result')
-rw-r--r--mysql-test/r/func_str.result6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_str.result b/mysql-test/r/func_str.result
index 81fe2413725..5a582f08829 100644
--- a/mysql-test/r/func_str.result
+++ b/mysql-test/r/func_str.result
@@ -2785,5 +2785,11 @@ format(123,2,'no_NO')
123,00
DROP TABLE t1;
#
+# Bug#11764310 conv function crashes, negative argument to memcpy
+#
+SELECT CONV(1,-2147483648,-2147483648);
+CONV(1,-2147483648,-2147483648)
+
+#
# End of 5.5 tests
#