pgsql: jit: Fix accidentally-harmless type confusion

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: jit: Fix accidentally-harmless type confusion
Дата
Msg-id E1vGRwx-0054gp-0y@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
jit: Fix accidentally-harmless type confusion

In 2a0faed9d702, which added JIT compilation support for expressions, I
accidentally used sizeof(LLVMBasicBlockRef *) instead of
sizeof(LLVMBasicBlockRef) as part of computing the size of an allocation. That
turns out to have no real negative consequences due to LLVMBasicBlockRef being
a pointer itself (and thus having the same size). It still is wrong and
confusing, so fix it.

Reported by coverity.

Backpatch-through: 13

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/850b7da15b8dc5d479181095fde89be340680a06

Modified Files
--------------
src/backend/jit/llvm/llvmjit_expr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


В списке pgsql-committers по дате отправления: