Re: mysql_stmt_execute() trashing stack
Posted by: John Deal
Date: August 03, 2011 04:55PM

I did some more debugging on this. BTW this is running on Ubuntu 9.10 (64-bit) with MySQL Ver 14.14 Distrib 5.1.37, for debian-linux-gnu (x86_64). Also I forced my application to run as a single thread.

I added a char array of 2000 bytes as the last automatic variable on this method. Sure enough, sometimes data was written into this area during the mysql_stmt_execute() call. If data is written, it seems to be a series of 4 units starting with the number 4 then several zeros. Interesting that there are 4 fields of the select statement involved in the prepared statement.

Still the question I have is; why would a mysql_stmt_execute() function write into client space outside the prepared statement structure and the return? I am new at this and sure there are many things about the MySQL/C connector I don't understand.

Thanks!

Options: ReplyQuote


Subject
Views
Written By
Posted
4342
July 26, 2011 11:42AM
Re: mysql_stmt_execute() trashing stack
1590
August 03, 2011 04:55PM
1745
August 06, 2011 11:29AM
2340
August 07, 2011 12:18PM
1476
August 07, 2011 12:26PM
2213
August 11, 2011 04:11PM
1998
August 13, 2011 01:25PM


Sorry, you can't reply to this topic. It has been closed.

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.