Skip to content

Fixed crash after calling incorrectly parametrized request #8666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/jrd/extds/ExtDS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2237,6 +2237,12 @@ void Statement::setInParams(thread_db* tdbb, const MetaName* const* names,
const FB_SIZE_T excCount = in_excess ? in_excess->getCount() : 0;
const FB_SIZE_T sqlCount = m_sqlParamNames.getCount();

if (m_error = (!names && sqlCount))
{
// Parameter name expected
ERR_post(Arg::Gds(isc_eds_prm_name_expected));
}

// OK : count - excCount <= sqlCount <= count

// Check if all passed named parameters, not marked as excess, are present in query text
Expand Down
Loading