diff options
| author | Tom Lane | 2023-06-24 21:18:08 +0000 |
|---|---|---|
| committer | Tom Lane | 2023-06-24 21:18:08 +0000 |
| commit | c7f33a197bf26da1f7aedd8b33c1ac324bf6ff06 (patch) | |
| tree | 37f6e50fe925bab0c9eab7821c2c1308682d49be /src/test | |
| parent | 96f96398d39841044cec5bee8ca08a9aa45d8745 (diff) | |
Check for interrupts and stack overflow in TParserGet().
TParserGet() recurses for some token types, meaning it's possible
to drive it to stack overflow. Since this is a minority behavior,
I chose to add the check_stack_depth() call to the two places that
recurse rather than doing it during every single call.
While at it, add CHECK_FOR_INTERRUPTS(), because this can run
unpleasantly long for long inputs.
Per bug #17995 from Zuming Jiang. This is old, so back-patch
to all supported branches.
Discussion: https://postgr.es/m/17995-9f20ff3e6389db4c@postgresql.org
Diffstat (limited to 'src/test')
0 files changed, 0 insertions, 0 deletions
