diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2013-03-06 01:45:25 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2013-03-06 01:45:25 +0400 |
commit | 7fb55ee807937ab78c95cf247747c5711449fc20 (patch) | |
tree | 4b8c1eba52e2628adab82a403bba7f434d298fca /sql/sql_class.cc | |
parent | ab1c228836b81659e859298096ef163dca8117b5 (diff) | |
download | mariadb-git-7fb55ee807937ab78c95cf247747c5711449fc20.tar.gz |
TODO-424 geometry query crashes server.
The bug was found by Alyssa Milburn.
If the number of points of a geometry feature read from
binary representation is greater than 0x10000000, then
the (uint32) (num_points * 16) will cut the higher byte,
which leads to various errors.
Fixed by additional check if (num_points > max_n_points).
Diffstat (limited to 'sql/sql_class.cc')
0 files changed, 0 insertions, 0 deletions