diff options
-rw-r--r-- | src/libserver/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index 16f108ecf..37c8858bd 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -368,7 +368,7 @@ rspamd_html_decode_entitles_inplace (gchar *s, gsize len) end = s + l; - while (h - s < l) { + while (h - s < l && t <= h) { switch (state) { /* Out of entity */ case 0: |