Add macro to disable address safety instrumentation
John Naylor <john.naylor@postgresql.org>
Add macro to disable address safety instrumentation fasthash_accum_cstring_aligned() uses a technique, found in various strlen() implementations, to detect a string's NUL terminator by reading a word at at time. That triggers failures when testing with "-fsanitize=address", at least with frontend code. To enable using this function anywhere, add a function attribute macro to disable such testing. Reviewed by Jeff Davis Discussion: https://postgr.es/m/CANWCAZbwvp7oUEkbw-xP4L0_S_WNKq-J-ucP4RCNDPJnrakUPw%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/include/c.h | modified | +13 −0 |
| src/include/common/hashfn_unstable.h | modified | +4 −1 |
Discussion
- Change GUC hashtable to use simplehash? 103 messages · 2023-11-17 → 2025-02-25