diff options
author | Nirbhay Choubey <nirbhay.choubey@oracle.com> | 2013-01-04 16:38:12 +0530 |
---|---|---|
committer | Nirbhay Choubey <nirbhay.choubey@oracle.com> | 2013-01-04 16:38:12 +0530 |
commit | 1ef420b8d4a160a6e1a1a7e8f4dee5f85d2c80d5 (patch) | |
tree | 01ce81398a02590558cbe0ddf738c53e520af187 /storage | |
parent | 39323920302a039ac7e3a80052fbd68d31e5e75d (diff) | |
download | mariadb-git-1ef420b8d4a160a6e1a1a7e8f4dee5f85d2c80d5.tar.gz |
Bug#16066243 PB2 FAILURES I_MAIN.BUG15912213 AND
I_MAIN.CTYPE_UTF8 FOR MACOSX10.6 FOR 5.1
While converting directory name to filename, a
file separator (FN_LIBCHAR) might get appended
to the resulting file name. This can result in
off-by-one error when length of the input string
is equal to FN_REFLEN. In this case, the terminating
'\0' gets written beyond the buffer allocated to store
the result.
Fixed by incrementing the dst buffer size by 1. As
extra safety, switched to strnmov() and added a debug
assert to check the length of the input file name.
No test case added as the scenario is already
covered by the test cases added for bugs in
the description.
Diffstat (limited to 'storage')
0 files changed, 0 insertions, 0 deletions