Mercurial > vim
annotate runtime/syntax/gpg.vim @ 25885:7c640ad754fb v8.2.3476
patch 8.2.3476: renaming a buffer on startup may cause using freed memory
Commit: https://github.com/vim/vim/commit/d3710cf01ef6ab1b2f233866ff01dab76686f642
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 4 23:13:13 2021 +0100
patch 8.2.3476: renaming a buffer on startup may cause using freed memory
Problem: Renaming a buffer on startup may cause using freed memory.
Solution: Check if the buffer is used in a window. (closes https://github.com/vim/vim/issues/8955)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 05 Oct 2021 00:15:04 +0200 |
parents | 1218c5353e2b |
children | cc751d944b7e |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
11062 | 2 " Language: gpg(1) configuration file |
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> | |
4 " Latest Revision: 2010-10-14 | |
7 | 5 |
375 | 6 if exists("b:current_syntax") |
7 | 7 finish |
8 endif | |
9 | |
375 | 10 let s:cpo_save = &cpo |
11 set cpo&vim | |
12 | |
1620 | 13 setlocal iskeyword+=- |
375 | 14 |
15 syn keyword gpgTodo contained FIXME TODO XXX NOTE | |
16 | |
17 syn region gpgComment contained display oneline start='#' end='$' | |
18 \ contains=gpgTodo,gpgID,@Spell | |
19 | |
20 syn match gpgID contained display '\<\(0x\)\=\x\{8,}\>' | |
21 | |
22 syn match gpgBegin display '^' skipwhite nextgroup=gpgComment,gpgOption,gpgCommand | |
7 | 23 |
375 | 24 syn keyword gpgCommand contained skipwhite nextgroup=gpgArg |
25 \ check-sigs decrypt decrypt-files delete-key | |
26 \ delete-secret-and-public-key delete-secret-key | |
27 \ edit-key encrypt-files export export-all | |
28 \ export-ownertrust export-secret-keys | |
29 \ export-secret-subkeys fast-import fingerprint | |
30 \ gen-prime gen-random import import-ownertrust | |
31 \ list-keys list-public-keys list-secret-keys | |
32 \ list-sigs lsign-key nrsign-key print-md print-mds | |
33 \ recv-keys search-keys send-keys sign-key verify | |
34 \ verify-files | |
35 syn keyword gpgCommand contained skipwhite nextgroup=gpgArgError | |
36 \ check-trustdb clearsign desig-revoke detach-sign | |
37 \ encrypt gen-key gen-revoke help list-packets | |
38 \ rebuild-keydb-caches sign store symmetric | |
39 \ update-trustdb version warranty | |
7 | 40 |
375 | 41 syn keyword gpgOption contained skipwhite nextgroup=gpgArg |
42 \ attribute-fd cert-digest-algo charset cipher-algo | |
43 \ command-fd comment completes-needed compress | |
44 \ compress-algo debug default-cert-check-level | |
45 \ default-key default-preference-list | |
46 \ default-recipient digest-algo disable-cipher-algo | |
47 \ disable-pubkey-algo encrypt-to exec-path | |
48 \ export-options group homedir import-options | |
49 \ keyring keyserver keyserver-options load-extension | |
50 \ local-user logger-fd marginals-needed max-cert-depth | |
51 \ notation-data options output override-session-key | |
52 \ passphrase-fd personal-cipher-preferences | |
53 \ personal-compress-preferences | |
54 \ personal-digest-preferences photo-viewer | |
55 \ recipient s2k-cipher-algo s2k-digest-algo s2k-mode | |
56 \ secret-keyring set-filename set-policy-url status-fd | |
2608
7d8af31066c8
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
1620
diff
changeset
|
57 \ trusted-key verify-options keyid-format list-options |
375 | 58 syn keyword gpgOption contained skipwhite nextgroup=gpgArgError |
59 \ allow-freeform-uid allow-non-selfsigned-uid | |
60 \ allow-secret-key-import always-trust | |
61 \ armor ask-cert-expire ask-sig-expire | |
62 \ auto-check-trustdb batch debug-all default-comment | |
63 \ default-recipient-self dry-run emit-version | |
64 \ emulate-md-encode-bug enable-special-filenames | |
65 \ escape-from-lines expert fast-list-mode | |
66 \ fixed-list-mode for-your-eyes-only | |
67 \ force-mdc force-v3-sigs force-v4-certs | |
68 \ gpg-agent-info ignore-crc-error ignore-mdc-error | |
69 \ ignore-time-conflict ignore-valid-from interactive | |
70 \ list-only lock-multiple lock-never lock-once | |
71 \ merge-only no no-allow-non-selfsigned-uid | |
72 \ no-armor no-ask-cert-expire no-ask-sig-expire | |
73 \ no-auto-check-trustdb no-batch no-comment | |
74 \ no-default-keyring no-default-recipient | |
75 \ no-encrypt-to no-expensive-trust-checks | |
76 \ no-expert no-for-your-eyes-only no-force-v3-sigs | |
77 \ no-force-v4-certs no-greeting no-literal | |
78 \ no-mdc-warning no-options no-permission-warning | |
79 \ no-pgp2 no-pgp6 no-pgp7 no-random-seed-file | |
80 \ no-secmem-warning no-show-notation no-show-photos | |
81 \ no-show-policy-url no-sig-cache no-sig-create-check | |
82 \ no-sk-comments no-tty no-utf8-strings no-verbose | |
83 \ no-version not-dash-escaped openpgp pgp2 | |
84 \ pgp6 pgp7 preserve-permissions quiet rfc1991 | |
85 \ set-filesize show-keyring show-notation show-photos | |
86 \ show-policy-url show-session-key simple-sk-checksum | |
87 \ sk-comments skip-verify textmode throw-keyid | |
88 \ try-all-secrets use-agent use-embedded-filename | |
89 \ utf8-strings verbose with-colons with-fingerprint | |
90 \ with-key-data yes | |
7 | 91 |
375 | 92 syn match gpgArg contained display '\S\+\(\s\+\S\+\)*' contains=gpgID |
93 syn match gpgArgError contained display '\S\+\(\s\+\S\+\)*' | |
7 | 94 |
375 | 95 hi def link gpgComment Comment |
96 hi def link gpgTodo Todo | |
97 hi def link gpgID Number | |
98 hi def link gpgOption Keyword | |
99 hi def link gpgCommand Error | |
100 hi def link gpgArgError Error | |
7 | 101 |
102 let b:current_syntax = "gpg" | |
103 | |
375 | 104 let &cpo = s:cpo_save |
105 unlet s:cpo_save |