diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-12-09 05:02:24 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-12-09 05:02:24 +0000 |
commit | d65a27f9509e8cbd0a0d8a58597bd096c2a22207 (patch) | |
tree | c84d71172b671d38b944bf3299159120709cc806 /src/backend/utils/adt/arrayfuncs.c | |
parent | 469cf43fac9bd5e261499c2a922f5cb01fbb95f1 (diff) | |
download | postgresql-d65a27f9509e8cbd0a0d8a58597bd096c2a22207.tar.gz postgresql-d65a27f9509e8cbd0a0d8a58597bd096c2a22207.zip |
Hi,
I was able to crash postgres 6.5.3 when I did an 'alter user' command.
After I started a debugger I found the problem in the timezone handling
of
datetime (my Linux box lost its timezone information, that's how the
problem occurred).
Only 7 bytes are reserved for the timezone, without checking for
boundaries.
Attached is a patch that fixes this problem and emits a NOTICE if a
timezone is encountered that is longer than MAXTZLEN bytes, like this:
Jeroen van Vianen
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions