8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:03:04 +01:00

Fixed CORE-3202: execute_immediate API call family may crash the remote server.

This commit is contained in:
dimitr 2010-10-28 18:13:57 +00:00
parent ed7607956e
commit 83a3f22c7e

View File

@ -1985,6 +1985,11 @@ ISC_STATUS rem_port::execute_immediate(P_OP op, P_SQLST * exnow, PACKET* sendL)
if (this->port_statement->rsr_bind_format)
{
in_msg_length = this->port_statement->rsr_bind_format->fmt_length;
if (!this->port_statement->rsr_message->msg_address)
{
this->port_statement->rsr_message->msg_address =
this->port_statement->rsr_message->msg_buffer;
}
in_msg = this->port_statement->rsr_message->msg_address;
}
out_blr_length = exnow->p_sqlst_out_blr.cstr_length;