forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0a67c00
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 parent5b1e4c1 commit0a67c00
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| |||
0 commit comments
Comments
(0)