1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-21 08:47:42 +03:00
Files
mariadb/mysql-test/r
Tor Didriksen ef19b3b6cf Bug #11792200 - DIVIDING LARGE NUMBERS CAUSES STACK CORRUPTIONS
This was a buffer overrun in do_div_mod(), overwriting the internal buffer
of auto variable 'tmp' in Item_func_int_div::val_int.
Result on windows: 'this' is set to zero, and crash.
Ran fine on other platforms (no valgrind warnings),
but this is undefined behaviour on any platform of course.

include/decimal.h:
  Add const qualifiers to function prototypes which are used by sql/my_decimal.h
mysql-test/r/func_math.result:
  New test case.
mysql-test/t/func_math.test:
  New test case.
sql/my_decimal.h:
  Remove several C-style casts:
   - some of the were up-casts, and thus un-necessary
   - some of them should have been const-casts, but it is better to make the
     underlying library functions in (decimal.[h|c]) const instead.
strings/decimal.c:
  Check for buffer overrun in do_div_mod()
  Add const qualifiers to functions which are used by sql/my_decimal.h
2011-03-03 15:25:41 +01:00
..
2011-01-25 12:14:28 +05:30
2011-02-17 12:53:09 +01:00
2011-02-17 12:53:09 +01:00
2011-03-03 18:46:30 +03:00
2011-03-03 18:46:30 +03:00
2011-02-22 19:32:49 +05:30
2011-02-22 19:32:49 +05:30
2010-11-26 16:32:51 +02:00
2011-03-07 10:08:10 +01:00
2011-03-03 15:27:36 +03:00
2010-12-16 21:43:21 +03:00
2011-01-13 09:07:21 +01:00
2011-03-09 16:04:50 +02:00
2011-02-18 11:55:24 +01:00
2010-08-25 13:17:15 +05:00
2010-12-01 12:28:21 +05:30
2011-03-08 09:41:57 +01:00
2011-02-08 11:21:14 +01:00
2011-01-11 15:15:25 +01:00
2010-09-13 15:56:56 +02:00
2010-11-15 16:59:49 +01:00
2010-11-26 16:32:51 +02:00
2010-09-13 15:56:56 +02:00
2011-01-10 16:13:12 +01:00
2011-03-09 18:41:16 +01:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2010-09-30 14:06:50 +03:00
2010-09-30 14:06:50 +03:00
2010-09-30 14:06:50 +03:00
2010-09-30 14:06:50 +03:00
2011-02-01 13:23:28 +01:00
2011-01-12 10:31:41 +01:00
2011-01-31 15:04:39 +05:30
2010-12-14 13:46:00 +03:00
2011-02-14 14:16:31 +01:00
2011-03-01 17:42:37 +03:00