pgsql: Add missing NULL terminator to list_SECURITY_LABEL_preposition[]

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Add missing NULL terminator to list_SECURITY_LABEL_preposition[]
Дата
Msg-id E1afUTS-0004BV-Ca@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add missing NULL terminator to list_SECURITY_LABEL_preposition[].

On the machines I tried this on, pressing TAB after SECURITY LABEL led to
being offered ON and FOR as intended, plus random other keywords (varying
across machines).  But if you were a bit more unlucky you'd get a crash,
as reported by nummervet@mail.ru in bug #14019.

Seems to have been an aboriginal error in the SECURITY LABEL patch,
commit 4d355a8336e0f226.  Hence, back-patch to all supported versions.
There's no bug in HEAD, though, thanks to our recent tab-completion
rewrite.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2d61d88d8d0be910b54d28448e3fc94f94995792

Modified Files
--------------
src/bin/psql/tab-complete.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Add missing NULL terminator to list_SECURITY_LABEL_preposition[]
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: pg_stat_get_progress_info() should be marked STRICT.