Hi,

I get stack corruption in firebird 3 Beta 1 32Bit.

Using XSQLDA allocated with XSQLDA_LENGTH(1) I use the following code:


unsigned long returnedID;

tmpXSQLDA->sqlvar[0].sqltype = SQL_LONG;
tmpXSQLDA->sqlvar[0].sqldata = (char *)&returnedID;


The select is "select count(*) from MyTable".


Changing:

unsigned long returnedID;

to 

unsigned long returnedID[4];

and pre-filling it with 0x11111111 results in:

0x00000003
0x07590000
0x11111111
0x11111111

The second array element should have been 0x11111111.

Does FB3 32Bit think that SQL_LONG is 64Bit wide?


Best regards
Brian


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to