diff options
author | Thomas G. Lockhart <lockhart@fourpalms.org> | 2002-08-04 06:44:47 +0000 |
---|---|---|
committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 2002-08-04 06:44:47 +0000 |
commit | b71310d8e02f8f0b3006aa5e634f9218f0f0cedc (patch) | |
tree | ed7c3250bae2f4b46f56910477dcf994287fdadf /src/backend/parser/parse_expr.c | |
parent | e025bb7a725610e327401d7afacedaad7079b989 (diff) | |
download | postgresql-b71310d8e02f8f0b3006aa5e634f9218f0f0cedc.tar.gz postgresql-b71310d8e02f8f0b3006aa5e634f9218f0f0cedc.zip |
Add guard code to protect from buffer overruns on long date/time input
strings. Should go back in and look at doing this a bit more elegantly
and (hopefully) cheaper. Probably not too bad anyway, but it seems a
shame to scan the strings twice: once for length for this buffer overrun
protection, and once to parse the line.
Remove use of pow() in date/time handling; was already gone from everything
*but* the time data types.
Define macros for handling typmod manipulation for date/time types.
Should be more robust than all of that brute-force inline code.
Rename macros for masking and typmod manipulation to put TIMESTAMP_
or INTERVAL_ in front of the macro name, to reduce the possibility
of name space collisions.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions