1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-15 19:21:59 +03:00
Files
postgres/src
Andrew Gierth 4854ead60a Reduce an unnecessary O(N^3) loop in lexer.
The lexer's handling of operators contained an O(N^3) hazard when
dealing with long strings of + or - characters; it seems hard to
prevent this case from being O(N^2), but the additional N multiplier
was not needed.

Backpatch all the way since this has been there since 7.x, and it
presents at least a mild hazard in that trying to do Bind, PREPARE or
EXPLAIN on a hostile query could take excessive time (without
honouring cancels or timeouts) even if the query was never executed.
2018-08-23 21:34:42 +01:00
..
2018-08-21 15:18:00 +09:00
2018-08-06 10:54:19 +02:00
2018-08-06 16:07:43 -04:00
2018-08-06 19:44:29 +02:00
2016-01-02 13:33:40 -05:00