forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdb17594
committed
Add macro to disable address safety instrumentation
fasthash_accum_cstring_aligned() uses a technique, found in variousstrlen() implementations, to detect a string's NUL terminator byreading a word at at time. That triggers failures when testing with"-fsanitize=address", at least with frontend code. To enable usingthis function anywhere, add a function attribute macro to disablesuch testing.Reviewed by Jeff DavisDiscussion:https://postgr.es/m/CANWCAZbwvp7oUEkbw-xP4L0_S_WNKq-J-ucP4RCNDPJnrakUPw%40mail.gmail.com1 parent4b968e2 commitdb17594
2 files changed
+17
-1
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
138 | 151 |
| |
139 | 152 |
| |
140 | 153 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
213 | 213 |
| |
214 | 214 |
| |
215 | 215 |
| |
216 |
| - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
217 | 219 |
| |
| 220 | + | |
218 | 221 |
| |
219 | 222 |
| |
220 | 223 |
| |
|
0 commit comments
Comments
(0)