forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0b49642
committed
pg_standby: Avoid writing one byte beyond the end of the buffer.
Previously, read() might have returned a length equal to the bufferlength, and then the subsequent store to buf[len] would write azero-byte one byte past the end. This doesn't seem likely to bea security issue, but there's some chance it could result inpg_standby misbehaving.Spotted by Coverity; patch by Michael Paquier, reviewed by me.1 parent6cfd508 commit0b49642
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
418 | 418 |
| |
419 | 419 |
| |
420 | 420 |
| |
421 |
| - | |
| 421 | + | |
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
|
0 commit comments
Comments
(0)