Bug #2128 zero prepending decimals can crash MySQL
Submitted: 16 Dec 2003 3:46 Modified: 18 Dec 2003 4:48
Reporter: SINISA MILIVOJEVIC Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:4.0.16 OS:Any (any)
Assigned to: MySQL Verification Team CPU Architecture:Any

[16 Dec 2003 3: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;