diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-11-11 12:52:35 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-11 12:52:35 -0800 |
commit | cb1cd888cce0cae20a33663d6d17ef7630c5d4d7 (patch) | |
tree | 203fed956b1e831cdbb2e149e9271ae67b0eaa0a /api_test | |
parent | 7d04065de4c793003af01647ff23132de1c9e919 (diff) |
Fix entity parser (and api test) to respect length limit on numeric entities.
Diffstat (limited to 'api_test')
-rw-r--r-- | api_test/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, "�", "<p>" UTF8_REPL "</p>\n", "Invalid numeric entity 0x110000"); - test_md_to_html(runner, "�", "<p>" UTF8_REPL "</p>\n", + test_md_to_html(runner, "�", "<p>&#x80000000;</p>\n", "Invalid numeric entity 0x80000000"); - test_md_to_html(runner, "�", "<p>" UTF8_REPL "</p>\n", + test_md_to_html(runner, "�", "<p>&#xFFFFFFFF;</p>\n", "Invalid numeric entity 0xFFFFFFFF"); - test_md_to_html(runner, "�", "<p>" UTF8_REPL "</p>\n", + test_md_to_html(runner, "�", "<p>&#99999999;</p>\n", "Invalid numeric entity 99999999"); test_md_to_html(runner, "&#;", "<p>&#;</p>\n", |