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;

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.036 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.