forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit177be9e
committed
Fix fuzzy error handling in pg_basebackup when opening gzFile
First, this code did not bother checking for a failure when callingdup(). Then, per zlib, gzerror() returns NULL for a NULL input, whichcan happen if passing down to gzdopen() an invalid file descriptor or ifthere was an allocation failure.No back-patch is done as this would unlikely be a problem in the field.Per Coverity.Reported-by: Tom Lane1 parent1c7a0b3 commit177be9e
1 file changed
+14
-1
lines changedLines changed: 14 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1022 | 1022 |
| |
1023 | 1023 |
| |
1024 | 1024 |
| |
1025 |
| - | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
1026 | 1039 |
| |
1027 | 1040 |
| |
1028 | 1041 |
| |
|
0 commit comments
Comments
(0)