You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note - it is a size of an array descriptor with one dimension.
When I call the UDF
DECLARE EXTERNAL FUNCTION IBP_UDF__ADIM__I4
INTEGER BY SCALAR_ARRAY
RETURNS INTEGER BY VALUE
ENTRY_POINT 'fn_get_arr_dim__i4__sa'
MODULE_NAME 'lcpi.ibp.test.udf.01.dll'
function->fun_temp_length is calculated incorrectly
It won't work with multidimensional arrays - get_scalar_array must allocate scalar_array_desc.
Server crashes in MemPool::releaseMemory
The text was updated successfully, but these errors were encountered:
dmitry-lipetsk
changed the title
[UDF, AV] Server incorrect calculates a memory size for scalar_array_desc
[UDF, AV] Server incorrectly calculates a memory size for scalar_array_desc
Nov 29, 2023
Hello,
sizeof(scalar_array_desc) == 32
Note - it is a size of an array descriptor with one dimension.
When I call the UDF
I see the following situation in this code:
firebird/src/jrd/fun.epp
Lines 377 to 380 in 6340df1
Server allocates 16+8 bytes here.
And it uses this memory below:
firebird/src/jrd/fun.epp
Lines 479 to 483 in 6340df1
There are two mistakes
Server crashes in MemPool::releaseMemory
The text was updated successfully, but these errors were encountered: