forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3650e7a
committed
Prevent overflow for block number in buffile.c
As coded, the start block calculated by BufFileAppend() would overflowonce more than 16k files are used with a default block size. This issueexisted beforeb1e5c9f, but there's no reason not to be clean aboutit.Per report from Coverity, with a fix suggested by Tom Lane.1 parent28f84f7 commit3650e7a
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
904 | 904 |
| |
905 | 905 |
| |
906 | 906 |
| |
907 |
| - | |
| 907 | + | |
908 | 908 |
| |
909 | 909 |
| |
910 | 910 |
| |
|
0 commit comments
Comments
(0)