<b>6.0.0.2471</b>
F.D.Castel 2026.11.16 17:17:12
Fix for #9304: reject an isc_dsql_fetch buffer shorter than the cursor's message (#9305)
The output message of an ISC cursor is fixed at its first fetch
(isc_dsql_execute2 opens a cursor only without an output SQLDA). Every
later fetch writes that message layout into the buffer the call
provides, whatever format the call's XSQLDA describes. When a later
call describes a shorter message, the client writes past the end of
that buffer: the SQLDAMetadataLauncher's 128-byte stack storage, or the
caller's own memory when its sqldata and sqlind already form the
message.
IscStatement now remembers the message length fixed by the first fetch
and makes a later fetch that describes a shorter message fail with
isc_dsql_sqlda_err / isc_dsql_sqlda_value_err instead of overrunning
the buffer. The check runs before fetchNext(), so the rejected call
reads no row. A call that describes a longer message keeps today's
behavior.

Changed paths:
  M src/yvalve/why.cpp