diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-08 17:09:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-08 17:09:41 +0100 |
commit | f1d44f1b36c2f6767cbace2aeba7d84a0a99d1f0 (patch) | |
tree | 13d36f098898ae2bbf415db07aa57513599fa180 /src | |
parent | 1e5de80791c519775755d612a542b7b0860a609f (diff) | |
download | rspamd-f1d44f1b36c2f6767cbace2aeba7d84a0a99d1f0.tar.gz rspamd-f1d44f1b36c2f6767cbace2aeba7d84a0a99d1f0.zip |
[Minor] Add one more boundary check
Diffstat (limited to 'src')
-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: |