From cb1cd888cce0cae20a33663d6d17ef7630c5d4d7 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 11 Nov 2019 12:52:35 -0800 Subject: Fix entity parser (and api test) to respect length limit on numeric entities. --- api_test/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api_test/main.c') diff --git a/api_test/main.c b/api_test/main.c index 83afbff..9b7ba41 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -837,11 +837,11 @@ static void numeric_entities(test_batch_runner *runner) { "Valid numeric entity 0x10FFFF"); test_md_to_html(runner, "�", "

" UTF8_REPL "

\n", "Invalid numeric entity 0x110000"); - test_md_to_html(runner, "�", "

" UTF8_REPL "

\n", + test_md_to_html(runner, "�", "

�

\n", "Invalid numeric entity 0x80000000"); - test_md_to_html(runner, "�", "

" UTF8_REPL "

\n", + test_md_to_html(runner, "�", "

�

\n", "Invalid numeric entity 0xFFFFFFFF"); - test_md_to_html(runner, "�", "

" UTF8_REPL "

\n", + test_md_to_html(runner, "�", "

�

\n", "Invalid numeric entity 99999999"); test_md_to_html(runner, "&#;", "

&#;

\n", -- cgit v1.2.3