- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit8cedf6a
committed
Use the correct sizeof() in BufFileLoadBuffer
The sizeof() call should reference buffer.data, because that's thebuffer we're reading data into, not the whole PGAlignedBuffer union.This was introduced by44cac93, which replaced the simple bufferwith a PGAlignedBuffer field.It's benign, because the buffer is the largest field of the union, sothe sizes are the same. But it's easy to trip over this in a patch, sofix and backpatch. Commit44cac93 went into 12, but that's EOL.Backpatch-through: 13Discussion:https://postgr.es/m/928bdab1-6567-449f-98c4-339cd2203b87@vondra.me1 parent4d6e169 commit8cedf6a
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
452 | 452 |
| |
453 | 453 |
| |
454 | 454 |
| |
455 |
| - | |
| 455 | + | |
456 | 456 |
| |
457 | 457 |
| |
458 | 458 |
| |
|
0 commit comments
Comments
(0)