Bug #45323 NDBAPI allows entering invalid float values, causing crash in ordered index
Submitted: 4 Jun 2009 8:18
Reporter: Pekka Nousiainen Email Updates:
Status: Verified Impact on me:
Category:MySQL Cluster: NDB API Severity:S3 (Non-critical)
Version:Any OS:Any
Assigned to: CPU Architecture:Any

[4 Jun 2009 8:18] Pekka Nousiainen
NDBAPI and kernel do not validate float/double values.  A bug
in an ndb api program can enter invalid values.  This will crash
the kernel if the column is part of an ordered index.

How to repeat:
Create table with indexed float or double column.  Use NDBAPI
to insert and update the column with random binary data.  Get
kernel crash when index entry to be removed is not found.
#7  0x082f5ef7 in Dbtup::removeTuxEntries
#8  0x082f62aa in Dbtup::executeTuxCommitTriggers

Suggested fix:
Make kernel (TUP) validate float/double values.