Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0576de5

Browse files
committed
Add missing NULL terminator to list_SECURITY_LABEL_preposition[].
On the machines I tried this on, pressing TAB after SECURITY LABEL led tobeing offered ON and FOR as intended, plus random other keywords (varyingacross 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,commit4d355a8. Hence, back-patch to all supported versions.There's no bug in HEAD, though, thanks to our recent tab-completionrewrite.
1 parent270d8a1 commit0576de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/psql/tab-complete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2919,7 +2919,7 @@ psql_completion(char *text, int start, int end)
29192919
pg_strcasecmp(prev_wd,"LABEL")==0)
29202920
{
29212921
staticconstchar*constlist_SECURITY_LABEL_preposition[]=
2922-
{"ON","FOR"};
2922+
{"ON","FOR",NULL};
29232923

29242924
COMPLETE_WITH_LIST(list_SECURITY_LABEL_preposition);
29252925
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp