summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/WindowsService.cpp
diff options
context:
space:
mode:
authorKristofer Pettersson <kpettersson@mysql.com>2008-09-20 10:51:03 +0200
committerKristofer Pettersson <kpettersson@mysql.com>2008-09-20 10:51:03 +0200
commitf0352e346a1a7dbf056ac87239ed9b407d70886b (patch)
treecab4087b617d73f6e364a0e4112bb80ede44a1c7 /server-tools/instance-manager/WindowsService.cpp
parentbed8cec4854c3a4447961f389a2ff602374c9107 (diff)
downloadmariadb-git-f0352e346a1a7dbf056ac87239ed9b407d70886b.tar.gz
Bug#38469 invalid memory read and/or crash with utf8 text field, stored procedure, uservar
A stored procedure involving substrings could crash the server on certain platforms because of invalid memory reads. During storing the new blob-field value, the cached value's address range overlapped that of the new field value. This caused problems when the cached value storage was reallocated to provide access for a new characater set representation. The patch checks the address ranges, and if they overlap, the new field value is copied to a new storage before it is converted to the new character set. mysql-test/r/sp.result: Added result set mysql-test/t/sp.test: Added test case sql/field.cc: The source and destination address ranges of a character conversion must not overlap or the 'from' address will be invalidated as the temporary value- object is re-allocated to fit the new character set. sql/field.h: Added comments
Diffstat (limited to 'server-tools/instance-manager/WindowsService.cpp')
0 files changed, 0 insertions, 0 deletions