Christian Brabandt | e1dc9a6 | 2023-09-02 14:40:13 +0200 | [diff] [blame] | 1 | " Some tests, that used to crash Vim |
| 2 | source check.vim |
| 3 | source screendump.vim |
| 4 | |
| 5 | CheckScreendump |
| 6 | |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 7 | " Run the command in terminal and wait for it to complete via notification |
| 8 | func s:RunCommandAndWait(buf, cmd) |
| 9 | call term_sendkeys(a:buf, a:cmd .. "; printf '" .. TermNotifyParentCmd(v:false) .. "'\<cr>") |
| 10 | call WaitForChildNotification() |
| 11 | endfunc |
| 12 | |
Christian Brabandt | e1dc9a6 | 2023-09-02 14:40:13 +0200 | [diff] [blame] | 13 | func Test_crash1() |
Christian Brabandt | d2a08ba | 2023-09-05 07:45:04 +0200 | [diff] [blame] | 14 | CheckNotBSD |
Philip H | 1690ec6 | 2023-09-06 20:20:07 +0200 | [diff] [blame] | 15 | CheckExecutable dash |
Christian Brabandt | d2a08ba | 2023-09-05 07:45:04 +0200 | [diff] [blame] | 16 | |
Christian Brabandt | e1dc9a6 | 2023-09-02 14:40:13 +0200 | [diff] [blame] | 17 | " The following used to crash Vim |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 18 | let opts = #{cmd: 'sh'} |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 19 | let vim = GetVimProg() |
| 20 | |
Christian Brabandt | fc68299 | 2023-09-03 20:20:52 +0200 | [diff] [blame] | 21 | let buf = RunVimInTerminal('sh', opts) |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 22 | |
| 23 | let file = 'crash/poc_huaf1' |
| 24 | let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'" |
| 25 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 26 | call s:RunCommandAndWait(buf, args .. |
| 27 | \ ' && echo "crash 1: [OK]" > X_crash1_result.txt') |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 28 | |
| 29 | let file = 'crash/poc_huaf2' |
| 30 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 31 | call s:RunCommandAndWait(buf, args .. |
| 32 | \ ' && echo "crash 2: [OK]" >> X_crash1_result.txt') |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 33 | |
| 34 | let file = 'crash/poc_huaf3' |
| 35 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 36 | call s:RunCommandAndWait(buf, args .. |
| 37 | \ ' && echo "crash 3: [OK]" >> X_crash1_result.txt') |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 38 | |
Christian Brabandt | fc68299 | 2023-09-03 20:20:52 +0200 | [diff] [blame] | 39 | let file = 'crash/bt_quickfix_poc' |
| 40 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 41 | call s:RunCommandAndWait(buf, args .. |
| 42 | \ ' && echo "crash 4: [OK]" >> X_crash1_result.txt') |
Christian Brabandt | fc68299 | 2023-09-03 20:20:52 +0200 | [diff] [blame] | 43 | " clean up |
| 44 | call delete('Xerr') |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 45 | |
Christian Brabandt | ee9166e | 2023-09-03 21:24:33 +0200 | [diff] [blame] | 46 | let file = 'crash/poc_tagfunc.vim' |
| 47 | let args = printf(cmn_args, vim, file) |
Christian Brabandt | f6d28fe | 2023-09-05 20:18:06 +0200 | [diff] [blame] | 48 | " using || because this poc causes vim to exit with exitstatus != 0 |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 49 | call s:RunCommandAndWait(buf, args .. |
| 50 | \ ' || echo "crash 5: [OK]" >> X_crash1_result.txt') |
Christian Brabandt | ee9166e | 2023-09-03 21:24:33 +0200 | [diff] [blame] | 51 | |
Christian Brabandt | ee9166e | 2023-09-03 21:24:33 +0200 | [diff] [blame] | 52 | |
Christian Brabandt | 6e60cf4 | 2023-09-03 21:43:46 +0200 | [diff] [blame] | 53 | let file = 'crash/bt_quickfix1_poc' |
| 54 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 55 | call s:RunCommandAndWait(buf, args .. |
| 56 | \ ' && echo "crash 6: [OK]" >> X_crash1_result.txt') |
Christian Brabandt | 6e60cf4 | 2023-09-03 21:43:46 +0200 | [diff] [blame] | 57 | " clean up |
| 58 | call delete('X') |
Christian Brabandt | 6e60cf4 | 2023-09-03 21:43:46 +0200 | [diff] [blame] | 59 | |
Christian Brabandt | f6d28fe | 2023-09-05 20:18:06 +0200 | [diff] [blame] | 60 | let file = 'crash/vim_regsub_both_poc' |
| 61 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 62 | call s:RunCommandAndWait(buf, args .. |
| 63 | \ ' && echo "crash 7: [OK]" >> X_crash1_result.txt') |
Christian Brabandt | f6d28fe | 2023-09-05 20:18:06 +0200 | [diff] [blame] | 64 | |
Christian Brabandt | 3bd7fa1 | 2023-10-02 20:59:08 +0200 | [diff] [blame] | 65 | let file = 'crash/vim_msg_trunc_poc' |
| 66 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 67 | call s:RunCommandAndWait(buf, args .. |
| 68 | \ ' || echo "crash 8: [OK]" >> X_crash1_result.txt') |
Christian Brabandt | 3bd7fa1 | 2023-10-02 20:59:08 +0200 | [diff] [blame] | 69 | |
Christian Brabandt | 20d161a | 2023-10-05 22:08:30 +0200 | [diff] [blame] | 70 | let file = 'crash/crash_scrollbar' |
| 71 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 72 | call s:RunCommandAndWait(buf, args .. |
| 73 | \ ' && echo "crash 9: [OK]" >> X_crash1_result.txt') |
Christian Brabandt | 20d161a | 2023-10-05 22:08:30 +0200 | [diff] [blame] | 74 | |
Christian Brabandt | 41e6f7d | 2023-10-11 21:08:13 +0200 | [diff] [blame] | 75 | let file = 'crash/editing_arg_idx_POC_1' |
| 76 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 77 | call s:RunCommandAndWait(buf, args .. |
| 78 | \ ' || echo "crash 10: [OK]" >> X_crash1_result.txt') |
Christian Brabandt | 41e6f7d | 2023-10-11 21:08:13 +0200 | [diff] [blame] | 79 | call delete('Xerr') |
| 80 | call delete('@') |
| 81 | |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 82 | " clean up |
Christian Brabandt | e1dc9a6 | 2023-09-02 14:40:13 +0200 | [diff] [blame] | 83 | exe buf .. "bw!" |
| 84 | |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 85 | sp X_crash1_result.txt |
Christian Brabandt | fc68299 | 2023-09-03 20:20:52 +0200 | [diff] [blame] | 86 | |
| 87 | let expected = [ |
| 88 | \ 'crash 1: [OK]', |
| 89 | \ 'crash 2: [OK]', |
| 90 | \ 'crash 3: [OK]', |
| 91 | \ 'crash 4: [OK]', |
Christian Brabandt | ee9166e | 2023-09-03 21:24:33 +0200 | [diff] [blame] | 92 | \ 'crash 5: [OK]', |
Christian Brabandt | 6e60cf4 | 2023-09-03 21:43:46 +0200 | [diff] [blame] | 93 | \ 'crash 6: [OK]', |
Christian Brabandt | f6d28fe | 2023-09-05 20:18:06 +0200 | [diff] [blame] | 94 | \ 'crash 7: [OK]', |
Christian Brabandt | 3bd7fa1 | 2023-10-02 20:59:08 +0200 | [diff] [blame] | 95 | \ 'crash 8: [OK]', |
Christian Brabandt | 20d161a | 2023-10-05 22:08:30 +0200 | [diff] [blame] | 96 | \ 'crash 9: [OK]', |
Christian Brabandt | 41e6f7d | 2023-10-11 21:08:13 +0200 | [diff] [blame] | 97 | \ 'crash 10: [OK]', |
Christian Brabandt | fc68299 | 2023-09-03 20:20:52 +0200 | [diff] [blame] | 98 | \ ] |
| 99 | |
| 100 | call assert_equal(expected, getline(1, '$')) |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 101 | bw! |
Christian Brabandt | e1dc9a6 | 2023-09-02 14:40:13 +0200 | [diff] [blame] | 102 | |
Christian Brabandt | db510ca | 2023-09-03 09:23:12 +0200 | [diff] [blame] | 103 | call delete('X_crash1_result.txt') |
Christian Brabandt | e1dc9a6 | 2023-09-02 14:40:13 +0200 | [diff] [blame] | 104 | endfunc |
| 105 | |
Christian Brabandt | 25aabc2 | 2023-11-14 19:31:34 +0100 | [diff] [blame] | 106 | func Test_crash1_2() |
| 107 | CheckNotBSD |
| 108 | CheckExecutable dash |
| 109 | |
| 110 | " The following used to crash Vim |
| 111 | let opts = #{cmd: 'sh'} |
| 112 | let vim = GetVimProg() |
Christian Brabandt | abfa13e | 2023-11-30 11:32:18 +0100 | [diff] [blame] | 113 | let result = 'X_crash1_2_result.txt' |
Christian Brabandt | 25aabc2 | 2023-11-14 19:31:34 +0100 | [diff] [blame] | 114 | |
| 115 | let buf = RunVimInTerminal('sh', opts) |
| 116 | |
| 117 | let file = 'crash/poc1' |
| 118 | let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'" |
| 119 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 120 | call s:RunCommandAndWait(buf, args .. |
| 121 | \ ' && echo "crash 1: [OK]" > '.. result) |
Christian Brabandt | 25aabc2 | 2023-11-14 19:31:34 +0100 | [diff] [blame] | 122 | |
Christian Brabandt | eec0c2b | 2023-11-28 22:03:48 +0100 | [diff] [blame] | 123 | let file = 'crash/poc_win_enter_ext' |
| 124 | let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'" |
| 125 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 126 | call s:RunCommandAndWait(buf, args .. |
| 127 | \ ' && echo "crash 2: [OK]" >> '.. result) |
Christian Brabandt | eec0c2b | 2023-11-28 22:03:48 +0100 | [diff] [blame] | 128 | |
Christian Brabandt | 0fb375a | 2023-11-29 10:23:39 +0100 | [diff] [blame] | 129 | let file = 'crash/poc_suggest_trie_walk' |
| 130 | let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'" |
| 131 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 132 | call s:RunCommandAndWait(buf, args .. |
| 133 | \ ' && echo "crash 3: [OK]" >> '.. result) |
Christian Brabandt | 0fb375a | 2023-11-29 10:23:39 +0100 | [diff] [blame] | 134 | |
Christian Brabandt | b39b240 | 2023-11-29 11:34:05 +0100 | [diff] [blame] | 135 | let file = 'crash/poc_did_set_langmap' |
| 136 | let cmn_args = "%s -u NONE -i NONE -n -X -m -n -e -s -S %s -c ':qa!'" |
| 137 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 138 | call s:RunCommandAndWait(buf, args .. |
| 139 | \ ' ; echo "crash 4: [OK]" >> '.. result) |
Christian Brabandt | b39b240 | 2023-11-29 11:34:05 +0100 | [diff] [blame] | 140 | |
Christian Brabandt | cacb669 | 2024-08-22 21:40:14 +0200 | [diff] [blame] | 141 | let file = 'crash/reverse_text_overflow' |
| 142 | let cmn_args = "%s -u NONE -i NONE -n -X -m -n -e -s -S %s -c ':qa!'" |
| 143 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 144 | call s:RunCommandAndWait(buf, args .. |
| 145 | \ ' ; echo "crash 5: [OK]" >> '.. result) |
Christian Brabandt | cacb669 | 2024-08-22 21:40:14 +0200 | [diff] [blame] | 146 | |
Christian Brabandt | 25aabc2 | 2023-11-14 19:31:34 +0100 | [diff] [blame] | 147 | " clean up |
| 148 | exe buf .. "bw!" |
Christian Brabandt | 25aabc2 | 2023-11-14 19:31:34 +0100 | [diff] [blame] | 149 | exe "sp " .. result |
Christian Brabandt | 25aabc2 | 2023-11-14 19:31:34 +0100 | [diff] [blame] | 150 | let expected = [ |
| 151 | \ 'crash 1: [OK]', |
Christian Brabandt | eec0c2b | 2023-11-28 22:03:48 +0100 | [diff] [blame] | 152 | \ 'crash 2: [OK]', |
Christian Brabandt | 0fb375a | 2023-11-29 10:23:39 +0100 | [diff] [blame] | 153 | \ 'crash 3: [OK]', |
Christian Brabandt | b39b240 | 2023-11-29 11:34:05 +0100 | [diff] [blame] | 154 | \ 'crash 4: [OK]', |
Christian Brabandt | cacb669 | 2024-08-22 21:40:14 +0200 | [diff] [blame] | 155 | \ 'crash 5: [OK]', |
Christian Brabandt | 25aabc2 | 2023-11-14 19:31:34 +0100 | [diff] [blame] | 156 | \ ] |
| 157 | |
| 158 | call assert_equal(expected, getline(1, '$')) |
| 159 | bw! |
Christian Brabandt | 25aabc2 | 2023-11-14 19:31:34 +0100 | [diff] [blame] | 160 | call delete(result) |
| 161 | endfunc |
| 162 | |
Christian Brabandt | 5dd41d4 | 2023-12-04 22:52:23 +0100 | [diff] [blame] | 163 | " This test just runs various scripts, that caused issues before. |
| 164 | " We are not really asserting anything here, it's just important |
| 165 | " that ASAN does not detect any issues. |
| 166 | func Test_crash1_3() |
| 167 | let vim = GetVimProg() |
| 168 | let buf = RunVimInTerminal('sh', #{cmd: 'sh'}) |
| 169 | |
| 170 | let file = 'crash/poc_ex_substitute' |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 171 | let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'" |
Christian Brabandt | 5dd41d4 | 2023-12-04 22:52:23 +0100 | [diff] [blame] | 172 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 173 | call s:RunCommandAndWait(buf, args) |
Christian Brabandt | 5dd41d4 | 2023-12-04 22:52:23 +0100 | [diff] [blame] | 174 | |
| 175 | let file = 'crash/poc_uaf_exec_instructions' |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 176 | let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'" |
Christian Brabandt | 5dd41d4 | 2023-12-04 22:52:23 +0100 | [diff] [blame] | 177 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 178 | call s:RunCommandAndWait(buf, args) |
Christian Brabandt | 5dd41d4 | 2023-12-04 22:52:23 +0100 | [diff] [blame] | 179 | |
Christian Brabandt | 0f28791 | 2023-12-11 17:53:25 +0100 | [diff] [blame] | 180 | let file = 'crash/poc_uaf_check_argument_types' |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 181 | let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'" |
Christian Brabandt | 0f28791 | 2023-12-11 17:53:25 +0100 | [diff] [blame] | 182 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 183 | call s:RunCommandAndWait(buf, args) |
Christian Brabandt | 0f28791 | 2023-12-11 17:53:25 +0100 | [diff] [blame] | 184 | |
Christian Brabandt | 8a0bbe7 | 2024-08-01 20:16:51 +0200 | [diff] [blame] | 185 | let file = 'crash/double_free' |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 186 | let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'" |
Christian Brabandt | 8a0bbe7 | 2024-08-01 20:16:51 +0200 | [diff] [blame] | 187 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 188 | call s:RunCommandAndWait(buf, args) |
Christian Brabandt | 8a0bbe7 | 2024-08-01 20:16:51 +0200 | [diff] [blame] | 189 | |
Christian Brabandt | b29f4ab | 2024-08-01 22:10:28 +0200 | [diff] [blame] | 190 | let file = 'crash/dialog_changed_uaf' |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 191 | let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'" |
Christian Brabandt | b29f4ab | 2024-08-01 22:10:28 +0200 | [diff] [blame] | 192 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 193 | call s:RunCommandAndWait(buf, args) |
Christian Brabandt | b29f4ab | 2024-08-01 22:10:28 +0200 | [diff] [blame] | 194 | |
Christian Brabandt | fb3f969 | 2024-08-11 20:09:17 +0200 | [diff] [blame] | 195 | let file = 'crash/nullpointer' |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 196 | let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'" |
Christian Brabandt | fb3f969 | 2024-08-11 20:09:17 +0200 | [diff] [blame] | 197 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 198 | call s:RunCommandAndWait(buf, args) |
Christian Brabandt | fb3f969 | 2024-08-11 20:09:17 +0200 | [diff] [blame] | 199 | |
Christian Brabandt | 322ba91 | 2024-08-25 21:33:03 +0200 | [diff] [blame] | 200 | let file = 'crash/heap_overflow3' |
| 201 | let cmn_args = "%s -u NONE -i NONE -n -X -m -n -e -s -S %s -c ':qa!'" |
| 202 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 203 | call s:RunCommandAndWait(buf, args) |
Christian Brabandt | 322ba91 | 2024-08-25 21:33:03 +0200 | [diff] [blame] | 204 | |
Christian Brabandt | c9bfed2 | 2024-08-29 22:12:05 +0200 | [diff] [blame] | 205 | let file = 'crash/heap_overflow_glob2regpat' |
| 206 | let cmn_args = "%s -u NONE -i NONE -n -X -m -n -e -s -S %s -c ':qa!'" |
| 207 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 208 | call s:RunCommandAndWait(buf, args) |
Christian Brabandt | 1c815b5 | 2024-08-28 22:08:35 +0200 | [diff] [blame] | 209 | |
Christian Brabandt | c3a02d7 | 2024-08-28 23:17:52 +0200 | [diff] [blame] | 210 | let file = 'crash/nullptr_regexp_nfa' |
| 211 | let cmn_args = "%s -u NONE -i NONE -n -X -m -n -e -s -S %s -c ':qa!'" |
| 212 | let args = printf(cmn_args, vim, file) |
Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 213 | call s:RunCommandAndWait(buf, args) |
Christian Brabandt | 9d1bed5 | 2025-01-20 22:55:57 +0100 | [diff] [blame] | 214 | |
Christian Brabandt | 5dd41d4 | 2023-12-04 22:52:23 +0100 | [diff] [blame] | 215 | " clean up |
| 216 | exe buf .. "bw!" |
| 217 | bw! |
| 218 | endfunc |
| 219 | |
Christian Brabandt | ced2c73 | 2023-09-02 21:15:52 +0200 | [diff] [blame] | 220 | func Test_crash2() |
| 221 | " The following used to crash Vim |
| 222 | let opts = #{wait_for_ruler: 0, rows: 20} |
| 223 | let args = ' -u NONE -i NONE -n -e -s -S ' |
| 224 | let buf = RunVimInTerminal(args .. ' crash/vim_regsub_both', opts) |
| 225 | call VerifyScreenDump(buf, 'Test_crash_01', {}) |
| 226 | exe buf .. "bw!" |
| 227 | endfunc |
| 228 | |
zeertzjq | d56c451 | 2024-08-26 18:45:37 +0200 | [diff] [blame] | 229 | func TearDown() |
| 230 | " That file is created at Test_crash1_3() by dialog_changed_uaf |
| 231 | " but cleaning up in that test doesn't remove it. Let's try again at |
Christian Brabandt | cd83173 | 2024-08-24 17:34:19 +0200 | [diff] [blame] | 232 | " the end of this test script |
| 233 | call delete('Untitled') |
| 234 | endfunc |
| 235 | |
Christian Brabandt | e1dc9a6 | 2023-09-02 14:40:13 +0200 | [diff] [blame] | 236 | " vim: shiftwidth=2 sts=2 expandtab |