forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2dc08bd
committed
Properly determine length for on-disk TOAST values
In detoast_attr_slice, VARSIZE_ANY was used to compute compressed lengthof on-disk TOAST values. That's incorrect, because the varlena value maybe just a TOAST pointer, producing either bogus value or crashing.This is likely why the code was crashing on big-endian machines before540f316 replaced the VARSIZE with VARSIZE_ANY, which however onlymasked the issue.Reported-by: Rushabh LathiaDiscussion:https://postgr.es/m/CAL-OGkthU9Gs7TZchf5OWaL-Gsi=hXqufTxKv9qpNG73d5na_g@mail.gmail.com1 parentd482f7f commit2dc08bd
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
236 |
| - | |
| 236 | + | |
237 | 237 |
| |
238 | 238 |
| |
239 | 239 |
| |
|
0 commit comments
Comments
(0)