- Notifications
You must be signed in to change notification settings - Fork28
Commit0301036
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 parent3355443 commit0301036
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments
Comments
(0)