git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 28f84f7) | patch
Prevent overflow for block number in buffile.c
2023年11月20日 00:14:53 +0000 (09:14 +0900)
2023年11月20日 00:14:53 +0000 (09:14 +0900)
commit 3650e7a3933166b40f7f9043bd91f45d3467c74d
Prevent overflow for block number in buffile.c

As coded, the start block calculated by BufFileAppend() would overflow
once more than 16k files are used with a default block size. This issue
existed before b1e5c9fa9ac4, but there's no reason not to be clean about
it.

Per report from Coverity, with a fix suggested by Tom Lane.
src/backend/storage/file/buffile.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /