Skip to content

Commit cf1d367

Browse files
committed
Postfix for #8520: Error in iTransaction.getInfo() on embedded connection; isc_info_end should be present in the end
1 parent 663d8fc commit cf1d367

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/common/utils.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,16 +1570,17 @@ void getDbPathInfo(unsigned int& itemsLength, const unsigned char*& items,
15701570
--itemsLength;
15711571

15721572
unsigned int len = dbpath.length();
1573-
if (len + 3 > bufferLength)
1573+
if (len + 4 > bufferLength)
15741574
{
1575-
len = bufferLength - 3;
1575+
len = bufferLength - 4;
15761576
}
15771577
bufferLength -= (len + 3);
15781578
*buffer++ = fb_info_tra_dbpath;
15791579
*buffer++ = len;
15801580
*buffer++ = len >> 8;
15811581
memcpy(buffer, dbpath.c_str(), len);
15821582
buffer += len;
1583+
*buffer = isc_info_end;
15831584
}
15841585
}
15851586
}

0 commit comments

Comments
 (0)