mirror of
https://github.com/postgres/postgres.git
synced 2026-03-13 22:28:01 -04:00
Per POSIX, a caller of strtol() that wishes to check for errors must set errno to 0 beforehand. Several places in spell.c neglected that, so that they risked delivering a false overflow error in case errno had been ERANGE already. Given the lack of field reports, this case may be unreachable at present --- but it's surely trouble waiting to happen, so fix it. Author: Jacob Brazeal <jacob.brazeal@gmail.com> Discussion: https://postgr.es/m/CA+COZaBhsq6EromFm+knMJfzK6nTpG23zJ+K2=nfUQQXcj_xcQ@mail.gmail.com Backpatch-through: 13 |
||
|---|---|---|
| .. | ||
| dicts | ||
| dict.c | ||
| dict_ispell.c | ||
| dict_simple.c | ||
| dict_synonym.c | ||
| dict_thesaurus.c | ||
| Makefile | ||
| meson.build | ||
| regis.c | ||
| spell.c | ||
| to_tsany.c | ||
| ts_locale.c | ||
| ts_parse.c | ||
| ts_selfuncs.c | ||
| ts_typanalyze.c | ||
| ts_utils.c | ||
| wparser.c | ||
| wparser_def.c | ||