forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita3957ac
committed
Correct off-by-one when reading from pipe
In pg_basebackup.c:reached_end_position(), we're reading from aninternal pipe with our own background process but we're possiblyreading more bytes than will actually fit into our buffer due toan off-by-one error. As we're reading from an internal pipethere's no real risk here, but it's good form to not depend onsuch convenient arrangements.Bug spotted by the Coverity scanner.Back-patch to 9.2 where this showed up.1 parent89c09fe commita3957ac
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments
Comments
(0)