forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3ed76bd
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 parent29cfa88 commit3ed76bd
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1096 | 1096 |
| |
1097 | 1097 |
| |
1098 | 1098 |
| |
1099 |
| - | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1100 | 1102 |
| |
1101 | 1103 |
| |
1102 | 1104 |
| |
1103 | 1105 |
| |
1104 |
| - | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1105 | 1109 |
| |
1106 | 1110 |
| |
1107 | 1111 |
| |
|
0 commit comments
Comments
(0)