diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-27 20:15:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-27 20:15:04 +0100 |
commit | 0eb055f6163508bcd0c80546bce1e92e9d4e3817 (patch) | |
tree | 3a8d17e8cc0a1fcf33611e652e968a62b9fb211f | |
parent | a9c4f69ca5e17005d8a96af748901a4337b4bc08 (diff) | |
download | rspamd-0eb055f6163508bcd0c80546bce1e92e9d4e3817.tar.gz rspamd-0eb055f6163508bcd0c80546bce1e92e9d4e3817.zip |
[Minor] Fix overflow tags parsing
-rw-r--r-- | src/libserver/html/html.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index ab49d147b..9c96f2bb9 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -1875,7 +1875,7 @@ html_process_input(rspamd_mempool_t *pool, msg_warn_pool("tags limit of %d tags is reached at the position %d;" " ignoring the rest of the HTML content", (int) hc->all_tags.size(), (int) (p - start)); - html_append_parsed(hc, {p, (std::size_t) (end - p)}, false); + c = p; p = end; break; } @@ -1957,6 +1957,9 @@ html_process_input(rspamd_mempool_t *pool, process_opening_tag(); } break; + case tags_limit_overflow: + html_append_parsed(hc, {c, (std::size_t) (end - c)}, false); + break; default: /* Do nothing */ break; |