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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a7a4adc) | patch
Check DCH_MAX_ITEM_SIZ limits with <=, not <.
Sat, 7 Feb 2015 04:39:52 +0000 (23:39 -0500)
Sat, 7 Feb 2015 04:39:52 +0000 (23:39 -0500)
commit 237795a7b4ccf359423bdd99476782d4880eda83
Check DCH_MAX_ITEM_SIZ limits with <=, not <.

We reserve space for the full amount, not one less. The affected checks
deal with localized month and day names. Today's DCH_MAX_ITEM_SIZ value
would suffice for a 60-byte day name, while the longest known is the
49-byte mn_CN.utf-8 word for "Saturday." Thus, the upshot of this
change is merely to avoid misdirecting future readers of the code; users
are not expected to see errors either way.
src/backend/utils/adt/formatting.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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