MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / safePrepareRequest

Function safePrepareRequest

src/dsql/dsql.cpp:445–459  ·  view source on GitHub ↗

Use SEH frame when preparing user requests to catch possible stack overflows

Source from the content-addressed store, hash-verified

443
444// Use SEH frame when preparing user requests to catch possible stack overflows
445static DsqlRequest* safePrepareRequest(thread_db* tdbb, dsql_dbb* database, jrd_tra* transaction,
446 ULONG textLength, const TEXT* text, USHORT clientDialect, bool isInternalRequest)
447{
448 if (isInternalRequest)
449 return prepareRequest(tdbb, database, transaction, textLength, text, clientDialect, true);
450
451#ifdef WIN_NT
452 START_CHECK_FOR_EXCEPTIONS(NULL);
453#endif
454 return prepareRequest(tdbb, database, transaction, textLength, text, clientDialect, false);
455
456#ifdef WIN_NT
457 END_CHECK_FOR_EXCEPTIONS(NULL);
458#endif
459}
460
461
462// Prepare a request for execution.

Callers 2

DSQL_prepareFunction · 0.85
DSQL_execute_immediateFunction · 0.85

Calls 1

prepareRequestFunction · 0.85

Tested by

no test coverage detected