aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/SectionMemoryManager.cpp
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-11-05 09:39:43 +0900
committerMichael Paquier <michael@paquier.xyz>2024-11-05 09:39:43 +0900
commit7d85d87f4d5c35fd5b2d38adaef63dfbfa542ccc (patch)
tree7c8978f1a5665bce152d867b1f30813159c37f01 /src/backend/jit/llvm/SectionMemoryManager.cpp
parent0704aed0d851abe9ec297dbd009951f0feeb12aa (diff)
downloadpostgresql-7d85d87f4d5c35fd5b2d38adaef63dfbfa542ccc.tar.gz
postgresql-7d85d87f4d5c35fd5b2d38adaef63dfbfa542ccc.zip
Clear padding of PgStat_HashKey when handling pgstats entries
PgStat_HashKey is currently initialized in a way that could result in random data if the structure has any padding bytes. The structure has no padding bytes currently, fortunately, but it could become a problem should the structure change at some point in the future. The code is changed to use some memset(0) so as any padding would be handled properly, as it would be surprising to see random failures in the pgstats entry lookups. PgStat_HashKey is a structure internal to pgstats, and an ABI change could be possible in the scope of a bug fix, so backpatch down to 15 where this has been introduced. Author: Bertrand Drouvot Reviewed-by: Jelte Fennema-Nio, Michael Paquier Discussion: https://postgr.es/m/Zyb7RW1y9dVfO0UH@ip-10-97-1-34.eu-west-3.compute.internal Backpatch-through: 15
Diffstat (limited to 'src/backend/jit/llvm/SectionMemoryManager.cpp')
0 files changed, 0 insertions, 0 deletions