[unixODBC-dev] integer overflow in a call to SQLGetData()

Nick Gorham nick at lurcher.org
Mon Mar 15 17:54:20 GMT 2010


Chaitanya kumar CH wrote:
> Hi,
>
> http://trac.osgeo.org/gdal/ticket/3385
> Can someone comment on this bug?
Not sure. If this is the issue

"
/* SQLGetData() is giving garbage values in the first 4 bytes of 
cbDataLen * 
  	721 	 * in some architectures. Converting it to (int) discards the 
unnecessary  * 
  	722 	 * bytes. This should not be a problem unless the buffer size 
reaches      * 
  	723 	 * 2GB. (#3385)                                                  
          */ 
  	724 	        cbDataLen = (int) cbDataLen;

"

Then I would guess you have a mismatch between the size of SQLLEN.


-- 
Nick


More information about the unixODBC-dev mailing list