forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite1f7173
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 parent92a7521 commite1f7173
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
454 | 454 |
| |
455 | 455 |
| |
456 | 456 |
| |
457 |
| - | |
| 457 | + | |
458 | 458 |
| |
459 | 459 |
| |
460 | 460 |
| |
|
0 commit comments
Comments
(0)