Prevent integer overflows during units conversion when displaying a GUC
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Jul 2008 19:49:02 +0000 (19:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Jul 2008 19:49:02 +0000 (19:49 +0000)
commit80175a00fdb65aa3a472e57982a26686ad4899f8
tree9afb538adb9b6275f81a943b6799f9b1e16875e8
parent3364461a21e2da0f1762189c54d1a311faaf1b37
Prevent integer overflows during units conversion when displaying a GUC
variable that has units.  Per report from Stefan Kaltenbrunner.

Backport to 8.2.  I also backported my patch of 2007-06-21 that prevented
comparable overflows on the input side, since that now seems to have enough
field track record to be back-patched safely.  That patch included addition
of hints listing the available unit names, which I did not bother to strip
out of it --- this will make a little more work for the translators, but
they can copy the translation from 8.3, and anyway an untranslated hint
is better than no hint.
src/backend/utils/misc/guc.c