forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4053189
committed
Avoid potential buffer overflow crash
A pointer to a C string was treated as a pointer to a "name" datum andpassed to SPI_execute_plan(). This pointer would then end up beingpassed through datumCopy(), which would try to copy the entire 64 bytesof name data, thus running past the end of the C string. Fix byconverting the string to a proper name structure.Found by LLVM AddressSanitizer.1 parentf19e92e commit4053189
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
632 | 632 |
| |
633 | 633 |
| |
634 | 634 |
| |
635 |
| - | |
| 635 | + | |
636 | 636 |
| |
637 | 637 |
| |
638 | 638 |
| |
|
0 commit comments
Comments
(0)