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

Fixed CORE-1462.

This commit is contained in:
dimitr 2007-09-14 18:29:31 +00:00
parent 853ed7eecc
commit edaf1be92a

View File

@ -936,7 +936,7 @@ static SSHORT par_context(CompilerScratch* csb, SSHORT* context_ptr)
**************************************/
const SSHORT stream = csb->nextStream(false);
if (stream > MAX_STREAMS)
if (stream >= MAX_STREAMS)
{
error(csb, isc_too_many_contexts, 0);
}
@ -1517,7 +1517,7 @@ static jrd_nod* par_modify(thread_db* tdbb, CompilerScratch* csb)
}
const SSHORT org_stream = csb->csb_rpt[context].csb_stream;
const SSHORT new_stream = csb->nextStream(false);
if (new_stream > MAX_STREAMS)
if (new_stream >= MAX_STREAMS)
{
error(csb, isc_too_many_contexts, 0);
}