Bug #2128 zero prepending decimals can crash MySQL
Submitted: 16 Dec 2003 4:46 Modified: 18 Dec 2003 5:48
Reporter: Sinisa Milivojevic
Status: Closed
Category:Server Severity:S1 (Critical)
Version:4.0.16 OS:Any (any)
Assigned to: Sinisa Milivojevic Target Version:

[16 Dec 2003 4:46] Sinisa Milivojevic
Description:
having total length of decimal value, with prepended zeros and sign larger
then integer part of the decimal leads to buffer underfow.

How to repeat:
create table t1(a decimal(10,4));
insert into t1 values ('+0001000000');
select * from t1;
drop table t1;