]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix allocation formula in llvmjit_expr.c
authorMichael Paquier <michael@paquier.xyz>
Thu, 11 Dec 2025 01:25:51 +0000 (10:25 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 11 Dec 2025 01:25:51 +0000 (10:25 +0900)
commit0c67dbcc4e39e160bc5c9d7db3b3f011292d5a85
tree83c9f9e237bd388f534be7267dde0d4c5f11e8ca
parent4c4fa53b9d2d9227f0f14f69a793488baeecc285
Fix allocation formula in llvmjit_expr.c

An array of LLVMBasicBlockRef is allocated with the size used for an
element being "LLVMBasicBlockRef *" rather than "LLVMBasicBlockRef".
LLVMBasicBlockRef is a type that refers to a pointer, so this did not
directly cause a problem because both should have the same size, still
it is incorrect.

This issue has been spotted while reviewing a different patch, and
exists since 2a0faed9d702, so backpatch all the way down.

Discussion: https://postgr.es/m/CA+hUKGLngd9cKHtTUuUdEo2eWEgUcZ_EQRbP55MigV2t_zTReg@mail.gmail.com
Backpatch-through: 14
src/backend/jit/llvm/llvmjit_expr.c