diff options
author | Marc Alff <marc.alff@oracle.com> | 2010-03-04 18:36:54 -0700 |
---|---|---|
committer | Marc Alff <marc.alff@oracle.com> | 2010-03-04 18:36:54 -0700 |
commit | 01b19dbbf49e055e95e65f54555f040c76949902 (patch) | |
tree | e3724205aab8d3462f4c876645f615b1ddf91416 /storage/csv | |
parent | 366a68bb460fea577719335efcfac8e14f13a077 (diff) | |
download | mariadb-git-01b19dbbf49e055e95e65f54555f040c76949902.tar.gz |
Bug#51738 Unit test pfs_instr-t crashes
The unit test pfs_instr-t:
- generates a very long (10,000) bytes file name
- calls find_or_create_file.
This leads to a buffer overflow in mysys in my_realpath(),
because my_realpath and mysys file APIs in general do not
test for input parameters: mysys assumes every file name
is less that FN_REFLEN in length.
Calling find_or_create_file with a very long file name is likely
to happen when instrumenting third party code that does not use mysys,
so this test is legitimate.
The fix is to make find_or_create_file in the performance schema
more robust in this case.
Diffstat (limited to 'storage/csv')
0 files changed, 0 insertions, 0 deletions