diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-02-28 18:49:53 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-02-28 18:49:53 +0000 |
commit | 6c8f478623d2b6ba608eccc13a93ac7c25556b48 (patch) | |
tree | 225d6d0e57c6697849f783c9aa523a2b71056b22 /src/backend/utils/adt/float.c | |
parent | 109177fe3a5f3609b9adae98ead7517156305ef1 (diff) | |
download | postgresql-6c8f478623d2b6ba608eccc13a93ac7c25556b48.tar.gz postgresql-6c8f478623d2b6ba608eccc13a93ac7c25556b48.zip |
Fix buffer allocations in encoding conversion routines so that they won't
fail on zero-length inputs. This isn't an issue in normal use because the
conversion infrastructure skips calling the converters for empty strings.
However a problem was created by yesterday's patch to check whether the
right conversion function is supplied in CREATE CONVERSION. The most
future-proof fix seems to be to make the converters safe for this corner case.
Diffstat (limited to 'src/backend/utils/adt/float.c')
0 files changed, 0 insertions, 0 deletions