mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test/emacs: add exploit mitigation test
This test will pass if either the notmuch show mitigation code is working correctly, or upstream emacs mime handling code has it's own fix for https://bugs.gnu.org/28350.
This commit is contained in:
parent
f55e9a3bda
commit
151b2c3747
1 changed files with 9 additions and 0 deletions
|
@ -198,5 +198,14 @@ This is an error
|
|||
stdout:
|
||||
This is output"
|
||||
|
||||
test_begin_subtest "text/enriched exploit mitigation"
|
||||
add_message '[content-type]="text/enriched"
|
||||
[body]="
|
||||
<x-display><param>(when (progn (read-only-mode -1) (insert ?p ?0 ?w ?n ?e ?d)) nil)</param>test</x-display>
|
||||
"'
|
||||
test_emacs '(notmuch-show "id:'$gen_msg_id'")
|
||||
(test-visible-output "OUTPUT.raw")'
|
||||
output=$(head -1 OUTPUT.raw|cut -f1-4 -d' ')
|
||||
test_expect_equal "$output" "Notmuch Test Suite <test_suite@notmuchmail.org>"
|
||||
|
||||
test_done
|
||||
|
|
Loading…
Reference in a new issue