diff options
author | unknown <gkodinov/kgeorge@magare.gmz> | 2007-07-05 18:24:48 +0300 |
---|---|---|
committer | unknown <gkodinov/kgeorge@magare.gmz> | 2007-07-05 18:24:48 +0300 |
commit | 6139d34c92bf9c2e1a2fe19b41c7e19f5cbe2787 (patch) | |
tree | 6e27b6c33885046dbc55c5dac0b78be8aee3489c /mysql-test/r/gis.result | |
parent | e0f93ca8c1955cc2766c224703a278e66d9c05bc (diff) | |
download | mariadb-git-6139d34c92bf9c2e1a2fe19b41c7e19f5cbe2787.tar.gz |
Bug #29166:
AsText() needs to know the maximum number of
characters a IEEE double precision value can
occupy to make sure there's enough buffer space.
The number was too small to hold all possible
values and this caused buffer overruns.
Fixed by correcting the calculation of the
maximum digits in a string representation of an
IEEE double precision value as printed by
String::qs_append(double).
mysql-test/r/gis.result:
Bug #29166: test case
mysql-test/t/gis.test:
Bug #29166: test case
sql/spatial.cc:
Bug #29166: correct calculation of the maximum digits in
a string representation of a double
Diffstat (limited to 'mysql-test/r/gis.result')
-rw-r--r-- | mysql-test/r/gis.result | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result index d1f292cda0c..edf017f24d4 100644 --- a/mysql-test/r/gis.result +++ b/mysql-test/r/gis.result @@ -885,4 +885,7 @@ AsText(a) POINT(1 1) LINESTRING(0 0,1 1,2 2) drop table t1, t2; +SELECT 1; +1 +1 End of 5.0 tests |