forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit418414d
committed
Check for fseeko() failure in pg_dump's _tarAddFile().
Coverity pointed out, not unreasonably, that we checked fseeko'sresult at every other call site but these. Failure to seek in thetemp file (note this is NOT pg_dump's output file) seems quiteunlikely, and even if it did happen the file length cross-checkfurther down would probably detect the problem. Still, that's apoor excuse for not checking the result of a system call.1 parent65a6769 commit418414d
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1085 | 1085 |
| |
1086 | 1086 |
| |
1087 | 1087 |
| |
1088 |
| - | |
| 1088 | + | |
| 1089 | + | |
1089 | 1090 |
| |
1090 | 1091 |
| |
1091 | 1092 |
| |
1092 |
| - | |
| 1093 | + | |
| 1094 | + | |
1093 | 1095 |
| |
1094 | 1096 |
| |
1095 | 1097 |
| |
|
0 commit comments
Comments
(0)