Bug #40241 NDBAPI : NdbScanOperation::getBlobHandle() fails with incorrect col names/nums
Submitted: 22 Oct 2008 11:51 Modified: 12 Nov 2008 13:22
Reporter: Frazer Clement Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: NDB API Severity:S3 (Non-critical)
Version:5.1-telco-6.2+ OS:Any
Assigned to: Frazer Clement CPU Architecture:Any

[22 Oct 2008 11:51] Frazer Clement
Description:
NdbScanOperation overrides of getBlobHandle() do not deal with bad column names or numbers well - they are mapped to NULLs which can then cause a crash.

How to repeat:
Attempt to obtain a Blob handle from a Scan operation using a bad column name or number.

Suggested fix:
Add error handling to these methods.
[22 Oct 2008 12:27] Frazer Clement
Proposed patch adding NULL checks and a testcase

Attachment: bug40241.patch (text/x-patch), 8.98 KiB.

[22 Oct 2008 12:27] Frazer Clement
Proposed patch for this bug.  Awaiting review.
[6 Nov 2008 21:03] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/58114

2721 Frazer Clement	2008-11-06
      Bug#40241 : NDBAPI : NdbScanOperation::getBlobHandle() fails with incorrect col names/nums
      
      Scan operation getBlobHandle() methods have insufficient checks for bad
      column names + numbers
      
      New testcase to verify behaviour.
[8 Nov 2008 21:07] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/58254

2726 Frazer Clement	2008-11-08
      Bug#40241 : NDBAPI : NdbScanOperation::getBlobHandle() fails with incorrect col names/nums
      
      Scan operation getBlobHandle() methods have insufficient checks for bad
      column names + numbers
            
      New testcase to verify behaviour.
[8 Nov 2008 22:19] Bugs System
Pushed into 5.1.29-ndb-6.4.0  (revid:frazer@mysql.com-20081108210651-gcqplbrsxr53v2hj) (version source revid:frazer@mysql.com-20081108214303-z8nr2z5c1yccxac8) (pib:5)
[8 Nov 2008 22:43] Bugs System
Pushed into 5.1.29-ndb-6.2.17  (revid:frazer@mysql.com-20081108210651-gcqplbrsxr53v2hj) (version source revid:frazer@mysql.com-20081108210651-gcqplbrsxr53v2hj) (pib:5)
[8 Nov 2008 22:45] Bugs System
Pushed into 5.1.29-ndb-6.3.19  (revid:frazer@mysql.com-20081108210651-gcqplbrsxr53v2hj) (version source revid:frazer@mysql.com-20081108212257-xppq7h6xmg3wduzp) (pib:5)
[12 Nov 2008 13:22] Jon Stephens
Documented bugfix in the ndb-6.2.17 and ndb-6.3.19 changelogs as follows:

        NdbScanOperation::getBlobHandle() failed when used with incorrect 
        column names or numbers.
[12 Dec 2008 23:30] Bugs System
Pushed into 6.0.9-alpha  (revid:frazer@mysql.com-20081108210651-gcqplbrsxr53v2hj) (version source revid:tomas.ulin@sun.com-20081209185954-9svcixh2p5hsfi6w) (pib:5)